-
Notifications
You must be signed in to change notification settings - Fork 7
/
jquery.beefup.css
61 lines (60 loc) · 1.16 KB
/
jquery.beefup.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
.beefup {
margin: 1em 0;
border: 1px solid #ddd;
border-radius: 4px;
}
.beefup:hover {
border-color: #ccc;
}
.beefup:first-child {
margin-top: 0;
}
.beefup__head, .beefup__body {
padding: 10px 20px;
}
.beefup__head {
cursor: pointer;
position: relative;
margin: 0;
padding-right: 50px;
}
button.beefup__head, .beefup__head > button {
cursor: pointer;
display: block;
width: 100%;
background: none;
border: 0;
font: inherit;
text-align: inherit;
}
button.beefup__head[aria-disabled], .beefup__head > button[aria-disabled] {
cursor: default;
outline: 0;
}
.beefup__head > button {
position: relative;
z-index: 1;
margin: -10px -50px -10px -20px;
padding: inherit;
width: calc(100% + 70px);
background: inherit;
border: inherit;
}
.beefup__head::after {
transition: transform 0.2s ease-out;
content: "";
transform: translate(0, -50%) rotate(45deg);
position: absolute;
top: 50%;
right: 20px;
z-index: 0;
margin-top: -2px;
padding: 3px;
border-width: 0 2px 2px 0;
border-style: solid;
color: #ccc;
}
.beefup.is-open > .beefup__head::after {
transform: translate(0, -50%) rotate(225deg);
margin-top: 2px;
}