-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.css
161 lines (161 loc) · 3.86 KB
/
app.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
html{
color-scheme:dark;
overflow-x:clip;
overflow-y:overlay;
scrollbar-color:#888 #0000;
scrollbar-gutter:stable;
width:100vw}
::-webkit-scrollbar-thumb{
background:#888;
border-radius:9vh 0 0 9vh}
::-webkit-scrollbar{max-width:.4ch}
body{
--c:#144;
--r:#721;
background:#111;
font-family:'Reddit Sans',sans-serif;
font-size:calc((2em + 2vmin + 2vmax)/3);
font-variant-numeric:tabular-nums;
margin:0;
overflow-x:clip}
main{
align-content:start;
overflow:hidden auto;
padding:1vh 4vw clamp(2em,22vh - 30vmin,6em)}
main,section a,aside{
display:flex;
flex-wrap:wrap;
justify-content:space-evenly}
input{
float:left;
height:0;
margin:0;
opacity:0;
position:absolute;
width:0}
input:focus+label,a:focus{outline:auto}
label{background:#777}
body>*>label{
background:#777;
box-shadow:0 0 1ch #7774;
cursor:pointer;
margin:.3ch;
padding:.2ch.2ch.2ch 1.2ch;
z-index:1}
main>label,.day,.lva{font-family:'Reddit Mono',monospace}
:is(main>input:checked,#save:not(:checked))+label,.pruefung a{
--c:var(--r);
padding:.2ch 1.2ch.2ch.2ch}
[tabindex="-1"]+label a{background-image:linear-gradient(#0008,#0008)}
body>*>label,label:before{
border:1px solid #0000;
border-radius:9em;
transition:padding .2s, background .2s, box-shadow .2s}
label,a,aside span{color:#ddd}
body>*>label:before{
box-shadow:0 0 .5ch var(--c),inset 0 0 .4ch #0002;
content:attr(for);
padding:0 .5ch}
label:before,section a{background:var(--c)}
div{flex-basis:100%}
div+div,section+div{flex:1 0 1px}
section{
filter:drop-shadow(0 0 1em #000);
flex-grow:1;
-webkit-hyphens:auto;
hyphens:auto}
a{text-decoration:auto}
section a{align-items:baseline}
section label{
--o:clamp(1ch,3pc - 2vw,3em);
display:block;
margin-top:.5ch;
padding-right:var(--o);
transition:filter.2s,font.2s cubic-bezier(.8,0,0,1),margin.2s,padding.2s,visibility.2s}
section label[class] a{padding:.4ch 1ch}
section a:hover{box-shadow:none}
section :is(label,a){
border-radius:1em/50%;
box-shadow:inset 0 0 1em #0004;
outline:#0000 solid 1px}
section input:not([tabindex="-1"]):checked+label{
filter:brightness(.7)grayscale(1);
font-size:.8em;
padding-inline:var(--o) 0}
[tabindex="-1"]+label{padding:0}
[tabindex="-1"]+label .days{padding-right:var(--o)}
section a span{margin:0 .3ch}
section [class] :is(.time,.lva):after{content:':'}
.lva{margin-right:auto}
.name,.days{flex:99 1 max-content}
.days{
order:1;
text-align:end}
aside{
align-items:flex-end;
flex-direction:row-reverse;
inset:auto 0 0;
position:fixed;
text-align:center}
#save+label,aside a{
flex:2;
max-width:max-content}
#save+label:before{
content:attr(title);
display:block;
padding:0 1ch}
aside a{
background:#0f9d58 no-repeat url(//storage.googleapis.com/support-kms-prod/aRSQ2Mibb89nMCYxX8jT1PbX707VHrlX5Snt);
background-size:contain;
border-radius:0 2ch 0 0;
margin-right:auto;
padding:1ch 1ch 1ch 4ch;
text-align:end}
aside span{
background:var(--r);
font-size:0;
transition:font .5s,margin .5s;
width:100vw}
#save:not(:checked)~span{
font-size:100%;
margin-bottom:-100%;
transition-delay:0s,5s}
aside span:before{content:attr(title)}
@media(prefers-reduced-motion:reduce){
html:root *,:root :before{
transition-duration:0s}}
@media(prefers-reduced-data:reduce){
body{font-family:monospace}
.date,.time,.name,aside{
font-family:sans-serif}
aside a{
background-image:none;
padding:1ch}}
@media(prefers-color-scheme:light){
body{
--c:#0f0;
--r:#f00;
background:#fff}
label{background:#ccc}
label,a,aside span{
color:#000}
section{filter:none}}
@media print{
html:root *,:root :before{
background:unset;
border-color:#000;
box-shadow:none;
filter:none;
outline-color:#000;
position:relative}
:root{color-scheme:light}
main{padding:1vh 4vw}
label,a,aside span{
color:unset}
.name,.days{flex:auto}
a[href]:after{
content:'('attr(href)')';
flex-grow:99;
line-break:anywhere;
margin-left:.5ch}
aside span{display:none}}