forked from SimonPadbury/bst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbst.css
executable file
·208 lines (193 loc) · 4.57 KB
/
bst.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
/*
Navbar "hovernav" dropdown menu - this works only for screen sizes larger than phones.
The Bootstrap CSS is unchanged. If you don't want this, delete this segment of the CSS
and delete the corresponding segment of bst.js
*/
@media (min-width: 768px) {
.navbar-nav .caret {
display: none;
}
.navbar-nav .open ul {
display: none;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #555;
background: none;
}
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
color: #969696;
background: none;
}
.navbar-default .navbar-nav > .hovernav > a {
color: #555;
}
.navbar-inverse .navbar-nav > .hovernav > a {
color: #969696;
}
.navbar-default .navbar-nav > .hovernav:hover > a,
.navbar-default .navbar-nav > .hovernav:hover > a:hover,
.navbar-default .navbar-nav > .hovernav:hover > a:focus {
color: #333;
background: transparent;
}
.navbar-inverse .navbar-nav > .hovernav:hover > a,
.navbar-inverse .navbar-nav > .hovernav:hover > a:hover,
.navbar-inverse .navbar-nav > .hovernav:hover > a:focus {
color: #fff;
background: transparent;
}
.navbar-default .navbar-nav > li:hover {
background: #e7e7e7;
}
.navbar-inverse .navbar-nav > li:hover {
background: #080808;
}
.navbar-nav .hovernav:hover > .dropdown-menu {
display: block;
}
}
/*
Max content widths
*/
.size-auto,
.size-full,
.size-large,
.size-medium,
.size-thumbnail {
max-width: 100%;
height: auto;
}
/*
Header logo
An example of how to use CSS to display an image as a background of an HTML element.
*/
#site-title a {
display: inline-block;
padding: 30px 0 30px 100px;
background: url(../img/bst.png) 0 0 no-repeat;
background-size: 95px 95px;
}
#site-title a:hover {
background: url(../img/bst-hover.png) 0 0 no-repeat;
background-size: 95px 95px;
text-decoration: none;
}
/*
Sidebar
The sidebar is classed .sidebar-offcanvas to make the offcanvas js toggle work. This class is also being used for the following rules.
*/
.sidebar-offcanvas .panel {
padding: 20px;
}
.sidebar-offcanvas ul {
list-style-type: none;
padding: 0;
}
.sidebar-offcanvas li {
margin: 10px 0;
}
/*
Footer
*/
.footer ul {
list-style-type: none;
padding: 0;
}
.footer li {
margin: 20px 0;
}
/*
Commentlist
*/
ol.commentlist {
counter-reset: li; /* Initiate a counter */
padding: 0;
}
ol.commentlist ul {
padding: 0;
}
ol.commentlist > li {
position: relative;
margin: 0 0 20px 0;
list-style: none; /* Disable the normal item numbering */
}
ol.commentlist > li:before {
content: "Thread " counter(li); /* Use the counter as content */
counter-increment: li; /* Increment the counter by 1 */
position:absolute;
top: 0;
right: 0;
border-bottom: 1px solid #ddd;
border-left: 1px solid #ddd;
border-bottom-left-radius: 4px;
padding: 5px 20px 5px 10px;
color: #999;
}
ol.commentlist li ol,
ol.commentlist li ul {
list-style-type: none;
margin: 0;
}
.commentlist li li {
background: #f8f8f8;
}
.commentlist li li li {
background: #fff;
}
.commentlist li li li li {
background: #f8f8f8;
}
.commentlist li li li li li li {
background: #fff;
}
.commentlist li {
padding: 20px;
}
.commentlist ul li {
margin-top: 20px;
margin-bottom: 0;
}
.reply p {
margin: 0;
}
/*
Off-canvas Sidebar
Note below, the media query max-width is set at 767px (not 768px). If this media query for the off-canvas sidebar were set at 768px then the sidebar would be off-canvas at 768px while the Bootstrap grid layout is at "col-sm-" but this layout requires the sidebar to be visible (not off-canvas).
*/
@media screen and (max-width: 767px) {
.row-offcanvas {
position: relative;
-webkit-transition: all 0.25s ease-out;
-moz-transition: all 0.25s ease-out;
transition: all 0.25s ease-out;
}
.row-offcanvas-right
.sidebar-offcanvas {
right: -50%; /* 6 columns */
}
.row-offcanvas-left
.sidebar-offcanvas {
left: -50%; /* 6 columns */
}
.row-offcanvas-right.active {
right: 50%; /* 6 columns */
}
.row-offcanvas-left.active {
left: 50%; /* 6 columns */
}
.sidebar-offcanvas {
position: absolute;
top: 0;
width: 50%; /* 6 columns */
}
}