-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_boxes.scss
104 lines (83 loc) · 1.71 KB
/
_boxes.scss
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
$amePostboxBorderColor: #ccd0d4; //Was #e5e5e5 before WP 5.3.
$amePostboxShadow: 0 1px 1px rgba(0, 0, 0, 0.04);
@mixin ame-emulated-postbox($toggleWidth: 36px, $horizontalPadding: 12px) {
$borderColor: $amePostboxBorderColor;
$headerBackground: #fff;
position: relative;
box-shadow: $amePostboxShadow;
background: $headerBackground;
margin-bottom: 20px;
border: 1px solid $borderColor;
.ws-ame-postbox-header {
$headerFontSize: 14px;
position: relative;
font-size: $headerFontSize;
margin: 0;
line-height: 1.4;
border-bottom: 1px solid $borderColor;
h3 {
padding: 10px $horizontalPadding;
margin: 0;
font-size: 1em;
line-height: 1;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.ws_tooltip_trigger {
.dashicons {
height: $headerFontSize;
line-height: $headerFontSize;
}
}
}
.ws-ame-postbox-toggle {
color: #72777c;
background: transparent;
display: block;
font: normal 20px/1 dashicons;
text-align: center;
cursor: pointer;
border: none;
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: $toggleWidth;
height: 100%;
padding: 0;
&:hover {
color: #23282d;
}
&:active, &:focus {
outline: none;
padding: 0;
}
&:before {
content: '\f142';
display: inline-block;
vertical-align: middle;
}
&:after {
display: inline-block;
content: "";
vertical-align: middle;
height: 100%;
}
}
.ws-ame-postbox-content {
border-top: none;
padding: $horizontalPadding;
}
&.ws-ame-closed-postbox {
.ws-ame-postbox-content {
display: none;
}
.ws-ame-postbox-toggle:before {
content: '\f140'; //downward triangle
}
.ws-ame-postbox-header {
border-bottom: none;
}
}
}