Skip to content

Commit 17fb830

Browse files
committed
updated some typography and added more styles
1 parent c93230b commit 17fb830

File tree

6 files changed

+55
-21
lines changed

6 files changed

+55
-21
lines changed

addon/styles/addon.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
@import "components/es-card.css";
1111
@import "components/es-footer.css";
1212
@import "components/es-header.css";
13+
@import "components/es-list.css";
1314
@import "components/es-navbar.css";
1415
@import "components/es-page-header.css";
1516
@import "components/es-tabs.css";
17+

addon/styles/components/es-list.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.es-list {
2+
list-style: none;
3+
display: flex;
4+
flex-flow: row wrap;
5+
justify-content: space-around;
6+
}
7+
8+
/* TODO not sure how to write this in the style this project is now using */
9+
10+
/* .es-list-images {
11+
& img {
12+
max-width: 50%;
13+
& @media screen and (min-width: 992px) {
14+
max-width: 125px;
15+
height: auto;
16+
}
17+
}
18+
} */

addon/styles/global.css

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
--spacing-4: 4rem;
2424
--max-width: 80rem;
2525
}
26+
*, *:after {
27+
box-sizing: border-box;
28+
}
2629

2730
body, html {
2831
margin: 0;
@@ -32,10 +35,10 @@ body, html {
3235
line-height: 1.5;
3336
}
3437

35-
p {
36-
font-size: var(--text-preset-2);
37-
margin: 0 0 0.5rem 0;
38-
font-weight: 300;
38+
p {
39+
font-size: 1.25em;
40+
font-weight: 400;
41+
margin: 0.25em 0.5em;
3942
}
4043

4144
h1,
@@ -50,6 +53,7 @@ h6 {
5053

5154
h1, h2 {
5255
min-width: 100%;
56+
line-height: 1;
5357
}
5458

5559
@media (max-width: 1280px) and (min-width: 421px) {
@@ -60,12 +64,6 @@ h1, h2 {
6064
}
6165
}
6266

63-
@media (max-width: 520px) {
64-
body,
65-
html {
66-
67-
}
68-
}
6967

7068
/* move beyond this point */
7169

addon/styles/helpers.css

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,27 @@
22
width: 100%;
33
}
44

5-
.margin-bottom-small, .margin-bottom-2rem {
5+
.margin-bottom-small, .margin-bottom-narrow {
66
margin-bottom: 2rem;
77
}
88

9-
.margin-left-small {
9+
.margin-left-small, .margin-left-narrow {
1010
margin-left: 2rem;
1111
}
12+
13+
14+
/* if we name the modifiers the same as a word or google doc would use for page layout, it's more intuitive */
15+
/* TODO we can adjust these, I'm more putting these here because I need them in general */
16+
.padding-sides-normal {
17+
padding-left: 0.5em;
18+
padding-right: 0.5em;
19+
}
20+
.padding-sides-narrow {
21+
padding-left: 0.25em;
22+
padding-right: 0.25em;
23+
}
24+
.padding-sides-wide {
25+
padding-left: 1em;
26+
padding-right: 1em;
27+
}
28+

addon/styles/layout.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
.row {
88
display: flex;
9-
margin-left: -1rem;
10-
margin-right: -1rem;
11-
flex-wrap: wrap;
9+
flex-flow: row wrap;
1210
margin-bottom: 2rem;
1311
}
1412

@@ -40,7 +38,9 @@
4038
width: 30.3%;
4139
margin: 0 1rem;
4240
}
43-
41+
.one-third {
42+
width: 33.3333%;
43+
}
4444
@media (max-width: 576px) {
4545
.row {
4646
flex-direction: column;
@@ -56,6 +56,9 @@
5656
section {
5757
display: flex;
5858
flex-flow: row wrap;
59+
@media screen and (min-width: 992px) {
60+
padding-top: 4em;
61+
}
5962
& .full {
6063
min-width: 100%;
6164
}

addon/styles/typography.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,10 @@
5151
font-style: italic;
5252
}
5353

54-
.xsmall, small {
54+
.xsmall, small, .small {
5555
font-size: var(--text-preset-1);
5656
}
5757

58-
.small, p { /* TODO this isn't going to work for A11y */
59-
font-size: var(--text-preset-2);
60-
}
61-
6258
.medium, h3 {
6359
font-size: var(--text-preset-3);
6460
}

0 commit comments

Comments
 (0)