Skip to content

Commit 5adca24

Browse files
MelSumnermansona
authored andcommitted
added section background shape
1 parent 9894fad commit 5adca24

File tree

3 files changed

+37
-7
lines changed

3 files changed

+37
-7
lines changed

addon/styles/global.css

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@ body, html {
3636
line-height: 1.5;
3737
}
3838

39-
4039
p {
41-
font-size: var(--text-preset-2);
42-
line-height: 1.6;
43-
margin: 0 0 1rem 0;
44-
font-weight: 300;
40+
font-size: 1em;
41+
font-weight: normal;
42+
margin: 0.25em 0.5em;
4543
}
4644

4745
h1,
@@ -89,3 +87,24 @@ h1, h2 {
8987
padding-bottom: 8rem;
9088
border: 1px solid #CCC;
9189
}
90+
91+
/* the weird shit for the backgrounds */
92+
.section-bg-wrapper {
93+
position: relative;
94+
height: 750px;
95+
width: 100%;
96+
margin-bottom: -650px;
97+
}
98+
.section-bg {
99+
position: absolute;
100+
top: 0;
101+
bottom: 0;
102+
right: 0;
103+
width: 30%;
104+
height: 100%;
105+
background-image: linear-gradient(#e04e39, #e04e39);
106+
transform: skewY(-15deg);
107+
transform-origin: bottom right;
108+
z-index:-1;
109+
border-top-left-radius: 7px;
110+
}

addon/styles/helpers.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,10 @@
330330
margin-bottom: 2rem;
331331
}
332332

333+
.margin-bottom-wide {
334+
margin-bottom: 5vh;
335+
}
336+
333337
.margin-left-small, .margin-left-narrow {
334338
margin-left: 2rem;
335339
}
@@ -346,6 +350,7 @@
346350
padding-right: 0.25em;
347351
}
348352
.padding-sides-wide {
349-
padding-left: 1em;
350-
padding-right: 1em;
353+
/* TODO ADD MEDIA QUERIES */
354+
padding-left: 15%;
355+
padding-right: 15%;
351356
}

addon/styles/layout.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
.one-third {
4242
width: 33.3333%;
4343
}
44+
.two-thirds {
45+
width: 66.6666%;
46+
}
47+
.three-fourths {
48+
width: 75%;
49+
}
4450
@media (max-width: 576px) {
4551
.row {
4652
flex-direction: column;

0 commit comments

Comments
 (0)