-
Notifications
You must be signed in to change notification settings - Fork 194
/
view-switcher.scss
65 lines (53 loc) · 1.44 KB
/
view-switcher.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
.view-switcher {
display: flex;
justify-content: center;
// These are the exact margins required to vertically align the top of the
// view switcher with the top of the Hide Highlights button to its left,
// and the top of the first annotation card below the view switcher with the
// top of the New Page Note button to its left.
margin-top: 1px;
margin-bottom: 6px;
}
.view-switcher__tab {
@include smallshadow
height: 30px; // Same height as used for Hide Highlights and New Page Note
// buttons to left of view switcher.
padding-left: 12px;
padding-right: 12px;
background: $white;
transition: background-color .1s linear;
// This fixes the tabs flashing gray for a moment each time you tap on one
// in iOS Safari.
-webkit-tap-highlight-color: rgba(0,0,0,0);
border: 1px solid $gray-lighter;
cursor: pointer;
user-select: none;
}
.view-switcher__tab {
border-right-width: 0;
}
.view-switcher__tab:last-child {
border-right-width: 1px;
}
.view-switcher__tab:first-child {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.view-switcher__tab:last-child {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
.view-switcher__tab:focus {
outline: 0;
}
.view-switcher__tab::-moz-focus-inner {
border: 0;
}
.view-switcher__tab:hover,
.view-switcher__tab.is-selected {
background-color: #e6e6e6;
}
.view-switcher__empty-message {
position: relative;
top: 10px;
}