puerta/internal/server/static/index.css
Roberto Hidalgo 038e09b202 lol, 64bit integer overflows are fun to debug
specially when running a multi-arch cluster and HA with poor observability. a `time.Duration` was being casted to an `int` (because I clearly have no clue of what I'm doing). All is well on 64-bit processors, but 32-bit processors choke on the very long micro-second precision int, overflow, and turn `7d`, around `604800` seconds into `-114753536` seconds, which the browser happily (and correctly) turns into a cookie sent to /dev/null. lol.
2023-02-11 12:01:16 -06:00

96 lines
1.4 KiB
CSS

/* SPDX-License-Identifier: Apache-2.0
Copyright © 2022 Roberto Hidalgo <nidito@un.rob.mx> */
button {
background: rgba(255,255,255,.6);
font-family: "Aestetico", sans-serif;
font-weight: bold;
text-align: center;
display: block;
color: #c11145;
border: 5px solid #c11145;
transition: all ease-in-out .5s;
}
.container {
box-sizing: border-box;
}
#rex {
font-size: 5em;
border-radius: 100%;
width: 75vw;
height: 75vw;
margin: .5em auto;
max-width: 50vh;
max-height: 50vh;
border-width: 10px;
padding: 0px;
}
#auth {
font-size: 1.6em;
padding: .4em 1em;
margin: 1em 0;
width: 100%;
max-width: 50vw;
}
button[disabled] {
filter:saturate(0);
}
#open.success button{
color: rgb(27, 163, 0);
border-color: rgb(27, 163, 0)
}
#open.requested button {
color: rgb(0, 76, 163);
border-color: rgb(0, 76, 163);
}
#open.failed button {
color: #fff;
background-color: rgb(175, 39, 39);
border-color: rgb(126, 26, 26);
}
form {
display: block;
}
label {
font-family: "Aestetico", sans-serif;
font-size: 1.2em;
line-height: 1.8em;
}
input {
display: block;
font-family: "Fira Code", monospace;
font-size: 1.5em;
width: 100%;
max-width: 50vw;
box-sizing: border-box;
}
input[type=checkbox] {
display: inline-block;
width: 1em;
height: .8em;
}
.hidden {
display: none
}
@media screen and (max-width: 768px) {
input {
max-width: 100%;
}
button {
max-width: 100%;
}
}