Make initial text more specific

Because that makes browsers override the regular page style in favor of this one.
This commit is contained in:
Dominik V. Salonen 2018-03-14 13:54:08 +00:00
parent 420b0e7700
commit 7104cff56a
1 changed files with 193 additions and 193 deletions

386
style.css
View File

@ -1,194 +1,194 @@
html, body { html, body {
margin: 0; margin: 0;
padding: 0; padding: 0;
overflow: hidden; overflow: hidden;
} }
h1, h2, h3, h4, h5, p { h1, h2, h3, h4, h5, p {
margin: 0; margin: 0;
} }
/* Main IDs forthe site */ /* Main IDs forthe site */
#site { #site {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
background-color: #2b2b2b; background-color: #2b2b2b;
min-width: 100vw; min-width: 100vw;
min-height: 100vh; min-height: 100vh;
max-width: 100vw; max-width: 100vw;
max-height: 100vh; max-height: 100vh;
overflow: hidden; overflow: hidden;
margin: 0; margin: 0;
color: #FFF; color: #FFF;
font-family: "Lato", sans-serif; font-family: "Lato", sans-serif;
} }
#content { #content {
display: block; display: block;
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;
width: 750px; width: 750px;
max-width: 90vw; max-width: 90vw;
margin-top: 25vh; margin-top: 25vh;
max-height: 50vh; max-height: 50vh;
} }
@media only screen and (max-device-width: 600px) { @media only screen and (max-device-width: 600px) {
#content { #content {
margin-top: 10vh; margin-top: 10vh;
max-height: 75vh; max-height: 75vh;
} }
} }
#main-container { #main-container {
background-color: #3b3b3b; background-color: #3b3b3b;
margin-top: 10px; margin-top: 10px;
padding: 5px; padding: 5px;
border-radius: 5px 5px 0px 0px; border-radius: 5px 5px 0px 0px;
width: 100%; width: 100%;
box-shadow: 3px 3px 7px rgba(0,0,0,0.25); box-shadow: 3px 3px 7px rgba(0,0,0,0.25);
} }
#navbar { #navbar {
width: 100%; width: 100%;
/* Whitespace hack */ /* Whitespace hack */
font-size: 0; font-size: 0;
text-align: center; text-align: center;
} }
#page { #page {
width: 100%; width: 100%;
padding: 15px 5px 8px 5px; padding: 15px 5px 8px 5px;
} }
/* Core site components */ /* Core site components */
.title { .title {
font-size: 32pt; font-size: 32pt;
font-weight: 300; font-weight: 300;
text-align: center; text-align: center;
} }
.sub-title { .sub-title {
font-size: 10pt; font-size: 10pt;
color: #AAA; color: #AAA;
text-align: center; text-align: center;
} }
.sub-title span { .sub-title span {
color: #555; color: #555;
} }
.nav-button { .nav-button {
display: inline-block; display: inline-block;
border-bottom: solid 3px #2b2b2b; border-bottom: solid 3px #2b2b2b;
background-color: #3b3b3b; background-color: #3b3b3b;
color: #AAA; color: #AAA;
transition: background 0.15s ease-in-out, border 0.5s ease-in-out, color 0.15s ease-in-out; transition: background 0.15s ease-in-out, border 0.5s ease-in-out, color 0.15s ease-in-out;
padding: 10px 5px; padding: 10px 5px;
box-sizing: border-box; box-sizing: border-box;
margin: 0; margin: 0;
text-align: center; text-align: center;
width: 33%; width: 33%;
/* Undo whitespace hack */ /* Undo whitespace hack */
font-size: 12pt; font-size: 12pt;
cursor: pointer; cursor: pointer;
} }
.nav-button:hover { .nav-button:hover {
background-color: #4b4b4b; background-color: #4b4b4b;
color: #FFF; color: #FFF;
transition: background 0.15s ease-in-out, color 0.15s ease-in-out; transition: background 0.15s ease-in-out, color 0.15s ease-in-out;
} }
.nav-button.active { .nav-button.active {
border-color: #FF5555; border-color: #FF5555;
color: #FFF; color: #FFF;
transition: background 0.15s ease-in-out, border 0.5s ease-in-out, color 0.15s ease-in-out; transition: background 0.15s ease-in-out, border 0.5s ease-in-out, color 0.15s ease-in-out;
} }
.initial-text { #page .initial-text {
font-size: 18pt; font-size: 18pt;
text-align: center; text-align: center;
margin-top: 70px; margin-top: 70px;
margin-bottom: 70px; margin-bottom: 70px;
} }
.loading { .loading {
font-size: 26pt; font-size: 26pt;
color: #FF5555; color: #FF5555;
display: block; display: block;
margin: 70px auto; margin: 70px auto;
animation-name: spin; animation-name: spin;
animation-duration: 2000ms; animation-duration: 2000ms;
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-timing-function: linear; animation-timing-function: linear;
} }
.notice { .notice {
color: #3b3b3b; color: #3b3b3b;
text-align: right; text-align: right;
} }
/* Thanks StackOverflow, heck if I can remember this stuff */ /* Thanks StackOverflow, heck if I can remember this stuff */
.noselect, .nav-button, .notice { .noselect, .nav-button, .notice {
-webkit-touch-callout: none; /* iOS Safari */ -webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */ -webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */ -khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */ -moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */ -ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently user-select: none; /* Non-prefixed version, currently
supported by Chrome and Opera */ supported by Chrome and Opera */
} }
/* Animations */ /* Animations */
@keyframes spin { @keyframes spin {
from { transform:rotate(0deg); } from { transform:rotate(0deg); }
to { transform:rotate(360deg); } to { transform:rotate(360deg); }
} }
/* Social media icons */ /* Social media icons */
.icon-container { .icon-container {
display: block; display: block;
text-align: center; text-align: center;
width: 100%; width: 100%;
font-size: 0; font-size: 0;
} }
.icon-container a { .icon-container a {
display: inline-block; display: inline-block;
padding: 10px; padding: 10px;
margin: 35px; margin: 35px;
box-sizing: border-box; box-sizing: border-box;
font-size: 12pt; font-size: 12pt;
color: #FFFFFF; color: #FFFFFF;
transition: color 0.25s ease-in-out; transition: color 0.25s ease-in-out;
text-decoration: none; text-decoration: none;
} }
.icon-container a svg { .icon-container a svg {
font-size: 42pt; font-size: 42pt;
} }
.icon-container a:hover { .icon-container a:hover {
color: #FF5555; color: #FF5555;
transition: color 0.25s ease-in-out; transition: color 0.25s ease-in-out;
} }
/* Page contents */ /* Page contents */
#page p { #page p {
margin-top: 5px; margin-top: 5px;
margin-bottom: 5px; margin-bottom: 5px;
} }
#page h1, #page h2, #page h3 { #page h1, #page h2, #page h3 {
margin-top: 15px; margin-top: 15px;
font-weight: 300; font-weight: 300;
text-align: center; text-align: center;
margin-bottom: 5px; margin-bottom: 5px;
} }
#page h1:first-child { #page h1:first-child {
margin-top: 0; margin-top: 0;
} }