This repository has been archived on 2022-08-01. You can view files and clone it, but cannot push or open issues or pull requests.
Oldphaloskepsis/style.css

1113 lines
19 KiB
CSS
Raw Normal View History

2017-01-12 23:10:07 +00:00
:root {
--light: #95b2bf;
--dark: #003D52;
--text: #2B0000;
}
.row::after {
content: "";
clear: both;
display: block;
}
* {
box-sizing: border-box;
}
/*
* 1. Animations
*/
@keyframes slideinandfade {
from { margin-left: -25px; opacity: 0; }
to { margin-left: 0px; opacity: 1; }
}
@keyframes slideinandfadebutton {
from { margin-left: -25px; opacity: 0; }
to { margin-left: 0px; opacity: 0.7; }
}
@keyframes fadeinanddarken {
from {
opacity: 0;
background: rgba(255,255,255,0);
} to {
opacity: 1;
background: rgba(255,255,255,0.5);
}
}
@keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeout {
from { opacity: 1; }
to { opacity: 0; }
}
/*
* 2. Main
*/
body {
background-color: #fff;
height: 100%;
font-family: 'Lato', sans-serif;
margin: 0;
}
.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;
}
.full-wrapper {
width: 100%;
overflow: hidden;
clear: both;
}
.half-wrapper {
width: 50%;
float: left;
min-height: 70%;
max-height: 70%;
}
#left-wrapper {
opacity: 0.75;
}
#right-wrapper {
overflow: scroll;
}
/*
* 3. Text
*/
/*
* 3.x General
*/
p, .entry-content ul li {
font-size: 1em;
color: #333;
padding: 0.5em;
line-height: 1.2em;
}
strong {
font-weight: bold;
}
:not(h2) code, samp, var {
font-family: "Lucida Console", Monaco, monospace;
font-size: 1em;
background-color: #d1d1d1;
border-radius: 5px;
padding: 2px 2px;
}
h2 code, h3 code {
background-color: transparent;
}
samp {
display: block;
width: 80ch;
margin: 1em 4em 1em 4em;
border-left: 2px solid #ccc;
color: #333;
}
/* Shamelessly stolen from StackOverflow's CSS */
kbd {
padding:0.1em 0.6em;
border:1px solid #ccc;
font-size:11px;
font-family:Arial,Helvetica,sans-serif;
background-color:#f7f7f7;
color:#333;
-moz-box-shadow:0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset;
-webkit-box-shadow:0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset;
box-shadow:0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset;
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
display:inline-block;
margin:0 0.1em;
text-shadow:0 1px 0 #fff;
line-height:1.4;
white-space:nowrap;
}
sup, sup { font-size:xx-small; line-height: 1.2em; }
sup { vertical-align:top; }
sub { vertical-align:bottom; }
/*
* 3.x Headings
*/
h1, h2, h3, h3 a, h4, h5 {
color: var(--dark);
font-family: 'Montserrat', sans-serif;
margin: 0;
}
h1 {
text-align: center;
font-size: 8em;
margin-left: 25px;
font-weight: bold;
text-shadow: -1px -1px 0 #fff,
1px -1px 0 #fff,
-1px 1px 0 #fff,
1px 1px 0 #fff;
animation: slideinandfade 1.2s both;
}
h2 {
font-size: 6em;
text-align: center;
animation: slideinandfade 1.2s both;
}
.row-item h2 {
font-variant: small-caps;
margin: 10px 0 10px 45px;
}
@media all and (max-width: 1060px) {
h1 {
font-size: 7.5em;
}
}
@media all and (max-width: 992px) {
h1 {
font-size: 7em;
}
}
@media all and (max-width: 980px) {
h1 {
font-size: 6em;
}
}
@media all and (max-width: 800px) {
h1 {
font-size: 5em;
}
h2 {
font-size: 5em;
}
}
@media all and (max-width: 700px) {
h1 {
font-size: 4em;
}
h2 {
font-size: 4em;
}
}
@media all and (max-width: 600px) {
h1 {
font-size: 4em;
}
}
@media all and (max-width: 540px) {
h1 {
font-size: 3em;
}
h2 {
font-size: 3em;
}
}
@media all and (max-width: 410px) {
h1 {
font-size: 2.5em;
}
}
h3 {
font-size: 2em;
margin: 0;
}
h3.small {
font-size: 1.4em;
}
h3.vsmall {
font-size: 1em;
}
h3 a {
color: var(--light);
font-size: 0.4em;
vertical-align: middle;
text-decoration: underline;
}
h3 a:hover {
color: var(--dark);
}
h4 {
padding: 0.5rem;
font-size: 2.6em;
clear: both;
text-align: center;
}
h5 {
color: #ddd;
font-size: 1.2em;
margin-left: 10px;
}
.post-title {
text-decoration: none;
padding: 0;
}
.post-title:hover {
color: #c1e5f4;
}
.post-header-image .post-header-title h2 {
background-color: #000;
vertical-align: middle;
color: #fff;
padding: 5px 0 16px 5px;
text-shadow: 0px 2px 5px rgba(0,0,0,0.5);
}
/*
* 3.x Links & Buttons
*/
a {
text-decoration: none;
font-weight: bold;
}
button {
cursor: pointer;
}
button.active {
background-color: #00ff00;
}
button.inactive {
background-color: #ff0000;
}
a.button, .post-edit-link {
background-color: #95b2bf;
color: #003D52;
padding: 3px 20px 3px 20px;
border-radius: 35px;
opacity: 0.7;
}
a.button:hover, .post-edit-link:hover {
opacity: 1;
}
.big-button,
.med-button {
float: left;
border-radius: 35px !important;
text-decoration: none;
opacity: 0.7;
}
.big-button {
padding: 20px 30px 20px 30px !important;
margin: 10px 20px 10px 0px;
}
.med-button {
padding: 12px 30px 12px 30px !important;
margin: 20px 20px 20px 0px;
font-weight: normal;
}
.big-button:hover,
.med-button:hover {
opacity: 1 !important;
}
.author a {
border-radius: 0 35px 35px 0;
background-color: #95b2bf;
padding: 3px 20px 3px 20px;
color: #003D52;
margin-left: -5px;
}
.entry-content a:not(.button) {
border-radius: 0;
color: #666;
padding: 0;
text-decoration: underline;
}
.entry-content a:hover {
color: #999;
}
.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;
}
/*
* 3.x Quotes
*/
blockquote {
margin: 1em 4em 1em 4em;
border-left: 2px solid #003D52;
color: #333;
}
.blog-post .entry-content blockquote:first-child {
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;
}
q, blockquote {
quotes: "“" "”" "" "";
}
blockquote footer:before {
content: '—';
}
q:before {
content: open-quote;
}
q:after {
content: close-quote;
}
q.guillemets, blockquote.guillemets {
quotes: "«" "»" "«" "»";
}
/*
* 3.x Citations
*/
cite, i, em {
font-style: italic;
}
cite.smallcite {
font-style: normal;
}
cite.smallcite:before {
content: '“';
}
cite.smallcite:after {
content: '”';
}
/*
* 3.x Other
*/
.note {
width: 80%;
background-color: #fc6f73;
padding: 20px;
text-align: center;
margin: auto;
border-radius: 20px;
border: 2px dashed #000;
}
.note a {
background-color: transparent !important;
color: #000 !important;
}
.note a:hover {
color: #555 !important;
}
/*
* 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;
}
figure {
margin-top: 10px;
margin-bottom: 10px;
width: auto !important;
}
figure img {
}
.blog-post .entry-content img {
height: auto;
max-width: 100%;
}
figcaption {
font-size: 0.8em;
color: #555;
font-style: italic;
}
.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;
}
/* phone and above */
[class*="col-"] {
float: left;
padding-right: 15px;
padding-left: 15px;
width: 100%;
}
/* tablet and above */
@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%;}
h1 { text-align: left; }
.blog-post .entry-content {
width: 80%;
max-width: 1124px;
}
}
/* laptop and above */
@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%;}
#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");
}
h5 { text-align: left; }
.blog-post .entry-content {
padding: 20px 40px;
background-color: #95b2bf;
border-bottom: 2px solid #003D52;
}
}
/* desktop and above */
@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%;}
.wrapper-home .row {
margin-bottom: 20px;
}
}