mirror of
https://github.com/informaticker/elia-li-website.git
synced 2024-11-22 01:31:58 +01:00
refactor styling
This commit is contained in:
parent
7777264ed3
commit
e77c5c2c42
246
assets/style.css
246
assets/style.css
@ -1,124 +1,140 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'workbench';
|
font-family: 'workbench';
|
||||||
src: url('../assets/font.woff2') format('woff2');
|
src: url('../assets/font.woff2') format('woff2');
|
||||||
}
|
}
|
||||||
body {
|
|
||||||
user-select: none;
|
body, html {
|
||||||
-webkit-user-select: none;
|
margin: 0;
|
||||||
-moz-user-select: none;
|
padding: 0;
|
||||||
-ms-user-select: none;
|
width: 100%;
|
||||||
}
|
height: 100%;
|
||||||
body, html {
|
font-family: 'workbench', sans-serif;
|
||||||
margin: 0;
|
overflow: hidden;
|
||||||
padding: 0;
|
user-select: none;
|
||||||
width: 100%;
|
-webkit-user-select: none;
|
||||||
height: 100%;
|
-moz-user-select: none;
|
||||||
font-family: 'workbench', sans-serif;
|
-ms-user-select: none;
|
||||||
overflow: hidden;
|
}
|
||||||
}
|
|
||||||
#background-video {
|
#background-video {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
width: auto;
|
min-width: 100%;
|
||||||
height: auto;
|
min-height: 101%;
|
||||||
min-width: 100%;
|
width: auto;
|
||||||
min-height: 101%;
|
height: auto;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
object-position: center;
|
object-position: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
background: none;
|
||||||
|
padding: 1rem;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
color: #db7bdb;
|
||||||
|
text-shadow: 0 0 10px #db7bdb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links {
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links li {
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links a {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
color: #db7bdb;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: color 0.2s ease;
|
||||||
|
text-shadow: 0 0 3px #db7bdb;
|
||||||
|
pointer-events: initial;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links a:hover {
|
||||||
|
color: #d6afd6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.response {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 2rem;
|
||||||
|
color: #783F8E;
|
||||||
|
text-shadow: 0 0 10px #783F8E;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
width: 100%;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.response b {
|
||||||
|
text-shadow:
|
||||||
|
2px 2px 30px #9847b8,
|
||||||
|
-2px -2px 30px #9847b8;
|
||||||
|
color: #7f5191;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0.5%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
font-size: 1rem;
|
||||||
|
color: rgba(128, 128, 128, 0.5);
|
||||||
|
pointer-events: none;
|
||||||
|
white-space: nowrap;
|
||||||
|
display: none;
|
||||||
|
animation: fadeIn 1.5s;
|
||||||
|
bottom: 1%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeIn {
|
||||||
|
from { opacity: 0; }
|
||||||
|
to { opacity: 1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
.navbar {
|
.navbar {
|
||||||
background: none;
|
flex-direction: column;
|
||||||
padding: 1rem;
|
justify-content: center;
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
.logo {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
color: #db7bdb;
|
|
||||||
text-shadow: 0 0 10px #db7bdb;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-links {
|
.nav-links {
|
||||||
list-style: none;
|
margin-top: 1rem;
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
justify-content: center;
|
||||||
}
|
padding: 0;
|
||||||
.nav-links li {
|
|
||||||
margin-right: 20px;
|
|
||||||
}
|
|
||||||
.nav-links a {
|
|
||||||
font-size: 1.2rem;
|
|
||||||
color: #db7bdb;
|
|
||||||
text-decoration: none;
|
|
||||||
transition: color 0.2s ease;
|
|
||||||
text-shadow: 0 0 3px #db7bdb;
|
|
||||||
pointer-events: initial;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
}
|
|
||||||
.nav-links a:hover {
|
|
||||||
color: #d6afd6;
|
|
||||||
}
|
|
||||||
.response {
|
|
||||||
text-align: center;
|
|
||||||
font-size: 2.0rem;
|
|
||||||
color: #783F8E;
|
|
||||||
text-shadow: 0 0 10px #783F8E;
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
pointer-events: none;
|
|
||||||
}
|
}
|
||||||
.response b {
|
|
||||||
text-shadow:
|
.logo {
|
||||||
2px 2px 30px #9847b8,
|
display: none;
|
||||||
-2px -2px 30px #9847b8;
|
|
||||||
color: #7f5191;
|
|
||||||
}
|
}
|
||||||
.stats {
|
|
||||||
bottom: 0.5%;
|
.nav-links li {
|
||||||
font-size: 1rem;
|
margin: 0 10px;
|
||||||
color: rgba(128, 128, 128, 0.6);
|
text-align: center;
|
||||||
position: absolute;
|
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
pointer-events: none;
|
|
||||||
white-space: nowrap;
|
|
||||||
display: none;
|
|
||||||
animation: fadeIn 1.5s;
|
|
||||||
}
|
}
|
||||||
@keyframes fadeIn {
|
|
||||||
from { opacity: 0; }
|
.response {
|
||||||
to { opacity: 1; }
|
font-size: 1.5rem !important;
|
||||||
}
|
}
|
||||||
@media (max-width: 600px) {
|
}
|
||||||
.navbar {
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
.nav-links {
|
|
||||||
margin-top: 1rem;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.logo {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.nav-links li {
|
|
||||||
margin: 0 10px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.response {
|
|
||||||
font-size: 1.5rem !important;
|
|
||||||
}
|
|
||||||
}
|
|
@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="title" content="elia's website">
|
<meta name="title" content="elia's website">
|
||||||
<meta name="description" content="swiss hosted services">
|
<meta name="description" content="hello">
|
||||||
<meta name="keywords" content="ich, hasse, mein, leben">
|
<meta name="keywords" content="ich, hasse, mein, leben">
|
||||||
<meta name="author" content="elia">
|
<meta name="author" content="elia">
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png">
|
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png">
|
||||||
@ -17,12 +17,12 @@
|
|||||||
<meta name="msapplication-config" content="icons/browserconfig.xml">
|
<meta name="msapplication-config" content="icons/browserconfig.xml">
|
||||||
<meta name="theme-color" content="#33ccff">
|
<meta name="theme-color" content="#33ccff">
|
||||||
<meta property="og:title" content="elia's website">
|
<meta property="og:title" content="elia's website">
|
||||||
<meta property="og:description" content="swiss hosted services">
|
<meta property="og:description" content="hello">
|
||||||
<meta property="og:url" content="https://elia's website">
|
<meta property="og:url" content="https://elia's website">
|
||||||
<meta property="og:site_name" content="elia's website">
|
<meta property="og:site_name" content="elia's website">
|
||||||
<meta property="og:image" content="https://elia.li/icons/favicon-32x32.png">
|
<meta property="og:image" content="https://elia.li/icons/favicon-32x32.png">
|
||||||
<meta property="twitter:title" content="elia's website">
|
<meta property="twitter:title" content="elia's website">
|
||||||
<meta property="twitter:description" content="swiss hosted services">
|
<meta property="twitter:description" content="hello">
|
||||||
<meta property="twitter:card" content="summary_large_image">
|
<meta property="twitter:card" content="summary_large_image">
|
||||||
<meta property="twitter:image" content="https://elia.li/icons/favicon-32x32.png">
|
<meta property="twitter:image" content="https://elia.li/icons/favicon-32x32.png">
|
||||||
<link rel="icon" type="image/png" href="favicon.png">
|
<link rel="icon" type="image/png" href="favicon.png">
|
||||||
@ -46,7 +46,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<div id="response" class="response">
|
<div id="response" class="response">
|
||||||
<span>...</span>
|
<span></span>
|
||||||
</div>
|
</div>
|
||||||
<div id="stats" class="stats">
|
<div id="stats" class="stats">
|
||||||
<span id="charsPerSecond">0 chars/s</span>
|
<span id="charsPerSecond">0 chars/s</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user