Changed 2 spaces to 4 in css

This commit is contained in:
Kristofers Solo 2022-12-23 09:45:35 +02:00
parent 1a23c050ba
commit 325b064630
5 changed files with 213 additions and 214 deletions

View File

@ -1,71 +1,71 @@
main { main {
border: 1px solid #30363d; border: 1px solid #30363d;
max-width: 700px; max-width: 700px;
color: #f0f6fc; color: #f0f6fc;
padding: 50px; padding: 50px;
margin: 100px auto 100px auto; margin: 100px auto 100px auto;
} }
hr { hr {
color: #30363d; color: #30363d;
} }
h1 { h1 {
text-align: center; text-align: center;
font-size: 32px; font-size: 32px;
font-weight: bold; font-weight: bold;
} }
h2 { h2 {
margin: 40px 0 0 0; margin: 40px 0 0 0;
font-size: 24px; font-size: 24px;
font-weight: bold; font-weight: bold;
} }
p { p {
font-size: 18px; font-size: 18px;
margin: 10px 0; margin: 10px 0;
} }
a { a {
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
color: #58a6ff; color: #58a6ff;
} }
a:hover { a:hover {
text-decoration: underline; text-decoration: underline;
} }
code { code {
font-family: Consolas, 'courier new'; font-family: Consolas, "courier new";
color: #f0f6fc; color: #f0f6fc;
background-color: #393f48; background-color: #393f48;
border-radius: 8px; border-radius: 8px;
padding: 3px; padding: 3px;
} }
pre code { pre code {
background-color: #161b22; background-color: #161b22;
display: block; display: block;
padding: 20px; padding: 20px;
} }
aside { aside {
color: #8b949e; color: #8b949e;
font-size: 12px; font-size: 12px;
margin: 10px 0; margin: 10px 0;
font-style: italic; font-style: italic;
} }
.list { .list {
margin: 10px 40px; margin: 10px 40px;
} }
.upper { .upper {
list-style-type: circle; list-style-type: circle;
} }
.sub { .sub {
list-style-type: disc; list-style-type: disc;
} }

View File

@ -1,25 +1,25 @@
p { p {
color: #f0f6fc; color: #f0f6fc;
font-size: 20px; font-size: 20px;
text-align: center; text-align: center;
margin-top: 10px; margin-top: 10px;
} }
a { a {
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
color: #58a6ff; color: #58a6ff;
} }
a:hover { a:hover {
text-decoration: underline; text-decoration: underline;
} }
.center { .center {
margin: 0; margin: 0;
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
-ms-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }

View File

@ -1,68 +1,68 @@
html, html,
body { body {
font-family: 'Roboto', sans-serif; font-family: "Roboto", sans-serif;
background: #0d1117; background: #0d1117;
} }
main { main {
min-height: 100%; min-height: 100%;
} }
/* HEADER */ /* HEADER */
header ul { header ul {
width: 100%; width: 100%;
list-style-type: none; list-style-type: none;
overflow: hidden; overflow: hidden;
background-color: #161b22; background-color: #161b22;
position: sticky; position: sticky;
top: 0; top: 0;
} }
header li { header li {
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
font-size: 24px; font-size: 24px;
float: left; float: left;
width: calc(100% / 2); width: calc(100% / 2);
} }
header li a { header li a {
display: inline-block; display: inline-block;
color: #f0f6fc; color: #f0f6fc;
padding: 14px 16px; padding: 14px 16px;
text-decoration: none; text-decoration: none;
} }
header li a:hover { header li a:hover {
text-decoration: none; text-decoration: none;
color: #b9bbbd; color: #b9bbbd;
} }
/* FOOTER */ /* FOOTER */
.page-container { .page-container {
position: relative; position: relative;
min-height: 100vh; min-height: 100vh;
} }
.content-wrap { .content-wrap {
padding-bottom: 2.5rem; padding-bottom: 2.5rem;
} }
footer { footer {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
height: auto; height: auto;
background-color: #161b22; background-color: #161b22;
color: #f0f6fc; color: #f0f6fc;
flex-wrap: wrap; flex-wrap: wrap;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
} }
footer p { footer p {
font-size: 16px; font-size: 16px;
margin: 10px 0; margin: 10px 0;
} }

View File

@ -1,212 +1,212 @@
:root { :root {
--blade-hue: 120; --blade-hue: 120;
--blade-lightness: 50%; --blade-lightness: 50%;
} }
*, *,
*::before, *::before,
*::after { *::after {
box-sizing: border-box; box-sizing: border-box;
} }
body { body {
background: #222; background: #222;
display: grid; display: grid;
grid-template-columns: repeat(6, 1fr); grid-template-columns: repeat(6, 1fr);
grid-template-rows: 100px 50px 1fr; grid-template-rows: 100px 50px 1fr;
min-height: 100vh; min-height: 100vh;
place-items: center; place-items: center;
font-family: 'Source Sans Pro', sans-serif; font-family: "Source Sans Pro", sans-serif;
text-transform: uppercase; text-transform: uppercase;
font-size: 1.5rem; font-size: 1.5rem;
} }
/* The color pickers */ /* The color pickers */
[name='color'] { [name="color"] {
grid-row: 1 / 2; grid-row: 1 / 2;
align-self: end; align-self: end;
margin: 0.5em; margin: 0.5em;
} }
label:not(.hilt) { label:not(.hilt) {
color: white; color: white;
font-weight: bold; font-weight: bold;
align-self: start; align-self: start;
} }
/* Lightsaber styling */ /* Lightsaber styling */
.lightsaber { .lightsaber {
margin-top: 25vh; margin-top: 25vh;
grid-column: 1 / -1; grid-column: 1 / -1;
position: relative; position: relative;
} }
#on-off { #on-off {
position: absolute; position: absolute;
width: 0; width: 0;
height: 0; height: 0;
} }
.hilt { .hilt {
cursor: pointer; cursor: pointer;
display: block; display: block;
width: 0.75rem; width: 0.75rem;
height: 7rem; height: 7rem;
background-color: red; background-color: red;
border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px;
background-image: linear-gradient( background-image: linear-gradient(
silver 0 10px, silver 0 10px,
hsl(39 75% 50%) 0 14px, hsl(39 75% 50%) 0 14px,
silver 0 15px, silver 0 15px,
black 0 20px, black 0 20px,
silver 0 22px, silver 0 22px,
black 0 25px, black 0 25px,
silver 0 27px, silver 0 27px,
black 0 30px, black 0 30px,
silver 0 32px, silver 0 32px,
black 0 35px, black 0 35px,
silver 0 37px, silver 0 37px,
black 0 40px, black 0 40px,
silver 0 42px, silver 0 42px,
black 0 45px, black 0 45px,
silver 0 47px, silver 0 47px,
black 0 50px, black 0 50px,
silver 0 60px, silver 0 60px,
hsl(39 75% 50%) 60px 80px, hsl(39 75% 50%) 60px 80px,
silver 0 100% silver 0 100%
); );
} }
.blade { .blade {
position: absolute; position: absolute;
background: white; background: white;
height: 350%; height: 350%;
width: 100%; width: 100%;
bottom: 100%; bottom: 100%;
border-radius: 100vw 100vw 0 0; border-radius: 100vw 100vw 0 0;
box-shadow: inset 0 0 4px box-shadow: inset 0 0 4px
hsl(var(--blade-hue) 100% var(--blade-lightness) / 1), hsl(var(--blade-hue) 100% var(--blade-lightness) / 1),
0 0 1em hsl(var(--blade-hue) 100% var(--blade-lightness) / 0.8), 0 0 1em hsl(var(--blade-hue) 100% var(--blade-lightness) / 0.8),
0 0 1.5em hsl(var(--blade-hue) 100% var(--blade-lightness) / 0.7), 0 0 1.5em hsl(var(--blade-hue) 100% var(--blade-lightness) / 0.7),
0 0 2em hsl(var(--blade-hue) 100% var(--blade-lightness) / 0.5), 0 0 2em hsl(var(--blade-hue) 100% var(--blade-lightness) / 0.5),
0 0 3em hsl(var(--blade-hue) 100% var(--blade-lightness) / 0.3), 0 0 3em hsl(var(--blade-hue) 100% var(--blade-lightness) / 0.3),
0 0 5em hsl(var(--blade-hue) 100% var(--blade-lightness) / 0.2); 0 0 5em hsl(var(--blade-hue) 100% var(--blade-lightness) / 0.2);
transition: transform 50ms ease-out; transition: transform 50ms ease-out;
transform-origin: bottom; transform-origin: bottom;
} }
.blade::after { .blade::after {
content: ''; content: "";
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
background: hsl(var(--blade-hue) 100% var(--blade-lightness)); background: hsl(var(--blade-hue) 100% var(--blade-lightness));
border-radius: inherit; border-radius: inherit;
filter: blur(0.5em); filter: blur(0.5em);
opacity: 1; opacity: 1;
-webkit-animation: pulse linear 5s infinite; -webkit-animation: pulse linear 5s infinite;
animation: pulse linear 5s infinite; animation: pulse linear 5s infinite;
} }
.blade::before { .blade::before {
content: ''; content: "";
position: absolute; position: absolute;
top: 0; top: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
left: 0; left: 0;
background: white; background: white;
border-radius: inherit; border-radius: inherit;
z-index: 10; z-index: 10;
} }
@-webkit-keyframes pulse { @-webkit-keyframes pulse {
50% { 50% {
opacity: 0.5; opacity: 0.5;
} }
} }
@keyframes pulse { @keyframes pulse {
50% { 50% {
opacity: 0.5; opacity: 0.5;
} }
} }
/* Turn lightsaber on and off */ /* Turn lightsaber on and off */
#on-off:not(:checked) + .blade { #on-off:not(:checked) + .blade {
transform: scaleY(0); transform: scaleY(0);
} }
#on-off:checked + .blade { #on-off:checked + .blade {
transform: scaleY(1); transform: scaleY(1);
} }
/* change the color */ /* change the color */
#green:checked ~ .lightsaber { #green:checked ~ .lightsaber {
--blade-hue: 120; --blade-hue: 120;
} }
#blue:checked ~ .lightsaber { #blue:checked ~ .lightsaber {
--blade-hue: 195; --blade-hue: 195;
} }
#yellow:checked ~ .lightsaber { #yellow:checked ~ .lightsaber {
--blade-hue: 60; --blade-hue: 60;
} }
#purple:checked ~ .lightsaber { #purple:checked ~ .lightsaber {
--blade-hue: 290; --blade-hue: 290;
} }
#red:checked ~ .lightsaber { #red:checked ~ .lightsaber {
--blade-hue: 360; --blade-hue: 360;
} }
#darksaber:checked ~ .lightsaber { #darksaber:checked ~ .lightsaber {
--blade-lightness: 100%; --blade-lightness: 100%;
} }
#darksaber:checked ~ .lightsaber .blade { #darksaber:checked ~ .lightsaber .blade {
border-radius: 100% / 500px 10px 0 0; border-radius: 100% / 500px 10px 0 0;
} }
#darksaber:checked ~ .lightsaber .blade::before { #darksaber:checked ~ .lightsaber .blade::before {
background: black; background: black;
} }
/* play sound */ /* play sound */
embed { embed {
display: none; display: none;
position: absolute; position: absolute;
opacity: 0; opacity: 0;
pointer-events: 0; pointer-events: 0;
width: 0; width: 0;
height: 0; height: 0;
} }
#on-off:checked ~ embed { #on-off:checked ~ embed {
display: block; display: block;
} }
/* YT link */ /* YT link */
.yt { .yt {
color: hsl(0 0% 100% / 0.5); color: hsl(0 0% 100% / 0.5);
font-size: 1rem; font-size: 1rem;
padding: 1em; padding: 1em;
margin: 0 0 1em 0; margin: 0 0 1em 0;
grid-column: 1 / -1; grid-column: 1 / -1;
} }
.yt:hover { .yt:hover {
color: white; color: white;
text-shadow: 0 0 0.5em hsl(var(--blade-hue) 50% 50%), text-shadow: 0 0 0.5em hsl(var(--blade-hue) 50% 50%),
0 0 1em hsl(var(--blade-hue) 50% 50% / 0.75); 0 0 1em hsl(var(--blade-hue) 50% 50% / 0.75);
} }

View File

@ -1,4 +1,3 @@
/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
html, html,
body, body,
div, div,
@ -80,12 +79,12 @@ time,
mark, mark,
audio, audio,
video { video {
border: 0; border: 0;
font-size: 100%; font-size: 100%;
font: inherit; font: inherit;
vertical-align: baseline; vertical-align: baseline;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
article, article,
aside, aside,
@ -98,26 +97,26 @@ hgroup,
menu, menu,
nav, nav,
section { section {
display: block; display: block;
} }
body { body {
line-height: 1; line-height: 1;
} }
ol, ol,
ul { ul {
list-style: none; list-style: none;
} }
blockquote, blockquote,
q { q {
quotes: none; quotes: none;
} }
blockquote:before, blockquote:before,
blockquote:after, blockquote:after,
q:before, q:before,
q:after { q:after {
content: none; content: none;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
} }