Skip to content

Commit 7073fdb

Browse files
MelSumnermansona
authored andcommitted
added es-media element, TODOs and some grid css
1 parent 02b793a commit 7073fdb

File tree

6 files changed

+57
-5
lines changed

6 files changed

+57
-5
lines changed

addon/styles/addon.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
@import "components/es-footer.css";
1212
@import "components/es-header.css";
1313
@import "components/es-list.css";
14+
@import "components/es-media.css";
1415
@import "components/es-navbar.css";
1516
@import "components/es-page-header.css";
1617
@import "components/es-tabs.css";

addon/styles/components/es-button.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@
4545
}
4646

4747
}
48+
49+
/* TODO add hover state */
50+
/* TODO add focus state */

addon/styles/components/es-list.css

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,23 @@
1515
height: auto;
1616
}
1717
}
18-
} */
18+
} */
19+
20+
21+
22+
.es-list-hero-images {
23+
/* don't show it on mobile- it's not necessary for the site and it's not kind to the users' bandwidth */
24+
display: none;
25+
26+
@media screen and (min-width: 992px) {
27+
list-style: none;
28+
margin: 0;
29+
padding: 0;
30+
display: grid;
31+
grid-template-columns: 1fr 1fr 1fr;
32+
grid-template-rows: 1fr 1fr;
33+
grid-column-gap: 50px;
34+
grid-row-gap: 0px;
35+
max-height: 400px; /* whatever the max height of the images are */
36+
}
37+
}

addon/styles/components/es-media.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* this component has a paragraph of text on one side, and and image on the other, and alternates depending on position. */
2+
.es-media {
3+
/* TODO think about smaller viewports and put them here */
4+
@media screen and (min-width: 992px) {
5+
display: flex;
6+
flex-flow: row wrap;
7+
}
8+
}

addon/styles/global.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ body, html {
3737
}
3838

3939
p {
40-
font-size: 1em;
41-
font-weight: normal;
40+
font-size: 1.2rem;
41+
font-weight: 300;
4242
margin: 0.25em 0.5em;
4343
}
4444

@@ -107,5 +107,6 @@ h1, h2 {
107107
transform: skewY(-15deg);
108108
width: 30%;
109109
z-index:-1;
110-
border-top-left-radius: 7px;
111110
}
111+
112+
/* TODO this grid generator tool is really useful: https://cssgrid-generator.netlify.com/ */

addon/styles/helpers.css

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,22 @@
331331
}
332332

333333
.margin-bottom-wide {
334-
margin-bottom: 5vh;
334+
@media screen and (min-width:992px) {
335+
margin-bottom: 5vh;
336+
}
335337
}
338+
.margin-top-wide {
339+
@media screen and (min-width:992px) {
340+
margin-top: 5vh;
341+
}
342+
}
343+
.margin-top-bottom-wide {
344+
@media screen and (min-width:992px) {
345+
margin-top: 5vh;
346+
margin-bottom: 5vh;
347+
}
348+
}
349+
336350

337351
.margin-left-small, .margin-left-narrow {
338352
margin-left: 2rem;
@@ -354,3 +368,9 @@
354368
padding-left: 15%;
355369
padding-right: 15%;
356370
}
371+
372+
.padding-right-half {
373+
@media screen and (min-width: 992px) {
374+
padding-right: 50%;
375+
}
376+
}

0 commit comments

Comments
 (0)