/* Theme Name: Webment Slide Layout Premium Author: Chris Bird Author URI: http://webment.co.uk Version: 1.9.5 */ /* =Notes -------------------------------------------------------------- This stylesheet uses rem values with a pixel fallback. The rem values (and line heights) are calculated using two variables: $rembase: 14; $line-height: 24; ---------- Examples * Use a pixel value with a rem fallback for font-size, padding, margins, etc. padding: 5px 0; padding: 0.357142857rem 0; (5 / $rembase) * Set a font-size and then set a line-height based on the font-size font-size: 16px font-size: 1.142857143rem; (16 / $rembase) line-height: 1.5; ($line-height / 16) ---------- Vertical spacing Vertical spacing between most elements should use 24px or 48px to maintain vertical rhythm: .my-new-div { margin: 24px 0; margin: 1.714285714rem 0; ( 24 / $rembase ) } ---------- Further reading http://snook.ca/archives/html_and_css/font-size-with-rem http://blog.typekit.com/2011/11/09/type-study-sizing-the-legible-letter/ /* =Reset -------------------------------------------------------------- */ // less vars @import "css/vendorprefix.less"; /*@headerFont: 'Droid Sans', cursive; @headerFont2: 'Droid Sans', cursive; @mainFont: 'Droid Sans', cursive;*/ @headerFont: Sans-Serif; @headerFont2: Sans-Serif; @mainFont: Sans-Serif; @siteWidth: 100%; @menuHeight: 9.55%; a{ text-decoration: none; color:#fff; &.blog{ color:#000; font-weight: bold; } } .placeholderColor('#000'); img{ vertical-align: bottom; border:none; } .f-right{ float: right; } .f-left{ float: left; } .bold{ font-weight: bold; } .clear{ clear:both; } .emoji{ max-width:20px!important; } body{ height:auto!important; margin:0; overflow-x: hidden; &.borders{ margin: 1%!important; #page .slide-container{ margin-bottom: 1%!important; } } &.ios{ img{ background-attachment: scroll!important; } } } p{ letter-spacing: 0px; } html{ background: #fff; font-family: @mainFont; height: 100%; } .internetExplorer{ overflow: hidden!important; body{ overflow-y: auto!important; height: 100%!important; } } .header-social img { width: 3%; padding: 3.2% 0.2%; min-width: 32px; } #primary{ height: 100%; } //side menu #main-outer-container{ width: 100%; margin-left: 0%; .transition(0.2s); } #side-menu-container{ width: 100%; z-index: 1000; height: 100%; min-width: 0; visibility: hidden; opacity: 0; float: left; position: fixed; overflow: hidden; overflow-y: scroll; top:0; left:0; .transition(0.2s); text-align: center; #side-menu-inner{ position: relative; margin: 50px 0; } .logo-homelink{ width: 100%; display: inline-block; left: 0; top: 100px; .transition(0.3s); margin-top: -220px; img{ max-width: 94%; } } .menu{ .transition(0.4s); margin-top: 100%; } } .menu-vis{ #side-menu-container{ margin-left: 0; visibility: visible; opacity: 1; .logo-homelink{ margin-top: 0; } .menu{ margin: 4% 0 0; } } } .menu{ padding: 0; color:inherit; ul{ padding:0; } color:inherit; padding: 0; li{ color:inherit; padding-left: 0; text-transform: capitalize; font-family: @headerFont2; font-weight: bold; margin: 0; padding: 8px; list-style: none; font-size: 24px; text-align: center; a{ color:inherit; } } } #menu-holder{ position: fixed; top:0; left:0; background: transparent; width:@siteWidth; z-index: 1000; height: 100px; #menu-area{ float: right; height: 100%; img{ height: 86%; float: right; padding: 2%; } } } #menu-button{ width: 100px; height: 100px; position: relative; display: inline-block; text-align: center; background: #000; #lines-container{ #lines-inner{ .transition(0.2s); width:26px; height:26px; } position: absolute; top: 50%; left: 50%; width:26px; height:26px; -webkit-transform: translate(-50%,-50%); -ms-transform: translate(-50%,-50%); transform: translate(-50%,-50%); .lines-menu{ position: absolute; width:100%; height:2px; background: #fff; left:0; } #line-1{ top:0; } #line-2{ top:50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); } #line-3{ bottom:0; } } &.visible{ #lines-container{ #lines-inner{ transform: rotate(180deg); } #line-1{ } #line-2{ } #line-3{ } } } } h3{ font-size: 24px; letter-spacing: normal; } h2,h1{ font-family: @headerFont2; font-size: 45px; } .happyforms-form{ text-align: initial; max-width: 1024px; margin: 2% auto 0; } @borderColor: #2f2f2f; #page{ z-index: 20; height: 100%; overflow: visible; #header{ .text_only{ overflow: auto; } } .slide-container{ width:@siteWidth; z-index: 20; min-height:100%; position: relative; overflow: auto; img{ width:100%; } &.text_only{ padding: 4% 0; min-height:0; text-align: center; h3{ } p{ font-size: 18px; margin:0; padding: 15px 100px 32px; font-weight: normal; position: relative; .post-date{ font-size: 20px; margin: 1% 0; display: block; width: 100%; } } h2,h1{ font-family: @headerFont2; font-weight: lighter; font-size: 45px; margin: 20px 100px; margin-bottom: 16px; } img{ width: auto!important; height: auto!important; margin-right: 2%; max-width: 100%; } pre{ margin: 0; position: relative; padding-bottom: 50%; iframe{ position: absolute; width: 100%; height: 100%; outline: none; } } } &.grid_boxes{ overflow: visible; z-index: 25; .grid-box-container{ width: 100%; -webkit-transition: width 0.2s; -moz-transition: width 0.2s; transition: width 0.2s; margin: 0 auto; background: #000; .grid-box{ -webkit-transition: opacity 0.2s; -moz-transition: opacity 0.2s; transition: opacity 0.2s; position: relative; padding-bottom: 25%; &.hoverElement{ opacity: 0.6; } width: 25%; float: left; overflow: visible; z-index: 10; position: relative; &:hover{ z-index: 20; } .grid-box-inner{ max-width: 100%; max-height: 100%; min-height: 100%; top:0; left:0; bottom:0; overflow: hidden; position: absolute; .transition(0.3s); &.last{ left: auto; right: 0; } &:hover{ z-index: 20; max-width: 300%; max-height: 300%; overflow: visible; } img{ min-width: 800px!important; width: auto!important; min-height: 100%; } .image-text{ position: absolute; bottom: 0; width: 100%; height: 0%; padding: 0!important; text-align: center; margin:0; font-size: 40px!important; color: #fff; background: rgba(125,125,125,0.4); visibility: hidden; font-family: @headerFont2; -webkit-transition: height 0.5s ease-out 0.15s; -moz-transition: height 0.5s ease-out 0.15s; transition: height 0.5s ease-out 0.15s; } } .grid-box-inner:hover > .image-text{ visibility: visible; height: 54px; } } } } &.instagram_panel{ .instagram-container{ width:100%; img{ width: 12.5%; float: left; .transition(0.4s); } } } &.split_boxes,&.twitter_feed{ overflow: hidden; .layer-container{ position: relative; .layer-inner{ position: absolute; top: 50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); .image-container{ height: 100%; img{ } } .text-container{ h3{ font-size: 55px; margin:0; padding: 64px 100px; font-weight: normal; } p{ font-size: 18px; margin:0; padding: 15px 100px 32px; font-weight: normal; position: relative; .post-date{ font-size: 20px; margin: 1% 0; display: block; width: 100%; } } h2,h1{ font-family: @headerFont2; font-weight: lighter; font-size: 45px; margin: 20px 100px; margin-bottom: 16px; } } .aiwidgetscss{ padding: 5% 15% 5% 10%; .imgdisplay a img{ width: auto!important; } } } .left-container{ width: 50%; left:0; } .right-container{ width: 50%; right:0; } } } &.image_layers{ z-index: 0; .gallery-containers{ .gallery-images{ z-index: -1!important; } } } &.image_layers_gallery{ .layer-container{ will-change:background-image; } } &.image_layers,&.image_layers_gallery{ background-attachment: fixed; background-size: cover; background-position: center; background-repeat: no-repeat; .gallery-containers{ position: fixed; top:0; left:0; height:100%; width:100%; .gallery-images{ position: absolute; top:0; left:0; width: 100%; height: 100%; background-attachment: fixed; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 1; &.active{ z-index: 3; } } } .layer-container{ overflow: hidden; width: 100%; position: relative; background-attachment: fixed; background-size: cover; background-position: center; background-repeat: no-repeat; .text-container{ position: absolute; width: 80%; padding: 0 10%; top: 50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); text-align: center; .transition(0.05s); h2,h1{ font-size: 60px; color: #fff; } p{ padding:0!important; font-size: 20px; color: #fff; } img{ max-width: 760px; width: 100%; height:auto; } } } } &.embedded{ .embedded-container{ margin: 0; position: relative; padding-bottom: 25%; &.full-height{ padding-bottom: 50%; } iframe{ position: absolute; width: 100%; height: 100%; outline: none; } } } &.image_only{ min-height: 0; } &.image_links{ overflow: visible; .image-links-container{ .image-box{ width: 25%; padding-bottom: 25%; float: left; position: relative; -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; -o-transform-style: preserve-3d; transform-style: preserve-3d; .box-sizing(border-box); &.borders{ border: 1px solid #1D1D1D; } img{ width: 100%; position: absolute; .transition(0.3s); } .image-link-links{ position: absolute; bottom: 0; width: 100%; height: 100%; .transition(0.3s); a{ color: inherit; font-size: 30px; padding: 10px 5px; display: inline-block; font-weight: normal; .click-here{ font-size: 18px; color: #fff; opacity:0.5; letter-spacing: normal; } } .centerer{ position: absolute; width: 90%; text-align: center; padding:5%; top:50%; .transform(translateY(-50%)); } } &:hover{ z-index: 1; img{ .transform(scale(1.01)); } .image-link-links{ background: rgba(0,0,0,0)!important; } } } } } } } #footer{ width: 100%; min-height: 30px; text-align: center; font-size: 12px; line-height: 30px; letter-spacing: normal; .copyright{ padding: 0 10px; white-space: nowrap; font-weight: bold; } a{ img{ max-width: 100%; vertical-align: top; max-height: 30px; } } } //contact div.wpcf7-mail-sent-ok { border: 2px solid #FFF!important; } .contact-table{ width:100%; padding: 3%; tr{ vertical-align: top; td.table-content{ float:left; width:100%; text-align: left; input, textarea{ outline: none; width: 98%!important; padding: 1%; font-size: 22px; font-weight: bold; border: 0; font-family: @mainFont; &.submit-button{ width: 10%!important; margin: 0 auto; background: #fff; color: #000; } } img{ width: auto!important; } .field-name { width: 15%; } } } tr,table,tbody{width:100%;} } .wpcf7-not-valid-tip{ float: right; } .wpcf7-response-output{ border:0!important; margin:0!important; } .text-container{ #login { max-width: 320px; width: 100%; padding: 8% 0 0; margin: auto; h1 a { background-image: url(https://www.cornwallcreative.com/wp-content/themes/webment-panels/images/site-login-logo.png); padding-bottom: 0; width: 100%; height: 170px; background-size: contain; margin-bottom: 0; } form{ background: transparent; box-shadow: none; color: #fff; } form { margin-top: 20px; margin-left: 0; padding: 26px 24px 46px; text-align: left; } label { color: #fff; font-size: 14px; } #backtoblog a, .login #nav a { text-decoration: none; color: #fff; } .button-group.button-large .button, .wp-core-ui .button.button-large { width: 100%; margin-top: 7%; border-radius: 0; border: none; background: #000; } form .input, form input { background: #fbfbfb; border:0; outline:0; .box-sizing(border-box); } form input[type=password] { font-size: 24px; width: 100%; padding: 3px; margin: 2px 6px 16px 0; } form input[type=submit] { width: 100%; margin-top: 7%; border-radius: 0; border: none; background: #000; height: 30px; line-height: 28px; padding: 0 12px 2px; color:#fff; } } .pass-label { display: none; } } @media screen and (max-width:1816px) { #page .slide-container.grid_boxes .grid-box-container{ } p{ font-size: 17px!important; } } @media screen and (max-width:1500px) { h2,h1{ font-size: 40px; } p{ font-size: 16px!important; padding: 10px 80px 20px!important; } } @media screen and (max-width:1350px) { #page{ .slide-container{ &.instagram_panel{ .instagram-container{ img{ width: 25%; } } } } } } @media screen and (max-width:1023px) { h3{ font-size: 32px!important; padding: 32px 50px!important; } p{ font-size: 18px!important; padding: 20px 50px 32px!important; } #page{ #header{ min-height: 0; .slide-container{ min-height: 0; &.header_panel{ h3{ left:0!important; top:0!important; } } } } } .happyforms-form{ padding: 0 6%; text-align: center; } } @media screen and (max-width:900px) { #page .slide-container.grid_boxes .grid-box-container{ } #page{ .slide-container{ &.image_links{ .image-links-container{ .image-box{ width:50%; padding-bottom: 50%; } } } } } } @media screen and (max-width:816px) { #page{ .slide-container{ } } #page .slide-container.grid_boxes .grid-box-container .grid-box { padding-bottom: 50%; width: 50%; } } @media screen and (max-width:767px) { #page .slide-container{ &.image_layers,&.image_layers_gallery{ .layer-container.scale{ padding-bottom: 50%; background-attachment: scroll; position: relative; .text-container{ position: absolute; padding:10% 2%; width: 96%; } } } &.text_only,.split_boxes{ h2,h1 { margin: 20px 10px 10px; } } } #menu-button { width: 50px; height: 50px; #lines-container { width: 20px; height: 20px; #lines-inner{ width: 20px; height: 20px; } } } } @media screen and (max-width:700px) { h1{ font-size: 60px!important; } h2,h1{ font-size: 28px!important; } h3{ font-size: 20px!important; padding: 20px 40px!important; } p{ font-size: 14px!important; padding: 10px 40px 20px!important; } #page .slide-container{ &.split_boxes .layer-container,&.twitter_feed .layer-container{ padding: 20px 0; .layer-inner{ width: 100%!important; position: relative; top: 0; -webkit-transform: translateY(0); -ms-transform: translateY(0); transform: translateY(0); h3{ padding:0 40px!important } } } } } @media screen and (max-width:612px) { h1{ } #page{ } } @media screen and (max-width:500px) { .menu li { line-height: 18px; font-size: 20px; } #page{ #header{ .slide-container{ &.header_panel{ h3{ position: relative; top:0; left:0; } } } } } #page{ .slide-container{ &.image_links{ .image-links-container{ .image-box{ width:50%; padding-bottom: 50%; .image-link-links{ margin-bottom: 0!important; a{ font-size: 18px; .click-here{ font-size: 10px; } } } } } } } } } @media screen and (max-width:467px) { } @media screen and (max-width:408px) { #page{ .slide-container{ } } } /*@media only screen and (orientation: landscape) { .ios #main-outer-container{ #page .slide-container.image_layers .layer-container, #page .slide-container.image_layers_gallery .layer-container { -webkit-background-size: 100% auto!important; background-attachment: scroll!important; padding: 1% 0!important; } } } @media only screen and (orientation: portrait) { }*/ .ios #main-outer-container{ #page .slide-container.image_layers .layer-container, #page .slide-container.image_layers_gallery .layer-container { -webkit-background-size: auto 100%!important; background-attachment: scroll!important; padding: 1% 0!important; } }