-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
72 lines (61 loc) · 1.39 KB
/
style.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
body {
background-color: rgb(225, 240, 255);
font-family: 'Open Sans', sans-serif;
}
.container {
display: flex;
align-items: center;
justify-content: center;
}
.sketch {
position: relative;
border: 2px solid black;
background-color: white;
}
details {
overflow: hidden; /* Keep this line to prevent an odd blue outline around the element in Safari. */
}
summary {
display: block;
}
summary::-webkit-details-marker {
display: none;
}
span {
position: relative;
display: flex;
align-items: center;
padding-left: 1rem;
background: #444;
color: #fff;
height: 4rem;
}
span:hover {
cursor: pointer;
}
span::before {
content: "►";
font-size: 1rem;
display: flex;
align-items: center;
margin-right: 0.5rem;
transition: rotate 200ms 400ms ease-out;
}
div.content {
box-sizing: border-box;
max-height: 0;
overflow: hidden;
padding: 0 10px;
border: 2px solid transparent;
transition: max-height 400ms ease-out, border 0ms 400ms linear;
}
details[open]+div.content {
max-height: 800px;
/* Set a max-height value enough to show all the content */
border-color: #888;
transition: max-height 400ms ease-out, border 0ms linear;
}
details[open] span::before {
rotate: 90deg;
transition: rotate 200ms ease-out;
}