/* * Widths */ @wrapper_width: 1360px; @medium_width: 800px; @mobile_width: 640px; /* * The Grid */ @gutter_width: 20px; @column_count: 24; /* * Typography */ @base_font_size: 16; /* * Border Radius */ @border_radius: 2px; /* * Colours */ @border_color: #dde3e8; @text_color: #323232; @primary_color: #449bf7; @secondary_color: #4ed2b5; /* * Dark background / Light text */ @dark_color: #323232; @light_text_color: @light_color; /* * Light background / Dark text */ @light_color: #edf0f2; @dark_text_color: @text_color; @med_color: #b7babc; /* * Alert Colours */ @alert_color: #e74c3c; @information_color: #f1c40f; @success_color: #2ecc71; /* * Misc Colours */ @highlight_color: @primary_color; @background_color: @light_color; @mtc_blue: #0f55c4; /* * Media Query Breakpoints */ @desktop: ~"all and (min-width: " (@wrapper_width + 20) ~ ")"; @tablet: ~"all and (min-width: " (@mobile_width + 1) ~ ") and (max-width: " (@wrapper_width + 19) ~ ")"; @medium: ~"all and (min-width: " (@medium_width + 1) ~ ") and (max-width: @{wrapper_width})"; @mobile: ~"all and (max-width: @{mobile_width})"; /* * HTML Tag */ html { font-size: @base_font_size + 0px; &:before { content: 'tablet: @{wrapper_width}, mobile: @{mobile_width}, flyout: @{flyout_breakpoint}, medium: @{medium_width}'; position: absolute; top: 0; visibility: hidden; } } /* * @import of dynamic variables */ @import '../dynamic.less'; /* * Site Styles */ .wrapper() { max-width: @wrapper_width; margin: 0 auto; .clearfix(); @media @tablet, @mobile { padding-left: 15px; padding-right: 15px; } } .wrapper { .wrapper(); } html { font-size: @base_font_size + 0px; } body { .ems(16); line-height: 1.462; font-family: @body_font; min-width: 320px; max-width: 100%; color: #56565C; font-weight: normal; font-family: @primary_font; line-height: 24px; } .siteOuterWrapper { position: relative; min-height: 100%; overflow-x: hidden; } /* ------------------------------ */ /* Typography */ /* ------------------------------ */ a { text-decoration: none; .transition(color .3s); } h1, h2, h3, h4, h5, h6 { margin: 0 0 20px 0; color: #0F3681;; font-family: @primary_font; font-weight: normal; line-height: 1.2; } h1 { font-size: 40px; font-weight: 800; margin: 0 0 20px; line-height: 46px; &:last-child { margin: 0; } } h2 { font-size: 32px; font-weight: 800; margin: 0 0 20px; line-height: 38px; letter-spacing: -1px; &:last-child { margin: 0; } } h3 { font-size: 28px; font-weight: 800; margin: 0 0 40px; line-height: 30px; &:last-child { margin: 0; } } h4 { font-size: 24px; font-weight: 800; line-height: 28px; margin: 0 0 40px; &:last-child { margin: 0; } } h5 { font-size: 18px; font-weight: 800; line-height: 23px; } h6 { font-size: 16px; font-weight: normal; margin: 0 0 20px; line-height: 18px; &:last-child { margin: 0; } } .headline { text-align: center; font-size: 36px; position: relative; padding-bottom: 30px; font-weight: 500; max-width: 700px; margin: 0 auto 40px; line-height: 1.5; @media @mobile { font-size: 30px; margin-bottom: 40px; padding-bottom: 20px; } } p { line-height: 24px; margin: 0 0 24px; &:last-child { margin-bottom: 0; } } /* * Site Logo */ .logo, .logoAlt { float: left; padding: 0; margin: 14px 0 18px; width: 220px; height: 78px; @media @flyout { width: 153px; height: auto; margin: 14px 0; } } .logoAlt { height: 65px; margin: 10px 0 10px -5px; } /* ------------------------------ */ /* Main Menu */ /* ------------------------------ */ .mainMenu { position:relative; top: 0; right:0; float:right; li { position: relative; float: left; font-family: @primary_font; @media @flyout { &.menu-item-has-children > a { position: relative; &:after { content: '\f107'; position: absolute; right: 20px; top: 20px; font-family: FontAwesome; font-size: 20px; } } &.menu-item-has-children.open > a:after { transform: rotate(180deg); } } @media @above_flyout { &.menu-item-has-children > a { position: relative; &:after { content: '\f107'; display: inline-block; font-family: FontAwesome; margin-left: 6px; } } } a { padding: 45px 17px 46px; color: #fff; font-size: 16px; display: block; font-weight: 600; text-transform: none; letter-spacing: 0; @media @flyout { padding: 20px; color: #0F3681; } } @media all and (min-width: 1000px) { &:hover { ul { display: block; } } } ul { position: absolute; top: 100%; left: 50%; min-width: 302px; width: 100%; transform: translateX(-50%); background: #fff; padding: 17px 20px; box-shadow: 0 10px 20px 0 rgba(0,0,0,0.15); @media @flyout { min-width: 0; position: relative; top: auto; left: 0; width: 100%; transform: none; opacity: 1; visibility: visible; background: transparent; border-top: 1px solid #b7becc; background: #ced7de; float: left; box-shadow: none; padding: 0; box-shadow: inset rgba(0,0,0,.1) 3px 0px 2px; } li { white-space:nowrap; width:100%; padding: 0; @media @mobile { padding: 0; } a { .rems(18); line-height: 18px; color: #0f3691; font-weight: 700; display: block; text-align: left; white-space: normal; @media @flyout { font-size: 16px; line-height: 19px; padding-left: 30px; text-align: left; font-weight: normal; color: #0F3681; } &:hover { color: #206FF9; background: #e2e6ed; @media @flyout { background: transparent; color: #0F3681; } } } @media all and (min-width: 900px) { margin: 0; a { padding: 17px 10px; } &:first-child { position:relative; &:after { content: ''; position: absolute; top: -41px; left: 50%; border: 12px solid transparent; border-bottom: 12px solid #fff; transform: translateX(-50%); z-index: -1; } a { border-top:0; } } &:last-child { &:before { background: 0; } } } } } } } /* ------------------------------ */ /* Header */ /* ------------------------------ */ #header { z-index: 5000; position:relative; width: 100%; background: #fff; .flyoutWrap { @media (max-width: 1350px) and (min-width: 801px) { text-align: center; width: ~"calc(100% + 30px)"; margin: 0 -15px; background: #164eb3; .mainMenu { width: 100%; text-align: center; li { float: none; display: inline-block; a { padding: 20px 10px; } } } } } .wrapper { position: relative; } .logo { position: relative; &:before { content: ''; position: absolute; left: 255px; top: -14px; bottom: -18px; width: 2000px; background: linear-gradient(90deg, #206FF9 0%, #164EB3 100%); z-index: -1; @media @flyout { left: 195px; top: -14px; bottom: -14px; } } &:after { content: ''; position: absolute; right: -56px; top: -14px; background-image: url(/wp-content/themes/changingarcticocean/images/curve.svg); width: 21px; height: 110px; @media @flyout { right: -59px; top: -16px; width: 17px; height: 84px; background-size: cover; } } } } .flyoutWrap { .button { float: right; .rems(16); line-height: 19px; padding: 12px 20px; margin: 34px 0 33px; text-transform: none; letter-spacing: 0; min-width: 107px; border-radius: 2px; background-color: #0F3681; margin-left: 40px; @media (max-width: 1350px) and (min-width: 801px) { position: absolute; right: 15px; top: 0; } @media @flyout { width: ~"calc(100% - 40px)"; margin: 19px 20px; border: 1px solid none; } &:hover { background-color: darken(#0F3681, 10%); } i { padding: 0; } } } /* * CSS3 Social icons */ .social { float: left; .clearfix(); li { list-style-type: none; float: left; text-align: center; a { padding: 0 10px; display: block; i { .ems(18); vertical-align: middle; } } } } /* * Content/Sidebar */ .sidebar { @media @desktop, @tablet { width: 30%; margin: 0 0 0 5%; float: right; } } .sidebar + .postContent { @media @desktop, @tablet { width: 65%; float: left; } } /* * Breadcrumb Styling */ .breadcrumbWrap { .clearfix(); clear: both; margin: 0 0 20px; .breadcrumbs { .clearfix(); margin: 0; clear: both; li { float: left; position: relative; padding: 0px 10px; @media @mobile { padding: 0 6px; &:first-child { display: none; } &:nth-child(2) { padding-left: 0; } } &:first-child { padding-left: 0; } } } } /* * Pagination */ .pagination, .paginationUl { .clearfix(); margin: 30px 0; text-align: center; span, a { border: 1px solid #ddd; padding: 8px 15px; } li { float: left; a { display: block; float: left; padding: 0 5px; text-align: center; cursor: pointer; outline: 0; &:hover { } } } } .paginumberorder form { float: right; margin-left: 10px; &.bottom { margin-bottom: 40px; .clearfix(); } } /* * Site Map Styling */ .siteMapWrap { .wrapper(); .clearfix(); clear: both; .siteMapColumn { width: 32%; margin-right: 2%; margin-bottom: 40px; float: left; ul { margin-bottom: 20px; } &:nth-child(3n) { margin-right: 0; } @media @mobile { width: 100%; margin: 0 0 20px; } } } /* * Contact Page Styling */ .contactWrap { .wrapper(); .clearfix(); clear: both; padding: 0 0 40px; } .contactForm { .chosen-container { .chosen-single { span { font-style:italic; } } } } /* * Content Section */ .contentSection { .clearfix(); clear: both; padding: 60px 0; @media @tablet { padding: 40px 20px; } @media @mobile { padding: 0 20px; } .innerImage { width: 63.55%; float: left; padding: 0 100px 0 0; @media @tablet { padding: 0 20px 20px; } @media @mobile { padding: 0 0 20px; } } .innerText { width: 36.34%; float: left; padding: 0 115px 0 0; @media @tablet { padding: 0 30px 0 30px; } @media @mobile { padding: 0; } .description { margin-bottom: 20px; @media @mobile { margin: 0; padding: 0 0 20px; } } h2 { font-size: 24px; } } &.imageRight { .innerImage { text-align: right; padding: 0 0 0 100px; @media @tablet, @mobile { padding: 0 20px 20px; } } .innerText { padding: 0 0 0 115px; @media @tablet { padding: 0 0 0 30px; } @media @mobile { padding: 0 20px; } } } @media @mobile { padding: 20px 0; .innerImage, .innerText { width: 100%; margin: 0; padding: 0 20px 20px; } .innerText { margin-bottom: 20px; .description { margin-bottom: 20px; } } } } .simpleCallToAction { .clearfix(); text-align: center; padding: 55px 0 65px; @media @mobile, @tablet { padding: 55px 20px 65px; } h2 { color: #676767; font-family: @primary_font; font-size: 24px; font-weight: normal; } } /* * Blog Posts */ .blogWrapper { .wrapper(); .clearfix(); clear: both; } .blogPost { .clearfix(); clear: both; margin: 0 auto 0; .blogTitle { font-size: 36px; margin-bottom: 30px; font-weight: 500; @media @mobile { line-height: 1.2; } } .blogArticle { margin-bottom: 60px; p { .ems(13); margin-bottom: 30px; @media @mobile { margin-bottom: 15px; } } } .buttonGroup { text-align: center; } .button { margin: 0 auto; } } .blogDate { color: @primary_color; margin: 0 0 15px 0; } /* * Latest Blog Posts */ .blogPostsWrap { .clearfix(); ul { .clearfix(); margin-bottom: 20px; li { .clearfix(); h2 { line-height: 1.5; margin: 20px 0 0; .ems(24); } .imageWrap { @media @desktop, @tablet { float: left; width: 30%; margin: 0 5% 30px 0; } } .innerText { @media @desktop, @tablet { float: left; width: 65%; } } @media @mobile { margin-bottom: 30px; } } } } /** * Contact Page */ .contactWrap { padding: 70px 0; .clearfix(); @media @tablet { padding: 40px 20px; } @media @mobile { padding: 20px 0; } .contactRight { float: left; width: 48%; margin-bottom: 20px; .innerText { max-width: 550px; } h2 { font-size: 24px; } @media @mobile { width: 100%; margin: 0 0 20px; padding: 0 20px; } } .contactLeft { float: left; width: 48%; margin-right: 4%; form { fieldset { margin-bottom: 20px; } label { font-size: 13px; font-weight: 600; } .halfRow { width: 49%; margin-right:2%; &.last { margin-right:0; } @media @mobile { width: 100%; margin: 0; } } input.text, select, textarea, .chosen-container-single .chosen-single { border: 1px solid #e3e3e3; background: 0; .transition(border .5s ease-in); &:hover, &:focus { border: 1px solid @primary_color; } } .chosen-single { color: #676767; span { font-style: italic; } div b { color: #676767; font-weight: normal; line-height: 30px; } } textarea { min-height: 160px; } } .button { clear: both; padding: 15px 50px; border: 2px solid transparent; &:hover, &:focus { border: 2px solid @primary_color; } } @media @mobile { width: 100%; margin: 0 0 20px; padding: 0 20px; } } } .footerContactDetails { float: right; margin: -4px 0 20px; span { margin-right: 5px; color: @primary_color; font-size: 40px; float: left; display: inline-block; margin-top: -5px; } a { color: #676767; font-family: @primary_font; font-size: 14px; font-weight: 500; display: inline-block; white-space: nowrap; &:hover { color: @primary_color; } @media @mobile { display: block; } } a.telLink { margin-left: 50px; @media @mobile { margin: 20px 0 0; } } @media all and (max-width:800px) { width: 100%; float: none; padding-right: 20px; a { float: none; } } } .contactDetails { padding-top: 20px; .clearfix(); margin: 0 0 20px; a { display: block; margin: 0; position: relative; padding: 5px 10px; font-family: @primary_font; line-height: 1; color: @primary_color; } } #map { width: 100%; height: 400px; background: #f1f1f1; border: 1px solid #ddd; } /** * Search form */ .searchForm { position: relative; input { width: 100%; border: none; line-height: 40px; padding: 0 15px; } button { width: 40px; height: 40px; text-align: center; line-height: 40px; background: @primary_color; color: #fff; position: absolute; right: 0; top: 0; border: none; } } /** * Search results */ .searchResultsWrap { .results { margin-bottom: 20px; li { padding: 20px 0; h2 { margin: 0; .ems(24); } } } } .noScroll { overflow: hidden; } #mce-responses .error, #mce-responses .success { margin-top: 20px; } div.mce_inline_error { .error; margin:0; } .frontpagenNewsletter .row .text.mce_inline_error { border: 1px solid #EED3D7; border-bottom: none; } .socialFeedWrap { position: relative; float: left; width: 100%; margin-bottom: 90px; .wrapper { position: relative; padding: 0 20px; } h3 { font-size: 32px; letter-spacing: -1px; line-height: 38px; text-align: center; margin-bottom: 32px; } .socialPostWrap { margin-right: -30px; } } li.twitterPost { position: relative; float: left; width: ~"calc(25% - 30px)"; margin-right: 30px; background-color: #E2E6ED; padding: 25px 30px 68px; @media (max-width: 1000px) and (min-width: 801px) { width: ~"calc(33.33% - 30px)"; } @media (max-width: 800px) { width: ~"calc(50% - 30px)"; } @media (max-width: 550px) { width: ~"calc(100% - 30px)"; margin-bottom: 0; } .socialHeaderWrap { margin-bottom: 20px; color: #0F3681; font-family: Muli; font-size: 18px; font-weight: 800; line-height: 23px; } .socialContentWrap { display: flex; align-items: center; justify-content: center } .imageWrap { float: left; width: 40%; border-radius: 50%; overflow: hidden; margin-right: 20px; img { width: 100%; } } .textWrap { float: left; width: ~"calc(60% - 20px)"; color: #56565C; font-size: 16px; line-height: 24px; p { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-height: 24px; max-height: 94px; word-break: break-word; } } h5 { margin: 0; color: #56565C; font-size: 16px; font-weight: 800; line-height: 20px; position: absolute; left: 30px; bottom: 28px; right: 30px; } .socialIcon { position: absolute; right: 30px; color: #C1C9D8; font-size: 28px; line-height: 28px; bottom: 24px; } } .socialIcons { position: absolute; right: 20px; top: 8px; @media (max-width: 750px) { position: relative; right: auto; top: auto; margin-top: 20px; float: left; width: 100%; text-align: center; margin: 20px auto 0; } .twitter { float: left; margin-right: 10px; font-size: 28px; line-height: 28px; top: -3px; position: relative; @media (max-width: 750px) { float: none; display: inline-block; top: 0; } a { color: #1DA1F2; } } .title { float: left; color: #0F3681; font-size: 18px; font-weight: 800; line-height: 23px; text-align: right; @media (max-width: 750px) { float: none; display: inline-block; } } } .projectPageWrap { .contentWrap.withSidebar { width: ~"calc(100% - 318px - 40px)"; @media (max-width: 800px) { width: 100%; } & +.contentSidebar { margin: 0 0 70px 40px; @media (max-width: 800px) { margin-left: 0; } } } .contentSidebar { margin-left: 40px; } }