Skip to content

Commit 9894fad

Browse files
MelSumnermansona
authored andcommitted
updated some typography and added more styles
1 parent abb938e commit 9894fad

File tree

6 files changed

+59
-12
lines changed

6 files changed

+59
-12
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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@
2424
--spacing-4: 16rem;
2525
--spacing-5: 24rem;
2626
}
27+
*, *:after {
28+
box-sizing: border-box;
29+
}
2730

2831
body, html {
2932
margin: 0;
3033
padding: 0;
3134
font-family: "Source Sans Pro", sans-serif;
32-
font-size: 18px;
35+
font-size: 18px;
3336
line-height: 1.5;
3437
}
3538

@@ -53,9 +56,10 @@ h6 {
5356

5457
h1, h2 {
5558
min-width: 100%;
59+
line-height: 1;
5660
}
5761

58-
@media (max-width: 1280px) and (min-width: 421px) {
62+
@media (max-width: 1280px) and (min-width: 421px) {
5963
/* TODO this media query is incorrect - CSS should be mobile-first */
6064
body,
6165
html {

addon/styles/helpers.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,3 +325,27 @@
325325
.margin-bottom-small, .margin-bottom-2rem {
326326
margin-bottom: 2rem;
327327
}
328+
329+
.margin-bottom-small, .margin-bottom-narrow {
330+
margin-bottom: 2rem;
331+
}
332+
333+
.margin-left-small, .margin-left-narrow {
334+
margin-left: 2rem;
335+
}
336+
337+
338+
/* if we name the modifiers the same as a word or google doc would use for page layout, it's more intuitive */
339+
/* TODO we can adjust these, I'm more putting these here because I need them in general */
340+
.padding-sides-normal {
341+
padding-left: 0.5em;
342+
padding-right: 0.5em;
343+
}
344+
.padding-sides-narrow {
345+
padding-left: 0.25em;
346+
padding-right: 0.25em;
347+
}
348+
.padding-sides-wide {
349+
padding-left: 1em;
350+
padding-right: 1em;
351+
}

addon/styles/layout.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66

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

1513
.row >.col {
@@ -40,7 +38,9 @@
4038
width: 30.3%;
4139
margin: 0 2rem;
4240
}
43-
41+
.one-third {
42+
width: 33.3333%;
43+
}
4444
@media (max-width: 576px) {
4545
.row {
4646
flex-direction: column;
@@ -53,6 +53,9 @@
5353
section {
5454
display: flex;
5555
flex-flow: row wrap;
56+
@media screen and (min-width: 992px) {
57+
padding-top: 4em;
58+
}
5659
& .full {
5760
min-width: 100%;
5861
}

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)