Skip to content

Commit

Permalink
feat: additional styling
Browse files Browse the repository at this point in the history
  • Loading branch information
dfritschy committed Jun 9, 2021
1 parent 826f6d3 commit 0cab0ed
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 7 deletions.
25 changes: 25 additions & 0 deletions src/css/_buttons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

.btn {
display: inline-block;
padding: 1rem 2rem;
border-radius: $border-radius;

&:hover {
text-decoration: none;
}
}

.btn-primary {
background-color: var(--brand-primary);
color: var(--white);
font-size: 1.5rem;

&:hover {
background-color: darken($brand-primary, 5%);
}

@media screen and (min-width: $lg-min) {
font-size: 2rem;
}

}
14 changes: 9 additions & 5 deletions src/css/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
body {
margin: 0;
padding: 0;
font-size: 1rem;
line-height: 1.25;
font-family: NotoSans-Regular, Helvetica, Arial, sans-serif;
color: var(--text-color);
background-color: var(--bg-color);
overflow-x: hidden;
hyphens: auto;
}
Expand Down Expand Up @@ -49,3 +44,12 @@ main {
margin: 0 auto;
}
}

.cta {
text-align: center;
margin: 4rem auto;
}

footer {
margin: 4rem 0;
}
28 changes: 27 additions & 1 deletion src/css/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,44 @@
@import "variables";

body {
font-size: 1rem;
line-height: 1.25;
font-family: NotoSans-Regular, Helvetica, Arial, sans-serif;
color: var(--text-color);
background-color: var(--bg-color);
}

h1 {
font-size: 1.5rem;
color: var(--brand-primary);
@media screen and (min-width: $lg-min) {
font-size: 2rem;
hyphens: none;
}
}

h2 {
font-size: 1.25rem;
color: var(--brand-secondary);
@media screen and (min-width: $lg-min) {
font-size: 1.5rem;
}
}

h3 {
font-size: 1rem;
color: var(--brand-secondary);
@media screen and (min-width: $lg-min) {
font-size: 1.25rem;
}
}

.lead {
@media screen and (min-width: $sm-min) {
font-size: 1.5rem;
}
@media screen and (min-width: $xl-min) {
font-size: 2rem;
font-size: 1.75rem;
hyphens: none;
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/css/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
}
}

$brand-primary: #D51130;

// styling
$border-radius: 5px;
$box-shadow: 10px;
Expand Down
3 changes: 2 additions & 1 deletion src/css/app.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@import "./variables";
@import "./fonts";
@import "./layout";
@import "./typography";
@import "./hero";
@import "./grid";
@import "./typography";
@import "./buttons";
@import "./utility";

0 comments on commit 0cab0ed

Please sign in to comment.