Commit ff9bfc96 authored by Chunchi Che's avatar Chunchi Che

fix css

parent 7758ffcc
...@@ -2,34 +2,6 @@ ...@@ -2,34 +2,6 @@
// thanks! // thanks!
@charset "utf-8"; @charset "utf-8";
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul { ol, ul {
list-style: none; list-style: none;
} }
...@@ -46,6 +18,11 @@ table { ...@@ -46,6 +18,11 @@ table {
border-spacing: 0; border-spacing: 0;
} }
#root {
display: flex;
margin: 0 auto;
text-align: center;
}
@import @import
url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"), url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"),
...@@ -54,27 +31,16 @@ url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css") ...@@ -54,27 +31,16 @@ url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css")
"login-form", "login-form",
"sign-in"; "sign-in";
* {
box-sizing: border-box;
&:before,
&:after {
box-sizing: border-box;
}
}
body { body {
background-image: url(/neos-assets/background.png); color-scheme: light dark;
background-size:cover; color: rgba(255, 255, 255, 0.87);
background-repeat: no-repeat; background-color: #242424;
background-position: center;
background-size: cover;
background-attachment: fixed;
color: #606468;
font: 87.5%/1.5em 'Open Sans', sans-serif; font: 87.5%/1.5em 'Open Sans', sans-serif;
display: flex;
margin: 0; margin: 0;
place-items: center;
min-width: 320px;
min-height: 100vh;
} }
a { a {
......
#root {
margin: 0 auto;
text-align: center;
}
:root { :root {
--perspective: 800px; --perspective: 800px;
--scale: 1.35; --scale: 1.35;
...@@ -16,6 +21,54 @@ ...@@ -16,6 +21,54 @@
--highlight-color-x: #393; --highlight-color-x: #393;
--highlight-color-y: #6f6; --highlight-color-y: #6f6;
} }
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}
#controller {
position: fixed;
display: flex;
gap: 20px;
bottom: 20px;
right: 20px;
}
#life-bar-container {
position: fixed;
display: flex;
gap: 20px;
top: 20px;
right: 20px;
font-size: 1.5em;
font-weight: 500;
font-family: inherit;
flex-direction: column;
}
#life-bar {
padding: 0.8em 1.6em;
background-color: #A9A9A9;
border-radius: 8px;
border: 1px solid transparent;
color: black;
opacity: .4;
}
#camera { #camera {
perspective: var(--perspective); perspective: var(--perspective);
transform-style: preserve-3d; transform-style: preserve-3d;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment