-
Notifications
You must be signed in to change notification settings - Fork 105
/
Controls.scss
154 lines (131 loc) · 2.95 KB
/
Controls.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
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
.bp-controls-wrapper {
border: 0 none;
bottom: 25px;
left: 50%;
margin: 0;
padding: 0;
position: absolute;
}
.bp-controls {
background: fade-out($twos, .05);
border-radius: 3px;
display: table;
left: -50%;
opacity: 0;
position: relative;
table-layout: fixed;
transition: opacity .5s;
// Page num input CSS
.bp-page-num {
min-width: 48px;
width: auto; // Let page num expand as needed
span {
display: inline;
font-size: 14px;
}
}
.bp-page-num-wrapper {
background-color: #444;
border-radius: 3px;
margin: 5px;
padding: 7px 5px;
}
/* stylelint-disable property-no-vendor-prefix */
// Removes the spinner for number type inputs in Webkit browsers
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
// Removes the spinner for number type inputs in Firefox
input[type=number] {
-moz-appearance: textfield;
}
/* stylelint-enable property-no-vendor-prefix */
.bp-page-num-input {
font-size: 14px;
margin: 0 auto;
position: absolute;
text-align: center;
visibility: hidden;
width: 44px; // hard-coded to solve layout issues
}
&.show-page-number-input {
.bp-page-num-wrapper {
background-color: transparent;
border: none;
padding: 0;
}
.bp-page-num {
opacity: 1;
}
.bp-current-page,
.bp-page-num-divider,
.bp-total-pages {
display: none;
}
.bp-page-num-input {
display: inline-block;
position: static;
visibility: visible;
}
}
}
.box-show-preview-controls .bp-controls {
opacity: 1;
}
.bp-controls-cell {
display: table-cell;
margin: 0;
padding: 0;
touch-action: manipulation;
vertical-align: middle;
}
.bp-controls-btn {
background: transparent;
border: 1px solid transparent;
color: $white;
cursor: pointer;
display: block;
height: 48px;
margin: 0;
opacity: .7;
outline: 0;
padding: 0;
// disables non-standard gestures such as double-tap to zoom
touch-action: manipulation;
user-select: none;
width: 48px;
zoom: 1;
&:hover,
&:focus {
opacity: 1;
}
// Custom focus
&:focus {
box-shadow: inset 0 0 0 1px fade-out($white, .5), 0 1px 2px fade-out($black, .9);
}
span {
display: block;
margin: 0 auto;
}
svg {
vertical-align: middle;
}
&.disabled,
&:disabled {
cursor: default;
opacity: .2;
pointer-events: none;
}
}
.bp-exit-fullscreen-icon {
display: none;
}
.bp-is-fullscreen {
.bp-enter-fullscreen-icon {
display: none;
}
.bp-exit-fullscreen-icon {
display: block;
}
}