nodebb-theme-persona 12.0.2 → 12.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +2 -2
- package/README.md +14 -14
- package/languages/de/persona.json +3 -3
- package/languages/en-US/persona.json +2 -2
- package/languages/fr/persona.json +3 -3
- package/languages/pl/persona.json +3 -3
- package/languages/pt-PT/persona.json +2 -2
- package/languages/tr/persona.json +4 -4
- package/languages/zh-CN/persona.json +4 -4
- package/less/bootstrap/.csscomb.json +297 -297
- package/less/bootstrap/.csslintrc +19 -19
- package/less/bootstrap/alerts.less +73 -73
- package/less/bootstrap/badges.less +66 -66
- package/less/bootstrap/bootstrap.less +50 -50
- package/less/bootstrap/breadcrumbs.less +26 -26
- package/less/bootstrap/button-groups.less +243 -243
- package/less/bootstrap/buttons.less +160 -160
- package/less/bootstrap/carousel.less +269 -269
- package/less/bootstrap/close.less +34 -34
- package/less/bootstrap/code.less +69 -69
- package/less/bootstrap/component-animations.less +33 -33
- package/less/bootstrap/forms.less +574 -574
- package/less/bootstrap/glyphicons.less +305 -305
- package/less/bootstrap/grid.less +84 -84
- package/less/bootstrap/input-groups.less +166 -166
- package/less/bootstrap/jumbotron.less +50 -50
- package/less/bootstrap/labels.less +64 -64
- package/less/bootstrap/list-group.less +124 -124
- package/less/bootstrap/media.less +61 -61
- package/less/bootstrap/mixins/alerts.less +14 -14
- package/less/bootstrap/mixins/background-variant.less +8 -8
- package/less/bootstrap/mixins/border-radius.less +18 -18
- package/less/bootstrap/mixins/buttons.less +52 -52
- package/less/bootstrap/mixins/center-block.less +7 -7
- package/less/bootstrap/mixins/clearfix.less +22 -22
- package/less/bootstrap/mixins/forms.less +85 -85
- package/less/bootstrap/mixins/gradients.less +59 -59
- package/less/bootstrap/mixins/grid-framework.less +91 -91
- package/less/bootstrap/mixins/grid.less +122 -122
- package/less/bootstrap/mixins/hide-text.less +21 -21
- package/less/bootstrap/mixins/image.less +33 -33
- package/less/bootstrap/mixins/labels.less +12 -12
- package/less/bootstrap/mixins/list-group.less +29 -29
- package/less/bootstrap/mixins/nav-divider.less +10 -10
- package/less/bootstrap/mixins/nav-vertical-align.less +9 -9
- package/less/bootstrap/mixins/opacity.less +8 -8
- package/less/bootstrap/mixins/pagination.less +23 -23
- package/less/bootstrap/mixins/panels.less +24 -24
- package/less/bootstrap/mixins/progress-bar.less +10 -10
- package/less/bootstrap/mixins/reset-filter.less +8 -8
- package/less/bootstrap/mixins/resize.less +6 -6
- package/less/bootstrap/mixins/responsive-visibility.less +15 -15
- package/less/bootstrap/mixins/size.less +10 -10
- package/less/bootstrap/mixins/tab-focus.less +9 -9
- package/less/bootstrap/mixins/table-row.less +28 -28
- package/less/bootstrap/mixins/text-emphasis.less +8 -8
- package/less/bootstrap/mixins/text-overflow.less +8 -8
- package/less/bootstrap/mixins/vendor-prefixes.less +227 -227
- package/less/bootstrap/mixins.less +39 -39
- package/less/bootstrap/modals.less +150 -150
- package/less/bootstrap/navbar.less +660 -660
- package/less/bootstrap/navs.less +242 -242
- package/less/bootstrap/normalize.less +427 -427
- package/less/bootstrap/pager.less +54 -54
- package/less/bootstrap/pagination.less +88 -88
- package/less/bootstrap/panels.less +265 -265
- package/less/bootstrap/popovers.less +135 -135
- package/less/bootstrap/print.less +107 -107
- package/less/bootstrap/progress-bars.less +87 -87
- package/less/bootstrap/responsive-embed.less +35 -35
- package/less/bootstrap/responsive-utilities.less +194 -194
- package/less/bootstrap/scaffolding.less +161 -161
- package/less/bootstrap/tables.less +234 -234
- package/less/bootstrap/theme.less +273 -273
- package/less/bootstrap/thumbnails.less +36 -36
- package/less/bootstrap/tooltip.less +102 -102
- package/less/bootstrap/type.less +302 -302
- package/less/bootstrap/utilities.less +55 -55
- package/less/bootstrap/variables.less +861 -861
- package/less/bootstrap/wells.less +29 -29
- package/less/bootstrap-flipped.css +1550 -1550
- package/less/categories.less +235 -235
- package/less/flags.less +42 -42
- package/less/footer.less +17 -17
- package/less/ip-blacklist.less +6 -6
- package/less/keyframes.less +152 -152
- package/less/modules/composer-default.less +16 -16
- package/less/modules/cookie-consent.less +12 -12
- package/less/modules/fab.less +32 -32
- package/less/modules/morph.less +268 -268
- package/less/modules/necro-post.less +8 -8
- package/less/modules/nprogress.less +80 -80
- package/less/modules/usercard.less +64 -64
- package/less/noscript.less +82 -82
- package/less/notifications.less +37 -37
- package/less/outgoing.less +8 -8
- package/less/persona.less +47 -47
- package/less/post-queue.less +19 -19
- package/less/register.less +75 -75
- package/less/rtl.less +132 -132
- package/less/tags.less +36 -36
- package/less/users.less +72 -72
- package/less/variables.less +6 -6
- package/package.json +1 -1
- package/public/.eslintrc +2 -2
- package/public/modules/autohidingnavbar.js +220 -220
- package/templates/account/blocks.tpl +34 -34
- package/templates/account/categories.tpl +28 -28
- package/templates/account/consent.tpl +68 -68
- package/templates/account/edit/email.tpl +30 -30
- package/templates/account/edit/password.tpl +31 -31
- package/templates/account/edit/username.tpl +29 -29
- package/templates/account/followers.tpl +16 -16
- package/templates/account/following.tpl +16 -16
- package/templates/account/groups.tpl +16 -16
- package/templates/account/info.tpl +230 -187
- package/templates/account/posts.tpl +18 -18
- package/templates/account/sessions.tpl +31 -31
- package/templates/account/topics.tpl +30 -30
- package/templates/account/uploads.tpl +42 -42
- package/templates/admin/plugins/persona.tpl +28 -28
- package/templates/alert.tpl +15 -15
- package/templates/categories.tpl +31 -31
- package/templates/category.tpl +62 -62
- package/templates/chats.tpl +16 -16
- package/templates/flags/detail.tpl +8 -1
- package/templates/flags/list.tpl +71 -71
- package/templates/groups/details.tpl +272 -272
- package/templates/groups/list.tpl +46 -46
- package/templates/groups/members.tpl +8 -8
- package/templates/ip-blacklist.tpl +55 -55
- package/templates/modules/usercard.tpl +36 -36
- package/templates/notifications.tpl +64 -64
- package/templates/partials/acceptTos.tpl +8 -8
- package/templates/partials/account/category-item.tpl +22 -22
- package/templates/partials/account/header.tpl +46 -46
- package/templates/partials/breadcrumbs.tpl +18 -18
- package/templates/partials/buttons/newTopic.tpl +15 -15
- package/templates/partials/categories/item.tpl +46 -46
- package/templates/partials/categories/lastpost.tpl +26 -26
- package/templates/partials/categories/link.tpl +10 -10
- package/templates/partials/category/sort.tpl +14 -14
- package/templates/partials/category/subcategory.tpl +17 -17
- package/templates/partials/category/tags.tpl +4 -4
- package/templates/partials/category/tools.tpl +80 -80
- package/templates/partials/category/watch.tpl +22 -22
- package/templates/partials/category-filter-content.tpl +16 -16
- package/templates/partials/category-filter-right.tpl +2 -2
- package/templates/partials/category-filter.tpl +2 -2
- package/templates/partials/category-selector-right.tpl +2 -2
- package/templates/partials/category-selector.tpl +2 -2
- package/templates/partials/change_owner_modal.tpl +22 -22
- package/templates/partials/chats/messages.tpl +6 -6
- package/templates/partials/chats-menu.tpl +40 -40
- package/templates/partials/cookie-consent.tpl +4 -4
- package/templates/partials/delete_posts_modal.tpl +18 -18
- package/templates/partials/fork_thread_modal.tpl +21 -21
- package/templates/partials/groups/list.tpl +20 -20
- package/templates/partials/groups/memberlist.tpl +39 -39
- package/templates/partials/merge_topics_modal.tpl +57 -57
- package/templates/partials/modals/flag_modal.tpl +44 -44
- package/templates/partials/modals/manage_room.tpl +10 -10
- package/templates/partials/modals/manage_room_users.tpl +6 -6
- package/templates/partials/modals/post_history.tpl +36 -36
- package/templates/partials/modals/rename_room.tpl +3 -3
- package/templates/partials/modals/votes_modal.tpl +10 -10
- package/templates/partials/move_thread_modal.tpl +16 -16
- package/templates/partials/paginator.tpl +44 -44
- package/templates/partials/post_bar.tpl +20 -20
- package/templates/partials/posts_list.tpl +7 -7
- package/templates/partials/quick-search-results.tpl +30 -30
- package/templates/partials/slideout-menu.tpl +4 -4
- package/templates/partials/tags_list.tpl +4 -4
- package/templates/partials/thread_tools.tpl +7 -7
- package/templates/partials/topic/badge.tpl +4 -4
- package/templates/partials/topic/browsing-users.tpl +1 -0
- package/templates/partials/topic/deleted-message.tpl +10 -10
- package/templates/partials/topic/navigation-post.tpl +11 -11
- package/templates/partials/topic/necro-post.tpl +2 -2
- package/templates/partials/topic/post.tpl +105 -105
- package/templates/partials/topic/quickreply.tpl +25 -25
- package/templates/partials/topic/reply-button.tpl +26 -26
- package/templates/partials/topic/selection-tooltip.tpl +2 -2
- package/templates/partials/topic/sort.tpl +9 -9
- package/templates/partials/topic/stats.tpl +11 -11
- package/templates/partials/topic/tags.tpl +4 -4
- package/templates/partials/topic/watch.tpl +20 -20
- package/templates/partials/users_list_menu.tpl +10 -10
- package/templates/popular.tpl +61 -61
- package/templates/recent.tpl +51 -51
- package/templates/reset.tpl +23 -23
- package/templates/reset_code.tpl +41 -41
- package/templates/tag.tpl +35 -35
- package/templates/tags.tpl +30 -30
- package/templates/top.tpl +61 -61
- package/templates/tos.tpl +4 -4
- package/templates/unread.tpl +49 -49
- package/templates/users.tpl +47 -47
- package/theme.json +6 -6
- package/theme.less +1 -1
package/less/bootstrap/navs.less
CHANGED
|
@@ -1,242 +1,242 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Navs
|
|
3
|
-
// --------------------------------------------------
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// Base class
|
|
7
|
-
// --------------------------------------------------
|
|
8
|
-
|
|
9
|
-
.nav {
|
|
10
|
-
margin-bottom: 0;
|
|
11
|
-
padding-left: 0; // Override default ul/ol
|
|
12
|
-
list-style: none;
|
|
13
|
-
&:extend(.clearfix all);
|
|
14
|
-
|
|
15
|
-
> li {
|
|
16
|
-
position: relative;
|
|
17
|
-
display: block;
|
|
18
|
-
|
|
19
|
-
> a {
|
|
20
|
-
position: relative;
|
|
21
|
-
display: block;
|
|
22
|
-
padding: @nav-link-padding;
|
|
23
|
-
&:hover,
|
|
24
|
-
&:focus {
|
|
25
|
-
text-decoration: none;
|
|
26
|
-
background-color: @nav-link-hover-bg;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Disabled state sets text to gray and nukes hover/tab effects
|
|
31
|
-
&.disabled > a {
|
|
32
|
-
color: @nav-disabled-link-color;
|
|
33
|
-
|
|
34
|
-
&:hover,
|
|
35
|
-
&:focus {
|
|
36
|
-
color: @nav-disabled-link-hover-color;
|
|
37
|
-
text-decoration: none;
|
|
38
|
-
background-color: transparent;
|
|
39
|
-
cursor: @cursor-disabled;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Open dropdowns
|
|
45
|
-
.open > a {
|
|
46
|
-
&,
|
|
47
|
-
&:hover,
|
|
48
|
-
&:focus {
|
|
49
|
-
background-color: @nav-link-hover-bg;
|
|
50
|
-
border-color: @link-color;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Nav dividers (deprecated with v3.0.1)
|
|
55
|
-
//
|
|
56
|
-
// This should have been removed in v3 with the dropping of `.nav-list`, but
|
|
57
|
-
// we missed it. We don't currently support this anywhere, but in the interest
|
|
58
|
-
// of maintaining backward compatibility in case you use it, it's deprecated.
|
|
59
|
-
.nav-divider {
|
|
60
|
-
.nav-divider();
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// Prevent IE8 from misplacing imgs
|
|
64
|
-
//
|
|
65
|
-
// See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
|
|
66
|
-
> li > a > img {
|
|
67
|
-
max-width: none;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
// Tabs
|
|
73
|
-
// -------------------------
|
|
74
|
-
|
|
75
|
-
// Give the tabs something to sit on
|
|
76
|
-
.nav-tabs {
|
|
77
|
-
border-bottom: 1px solid @nav-tabs-border-color;
|
|
78
|
-
> li {
|
|
79
|
-
float: left;
|
|
80
|
-
// Make the list-items overlay the bottom border
|
|
81
|
-
margin-bottom: -1px;
|
|
82
|
-
|
|
83
|
-
// Actual tabs (as links)
|
|
84
|
-
> a {
|
|
85
|
-
margin-right: 2px;
|
|
86
|
-
line-height: @line-height-base;
|
|
87
|
-
border: 1px solid transparent;
|
|
88
|
-
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
89
|
-
&:hover {
|
|
90
|
-
border-color: @nav-tabs-link-hover-border-color @nav-tabs-link-hover-border-color @nav-tabs-border-color;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Active state, and its :hover to override normal :hover
|
|
95
|
-
&.active > a {
|
|
96
|
-
&,
|
|
97
|
-
&:hover,
|
|
98
|
-
&:focus {
|
|
99
|
-
color: @nav-tabs-active-link-hover-color;
|
|
100
|
-
background-color: @nav-tabs-active-link-hover-bg;
|
|
101
|
-
border: 1px solid @nav-tabs-active-link-hover-border-color;
|
|
102
|
-
border-bottom-color: transparent;
|
|
103
|
-
cursor: default;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
// pulling this in mainly for less shorthand
|
|
108
|
-
&.nav-justified {
|
|
109
|
-
.nav-justified();
|
|
110
|
-
.nav-tabs-justified();
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
// Pills
|
|
116
|
-
// -------------------------
|
|
117
|
-
.nav-pills {
|
|
118
|
-
> li {
|
|
119
|
-
float: left;
|
|
120
|
-
|
|
121
|
-
// Links rendered as pills
|
|
122
|
-
> a {
|
|
123
|
-
border-radius: @nav-pills-border-radius;
|
|
124
|
-
}
|
|
125
|
-
+ li {
|
|
126
|
-
margin-left: 2px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// Active state
|
|
130
|
-
&.active > a {
|
|
131
|
-
&,
|
|
132
|
-
&:hover,
|
|
133
|
-
&:focus {
|
|
134
|
-
color: @nav-pills-active-link-hover-color;
|
|
135
|
-
background-color: @nav-pills-active-link-hover-bg;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
// Stacked pills
|
|
143
|
-
.nav-stacked {
|
|
144
|
-
> li {
|
|
145
|
-
float: none;
|
|
146
|
-
+ li {
|
|
147
|
-
margin-top: 2px;
|
|
148
|
-
margin-left: 0; // no need for this gap between nav items
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
// Nav variations
|
|
155
|
-
// --------------------------------------------------
|
|
156
|
-
|
|
157
|
-
// Justified nav links
|
|
158
|
-
// -------------------------
|
|
159
|
-
|
|
160
|
-
.nav-justified {
|
|
161
|
-
width: 100%;
|
|
162
|
-
|
|
163
|
-
> li {
|
|
164
|
-
float: none;
|
|
165
|
-
> a {
|
|
166
|
-
text-align: center;
|
|
167
|
-
margin-bottom: 5px;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
> .dropdown .dropdown-menu {
|
|
172
|
-
top: auto;
|
|
173
|
-
left: auto;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
@media (min-width: @screen-sm-min) {
|
|
177
|
-
> li {
|
|
178
|
-
display: table-cell;
|
|
179
|
-
width: 1%;
|
|
180
|
-
> a {
|
|
181
|
-
margin-bottom: 0;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
// Move borders to anchors instead of bottom of list
|
|
188
|
-
//
|
|
189
|
-
// Mixin for adding on top the shared `.nav-justified` styles for our tabs
|
|
190
|
-
.nav-tabs-justified {
|
|
191
|
-
border-bottom: 0;
|
|
192
|
-
|
|
193
|
-
> li > a {
|
|
194
|
-
// Override margin from .nav-tabs
|
|
195
|
-
margin-right: 0;
|
|
196
|
-
border-radius: @border-radius-base;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
> .active > a,
|
|
200
|
-
> .active > a:hover,
|
|
201
|
-
> .active > a:focus {
|
|
202
|
-
border: 1px solid @nav-tabs-justified-link-border-color;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
@media (min-width: @screen-sm-min) {
|
|
206
|
-
> li > a {
|
|
207
|
-
border-bottom: 1px solid @nav-tabs-justified-link-border-color;
|
|
208
|
-
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
209
|
-
}
|
|
210
|
-
> .active > a,
|
|
211
|
-
> .active > a:hover,
|
|
212
|
-
> .active > a:focus {
|
|
213
|
-
border-bottom-color: @nav-tabs-justified-active-link-border-color;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
// Tabbable tabs
|
|
220
|
-
// -------------------------
|
|
221
|
-
|
|
222
|
-
// Hide tabbable panes to start, show them when `.active`
|
|
223
|
-
.tab-content {
|
|
224
|
-
> .tab-pane {
|
|
225
|
-
display: none;
|
|
226
|
-
}
|
|
227
|
-
> .active {
|
|
228
|
-
display: block;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
// Dropdowns
|
|
234
|
-
// -------------------------
|
|
235
|
-
|
|
236
|
-
// Specific dropdowns
|
|
237
|
-
.nav-tabs .dropdown-menu {
|
|
238
|
-
// make dropdown border overlap tab border
|
|
239
|
-
margin-top: -1px;
|
|
240
|
-
// Remove the top rounded corners here since there is a hard edge above the menu
|
|
241
|
-
.border-top-radius(0);
|
|
242
|
-
}
|
|
1
|
+
//
|
|
2
|
+
// Navs
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// Base class
|
|
7
|
+
// --------------------------------------------------
|
|
8
|
+
|
|
9
|
+
.nav {
|
|
10
|
+
margin-bottom: 0;
|
|
11
|
+
padding-left: 0; // Override default ul/ol
|
|
12
|
+
list-style: none;
|
|
13
|
+
&:extend(.clearfix all);
|
|
14
|
+
|
|
15
|
+
> li {
|
|
16
|
+
position: relative;
|
|
17
|
+
display: block;
|
|
18
|
+
|
|
19
|
+
> a {
|
|
20
|
+
position: relative;
|
|
21
|
+
display: block;
|
|
22
|
+
padding: @nav-link-padding;
|
|
23
|
+
&:hover,
|
|
24
|
+
&:focus {
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
background-color: @nav-link-hover-bg;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Disabled state sets text to gray and nukes hover/tab effects
|
|
31
|
+
&.disabled > a {
|
|
32
|
+
color: @nav-disabled-link-color;
|
|
33
|
+
|
|
34
|
+
&:hover,
|
|
35
|
+
&:focus {
|
|
36
|
+
color: @nav-disabled-link-hover-color;
|
|
37
|
+
text-decoration: none;
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
cursor: @cursor-disabled;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Open dropdowns
|
|
45
|
+
.open > a {
|
|
46
|
+
&,
|
|
47
|
+
&:hover,
|
|
48
|
+
&:focus {
|
|
49
|
+
background-color: @nav-link-hover-bg;
|
|
50
|
+
border-color: @link-color;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Nav dividers (deprecated with v3.0.1)
|
|
55
|
+
//
|
|
56
|
+
// This should have been removed in v3 with the dropping of `.nav-list`, but
|
|
57
|
+
// we missed it. We don't currently support this anywhere, but in the interest
|
|
58
|
+
// of maintaining backward compatibility in case you use it, it's deprecated.
|
|
59
|
+
.nav-divider {
|
|
60
|
+
.nav-divider();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Prevent IE8 from misplacing imgs
|
|
64
|
+
//
|
|
65
|
+
// See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
|
|
66
|
+
> li > a > img {
|
|
67
|
+
max-width: none;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
// Tabs
|
|
73
|
+
// -------------------------
|
|
74
|
+
|
|
75
|
+
// Give the tabs something to sit on
|
|
76
|
+
.nav-tabs {
|
|
77
|
+
border-bottom: 1px solid @nav-tabs-border-color;
|
|
78
|
+
> li {
|
|
79
|
+
float: left;
|
|
80
|
+
// Make the list-items overlay the bottom border
|
|
81
|
+
margin-bottom: -1px;
|
|
82
|
+
|
|
83
|
+
// Actual tabs (as links)
|
|
84
|
+
> a {
|
|
85
|
+
margin-right: 2px;
|
|
86
|
+
line-height: @line-height-base;
|
|
87
|
+
border: 1px solid transparent;
|
|
88
|
+
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
89
|
+
&:hover {
|
|
90
|
+
border-color: @nav-tabs-link-hover-border-color @nav-tabs-link-hover-border-color @nav-tabs-border-color;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Active state, and its :hover to override normal :hover
|
|
95
|
+
&.active > a {
|
|
96
|
+
&,
|
|
97
|
+
&:hover,
|
|
98
|
+
&:focus {
|
|
99
|
+
color: @nav-tabs-active-link-hover-color;
|
|
100
|
+
background-color: @nav-tabs-active-link-hover-bg;
|
|
101
|
+
border: 1px solid @nav-tabs-active-link-hover-border-color;
|
|
102
|
+
border-bottom-color: transparent;
|
|
103
|
+
cursor: default;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
// pulling this in mainly for less shorthand
|
|
108
|
+
&.nav-justified {
|
|
109
|
+
.nav-justified();
|
|
110
|
+
.nav-tabs-justified();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
// Pills
|
|
116
|
+
// -------------------------
|
|
117
|
+
.nav-pills {
|
|
118
|
+
> li {
|
|
119
|
+
float: left;
|
|
120
|
+
|
|
121
|
+
// Links rendered as pills
|
|
122
|
+
> a {
|
|
123
|
+
border-radius: @nav-pills-border-radius;
|
|
124
|
+
}
|
|
125
|
+
+ li {
|
|
126
|
+
margin-left: 2px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Active state
|
|
130
|
+
&.active > a {
|
|
131
|
+
&,
|
|
132
|
+
&:hover,
|
|
133
|
+
&:focus {
|
|
134
|
+
color: @nav-pills-active-link-hover-color;
|
|
135
|
+
background-color: @nav-pills-active-link-hover-bg;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
// Stacked pills
|
|
143
|
+
.nav-stacked {
|
|
144
|
+
> li {
|
|
145
|
+
float: none;
|
|
146
|
+
+ li {
|
|
147
|
+
margin-top: 2px;
|
|
148
|
+
margin-left: 0; // no need for this gap between nav items
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
// Nav variations
|
|
155
|
+
// --------------------------------------------------
|
|
156
|
+
|
|
157
|
+
// Justified nav links
|
|
158
|
+
// -------------------------
|
|
159
|
+
|
|
160
|
+
.nav-justified {
|
|
161
|
+
width: 100%;
|
|
162
|
+
|
|
163
|
+
> li {
|
|
164
|
+
float: none;
|
|
165
|
+
> a {
|
|
166
|
+
text-align: center;
|
|
167
|
+
margin-bottom: 5px;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
> .dropdown .dropdown-menu {
|
|
172
|
+
top: auto;
|
|
173
|
+
left: auto;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@media (min-width: @screen-sm-min) {
|
|
177
|
+
> li {
|
|
178
|
+
display: table-cell;
|
|
179
|
+
width: 1%;
|
|
180
|
+
> a {
|
|
181
|
+
margin-bottom: 0;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// Move borders to anchors instead of bottom of list
|
|
188
|
+
//
|
|
189
|
+
// Mixin for adding on top the shared `.nav-justified` styles for our tabs
|
|
190
|
+
.nav-tabs-justified {
|
|
191
|
+
border-bottom: 0;
|
|
192
|
+
|
|
193
|
+
> li > a {
|
|
194
|
+
// Override margin from .nav-tabs
|
|
195
|
+
margin-right: 0;
|
|
196
|
+
border-radius: @border-radius-base;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
> .active > a,
|
|
200
|
+
> .active > a:hover,
|
|
201
|
+
> .active > a:focus {
|
|
202
|
+
border: 1px solid @nav-tabs-justified-link-border-color;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@media (min-width: @screen-sm-min) {
|
|
206
|
+
> li > a {
|
|
207
|
+
border-bottom: 1px solid @nav-tabs-justified-link-border-color;
|
|
208
|
+
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
209
|
+
}
|
|
210
|
+
> .active > a,
|
|
211
|
+
> .active > a:hover,
|
|
212
|
+
> .active > a:focus {
|
|
213
|
+
border-bottom-color: @nav-tabs-justified-active-link-border-color;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
// Tabbable tabs
|
|
220
|
+
// -------------------------
|
|
221
|
+
|
|
222
|
+
// Hide tabbable panes to start, show them when `.active`
|
|
223
|
+
.tab-content {
|
|
224
|
+
> .tab-pane {
|
|
225
|
+
display: none;
|
|
226
|
+
}
|
|
227
|
+
> .active {
|
|
228
|
+
display: block;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
// Dropdowns
|
|
234
|
+
// -------------------------
|
|
235
|
+
|
|
236
|
+
// Specific dropdowns
|
|
237
|
+
.nav-tabs .dropdown-menu {
|
|
238
|
+
// make dropdown border overlap tab border
|
|
239
|
+
margin-top: -1px;
|
|
240
|
+
// Remove the top rounded corners here since there is a hard edge above the menu
|
|
241
|
+
.border-top-radius(0);
|
|
242
|
+
}
|