-
Notifications
You must be signed in to change notification settings - Fork 1
/
teibp_sidebar-buttons.css
150 lines (146 loc) · 3.18 KB
/
teibp_sidebar-buttons.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
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
/* from the top right corner */
/*generic button */
div.c_sidebar {
background-color:white;
display: block;
width: 40px;
right: 0px;
/*transition: 0.5s;*/
/*set margin and padding to zero */
margin: 0;
padding: 0;
}
.c_button {
cursor: pointer;
}
.c_button-sidebar{
display: block;
background-color:white;
border:1px solid #e5e5e5;
position:fixed;
height:40px;
width:inherit;
right:inherit;
/*set margin and padding to zero */
margin: 0;
padding: 0;
overflow:hidden;
/* The transition somehow causes different displays in different browsers */
/* -webkit-transition:width .05s linear;
transition:width .05s linear;
-webkit-transform:translateZ(0) scale(1, 1);*/
z-index:1000;
cursor: pointer;
/* if we add transition here it adds to the transition of the containing
element upon invoking the sliding navigation */
/*transition: 0.2s;*/
}
/* common settings for all child elements */
div.c_button-sidebar > * {
text-decoration:none;
line-height:1.3em;
font-size:16px;
display: block;
height: auto;
margin-top: 8px;
margin-bottom: 8px;
/*position:fixed;*/
float: left;
clear: left;
/*height: inherit;*/
/*padding-left:0.5em;
padding-right:0.2em;*/
}
/* show icon */
div.c_button > .c_icon {
display: block;
/* icons should inherit the full width*/
width: 24px;
margin-left: 8px;
margin-right: 8px;
}
/* do not display label */
div.c_button-sidebar > .c_label {
visibility: hidden;
/*padding-left: 40px;*/
/*width: 200px;*/
width: 155px;
text-decoration:none;
/*margin-left: 40px;*/
padding-left: 0.2em;
clear: right;
}
/* hovering state */
div.c_button-sidebar:hover {
width:200px;
}
/* display block */
/* padding and margins */
/* toggle the display of direct children with class c_label*/
div.c_button-sidebar:hover > *.c_label,
div.c_button-sidebar:focus > *.c_label {
visibility: visible;
/* border:1px solid #e5e5e5;
border-top-left-radius:5px;
border-top-right-radius:0px;
border-bottom-right-radius:0px;
border-bottom-left-radius:5px;*/
}
/* sort order of buttons and stack them vertically */
/*#menu,*/
#toggleSettings {
top:0px;
}
#toggleNav {
top:40px;
}
#xmlSourceLink{
top:80px;
}
#backToTop{
top:120px;
}
#goToBottom {
top:160px;
}
#prevIssue{
top:200px;
}
#nextIssue{
top:240px;
}
/* the first button toggling display features should have a leading gap*/
/*#toggleLb {
bottom:0px;
}*/
/* change toggled buttons*/
#toggleLb.c_toggled,
#toggleLb.c_on{
/*color: white;
background-color: black;*/
border: 1px solid rgba(0, 0, 0, 0.4);
box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.6);
}
.c_button-toggle >.c_on,
.c_button-toggle.c_off >.c_on {
display: block;
}
.c_button-toggle >.c_off,
.c_button-toggle.c_off > .c_off {
display: none;
}
.c_button-toggle.c_toggled >.c_on,
.c_button-toggle.c_on >.c_on {
display: none;
}
.c_button-toggle.c_toggled >.c_off,
.c_button-toggle.c_on > .c_off {
display: block;
}
/* content of buttons */
.c_button-sidebar svg,
.c_button svg {
display: block;
width: 22px;
height: 22px;
}