this is actually the first commit - theme made on the base CSS/HTML of the already existing (but handmade) mind-overflow.net website.

This commit is contained in:
Lorenzo Dellacà
2020-08-12 00:30:29 +02:00
parent 1b10a2e2a7
commit c64c2985ad
58 changed files with 2580 additions and 8288 deletions

View File

@@ -1,238 +1,450 @@
/*
@charset "utf-8";
/* CSS Document */
This is a development CSS file which is compiled to a minified
production stylesheet in assets/built/screen.css using: gulp dev
*/
/* Lib - Local component imports
/* ---------------------------------------------------------- */
/* Base components */
@import "vars.css";
@import "components/global.css";
@import "components/forms.css";
@import "components/buttons.css";
/* Ghost components */
@import "ghost/header.css";
@import "ghost/content.css";
@import "ghost/readmore.css";
@import "ghost/members.css";
@import "ghost/errors.css";
@import "ghost/footer.css";
@import "ghost/badge.css";
/* Main - Your styles here! Edit below
/* ---------------------------------------------------------- */
html,
.gh-viewport {
display: flex;
flex-direction: column;
min-height: 100vh;
background: #fff;
}
.gh-main {
flex: 1 0 auto;
display: flex;
flex-direction: column;
}
.gh-page {
padding: 0 4vmin;
}
.gh-article {
padding: 8vmin 0;
}
.gh-postfeed {
padding: 8vmin 0;
}
.gh-container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
}
.gh-head-actions a {
display: inline-flex;
align-items: center;
html, body {
font-family: 'Montserrat', sans-serif;
font-weight: 800;
margin: 0;
padding: 10px;
}
.gh-head-actions a svg {
height: 1.8rem;
fill: currentcolor;
}
.gh-head-actions a:first-child svg {
margin-left: 20px;
}
.gh-head-actions a:last-child svg {
height: 2rem;
}
/* Index
/* ---------------------------------------------------------- */
.gh-card:not(:first-child) {
margin: 8vmin auto 0;
}
.gh-card-link {
display: flex;
flex-direction: column;
}
.gh-card-image {
padding: 0;
height: 100%;
width: 100%;
max-height: 700px;
object-fit: cover;
margin-bottom: 4vmin;
}
.gh-card-meta {
display: block;
margin: 0 0 1rem;
font-size: 1.4rem;
line-height: 1.2em;
letter-spacing: 0.5px;
text-transform: uppercase;
opacity: 0.8;
}
.gh-card-content {
max-width: 720px;
margin: 0 auto;
text-align: center;
font-size: 1.6rem;
}
.gh-card-content p {
margin: 1.2rem 0;
padding: 0 6vmin;
}
.gh-card-content > strong {
display: inline-block;
padding: 1px 0;
font-weight: 500;
box-shadow: 0 -1px 0 0 inset currentColor;
opacity: 0.5;
}
/* Page
/* ---------------------------------------------------------- */
.gh-page-head {
margin: 0 auto;
padding: 8vmin 0 4vmin;
text-align: center;
}
.gh-page-image {
margin: 4vmin 0 0 0;
}
.gh-page-head > p {
max-width: 720px;
margin: 0.3em auto 0;
padding: 0 6vmin;
font-size: 1.3em;
line-height: 1.4em;
opacity: 0.5;
}
@media (max-width: 700px) {
.gh-page-head > p {
font-size: 1.6rem;
}
}
/* Post
/* ---------------------------------------------------------- */
.gh-header {
padding: 0 0 8vmin 0;
text-align: center;
}
.gh-post-meta {
display: block;
margin: 0 0 1rem;
font-size: 1.4rem;
letter-spacing: 0.5px;
text-transform: uppercase;
opacity: 0.8;
}
.gh-excerpt {
margin: 1rem 0 0 0;
}
.gh-feature-image {
grid-column: wide-start / wide-end;
h1 {
font-family: 'Montserrat', sans-serif;
font-weight: 800;
width: 100%;
margin: 8vmin 0 0;
color: white;
position: absolute;
}
.gh-post-footer {
margin: 2rem 0;
h2 {
font-family: 'Montserrat', sans-serif;
font-weight: 800;
color: white;
margin: 0;
padding: 38px 0 0;
font-size: 40px;
}
h3 {
font-family: 'Montserrat', sans-serif;
font-weight: 800;
color: white;
margin: 0;
padding: 30px 0 0;
font-size: 33px;
}
h4 {
font-family: 'Montserrat', sans-serif;
font-weight: 800;
color: white;
margin: 0;
padding: 20px;
font-size: 25px;
}
/* Author Archive
/* ---------------------------------------------------------- */
.gh-author-image {
height: 12vmin;
width: 12vmin;
margin: 0 auto 1.5em;
border-radius: 100%;
overflow: hidden;
object-fit: cover;
}
.gh-author-meta {
margin: 2vmin 0 0 0;
font-size: 1.2em;
}
.gh-author-links {
display: flex;
align-items: center;
justify-content: center;
}
.gh-author-links a {
a {
text-decoration: none;
color: paleturquoise;
position: relative;
display: inline-flex;
align-items: center;
margin: 0 0.75vmin;
}
.gh-author-links a + a:before {
display: block;
content: "";
margin: 0 1.25vmin 0 0;
height: 1em;
width: 1px;
background: rgba(0,0,0,0.3);
transform: rotate(20deg);
.nav {
padding: 0;
}
@media (max-width: 700px) {
.gh-author-meta {
font-size: 1.6rem;
}
.navbar {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
text-transform: uppercase;
text-decoration: none;
overflow: hidden;
-moz-user-select: none;
-webkis-user-select: none;
-ms-user-select: none;
user-select: none;
-o-user-select: none;
}
.navbar a {
color: white;
}
.navbar ul li {
color: white;
text-align: center;
text-decoration: none;
padding: 14px;
font-size: 30px;
font-family: 'Oswald', sans-serif;
font-weight: 300;
display: inline;
}
.navbar li.nav-services {
background: linear-gradient(to right, #33ffc5 20%, #fc33ff, #ff3370, #ff3333, #3dff33, #33ffc5);
background-size: 800px, 800px;
color: aquamarine;
text-fill-color: transparent;
animation: gradient 2s linear infinite;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Begin policy popup */
/* todo: this makes the page a little bit higher & larger, adding bars. fix it */
.mind-policy-popup {
display: none; /*Hidden, we want to show it via JavaScript */
/* Theming */
background: #151515;
color: white;
border-radius: 3px;
padding: 10px;
font-size: 25px;
box-sizing: border-box;
box-shadow: 10px 10px 10px 0 rgba(0, 0, 0, 0.2);
/* Disable text highlighting */
-moz-user-select: none;
-webkis-user-select: none;
-ms-user-select: none;
user-select: none;
-o-user-select: none;
/* Size */
width: 600px;
overflow: hidden;
/* Positioning */
position: fixed;
left: 50px;
bottom: 75px;
z-index: 2;
}
.mind-policy-popup p {
font-family: 'Montserrat', sans-serif;
font-weight: 200;
color: white;
font-size: 13px;
padding: 0 20px;
}
.mind-policy-popup button {
font-family: 'Montserrat', sans-serif;
font-weight: 800;
font-size: 13px;
transition-duration: 0.4s;
border-radius: 3px;
background-color: #484848;
border: none;
cursor: pointer;
color: white;
padding: 15px 30px;
text-align: center;
margin: 20px;
float: right;
}
.mind-policy-popup button:hover {
background-color: #44277a;
}
/* End policy popup */
.kg-width-wide {
}
.kg-width-full {
}
.kg-gallery-container {
}
.kg-gallery-image {
}
.kg-gallery-row {
}
.kg-bookmark-card {
}
.kg-bookmark-container {
}
.kg-bookmark-content {
}
.kg-bookmark-title {
}
.kg-bookmark-description {
}
.kg-bookmark-metadata {
}
.kg-bookmark-icon {
}
.kg-bookmark-author {
}
.kg-bookmark-publisher {
}
.kg-bookmark-thumbnail {
}
/* Begin media queries for elements size */
@media (min-width: 0px) and (max-width:200px) {
h4 {
font-size: 8px;
}
.mind-policy-popup {
/* centered */
left: 5px;
width: 100px;
bottom: 50px;
}
.mind-policy-popup h4 {
padding: 15px 15px;
}
.mind-policy-popup p {
font-size: 7px;
padding: 0 15px;
margin: 0;
}
.mind-policy-popup button {
font-size:7px;
margin: 10px;
padding: 5px 8px;
}
}
@media (min-width: 200px) and (max-width: 300px) {
h4 {
font-size: 10px;
}
.mind-policy-popup {
/* centered */
left: 50%;
margin-left: -100px; /* this has to be half the width */
width: 200px;
bottom: 50px;
}
.mind-policy-popup h4 {
padding: 15px 15px;
}
.mind-policy-popup p {
font-size: 8px;
padding: 0 15px;
margin: 0;
}
.mind-policy-popup button {
font-size: 8px;
margin: 10px;
padding: 10px 15px;
}
}
@media (min-width: 300px) and (max-width: 400px) {
h4 {
font-size: 13px;
}
.mind-policy-popup {
/* centered */
left: 50%;
margin-left: -140px; /* this has to be half the width */
width: 280px;
}
.mind-policy-popup h4 {
padding: 15px 15px;
}
.mind-policy-popup p {
font-size: 8px;
padding: 0 15px;
margin: 0;
}
.mind-policy-popup button {
font-size: 8px;
margin: 10px;
padding: 10px 15px;
}
}
@media (min-width: 400px) and (max-width: 500px) {
h4 {
font-size: 15px;
}
.mind-policy-popup {
/* centered */
left: 50%;
margin-left: -175px; /* this has to be half the width */
width: 350px;
}
.mind-policy-popup h4 {
padding: 15px 15px;
}
.mind-policy-popup p {
font-size:10px;
padding: 0 15px;
margin: 0;
}
.mind-policy-popup button {
font-size: 10px;
margin: 10px;
padding: 10px 15px;
}
}
@media (min-width: 500px) and (max-width: 600px) {
h4 {
font-size: 18px;
}
.mind-policy-popup {
width: 400px;
}
.mind-policy-popup h4 {
padding: 15px 15px;
}
.mind-policy-popup p {
font-size: 11px;
padding: 0 15px;
margin: 0;
}
.mind-policy-popup button {
font-size: 11px;
margin: 10px;
}
}
@media (min-width: 600px) and (max-width: 700px) {
h4 {
font-size: 21px;
}
.mind-policy-popup {
width: 500px;
}
.mind-policy-popup h4 {
padding: 15px 15px;
}
.mind-policy-popup p {
font-size: 11px;
padding: 0 15px;
margin: 0;
}
.mind-policy-popup button {
font-size: 11px;
margin: 10px;
}
}
@media (min-width: 700px) and (max-width: 1000px) {
h4 {
font-size: 23px;
}
.mind-policy-popup h4 {
padding: 15px 15px;
}
.mind-policy-popup p {
font-size: 13px;
padding: 0 15px;
margin: 0;
}
.mind-policy-popup button {
margin: 10px;
}
}
/* 4K MONITORS */
@media (min-width: 2100px) {
.mind-policy-popup p {
font-size: 15px;
}
.mind-policy-popup button {
font-size: 15px;
}
}
/* End media queries */
/* Begin fonts */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 100;
src: url(https://fonts.gstatic.com/s/oswald/v24/TK3_WkUHHAIjg75cFRf3bXL8LICs169vsUZiZQ.woff2) format('woff2');
}
@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 800;
src: url(https://fonts.gstatic.com/s/montserrat/v14/JTURjIg1_i6t8kCHKm45_c5H3gnD_g.woff2) format('woff2');
}
@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 200;
src: url(https://fonts.gstatic.com/s/montserrat/v14/JTURjIg1_i6t8kCHKm45_aZA3gnD_g.woff2) format('woff2');
}
/* End fonts */