-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalt-text-button.css
More file actions
63 lines (63 loc) · 1.26 KB
/
alt-text-button.css
File metadata and controls
63 lines (63 loc) · 1.26 KB
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
html {
max-width: 35rem;
}
figure {
margin: 0;
margin-top: 1rem;
margin-bottom: 1rem;
position: relative;
}
figure img {
width: 100%;
border: 1px solid #ccc;
border-radius: var(--border-radius);
}
figure details {
position: absolute;
top: 1rem;
left: 1rem;
background-color: white;
padding: 0.25rem 0.5rem;
border-radius: var(--border-radius);
border: 1px solid #ccc;
display: block;
margin-right: 1rem;
}
figure summary {
width: calc(100% - 2rem);
cursor: pointer;
list-style: none;
color: black;
}
figure details:has(summary:focus) {
outline: none;
color: yellow;
background-color: black;
summary {
color: yellow;
background-color: black;
outline: yellow;
}
}
figure details[open] p, figure details[open] summary {
border-radius: var(--border-radius);
border: 1px solid #ccc;
padding: 0.25rem 0.5rem;
color: black;
}
figure details[open] p {
background-color: white;
margin: 0;
}
figure details[open] summary {
width: max-content;
margin-bottom: 0.25rem;
list-style: none;
color: black;
background-color: white;
}
figure details[open] {
border: none;
background-color: transparent !important;
padding: 0;
}