/** * The main stylesheet * * This is the main stylesheet for the entire Theme. * * @package WordPress * @subpackage Omphaloskepsis * @since Omphaloskepsis 1.0 * * Contents * ======== * * 1. Constants * 2. Globals * 2.1 Containers * 2.2.1 Fluid Grid * 2.2.2 Main Containers * 2.2 Text * 2.2.1 Headings * 2.2.2 Regular Text * 2.2.3 Special Text * 2.2.4 Links * 2.3 Images * [...] * */ /******************************************************************************* * 1. Constants */ :root { --light: #95b2bf; --dark: #003d52; --text: #2b0000; --linktext: #666666; } /******************************************************************************* * 2. Globals */ /*************************************** * 2.1 Containers */ /****************** * 2.1.1 Fluid Grid * * <767px ≈ Mobile Phone * 768px ≈ Tablet * 1024px ≈ Laptop * 1444px ≈ Desktop */ * { box-sizing: border-box; } .row::after { content: ""; clear: both; display: block; } /* Source: W3Schools */ [class*="col-"] { float: left; padding-right: 15px; padding-left: 15px; width: 100%; } @media only screen and (min-width: 768px) { .col-m-1 {width: 8.33%;} .col-m-2 {width: 16.66%;} .col-m-3 {width: 25%;} .col-m-4 {width: 33.33%;} .col-m-5 {width: 41.66%;} .col-m-6 {width: 50%;} .col-m-7 {width: 58.33%;} .col-m-8 {width: 66.66%;} .col-m-9 {width: 75%;} .col-m-10 {width: 83.33%;} .col-m-11 {width: 91.66%;} .col-m-12 {width: 100%;} } @media only screen and (min-width: 1024px) { .col-1 {width: 8.33%;} .col-2 {width: 16.66%;} .col-3 {width: 25%;} .col-4 {width: 33.33%;} .col-5 {width: 41.66%;} .col-6 {width: 50%;} .col-7 {width: 58.33%;} .col-8 {width: 66.66%;} .col-9 {width: 75%;} .col-10 {width: 83.33%;} .col-11 {width: 91.66%;} .col-12 {width: 100%;} } @media only screen and (min-width: 1444px) { .col-w-1 {width: 8.33%;} .col-w-2 {width: 16.66%;} .col-w-3 {width: 25%;} .col-w-4 {width: 33.33%;} .col-w-5 {width: 41.66%;} .col-w-6 {width: 50%;} .col-w-7 {width: 58.33%;} .col-w-8 {width: 66.66%;} .col-w-9 {width: 75%;} .col-w-10 {width: 83.33%;} .col-w-11 {width: 91.66%;} .col-w-12 {width: 100%;} } /* End Source */ /****************** * 2.1.2 Main Containers */ body { font-family: 'Lato', sans-serif; background-color: white; height: 100%; margin: 0; } figure { margin-top: 10px; margin-bottom: 10px; width: auto !important; } figcaption { font-size: 0.8em; color: #555; font-style: italic; } /*************************************** * 2.2 Text */ /****************** * 2.2.1 Headings */ h1, h2, h3, h3 a, h4, h5 { margin: 0; font-family: 'Montserrat', sans-serif; color: var(--dark); } #website-title { margin-left: 25px; text-align: center; font-size: 8em; font-weight: bold; text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white; } #page-title { text-align: center; font-size: 6em; } #page-subtitle { margin-left: 10px; text-align: center; font-size: 1.2em; color: var(--light); } #post-title { font-size: 6em; text-align: center; background-color: #000; vertical-align: middle; color: white; padding: 5px 0 16px 5px; text-shadow: 0px 2px 5px rgba(0,0,0,0.5); } .post-title, .subheading { font-size: 2em; margin: 0; text-decoration: none !important; } .post-title.small { font-size: 1.4em; } .post-title.vsmall { font-size: 1em; } .subheading-subtitle { color: var(--light); } /****************** * 2.2.2 Regular Text */ p { font-size: 1em; color: var(--text); padding: 0.5em; line-height: 1.2em; } strong { font-weight: bold; } sup, sup { font-size:xx-small; line-height: 1.2em; } sup { vertical-align:top; } sub { vertical-align:bottom; } /****************** * 2.2.3 Special Text */ code, samp, var { font-family: "Lucida Console", Monaco, monospace; font-size: 1em; background-color: #d1d1d1; border-radius: 5px; padding: 2px 2px; } .heading code, .subheading code { background-color: transparent; } samp { display: block; width: 80ch; margin: 1em 4em 1em 4em; border-left: 2px solid #ccc; color: #333; } /* Source: Stack Overflow */ kbd { padding: 0.1em 0.6em; border: 1px solid #ccc; font-size: 11px; font-family: Arial, Helvetica, sans-serif; background-color: #f7f7f7; color: #333; box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px white inset; border-radius: 3px; display: inline-block; margin: 0 0.1em; text-shadow: 0 1px 0 white; line-height: 1.4; white-space: nowrap; } /* End Source */ blockquote { margin: 1em 4em 1em 4em; border-left: 2px solid var(--dark); } blockquote:first-of-type { margin: 2em 4em 2em 4em; font-size: 1.2em; font-style: italic; border-left: 0; } blockquote footer { text-align: right; margin-right: 10%; font-style: normal; } blockquote footer:before { content: '—'; } q, blockquote { quotes: "“" "”" "‘" "’"; } q.guillemets { quotes: "«" "»" "«" "»"; } q:before { content: open-quote; } q:after { content: close-quote; } cite:not(.smallcite), i, em { font-style: italic; } cite.smallcite:before { content: '“'; } cite.smallcite:after { content: '”'; } .note { width: 80%; background-color: #fc6f73; padding: 20px; text-align: center; margin: auto; border-radius: 20px; border: 2px dashed #000; } /****************** * 2.2.4 Links */ a { font-weight: bold; color: var(--dark); padding: 0; opacity: 0.7; } a:hover { opacity: 1; } .subheading a { color: var(--light); font-size: 0.4em; vertical-align: middle; text-decoration: underline; } .hyperlink-button, .post-edit-link { float: left; margin: 10px 20px 10px 0px; padding: 20px 30px 20px 30px; border-radius: 35px; border: 2px solid var(--dark); background-color: var(--light); color: var(--dark); text-decoration: none; } /* * UNFINISHED */ .author a { border-radius: 0 35px 35px 0; background-color: #95b2bf; padding: 3px 20px 3px 20px; color: #003D52; margin-left: -5px; } .edit-link { float: right; line-height: 3.6em; margin-right: 30px; } .posted-on a { color: #666; padding: 3px 20px 3px 20px; font-size: 0.8em; } .posted-on a:before, .posted-on a:after { content: ' — '; } .posted-on a:hover { color: #999; } .index article { border-bottom: 2px solid var(--dark); overflow: hidden; background-color: var(--light); height: 250px; background-size: cover; background-repeat: no-repeat; background-position: center; position: relative; display: flex; flex-direction: column; margin-top: 7.5px; margin-bottom: 7.5px; } .index article header { background-color: var(--light); opacity: 0.75; margin-top: auto; text-align: center; padding: 15px; max-height: 40%; } .index:hover article { filter: sepia(1); } .index:hover article:hover { opacity: 1; filter: none; } /* * 4. Images */ #frontpage-img-wrapper { border-radius: 50%; margin: auto; overflow: hidden; height: 150px; width: 150px; border: 2px solid #003D52; } #frontpage-img { max-width: 150%; height: 150%; } .post-thumbnail { float: left; overflow: hidden; width: 100%; height: 15em; cursor: pointer; background-color: #fff; background-size: cover; background-repeat: no-repeat; background-position: center; } .post-thumbnail .post-thumbnail-label { position: relative; text-align: center; opacity: 0; font-size: 2em; color: #003D52; height: 100%; line-height: 240px; } .post-thumbnail:hover .post-thumbnail-label { animation: both fadeinanddarken 0.3s; } .single-img .title { position: relative; top: 50%; left: 30%; } .entry-content img:not(.latex) { border: 2px solid #444; } .latex { vertical-align: middle; } .author img { padding: 5px; border-radius: 50%; vertical-align: middle; background-color: #95b2bf; } .post-header-image { height:100vh; background-size: cover; background-repeat: no-repeat; background-position: center; position: relative; text-align:center; } .aligncenter { text-align: center; margin: 1em auto 1em auto; display: block; } .blog-post .entry-content img { height: auto; max-width: 100%; } .sampler { width: 100%; height: 60vh; } /* * 5. Article List View */ article.entry-header { margin-bottom: -100px; } .post-details { position: relative; overflow: hidden; width: auto; margin-top: 10px; margin-bottom: 10px; text-align: justify; padding: 20px; } .post-details header, .post-details footer, .post-details .entry-content { width: 100%; overflow: hidden; line-height: 2.3em; } .post-details footer { height: 4.5em; position: absolute; bottom: 0; left: 0; padding: 0 0 0 10px; } .author { opacity: 0.7; } .author:hover { opacity: 1; } .post-header-image .post-header-title { position: absolute; top: 25vh; left: 0; width: 100%; opacity: 0.6; } .read-on { position: relative; display: inline-block; top: 80vh; background-color: #95b2bf; opacity: 0.7; border-radius: 50%; } .read-on:hover { opacity: 1; } .arrow-down { height: 100%; color: #c1e5f4; font-weight: bold; font-size: 4em; margin: auto; padding: 10px 15px; } .entry-content { padding: 20px 0px; display: block; margin: auto; } .blog-post .entry-content { border-bottom: 2px solid #003D52; } .blog-post .entry-content p { text-align: justify; } .blog-post .entry-content ul { padding: 0 2em 0 2em; } .blog-post .entry-content ul li { line-height: 1.2em; } .blog-post .entry-content ul:not(.no-bullet) li:before { content: '◆'; color: #003D52; font-size: 0.6em; vertical-align: middle; padding-bottom: 0.5em; padding-right: 1em; } .sharedaddy, .jp-relatedposts { text-align: center !important; } /* * Home */ .wrapper-home li { list-style: none; } i { color: var(--text); } .row-item { display: block; overflow: hidden; margin: 10px 0 10px 0; text-align: left; width: 20%; float: left; } .wrapper-home .row { text-align: center; } .wrapper-home .button { width: 100%; } .row ul { list-style: none; margin: 0; } .icons-wrapper { margin-top: 10px; margin-bottom: 10px; overflow: hidden; } .button-1 { animation: slideinandfadebutton 1.6s both; animation-delay: 0.5s; } .button-2 { animation: slideinandfadebutton 1.6s both; animation-delay: 1s; } .button-3 { animation: slideinandfadebutton 1.6s both; animation-delay: 1.5s; } .button-4 { animation: slideinandfadebutton 1.6s both; animation-delay: 2s; } .button-5 { animation: slideinandfadebutton 1.6s both; animation-delay: 2.5s; } .button-6 { animation: slideinandfadebutton 1.6s both; animation-delay: 3s; } .icon { height: 50px; width: 50px; border-radius: 10px; background-size: cover; background-repeat: no-repeat; background-position: center center; cursor: pointer; margin: 5px 10px 5px 10px; float: left; animation: slideinandfadebutton 1.6s both; } .icon:hover { -moz-box-shadow: inset 0 0 10px #000000; -webkit-box-shadow: inset 0 0 10px #000000; box-shadow: inset 0 0 10px #000000; } .seperator { float: left; color: #aaa; border: 1px solid #95b2bf; border-radius: 10px; margin-right: 10px; } .back-button { padding: 10px 25px 10px 25px; background-color: #b00; border-radius: 0 0 20px 0; text-align: left; color: #ddd; font-weight: bold; text-decoration: none; float: left; } .back-button:hover { -moz-box-shadow: inset 0 0 10px #000000; -webkit-box-shadow: inset 0 0 10px #000000; box-shadow: inset 0 0 10px #000000; } #list { display: block; overflow: hidden; margin-left: 40px; margin-right: 40px; } #list li { list-style: none; } .block { height: 200px; width: 18%; border-radius: 20px; margin: 10px; background-color: #fff; border: 3px solid #000; float: left; text-align: right; background-size: contain; background-repeat: no-repeat; background-position: center center; cursor: pointer; visibility: hidden; opacity: 0; } @media all and (max-width: 1400px) { .block { width: 17%; } } @media all and (max-width: 1000px) { .block { width: 20%; } } @media all and (max-width: 750px) { .block { width: 25%; } } @media all and (max-width: 500px) { .block { width: 40%; } } @media all and (max-width: 360px) { .block { width: 90%; } } .block:hover { -moz-box-shadow: inset 0 0 10px #000000; -webkit-box-shadow: inset 0 0 10px #000000; box-shadow: inset 0 0 10px #000000; } .half-wrapper .block { width: 30%; height: 140px; } .small-block { visibility: visible; opacity: 1; } .block-text { margin: auto; background-color: rgba(20, 20, 20, 0.8); visibility: hidden; border-radius: 17px; height: 100%; position: relative; top: -26px; } .block:hover .block-text { visibility: visible; transition: all 10s; } .name { text-align: center; font-size: 26px; font-weight: bold; color: #95b2bf; padding-top: 25%; } .childblock { position: relative; z-index: 2; float: left; margin-top:0px; margin-bottom:0px; } .children { display: block; width: 35px; height: 35px; text-align: center; font-size: 1.8em; font-weight: bold; color: #ff0000; float: right; position: relative; background-color: #aaa; border-radius: 0 17px 0 5px; z-index: 1; } #wrapper { height: 100%; margin: 0; width: 100%; animation: slideinandfadein 1.6s 1s both; } .wrapper-list { margin-left: -30px; } .wrapper-home { height: 100vh; } @media all and (max-width: 378px) { .wrapper-home { background-size: cover; } } .wrapper-footer { min-height: 85%; /* equal to footer height */ margin-bottom: -142px; animation: slideinandfade 1.6s both; } .wrapper-footer:after { content: ""; display: block; } footer, .wrapper-footer:after { height: 15%; } .wrapper-footer li { list-style: none; } #timeline { display: block; margin: auto; min-height: 200px; } .wip:after { content: '(WIP)'; padding-left: 4px; } /Show static HTML/CSS as a placeholder in case js is not enabled - javascript include will override this if things work --> .gr_custom_container_1472037445 { /* customize your Goodreads widget container here*/ border: 1px solid gray; border-radius:10px; padding: 10px 5px 10px 5px; background-color: transparent; color: ##003D52; width: 300px } .gr_custom_header_1472037445 { /* customize your Goodreads header here*/ border-bottom: 1px solid gray; width: 100%; margin-bottom: 5px; text-align: center; font-size: 120% } .gr_custom_each_container_1472037445 { /* customize each individual book container here */ width: 100%; clear: both; margin-bottom: 10px; overflow: auto; padding-bottom: 4px; border-bottom: 1px solid #aaa; } .gr_custom_book_container_1472037445 { /* customize your book covers here */ overflow: hidden; height: 60px; float: left; margin-right: 4px; width: 39px; } .gr_custom_author_1472037445 { /* customize your author names here */ font-size: 10px; } .gr_custom_tags_1472037445 { /* customize your tags here */ font-size: 10px; color: gray; } .gr_custom_rating_1472037445 { /* customize your rating stars here */ float: right; } .loading { margin: auto; display: block; margin-top: 84px; height: auto; } #companies-grid-small { height: 0; } #companies-grid:hover li, #companies-grid-small:hover li { filter: sepia(1); } #companies-grid:hover li:hover, #companies-grid-small:hover li:hover { opacity: 1; filter: none; } #companies-grid li, #companies-grid-small li { overflow: hidden; background-color: #95b2bf; background-size: contain; background-repeat: no-repeat; background-position: center; background-origin: content-box; background-clip:content-box; padding-top: 7.5px; padding-bottom: 7.5px; } #companies-grid li { min-height: 250px; } #companies-grid-small li { min-height: 140px; } /******************************************************************************* * x. Media Queries * * <767px ≈ Mobile Phone * 768px ≈ Tablet * 1024px ≈ Laptop * 1444px ≈ Desktop */ @media only screen and (min-width: 768px) { h1 { text-align: left; } .blog-post .entry-content { width: 80%; max-width: 1124px; } } @media only screen and (min-width: 1024px) { h5 { text-align: left; } #frontpage-img-wrapper { display: none; } .wrapper-home { background-size: contain; background-repeat: no-repeat; background-position: right top; background-image: url("http://www.bengoldsworthy.uk/wp-content/uploads/2016/09/mebg.png"); } .blog-post .entry-content { padding: 20px 40px; background-color: #95b2bf; border-bottom: 2px solid #003D52; } } @media only screen and (min-width: 1444px) { .wrapper-home .row { margin-bottom: 20px; } }