/* RESET */ /*----------------------------------------------------------------------------------------------------*/ a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, caption, canvas, center, cite, code, dd, del, details, dfn, dialog, div, dl, dt, em, embed, fieldset, figcaption, figure, form, footer, header, hgroup, h1, h2, h3, h4, h5, h6, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav,object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, tt, table, tbody, textarea, tfoot, thead, time, tr, th, td, u, ul, var, video { font-family: inherit; font-size: 100%; font-weight: inherit; font-style: inherit; vertical-align: baseline; white-space: normal; text-align: left; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; } article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } ol, ul { list-style: none; } img { line-height: 0px; } blockquote, q { quotes: none; } :focus { outline: 0; } table { border-collapse: collapse; border-spacing: 0; } a { text-decoration: none; } button > * { pointer-events: none; } /*********************************** RESET END *************************************/ /*********************************** RESET END *************************************/ /*********************************** RESET END *************************************/ /*********************************** RESET END *************************************/ @white: #fff; @dark: #101010; @darkgray: #242424; @green: #83B011; //@green: rgb(253, 122, 0); @sand: #FFB400; .grad1(@deg: 45deg) { background: -moz-linear-gradient(@deg, @green 70%, @sand 100%); background: -webkit-linear-gradient(@deg, @green 70%, @sand 100%); background: linear-gradient(@deg, @green 70%, @sand 100%); } .grad2 { background: -moz-linear-gradient(top, @dark 0%, @darkgray 30%, @darkgray 70%, @dark 100%); background: -webkit-linear-gradient(top, @dark 0%,@darkgray 30%,@darkgray 70%,@dark 100%); background: linear-gradient(to bottom, @dark 0%,@darkgray 30%,@darkgray 70%,@dark 100%); background-size: cover; } @mobwidth: 400px; @tabwidth: 768px; @import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap'); .bold { font-weight: 700; } /* General styles */ body { font-family: "Montserrat", Arial, sans-serif; font-size: 16px; font-size: 1rem; -webkit-tap-highlight-color: rgba(0,0,0,0); .grad2; color: @white; } .touchonly { display: none; } html { scroll-behavior: smooth; } html.touch .touchonly { display: block; } .clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; } .clearfix { display: inline-block; } html[xmlns] .clearfix { display: block; } * html .clearfix { height: 1%; } h2 { font-size: 2.4rem; .bold; letter-spacing: -0.03em; } a { color: lighten(@darkgray, 20%); } .hidden { display: none; } /* general */ section.content { width: 100%; position: relative; top: 0; article { position: relative; height: 100vh; min-height: 920px; padding: 4rem; box-sizing: border-box; &#page1 { display: grid; align-items: end; justify-items: self-end; } &#page2 { display: grid; align-items: end; justify-items: right; height: initial; min-height: 100vh; } &#page3 { min-height: 100vh; padding: 0; height: initial; } &#page4 { padding: 0; } } } /* page 1 */ .logo { position: absolute; top: 46%; width: 30%; left: 12.5%; transform: translateY(-65%); min-width: 320px; z-index: 1000; svg * { //fill: @white; } } .fpc { clip-path: polygon(100% 0, 0 70%, 0 100%); -webkit-clip-path: polygon(100% 0, 0 70%, 0 100%); //background-image: url(../img/low-voltage-contractor_orig.jpg); /*background-image: url(../img/cables.jpg); background-size: cover; background-attachment: fixed;*/ background: @darkgray; position: absolute; top: 0; width: 100%; height: 200%; } .content_1 { .grad1; box-sizing: border-box; padding: 10%; display: flex; align-items: flex-end; justify-content: flex-end; clip-path: polygon(100% 0, 50% 100%, 100% 100%); -webkit-clip-path: polygon(100% 0, 50% 100%, 100% 100%); position: absolute; top: 0; width: 100%; height: 100%; .slogan { text-align: right; } &:before { content: " "; display: block; background-color: @white; height: 100%; width: 50%; left: 50%; top: 0; position: absolute; clip-path: polygon(10% 85%, 16% 85%, 1% 100%, 0 100%); -webkit-clip-path: polygon(10% 85%, 16% 85%, 1% 100%, 0 100%); } } ul.slideshow { position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: 200%; &:after { content: " "; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url(../img/pattern.png); background-attachment: fixed; opacity: .5; z-index: 1; } .slide { width: 100%; height: 100%; position: absolute; top: 0; left: 0; background-attachment: fixed; background-position: center; background-size: cover; filter: grayscale(.9); opacity: 0; animation: imageAnimation 24s linear infinite 0s; } .slide1 { background-image: url(../img/cables.jpg); } .slide2 { background-image: url(../img/low-voltage-contractor_orig.jpg); animation-delay: 6s; } .slide3 { background-image: url(../img/electriciteit-1.jpg); animation-delay: 12s; } .slide4 { animation-delay: 18s; background-image: url(../img/635457105226359678.jpg); } } @keyframes imageAnimation { 0% { opacity: 0; animation-timing-function: ease-in; } 8% { opacity: .5; animation-timing-function: ease-out; } 17% { opacity: .5 } 25% { opacity: 0 } 100% { opacity: 0 } } /* page 2 */ .servicetable { z-index: 1; h2 { text-align: center; } ul { .row { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 32px; margin-bottom: 1rem; &.row0{ padding-left: 45%; } &.row1{ padding-left: 35%; } &.row2{ padding-left: 20%; padding-right: 10%; } &.row3{ padding-left: 13.33%; padding-right: 26.66%; } &.row4{ padding-left: 0%; padding-right: 40%; } .serviceitem { padding: 1em; figure, figure * { text-align: center; } img { margin-bottom: 1em; } } } } } .bpc2 { background: @green; position: absolute; width: 100vw; height: 100%; clip-path: polygon(50% 0, 100% 0, 100% 100%, 0% 100%); -webkit-clip-path: polygon(50% 0, 100% 0, 100% 100%, 0% 100%); } .bpc3 { .grad1(225deg); clip-path: polygon(0 0, 0% 100%, 100% 0); -webkit-clip-path: polygon(0 0, 0% 100%, 100% 0); height: 100vh; width: 100%; position: relative; top: -1px; } .s2pc { background-image: url(../img/511990814.jpg); background-size: cover; background-attachment: fixed; background-position-x: right; top: 0; left: 0; width: 100%; display: grid; } .spc4 { clip-path: polygon(0 0, 0% 100%, 100% 0); -webkit-clip-path: polygon(0 0, 0% 100%, 100% 0); background: @darkgray; height: 100vh; width: 100%; position: absolute; top: -1px; display: grid; grid-template-columns: 1fr; align-items: baseline; padding: 10%; padding-top: 25%; box-sizing: border-box; &:before { content: " "; display: block; background-color: @white; height: 100%; width: 100%; left: 0%; top: 0; position: absolute; clip-path: polygon(54% 45%, 56% 45%, 36% 65%, 34% 65%); -webkit-clip-path: polygon(54% 45%, 56% 45%, 36% 65%, 34% 65%); } } .content_2 { background: @darkgray; clip-path: polygon(100% 0, 0% 100%, 100% 100%); -webkit-clip-path: polygon(100% 0, 0% 100%, 100% 100%); left: 0; min-height: 100vh; width: 100%; display: flex; align-items: flex-end; align-self: end; justify-content: flex-end; box-sizing: border-box; padding: 5%; position: relative; &:before { content: " "; display: block; background-color: @white; height: 100%; width: 100%; left: 0%; top: 0; position: absolute; clip-path: polygon(54% 45%, 56% 45%, 36% 65%, 34% 65%); -webkit-clip-path: polygon(54% 45%, 56% 45%, 36% 65%, 34% 65%); } .text { width: 50%; } h2 { margin-bottom: 1em; text-align: right; } p { text-align: right; line-height: 2em; margin-bottom: 1em; &.lead { margin-bottom: 0; font-size: 125%; .bold; } } } .content_2_mob { display: none; top: calc(100vh - 1px); padding: 5%; padding-top: 0; background: @darkgray; p { text-align: right; line-height: 2em; margin-bottom: 1em; &.lead { margin-bottom: 0; font-size: 125%; .bold; } } } .fpc2 { //clip-path: polygon(100% 0, 0 30%, 0 50%); clip-path: polygon(100% 0, 0% 100%, 100% 30%); -webkit-clip-path: polygon(100% 0, 0% 100%, 100% 30%); //background-image: url(../img/635457105226359678.jpg); background-image: url(../img/network-switch.png); background-size: cover; background-attachment: fixed; position: relative; width: 100vw; height: 100vh; top: -1px; z-index: -1; } header { position: fixed; top: 0; z-index: 1000; } nav { color: @white; display: flex; position: fixed; left: 12.5%; a { color: @white; } .mobilemenu { display: none; width: 40px; height: 40px; position: relative; color: @white; padding: 10px; background: @darkgray; cursor: pointer; box-sizing: border-box; .bar { width: 20px; height: 2px; background: @white; display: block; position: absolute; top: 50%; transform: translateY(-1px); &:before, &:after { content: ""; width: 20px; height: 2px; background: @white; display: block; position: relative; top: 6px; } &:before { top: -8px; } } } #mobile-toggle { display: none; &:checked + #menu { display: block; background: @darkgray; } } #menu { color: @white; display: flex; li { text-transform: uppercase; padding: 1em; .bold; } } } #pageindicator { position: fixed; z-index: 10000; right: 20px; top: 50%; transform: translateY(-50%); ul { display: grid; grid-template-columns: 1fr; width: 5px; li { display: block; background-color: lighten(@darkgray, 50%); border-radius: 5px; width: 5px; height: 20px; margin-bottom: 5px; &.active { background-color: white; } } } } .addressblock { justify-self: right; position: absolute; bottom: 0; right: 0; padding: 10%; * { text-align: right; } h2.normal { font-weight: 500; } figure { margin: 0px auto; position: relative; display: block; border-radius: 100px; overflow: hidden; width: 200px; height: 200px; margin-bottom: 1em; img { width: 100%; height: 100%; } } p { line-height: 2em; } .ficon { vertical-align: middle; } } @media only screen and (max-width: 1200px) { .servicetable { width: 70%; ul { .row { padding-left: 0% !important; padding-right: 0% !important; } } } } @media only screen and (max-width: 1024px) { .servicetable { width: 100%; } .content_1 { clip-path: polygon(100% 0%, 0% 100%, 100% 100%); -webkit-clip-path: polygon(100% 0%, 0% 100%, 100% 100%); .grad1; &:before { width: 100%; left: 0%; } } .fpc { clip-path: polygon(100% 0%, 0% 65%, 0% 100%); -webkit-clip-path: polygon(100% 0%, 0% 65%, 0% 100%); height: 100%; } .bpc2 { clip-path: initial; -webkit-clip-path: initial; z-index: 1; } } @media only screen and (max-width: @tabwidth) { nav { left: 0; #menu { display: none; } .mobilemenu { display: block; &:target { display: block; } } } .s2pc { height: 100%; } .bpc3 { height: 50vh; } .fpc2 { clip-path: polygon(100% 0, 0% 100%, 100% 30%); -webkit-clip-path: polygon(100% 0, 0% 100%, 100% 30%); } .content_2 { height: 50vh; min-height: 50vh; p { display: none; } } .content_2_mob { display: block; } } @media screen and (orientation: portrait) { .grad1 { background: -moz-linear-gradient(45deg, @green 50%, @sand 100%); background: -webkit-linear-gradient(45deg, @green 50%, @sand 100%); background: linear-gradient(45deg, @green 50%, @sand 100%); } .logo { top: 25%; } section.content #page2 { padding: 10% 5%; } .servicetable { ul { .row { padding-left: 0 !important; padding-right: 0 !important; } } h2 { text-align: center; } } } @media only screen and (max-width: 540px) { svg#Layer_1 * { fill: @white; } .logo { left: 50%; width: 75%; transform: translateX(-50%); top: 15%; } .content_2_mob { p.lead { font-size: 100%; } } .addressblock { text-align: center; width: 100%; box-sizing: border-box; p, h2 { text-align: center; } } } @media only screen and (max-width: 400px) { h2 { font-size: 1.5rem; } .logo { min-width: 240px; } .servicetable ul .row { grid-template-columns: 1fr; } }