completed transitioning from static HTML&CSS-only website to Ghost CMS.

next step is to readapt the style to be more "content-friendly".
This commit is contained in:
Bea 2020-08-12 15:03:22 +02:00
parent c64c2985ad
commit eb6304aab2
4 changed files with 99 additions and 104 deletions

View File

@ -6,7 +6,7 @@ html, body {
} }
.navbar { .navbar {
padding-top: 30px; padding-top: 20px;
} }
h1 { h1 {
@ -69,16 +69,6 @@ h1 {
padding-bottom: 20px; padding-bottom: 20px;
} }
ul {
list-style-type: none;
padding: 0;
margin: 0;
}
li {
padding: 16px;
}
/* COLORED TEXT SELECTION */ /* COLORED TEXT SELECTION */
::selection { ::selection {
color: #2d0670; color: #2d0670;
@ -112,7 +102,6 @@ li {
} }
.navbar a { .navbar a {
font-size: 10px; font-size: 10px;
padding: 4px;
} }
li { li {
padding: 5px; padding: 5px;
@ -137,7 +126,6 @@ li {
} }
.navbar a { .navbar a {
font-size: 11px; font-size: 11px;
padding: 8px;
} }
li { li {
padding: 6px; padding: 6px;
@ -162,7 +150,6 @@ li {
} }
.navbar a { .navbar a {
font-size: 16px; font-size: 16px;
padding: 8px;
} }
li { li {
padding: 8px; padding: 8px;
@ -187,7 +174,6 @@ li {
} }
.navbar a { .navbar a {
font-size: 21px; font-size: 21px;
padding: 8px;
} }
li { li {
padding: 10px; padding: 10px;
@ -209,7 +195,6 @@ li {
} }
.navbar a { .navbar a {
font-size: 26px; font-size: 26px;
padding: 8px;
} }
li { li {
padding: 13px; padding: 13px;

View File

@ -49,7 +49,6 @@ h4 {
a { a {
text-decoration: none; text-decoration: none;
color: paleturquoise; color: paleturquoise;
position: relative;
} }
.nav { .nav {
@ -64,6 +63,8 @@ a {
text-transform: uppercase; text-transform: uppercase;
text-decoration: none; text-decoration: none;
overflow: hidden; overflow: hidden;
/* Disable text selection */
-moz-user-select: none; -moz-user-select: none;
-webkis-user-select: none; -webkis-user-select: none;
-ms-user-select: none; -ms-user-select: none;
@ -71,20 +72,19 @@ a {
-o-user-select: none; -o-user-select: none;
} }
.navbar a { .navbar li {
color: white; display: inline-block;
} }
.navbar a {
.navbar ul li {
color: white; color: white;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
padding: 14px;
font-size: 30px; font-size: 30px;
font-family: 'Oswald', sans-serif; font-family: 'Oswald', sans-serif;
font-weight: 300; font-weight: 300;
display: inline; margin: 0;
padding: 10px;
} }
.navbar li.nav-services { .navbar li.nav-services {
@ -101,67 +101,68 @@ a {
/* todo: this makes the page a little bit higher & larger, adding bars. fix it */ /* todo: this makes the page a little bit higher & larger, adding bars. fix it */
.mind-policy-popup { .mind-policy-popup {
display: none; /*Hidden, we want to show it via JavaScript */ display: none; /*Hidden, we want to show it via JavaScript */
/* Theming */ /* Theming */
background: #151515; background: #151515;
color: white; color: white;
border-radius: 3px; border-radius: 3px;
padding: 10px; padding: 10px;
font-size: 25px; font-size: 25px;
box-sizing: border-box; box-sizing: border-box;
box-shadow: 10px 10px 10px 0 rgba(0, 0, 0, 0.2); box-shadow: 10px 10px 10px 0 rgba(0, 0, 0, 0.2);
/* Disable text highlighting */ /* Disable text highlighting */
-moz-user-select: none; user-select: none;
-webkis-user-select: none; -moz-user-select: none;
-ms-user-select: none; -webkis-user-select: none;
user-select: none; -ms-user-select: none;
-o-user-select: none; -o-user-select: none;
/* Size */ /* Size */
width: 600px; width: 600px;
overflow: hidden; overflow: hidden;
/* Positioning */ /* Positioning */
position: fixed; position: fixed;
left: 50px; left: 50px;
bottom: 75px; bottom: 75px;
z-index: 2; z-index: 2;
} }
.mind-policy-popup p { .mind-policy-popup p {
font-family: 'Montserrat', sans-serif; font-family: 'Montserrat', sans-serif;
font-weight: 200; font-weight: 200;
color: white; color: white;
font-size: 13px; font-size: 13px;
padding: 0 20px; padding: 0 20px;
} }
.mind-policy-popup button { .mind-policy-popup button {
font-family: 'Montserrat', sans-serif; font-family: 'Montserrat', sans-serif;
font-weight: 800; font-weight: 800;
font-size: 13px; font-size: 13px;
transition-duration: 0.4s; transition-duration: 0.4s;
border-radius: 3px; border-radius: 3px;
background-color: #484848; background-color: #484848;
border: none; border: none;
cursor: pointer; cursor: pointer;
color: white; color: white;
padding: 15px 30px; padding: 15px 30px;
text-align: center; text-align: center;
margin: 20px; margin: 20px;
float: right; float: right;
} }
.mind-policy-popup button:hover { .mind-policy-popup button:hover {
background-color: #44277a; background-color: #44277a;
} }
/* End policy popup */ /* End policy popup */
/* Begin Ghost mandatory CSS */
.kg-width-wide { .kg-width-wide {
} }
@ -221,35 +222,37 @@ a {
.kg-bookmark-thumbnail { .kg-bookmark-thumbnail {
} }
/* End Ghost mandatory CSS */
/* Begin media queries for elements size */ /* Begin media queries for elements size */
@media (min-width: 0px) and (max-width:200px) { @media (min-width: 0px) and (max-width:200px) {
h4 { h4 {
font-size: 8px; font-size: 8px;
} }
.mind-policy-popup { .mind-policy-popup {
/* centered */ /* centered */
left: 5px; left: 5px;
width: 100px; width: 100px;
bottom: 50px; bottom: 50px;
} }
.mind-policy-popup h4 { .mind-policy-popup h4 {
padding: 15px 15px; padding: 15px 15px;
} }
.mind-policy-popup p { .mind-policy-popup p {
font-size: 7px; font-size: 7px;
padding: 0 15px; padding: 0 15px;
margin: 0; margin: 0;
} }
.mind-policy-popup button { .mind-policy-popup button {
font-size:7px; font-size:7px;
margin: 10px; margin: 10px;
padding: 5px 8px; padding: 5px 8px;
} }
} }
@media (min-width: 200px) and (max-width: 300px) { @media (min-width: 200px) and (max-width: 300px) {
@ -258,13 +261,13 @@ a {
font-size: 10px; font-size: 10px;
} }
.mind-policy-popup { .mind-policy-popup {
/* centered */ /* centered */
left: 50%; left: 50%;
margin-left: -100px; /* this has to be half the width */ margin-left: -100px; /* this has to be half the width */
width: 200px; width: 200px;
bottom: 50px; bottom: 50px;
} }
.mind-policy-popup h4 { .mind-policy-popup h4 {
padding: 15px 15px; padding: 15px 15px;
@ -278,8 +281,8 @@ a {
.mind-policy-popup button { .mind-policy-popup button {
font-size: 8px; font-size: 8px;
margin: 10px; margin: 10px;
padding: 10px 15px; padding: 10px 15px;
} }
} }
@ -308,7 +311,7 @@ a {
.mind-policy-popup button { .mind-policy-popup button {
font-size: 8px; font-size: 8px;
margin: 10px; margin: 10px;
padding: 10px 15px; padding: 10px 15px;
} }
} }
@ -337,7 +340,7 @@ a {
.mind-policy-popup button { .mind-policy-popup button {
font-size: 10px; font-size: 10px;
margin: 10px; margin: 10px;
padding: 10px 15px; padding: 10px 15px;
} }
} }

View File

@ -6,6 +6,13 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="{{asset "css/screen.css"}}" /> <link rel="stylesheet" type="text/css" href="{{asset "css/screen.css"}}" />
<!-- Scripts Begin -->
<script src="{{asset "js/jquery-3.5.1.js"}}"></script>
<script src="{{asset "js/policy-popup.js"}}"></script>
<!-- Scripts End -->
{{#is "post, page"}} {{#is "post, page"}}
<link rel="stylesheet" type="text/css" href="{{asset "css/page-style.css"}}" /> <link rel="stylesheet" type="text/css" href="{{asset "css/page-style.css"}}" />
@ -22,11 +29,6 @@
<link rel="stylesheet" type="text/css" href="{{asset "css/home-style.css"}}" /> <link rel="stylesheet" type="text/css" href="{{asset "css/home-style.css"}}" />
{{/is}} {{/is}}
<!-- Scripts Begin -->
<script src="{{asset "js/jquery-3.5.1.js"}}"></script>
<script src="{{asset "js/policy-popup.js"}}"></script>
<!-- Scripts End -->
{{ghost_head}} {{ghost_head}}
{{!-- Outputs important meta data and settings, should always be in <head> --}} {{!-- Outputs important meta data and settings, should always be in <head> --}}

View File

@ -7,7 +7,12 @@
</div> </div>
</div> </div>
{{#post}}
<div class="mind-content">
{{content}}
</div>
{{/post}}
<!-- Vanta.JS Scripts to make the background cool, but disabled on mobile --> <!-- Vanta.JS Scripts to make the background cool, but disabled on mobile -->
<script> <script>
if(window.screen.width > 800) if(window.screen.width > 800)