|
$color1: hsl(98, 40%, 50%); |
|
$color2: hsl(350, 68%, 36%); |
|
$color3: hsl(200, 50%, 50%); |
|
$color4: hsl(240,40%,50%); |
|
$color5: hsl(142, 60%, 40%); |
|
$transp: hsla(0, 0%, 0%, 0); |
|
$slategray: hsl(210, 38%, 35%); |
|
|
|
*, |
|
*:before, |
|
*:after { |
|
box-sizing: border-box; |
|
margin: 0; |
|
padding: 0; |
|
} |
|
|
|
html, |
|
body { |
|
height: 100%; |
|
overflow: hidden; |
|
background: hsla(0,0%,0%,.5) |
|
} |
|
|
|
body { |
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; |
|
min-height: 100%; |
|
} |
|
|
|
.wf-active body { |
|
font-family: 'Oswald', sans-serif; |
|
} |
|
|
|
.content, |
|
.fronttext, |
|
.fronttext h1 { |
|
width: 100vw; |
|
height: 100vw; |
|
} |
|
|
|
.content { |
|
overflow: hidden; |
|
position: relative; |
|
z-index: 0; |
|
} |
|
|
|
.fronttext { |
|
position: absolute; |
|
top:0;right:0;bottom:0;left:0; |
|
text-align: center; |
|
|
|
h1 { |
|
color: black; |
|
margin: 0; |
|
font-size: 12vh; |
|
padding: 0 5vw; |
|
transition: color .3s; |
|
|
|
@media (orientation: portrait) { |
|
font-size: 13vw; |
|
} |
|
|
|
} |
|
} |
|
|
|
.wf-active h1 { |
|
font-weight: normal; |
|
} |
|
|
|
[id="fronttext"] { |
|
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 1 1'%3E%3Cpolygon fill='rgb(55,89,123)' points='0.2 0, 0.8 0, 1 1, 0 1'/%3E%3C/svg%3E"); |
|
background-repeat: no-repeat; |
|
background-position: top center; |
|
} |
|
|
|
.has-nav_item1-active [id="fronttext"] { |
|
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 1 1'%3E%3Cpolygon fill='rgb(114,179,77)' points='0 0, 0.6 0, 0.8 1, 0 1'/%3E%3C/svg%3E"); |
|
} |
|
|
|
.has-nav_item2-active [id="fronttext"] { |
|
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 1 1'%3E%3Cpolygon fill='rgb(154,29,50)' points='0 0, 0.8 0, 1 1, 0 1'/%3E%3C/svg%3E"); |
|
} |
|
|
|
.has-nav_item3-active [id="fronttext"] { |
|
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 1 1'%3E%3Cpolygon fill='rgb(64,149,191)' points='0.2 0, 0.8 0, 1 1, 0 1'/%3E%3C/svg%3E"); |
|
} |
|
|
|
.has-nav_item4-active [id="fronttext"] { |
|
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 1 1'%3E%3Cpolygon fill='rgb(77,77,179)' points='0.4 0, 1 0, 1 1, 0.2 1'/%3E%3C/svg%3E"); |
|
} |
|
|
|
.has-nav_item5-active [id="fronttext"] { |
|
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 1 1'%3E%3Cpolygon fill='rgb(41,163,86)' points='0.6 0, 1 0, 1 1, 0.4 1'/%3E%3C/svg%3E"); |
|
} |
|
|
|
.has-nav_item1-active [id="fronttext"] h1 { |
|
-webkit-clip-path: polygon(0 0, 60% 0, 80% 100%, 0 100%); |
|
clip-path: polygon(0 0, 60% 0, 80% 100%, 0 100%); |
|
clip-path: url("#clipPolygon1"); |
|
} |
|
|
|
.has-nav_item2-active [id="fronttext"] h1 { |
|
-webkit-clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%); |
|
clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%); |
|
clip-path: url("#clipPolygon2"); |
|
} |
|
|
|
[id="fronttext"] h1, |
|
.has-nav_item3-active [id="fronttext"] h1 { |
|
-webkit-clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); |
|
clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); |
|
clip-path: url("#clipPolygon3"); |
|
} |
|
|
|
.has-nav_item4-active [id="fronttext"] h1 { |
|
-webkit-clip-path: polygon(40% 0, 100% 0, 100% 100%, 20% 100%); |
|
clip-path: polygon(40% 0, 100% 0, 100% 100%, 20% 100%); |
|
clip-path: url("#clipPolygon4"); |
|
} |
|
|
|
.has-nav_item5-active [id="fronttext"] h1 { |
|
-webkit-clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%); |
|
clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%); |
|
clip-path: url("#clipPolygon5"); |
|
} |
|
|
|
[class*="-active"] [id="fronttext"] h1 { |
|
color: white; |
|
} |
|
|
|
.nav { |
|
overflow: hidden; |
|
position: relative; |
|
z-index: 1; |
|
} |
|
|
|
.nav_items { |
|
list-style: none; |
|
text-align: center; |
|
overflow: hidden; |
|
} |
|
|
|
.nav_item { |
|
float: left; |
|
width: 20%; |
|
height: 100vh; |
|
transition: all 0.3s; |
|
font-size: 3vw; |
|
|
|
& > a { |
|
display: block; |
|
width: 100%; |
|
position: relative; |
|
padding-top: 50vh; |
|
padding-bottom: 50vh; |
|
text-decoration: none; |
|
color: hsl(240,40%,60%); |
|
|
|
@media (orientation: portrait) { |
|
padding-top: 40vh; |
|
padding-bottom: 60vh; |
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.nav_item1 a:hover { |
|
color: darken($color1, 25%); |
|
} |
|
|
|
.nav_item2 a:hover { |
|
color: darken($color2, 15%); |
|
} |
|
|
|
.nav_item3 a:hover { |
|
color: darken($color3, 20%); |
|
} |
|
|
|
.nav_item4 a:hover { |
|
color: darken($color4, 20%); |
|
} |
|
|
|
.nav_item5 a:hover { |
|
color: darken($color5, 18%); |
|
} |
|
|
|
.container { |
|
position: relative; |
|
} |
|
|
|
.container:after { |
|
content: ""; |
|
position: absolute; |
|
top:0;right:0;left:0;bottom:-100vw; |
|
margin-top: 100%; |
|
z-index: 0; |
|
background-color: $slategray; |
|
} |
|
|
|
.has-nav_item1-active .container:after { |
|
background-color: $color1; |
|
} |
|
|
|
.has-nav_item2-active .container:after { |
|
background-color: $color2; |
|
} |
|
|
|
.has-nav_item3-active .container:after { |
|
background-color: $color3; |
|
} |
|
|
|
.has-nav_item4-active .container:after { |
|
background-color: $color4; |
|
} |
|
|
|
.has-nav_item5-active .container:after { |
|
background-color: $color5; |
|
} |
|
|
|
.visuallyhidden { |
|
border: 0; |
|
clip: rect(0 0 0 0); |
|
height: 1px; |
|
margin: -1px; |
|
overflow: hidden; |
|
padding: 0; |
|
position: absolute; |
|
width: 1px; |
|
} |