-
Notifications
You must be signed in to change notification settings - Fork 0
/
journal.css
162 lines (143 loc) · 2.79 KB
/
journal.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
162
/* https://jsbin.com/wogeyey/1/edit */
@keyframes slideDown {
0% {
opacity: 0;
height: 0;
}
100% {
opacity: 1;
height: var(--details-height-open, '100%');
}
}
html {
--details-transition-time: 400ms;
}
details {
/* https://stackoverflow.com/a/66482293 */
margin: 1.3rem 0;
margin-left: 0.5em;
padding: 0.5rem;
transition: all ease-out var(--details-transition-time, 0);
max-height: var(--details-height-closed, auto);
}
details[open] {
max-height: var(--details-height-open, auto);
border: 1px solid #aaa;
}
details summary {
cursor: pointer;
margin-bottom: 0.5em;
font-weight: bold;
/* padding: -0.5em; */
}
details[open] summary {
border-bottom: 1px solid #aaa;
margin-bottom: 0.8em;
}
details [details, div] {
transition: all ease-out var(--details-transition-time, 0);
max-height: var(--details-content-height-closed, auto);
overflow: hidden;
animation-name: slideDown;
animation-duration: var(--details-transition-time);
}
.topbar {
position: fixed;
top: 0;
width: 100%;
height: 5 em;
z-index: 1;
background-color: #e0e2e0;
}
body {
padding-top: 5em;
}
summary {
padding: 1rem;
display: block;
padding-left: 2.2rem;
position: relative;
cursor: pointer;
}
summary:before {
content: '';
border-width: .4rem;
border-style: solid;
border-color: transparent transparent transparent #000;
position: absolute;
top: 1.1rem;
left: 1rem;
transform: rotate(0);
transform-origin: .2rem 50%;
transition: .25s transform ease;
}
summary {
padding: 1rem;
display: block;
padding-left: 2.2rem;
position: relative;
cursor: pointer;
}
summary:before {
content: '';
border-width: .4rem;
border-style: solid;
border-color: transparent transparent transparent #000;
position: absolute;
top: 1.1rem;
left: 1rem;
transform: rotate(0);
transform-origin: .2rem 50%;
transition: .25s transform ease;
}
details[open] > summary:before {
transform: rotate(90deg);
}
div {}
@keyframes fadeInDown {
0% {
opacity: 0;
transform: translateY(-1.25em);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInUp {
0% {
opacity: 0;
transform: translateY(0);
}
100% {
opacity: 1;
transform: translateY(-1.25em);
}
}
details[open] > div {
animation-name: fadeInDown;
animation-duration: 1s;
}
details[close] > div {
animation-name: fadeInUpn;
animation-duration: 1s;
}
button {
background-color: #fff;
border: 1px solid #e8ebeb;
border-radius: 4px;
box-shadow: rgba(210, 210, 210, .5) 0 2px 4px 0;
cursor: pointer;
display: inline-block;
scale: 80%;
position: relative;
text-align: center;
user-select: none;
-webkit-user-select: none;
}
button:hover {
background-color: #f7fafa;
}
button:focus {
box-shadow: rgba(210, 210, 210, .3) 0 2px 4px 0;
}