Skip to content

Commit abb938e

Browse files
MelSumnermansona
authored andcommitted
more style updates
1 parent 6b9035a commit abb938e

File tree

6 files changed

+63
-8
lines changed

6 files changed

+63
-8
lines changed

addon/styles/components/es-button.css

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,47 @@
11
.es-button {
22
background-color: var(--color-orange);
3+
border-radius: 4px;
34
color: var(--color-light);
4-
font-size: var(--text-preset-2);
5+
font-size: 24px; /* buttons have to have this size if they are on the orange background */
6+
padding-bottom: 0.5rem;
57
padding-left: 1.5rem;
68
padding-right: 1.5rem;
79
padding-top: 0.5rem;
8-
padding-bottom: 0.5rem;
9-
border-radius: 4px;
10+
text-decoration: none;
11+
}
12+
.es-button-secondary {
13+
font-size: 24px; /* should match the primary button, we can abstract a base button class later */
14+
background-color: transparent;
1015
}
16+
1117
.link-as-button {
18+
color: inherit;
19+
position: relative;
1220
text-decoration: none;
21+
z-index: 0;
22+
}
23+
.link-as-button:after {
24+
background-color: #E04E39;
25+
bottom: 8%;
26+
content: " ";
27+
display: inline-block;
28+
height: 24%;
29+
left: 0;
30+
position: absolute;
31+
top: auto;
32+
transform: scaleY(1);
33+
width: 100%;
34+
z-index: -1;
1335
}
1436

1537
.es-button-icon {
1638
background-color: transparent;
1739
border-color: transparent;
1840
}
41+
42+
.es-button + .es-button-secondary {
43+
@media screen and (min-width: 992px){
44+
margin-left: 20px;
45+
}
46+
47+
}

addon/styles/components/es-page-header.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.es-page-header {
2-
padding-top: 4.5rem;
2+
padding-top: 1.5rem;
33
padding-bottom: 4.5rem;
44
background-image: url('/images/pattern-1.svg');
55
background-repeat: no-repeat;

addon/styles/global.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ h6 {
5151
margin: 0 0 2rem 0;
5252
}
5353

54-
@media (max-width: 1280px) and (min-width: 421px) {
54+
h1, h2 {
55+
min-width: 100%;
56+
}
57+
58+
@media (max-width: 1280px) and (min-width: 421px) {
59+
/* TODO this media query is incorrect - CSS should be mobile-first */
5560
body,
5661
html {
5762

addon/styles/helpers.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,3 +321,7 @@
321321
.padding-right-xlarge {
322322
padding-right: var(--spacing-5);
323323
}
324+
325+
.margin-bottom-small, .margin-bottom-2rem {
326+
margin-bottom: 2rem;
327+
}

addon/styles/layout.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.container {
2-
padding: var(--spacing-4) 0;
2+
padding: var(--spacing-3) 0;
33
margin: 0 auto;
44
width: var(--max-width);
55
}
@@ -30,7 +30,12 @@
3030
width: 50%;
3131
margin: 0 2rem;
3232
}
33-
33+
.half {
34+
width: 50%;
35+
}
36+
.center-block {
37+
margin: 0 auto;
38+
}
3439
.col-one-third {
3540
width: 30.3%;
3641
margin: 0 2rem;
@@ -45,3 +50,10 @@
4550
}
4651
}
4752

53+
section {
54+
display: flex;
55+
flex-flow: row wrap;
56+
& .full {
57+
min-width: 100%;
58+
}
59+
}

addon/styles/typography.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
font-size: var(--text-preset-1);
5656
}
5757

58-
.small, p {
58+
.small, p { /* TODO this isn't going to work for A11y */
5959
font-size: var(--text-preset-2);
6060
}
6161

@@ -99,3 +99,8 @@
9999
.text-light {
100100
color: var(--color-light);
101101
}
102+
103+
.text-intro {
104+
font-size: 1.5em;
105+
margin-bottom: 6vh;
106+
}

0 commit comments

Comments
 (0)