guest_worker/www/worker_specs/style.css

209 lines
3.2 KiB
CSS
Raw Normal View History

2019-11-01 17:30:50 +00:00
@font-face {
font-family: 'bebas';
src: url('font/BebasNeue-Regular.ttf');
}
@font-face {
font-family: 'freesans';
src: url('font/FreeSans.ttf')
}
:root{
--base-font-size: 17px;
2020-01-21 15:09:24 +00:00
--big-font-size: calc(var(--base-font-size)*1.5);
--bigger-font-size: calc(var(--big-font-size)*1.5);
/* --spec_name-font-size: 120%;
--spec_value-font-size: 250%; */
2019-11-01 17:30:50 +00:00
--base-color: #271601; /* tekst */
--alt-color: #FFF5DF; /* achtergrond */
/* /////// GAT VOORKANT PLEK & POSITIE //////// */
/* */ /* */
2019-11-01 19:21:24 +00:00
/* */ --pos-x: 555px; /* */
/* */ --pos-y: 110px; /* */
2019-11-01 19:21:24 +00:00
/* */ --width: 420px; /* 115mm */
/* */ --height: 1000px; /* 270mm */
2019-11-01 17:30:50 +00:00
/* */ /* */
/* //////////////////////////////////////////// */
}
html, body{
margin: 0;
padding: 0;
border: 0;
text-decoration: none;
font-family: 'bebas';
font-size: var(--base-font-size);
line-height: 1.1;
2019-11-01 19:21:24 +00:00
background: var(--alt-color);
2019-11-01 17:30:50 +00:00
overflow: hidden;
}
#wrapper{
position: absolute;
left: var(--pos-x);
2020-01-13 15:13:42 +00:00
bottom: calc(100vh - (var(--pos-y) + var(--height)));
2019-11-01 17:30:50 +00:00
width: var(--width);
2020-01-13 15:13:42 +00:00
height: auto;
2019-11-01 17:30:50 +00:00
background: var(--alt-color);
box-sizing: border-box;
padding: 2%;
}
2020-01-13 15:13:42 +00:00
#wrapper .hit{
display:block;
}
2020-01-21 15:09:24 +00:00
2020-01-13 15:13:42 +00:00
.transition{
overflow:hidden;
2020-01-21 15:09:24 +00:00
display: block;
2020-01-13 15:13:42 +00:00
position:relative;
2020-01-21 15:09:24 +00:00
padding-left: calc(50% + 20px);
font-size: var(--base-font-size);
2020-01-13 15:13:42 +00:00
height: 40px;
2020-01-21 15:09:24 +00:00
/* text-align: center; */
2020-01-13 15:13:42 +00:00
animation-duration: 3s;
animation-name: slidein;
2020-01-21 15:09:24 +00:00
margin: 20px 0px;
2020-01-13 15:13:42 +00:00
}
2020-01-21 15:09:24 +00:00
.transition p{
margin:2px;
}
2020-01-13 15:13:42 +00:00
.transition::before{
content:'⇩'; /*'⇓';*/
display:block;
position:absolute;
2020-01-21 15:09:24 +00:00
font-family:'monospace';
font-size: 80px;
top:10px;
2020-01-13 15:13:42 +00:00
left:calc(50% - 30px);
line-height:0;
2020-01-21 15:09:24 +00:00
2020-01-13 15:13:42 +00:00
}
2020-01-21 15:09:24 +00:00
2020-01-13 15:13:42 +00:00
.state{
overflow:hidden;
animation-duration: 3s;
animation-name: slidein;
transition: max-height 1s;
2020-01-21 15:09:24 +00:00
/* max-height: 200px; */
margin: 2px;
border:solid 2px black;
padding: 4px;
}
.state h2{
font-family: 'bebas';
font-size: var(--bigger-font-size);
margin: 2px;
font-weight: normal;
}
.state p{
margin: 0;
font-family: 'bebas';
font-size: var(--big-font-size);
}
.state img{
max-width: 100%;
}
.state .descriptor{
font-family: 'freesans';
font-size: var(--base-font-size);
margin-top: var(--base-font-size);
2020-01-13 15:13:42 +00:00
}
.state.assignment-hidden {
/*On abandon etc.*/
max-height: 0px;
}
2020-01-21 15:09:24 +00:00
2020-01-13 15:13:42 +00:00
@keyframes slidein {
from {
max-height:0;
}
to {
2020-01-22 15:04:13 +00:00
max-height: 600px;
2020-01-13 15:13:42 +00:00
}
}
/*
2019-11-01 17:30:50 +00:00
#worker_specs{
display:grid;
grid-template-columns: 1fr ;
grid-template-rows: repeat(50, 1fr 2fr);
}
.grid-item{
color: var(--base-color);
}
.spec_name{
font-size: var(--spec_name-font-size);
font-family: 'freesans';
}
.spec_value{
font-size: var(--spec_value-font-size);
padding-bottom: 3%;
2019-11-04 08:25:39 +00:00
white-space:nowrap;
2019-11-01 17:30:50 +00:00
}
.phase{
display:none;
}
.phase:not(#worker_specs){
padding-top: 100%;
text-align: center;
}
.narrative_phase_text{
font-size: var(--spec_value-font-size);
}
#hit_id{
font-size: 190%;
position: relative;
top: 5px;
}
2020-01-21 15:09:24 +00:00
*/
2020-01-22 15:04:13 +00:00
.columns{
display: flex;
flex-direction: row;
}
.columns .column{
flex-grow: 1;
}
2020-01-22 15:18:09 +00:00
.scan img{
vertical-align:bottom;
}