First spring clean, use nth for odd even and removed before
This commit is contained in:
parent
17315befd8
commit
38e1fc2ddd
|
@ -2,6 +2,12 @@
|
||||||
$body-bg: #2A2A2A;
|
$body-bg: #2A2A2A;
|
||||||
$alternate-bg: #ff5800;
|
$alternate-bg: #ff5800;
|
||||||
|
|
||||||
|
$color-mine-shaft: #2A2A2A;
|
||||||
|
$color-international-orange: #ff5800;
|
||||||
|
|
||||||
|
$background-primary: $color-mine-shaft;
|
||||||
|
$background-alternative: $color-international-orange;
|
||||||
|
|
||||||
/* Size */
|
/* Size */
|
||||||
$screen-xs: 600px !default;
|
$screen-xs: 600px !default;
|
||||||
$screen-xs-min: $screen-xs !default;
|
$screen-xs-min: $screen-xs !default;
|
||||||
|
|
|
@ -1,33 +1,37 @@
|
||||||
section {
|
section {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
width: 100%;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
position: relative;
|
|
||||||
background: $body-bg;
|
|
||||||
/*&:not(:first-child):before*/ &:before {
|
|
||||||
content: "";
|
|
||||||
width: 100%;
|
|
||||||
height: 30px;
|
|
||||||
position: absolute;
|
|
||||||
top: -30px;
|
|
||||||
right: 0;
|
|
||||||
background: linear-gradient(to left bottom, $alternate-bg 0%,$alternate-bg 49%,$body-bg 50%,$body-bg 100%);
|
|
||||||
background: linear-gradient(to left bottom, transparent 0%,transparent 49%,$body-bg 50%,$body-bg 100%);
|
|
||||||
}
|
|
||||||
&.even {
|
|
||||||
background: $alternate-bg;
|
|
||||||
&:before {
|
|
||||||
background: linear-gradient(to left bottom, $body-bg 0%,$body-bg 49%,$alternate-bg 50%,$alternate-bg 100%);
|
|
||||||
background: linear-gradient(to left bottom, transparent 0%,transparent 49%,$alternate-bg 50%,$alternate-bg 100%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
background-color: $background-primary;
|
||||||
|
background-image: linear-gradient(
|
||||||
|
to left bottom,
|
||||||
|
$background-primary 50%,
|
||||||
|
$background-alternative 50%
|
||||||
|
);
|
||||||
|
background-size: 100% 60px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: bottom;
|
||||||
|
|
||||||
|
&:nth-of-type(even) {
|
||||||
|
background-color: $background-alternative;
|
||||||
|
background-image: linear-gradient(
|
||||||
|
to left bottom,
|
||||||
|
$background-alternative 50%,
|
||||||
|
$background-primary 50%
|
||||||
|
);
|
||||||
|
}
|
||||||
|
&:last-of-type {
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
section {
|
||||||
.paragraphs {
|
.paragraphs {
|
||||||
column-count: 2;
|
column-count: 2;
|
||||||
margin: 1rem 1rem 200px;
|
|
||||||
h3, p {
|
h3, p {
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
font-family: 'Roboto', sans-serif;
|
font-family: 'Roboto', sans-serif;
|
||||||
|
|
Loading…
Reference in a new issue