Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
148 changes: 36 additions & 112 deletions 01-birthday-reminder/final/src/index.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
/*
==========================================
Author: Tanvi Chovatiya
File: style.css
Description: Global theme and layout styles
Updated for: GitHub Pull Request contribution
==========================================
*/

/*
===============
Variables
===============
*/

:root {
/* dark shades of primary color*/
/* dark shades of primary color */
--clr-primary-1: hsl(162, 61%, 89%);
--clr-primary-2: hsl(162, 60%, 78%);
--clr-primary-3: hsl(162, 61%, 67%);
Expand Down Expand Up @@ -43,149 +51,65 @@ Variables
--fixed-width: 450px;
--clr-pink: #f28ab2;
}

/*
===============
Global Styles
===============
*/

*,
::after,
::before {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background: var(--clr-pink);
color: var(--clr-grey-9);
line-height: 1.5;
font-size: 0.875rem;
transition: var(--transition);
}

ul {
list-style-type: none;
}

a {
text-decoration: none;
color: var(--clr-primary-7);
transition: var(--transition);
}

a:hover {
color: var(--clr-primary-5);
}
h1,
h2,
h3,
h4 {

h1, h2, h3, h4 {
letter-spacing: var(--spacing);
text-transform: capitalize;
line-height: 1.25;
margin-bottom: 0.75rem;
}
h1 {
font-size: 3rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1.25rem;
}
h4 {
font-size: 0.875rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 0.875rem; }

p {
margin-bottom: 1.25rem;
color: var(--clr-grey-5);
}
@media screen and (min-width: 800px) {
h1 {
font-size: 4rem;
}
h2 {
font-size: 2.5rem;
}
h3 {
font-size: 1.75rem;
}
h4 {
font-size: 1rem;
}
body {
font-size: 1rem;
}
h1,
h2,
h3,
h4 {
line-height: 1;
}
}
/* global classes */

/* section */
.section {
width: 90vw;
margin: 0 auto;
max-width: var(--max-width);
}

@media screen and (min-width: 992px) {
.section {
width: 95vw;
}
}

main {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}

.container {
width: 90vw;
margin: 5rem 0;
max-width: var(--fixed-width);
background: var(--clr-white);
border-radius: var(--radius);
padding: 1.5rem 2rem;
box-shadow: var(--dark-shadow);
}
.container h3 {
font-weight: normal;
text-transform: none;
margin-bottom: 2rem;
}
.person {
display: grid;
grid-template-columns: auto 1fr;
column-gap: 0.75rem;
margin-bottom: 1.5rem;
align-items: center;
}
.person img {
width: 75px;
height: 75px;
object-fit: cover;
border-radius: 50%;
box-shadow: var(--light-shadow);
}
.person h4 {
margin-bottom: 0.35rem;
}
.person p {
margin-bottom: 0;
}
.container button {
color: var(--clr-white);
display: block;
width: 100%;
border-color: transparent;
background: var(--clr-pink);
margin: 2rem auto 0 auto;
text-transform: capitalize;
font-size: 1.2rem;
padding: 0.5rem 0;
letter-spacing: var(--spacing);
border-radius: var(--radius);
outline: 1px solid rgba(242, 138, 178, 0.8);
cursor: pointer;
}
@media screen and (min-width: 800px) {
h1 { font-size: 4rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1rem; }
body { font-size: 1rem; }
}
Loading