MKK_KozVezVal/mkkkvv.css
2022-06-09 00:31:50 +02:00

289 lines
5.3 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Faustina&display=swap');
body {
--C_PRIMARY: #f89a17;
--C_SEC: #44968e;
--C_TER: #2a5999;
--C_TERL: #7ba2d0;
--C_OK: #67b60a;
--C_TRIADIC1: #85ea11;
--C_TRIADIC2: #11ea76;
--C_BG1: #c0ccdf;
--C_BG2: #e3ecf3;
--C_BG3: #e9f3e3;
--C_BG4: #DEE6ED;
--C_UNKNOWN: #f84c17;
--C_TEXTINPUT_COLOR: #2f4c6e;
font-family: 'Faustina', serif;
--MAINBOX_WIDTH: 30em;
}
h1 {
font-size: 40px;
}
body {
display: block;
/*position: fixed;*/
top: 0;
right: 0;
/*bottom: 0;*/
left: 0;
margin: 0;
}
h1, h2, h3, h4 {
padding: 0.1em 1em;
}
input[type="text"],
input[type="password"] {
font-family: 'Faustina', serif;
font-size: 32px;
border-width: 0 0 0.1em 0;
border-color: #2a5999;
background: repeating-linear-gradient(
-45deg,
var(--C_BG2),
var(--C_BG2) 3px,
var(--C_BG4) 3px,
var(--C_BG4) 6px
);
}
input[type="text"]:focus,
input[type="password"]:focus{
outline: none;
border-color: var(--C_TERL);
}
input#nameinput {
display: inline-block;
width: 100%;
color: var(--C_TEXTINPUT_COLOR);
transition: color 0.3s ease;
padding: 0 0.5em;
}
input#nameinput[validity="ok"] {
color: var(--C_OK);
transition: color 0.3s ease;
}
input#nameinput[validity="bad"] {
color: var(--C_UNKNOWN);
transition: color 0.3s ease;
}
section#hintbox {
margin: 0.2em 0;
color: var(--C_TER);
font-size: 24px;
padding: 0.5em 0;
}
section#hintzone {
background-color: var(--C_BG2);
overflow: hidden;
border-bottom: 8px dashed white;
}
section#hintzone[collapsed="true"] {
max-height: 0;
transition: max-height 0.3s ease;
border-bottom-width: 0;
}
section#hintzone[collapsed="false"] {
max-height: 100em;
transition: max-height 0.3s ease;
border-bottom-width: 8px;
}
span.hit {
display: block;
position: static;
padding: 0.2em 0.5em;
cursor: pointer;
text-align: left;
border-left-width: 0;
transition: border-left-width 0.3s ease;
}
span.hit:hover {
background-color: var(--C_BG3);
border-left: 8px dotted var(--C_BG2);
border-right: 8px dotted var(--C_BG2);
transition: border-left-width 0.3s ease;
}
span.highlight {
font-weight: bold;
color: var(--C_SEC);
text-decoration: underline;
}
section#mainbox {
display: block;
/*position: absolute;*/
/*width: min(var(--MAINBOX_WIDTH), calc(100vw - 1em));*/
width: 100%;
/*top: 3em;*/
/*left: 50%;*/
/*transform: translate(-50%, 0);*/
overflow: hidden;
}
div.btn {
/*width: 4em;*/
display: inline-block;
position: relative;
/*top: 0.555em;*/
background-color: var(--C_TER);
color: white;
font-size: 28px;
padding: 0 0.2em 0 0.2em;
border-radius: 0.2em;
/*text-indent: -3px;*/
cursor: pointer;
transition: background-color 0.3s ease;
padding-bottom: 0.2em;
margin: 0.1em 0;
}
div.btn:hover {
background-color: var(--C_TERL);
transition: background-color 0.3s ease;
}
div#submitbtn {
/*margin-top: 0.2em;*/
display: block;
width: 100%;
text-align: center;
border-radius: 0;
padding: 0;
overflow: hidden;
margin-top: 0;
}
div#submitbtn[collapsed="true"] {
height: 0 !important;
transition: height 0.3s ease;
}
div#submitbtn[collapsed="false"] {
height: 1.25em;
border-bottom: 8px dashed var(--C_BG2);
padding-bottom: 0.2em;
transition: height 0.3s ease;
}
input[type="text"]#idinput {
align-content: center;
width: 100%;
margin-bottom: 0.2em;
text-align: center;
}
section#display {
display: block;
position: relative;
/*width: min(var(--MAINBOX_WIDTH), calc(100vw - 1em));*/
width: max-content;
border-top: 8px dashed white;
border-bottom: 8px dashed white;
background-color: var(--C_BG2);
margin: 3em auto;
/*top: 3em;*/
padding: 2em 0;
overflow-x: hidden;
text-align: center;
}
section#elector_index {
background: var(--C_TER);
display: inline-block;
font-size: 50px;
padding: 0.15em 0.4em 0.3em 0.4em;
border-left: 8px dashed var(--C_BG2);
border-right: 8px dashed var(--C_BG2);
color: white;
}
section#full_records {
font-size: 20px;
animation: fadeIn 3s forwards;
opacity: 0;
}
@media only screen and (max-width: 600px) {
section#display {
width: 100vw;
}
h1, h2, h3, h4 {
padding: 0.1em 0.5em;
}
}
/* ------------------------ */
*[shown="false"] {
visibility: hidden;
display: none !important;
opacity: 0;
transition: opacity 0.5s ease;
width: 0;
height: 0;
/*animation: fadeOut 0.3s ease;*/
}
*[shown="true"] {
opacity: 1;
transition: opacity 0.5s ease;
/*animation: fadeIn 0.3s ease-out;*/
}
*[collapsed="true"] {
max-height: 0;
transition: max-height 0.3s ease;
}
/*@keyframes fadeIn {
0% {
display: none;
opacity: 0;
}
1% {
display: unset;
opacity: 0;
}
100% {
display: unset;
opacity: 1;
}
}
@keyframes fadeOut {
0% {
display: unset;
opacity: 1;
}
99% {
display: unset;
opacity: 0;
}
100% {
display: none;
opacity: 0;
}
}*/