nodebb-theme-persona 12.1.6 → 12.1.7

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.
Files changed (247) hide show
  1. package/README.md +14 -14
  2. package/{scss/account.scss → less/account.less} +97 -13
  3. package/less/bootstrap/.csscomb.json +297 -0
  4. package/less/bootstrap/.csslintrc +19 -0
  5. package/less/bootstrap/alerts.less +73 -0
  6. package/less/bootstrap/badges.less +66 -0
  7. package/less/bootstrap/bootstrap.less +50 -0
  8. package/less/bootstrap/breadcrumbs.less +26 -0
  9. package/less/bootstrap/button-groups.less +243 -0
  10. package/less/bootstrap/buttons.less +160 -0
  11. package/less/bootstrap/carousel.less +269 -0
  12. package/less/bootstrap/close.less +34 -0
  13. package/less/bootstrap/code.less +69 -0
  14. package/less/bootstrap/component-animations.less +33 -0
  15. package/less/bootstrap/dropdowns.less +214 -0
  16. package/less/bootstrap/forms.less +574 -0
  17. package/less/bootstrap/glyphicons.less +305 -0
  18. package/less/bootstrap/grid.less +84 -0
  19. package/less/bootstrap/input-groups.less +166 -0
  20. package/less/bootstrap/jumbotron.less +50 -0
  21. package/less/bootstrap/labels.less +64 -0
  22. package/less/bootstrap/list-group.less +124 -0
  23. package/less/bootstrap/media.less +61 -0
  24. package/less/bootstrap/mixins/alerts.less +14 -0
  25. package/less/bootstrap/mixins/background-variant.less +8 -0
  26. package/less/bootstrap/mixins/border-radius.less +18 -0
  27. package/less/bootstrap/mixins/buttons.less +52 -0
  28. package/less/bootstrap/mixins/center-block.less +7 -0
  29. package/less/bootstrap/mixins/clearfix.less +22 -0
  30. package/less/bootstrap/mixins/forms.less +85 -0
  31. package/less/bootstrap/mixins/gradients.less +59 -0
  32. package/less/bootstrap/mixins/grid-framework.less +91 -0
  33. package/less/bootstrap/mixins/grid.less +122 -0
  34. package/less/bootstrap/mixins/hide-text.less +21 -0
  35. package/less/bootstrap/mixins/image.less +33 -0
  36. package/less/bootstrap/mixins/labels.less +12 -0
  37. package/less/bootstrap/mixins/list-group.less +29 -0
  38. package/less/bootstrap/mixins/nav-divider.less +10 -0
  39. package/less/bootstrap/mixins/nav-vertical-align.less +9 -0
  40. package/less/bootstrap/mixins/opacity.less +8 -0
  41. package/less/bootstrap/mixins/pagination.less +23 -0
  42. package/less/bootstrap/mixins/panels.less +24 -0
  43. package/less/bootstrap/mixins/progress-bar.less +10 -0
  44. package/less/bootstrap/mixins/reset-filter.less +8 -0
  45. package/less/bootstrap/mixins/resize.less +6 -0
  46. package/less/bootstrap/mixins/responsive-visibility.less +15 -0
  47. package/less/bootstrap/mixins/size.less +10 -0
  48. package/less/bootstrap/mixins/tab-focus.less +9 -0
  49. package/less/bootstrap/mixins/table-row.less +28 -0
  50. package/less/bootstrap/mixins/text-emphasis.less +8 -0
  51. package/less/bootstrap/mixins/text-overflow.less +8 -0
  52. package/less/bootstrap/mixins/vendor-prefixes.less +227 -0
  53. package/less/bootstrap/mixins.less +39 -0
  54. package/less/bootstrap/modals.less +150 -0
  55. package/less/bootstrap/navbar.less +660 -0
  56. package/less/bootstrap/navs.less +242 -0
  57. package/less/bootstrap/normalize.less +427 -0
  58. package/less/bootstrap/pager.less +54 -0
  59. package/less/bootstrap/pagination.less +88 -0
  60. package/less/bootstrap/panels.less +265 -0
  61. package/less/bootstrap/popovers.less +135 -0
  62. package/less/bootstrap/print.less +107 -0
  63. package/less/bootstrap/progress-bars.less +87 -0
  64. package/less/bootstrap/responsive-embed.less +35 -0
  65. package/less/bootstrap/responsive-utilities.less +194 -0
  66. package/less/bootstrap/scaffolding.less +162 -0
  67. package/less/bootstrap/tables.less +234 -0
  68. package/less/bootstrap/theme.less +273 -0
  69. package/less/bootstrap/thumbnails.less +36 -0
  70. package/less/bootstrap/tooltip.less +102 -0
  71. package/less/bootstrap/type.less +302 -0
  72. package/less/bootstrap/utilities.less +55 -0
  73. package/less/bootstrap/variables.less +861 -0
  74. package/less/bootstrap/wells.less +29 -0
  75. package/less/bootstrap-flipped.css +1550 -0
  76. package/{scss/categories.scss → less/categories.less} +40 -10
  77. package/{scss/category.scss → less/category.less} +75 -26
  78. package/{scss/chats.scss → less/chats.less} +88 -35
  79. package/{scss/flags.scss → less/flags.less} +3 -3
  80. package/{scss/footer.scss → less/footer.less} +1 -0
  81. package/{scss/groups.scss → less/groups.less} +38 -14
  82. package/{scss/header.scss → less/header.less} +139 -63
  83. package/{scss/helpers.scss → less/helpers.less} +0 -0
  84. package/less/ip-blacklist.less +7 -0
  85. package/{scss/keyframes.scss → less/keyframes.less} +0 -0
  86. package/{scss/mixins.scss → less/mixins.less} +59 -17
  87. package/{scss/mobile.scss → less/mobile.less} +18 -13
  88. package/{scss/modules/alerts.scss → less/modules/alerts.less} +21 -21
  89. package/less/modules/bottom-sheet.less +60 -0
  90. package/{scss/modules/composer-default.scss → less/modules/composer-default.less} +2 -2
  91. package/{scss/modules/cookie-consent.scss → less/modules/cookie-consent.less} +1 -1
  92. package/{scss/modules/fab.scss → less/modules/fab.less} +2 -2
  93. package/{scss/modules/morph.scss → less/modules/morph.less} +1 -1
  94. package/{scss/modules/necro-post.scss → less/modules/necro-post.less} +0 -0
  95. package/less/modules/nprogress.less +80 -0
  96. package/{scss/modules/taskbar.scss → less/modules/taskbar.less} +10 -11
  97. package/{scss/modules/usercard.scss → less/modules/usercard.less} +0 -0
  98. package/{scss/noscript.scss → less/noscript.less} +7 -5
  99. package/less/notifications.less +38 -0
  100. package/{scss/outgoing.scss → less/outgoing.less} +0 -0
  101. package/{scss/persona.scss → less/persona.less} +13 -1
  102. package/less/post-queue.less +19 -0
  103. package/{scss/posts_list.scss → less/posts_list.less} +14 -11
  104. package/{scss/register.scss → less/register.less} +7 -2
  105. package/less/rtl.less +132 -0
  106. package/less/search.less +96 -0
  107. package/{scss/style.scss → less/style.less} +47 -23
  108. package/less/tags.less +37 -0
  109. package/{scss/topic.scss → less/topic.less} +90 -53
  110. package/less/topics_list.less +16 -0
  111. package/less/users.less +73 -0
  112. package/{scss/variables.scss → less/variables.less} +3 -3
  113. package/package.json +2 -2
  114. package/public/persona.js +22 -11
  115. package/templates/account/blocks.tpl +26 -24
  116. package/templates/account/categories.tpl +6 -6
  117. package/templates/account/consent.tpl +10 -10
  118. package/templates/account/edit/password.tpl +10 -8
  119. package/templates/account/edit/username.tpl +10 -6
  120. package/templates/account/edit.tpl +23 -23
  121. package/templates/account/followers.tpl +3 -3
  122. package/templates/account/following.tpl +3 -3
  123. package/templates/account/groups.tpl +2 -2
  124. package/templates/account/info.tpl +72 -67
  125. package/templates/account/posts.tpl +1 -1
  126. package/templates/account/profile.tpl +18 -20
  127. package/templates/account/sessions.tpl +3 -3
  128. package/templates/account/settings.tpl +81 -93
  129. package/templates/account/topics.tpl +5 -5
  130. package/templates/account/uploads.tpl +2 -2
  131. package/templates/admin/plugins/persona.tpl +3 -3
  132. package/templates/alert.tpl +15 -0
  133. package/templates/category.tpl +14 -15
  134. package/templates/chat.tpl +9 -16
  135. package/templates/chats.tpl +3 -5
  136. package/templates/flags/detail.tpl +80 -86
  137. package/templates/flags/list.tpl +4 -4
  138. package/templates/footer.tpl +1 -1
  139. package/templates/groups/details.tpl +218 -23
  140. package/templates/groups/list.tpl +9 -11
  141. package/templates/groups/members.tpl +4 -1
  142. package/templates/header.tpl +4 -10
  143. package/templates/ip-blacklist.tpl +20 -22
  144. package/templates/login.tpl +14 -17
  145. package/templates/modules/taskbar.tpl +1 -1
  146. package/templates/modules/usercard.tpl +2 -2
  147. package/templates/notifications.tpl +38 -40
  148. package/templates/partials/acceptTos.tpl +8 -8
  149. package/templates/partials/account/category-item.tpl +5 -6
  150. package/templates/partials/account/header.tpl +2 -2
  151. package/templates/partials/account/menu.tpl +37 -37
  152. package/templates/partials/breadcrumbs.tpl +1 -1
  153. package/templates/partials/buttons/newTopic.tpl +3 -10
  154. package/templates/partials/categories/item.tpl +10 -24
  155. package/templates/partials/categories/lastpost.tpl +3 -3
  156. package/templates/partials/categories/link.tpl +10 -10
  157. package/templates/partials/category/sort.tpl +7 -7
  158. package/templates/partials/category/subcategory.tpl +3 -3
  159. package/templates/partials/category/tags.tpl +5 -3
  160. package/templates/partials/category/tools.tpl +16 -16
  161. package/templates/partials/category/watch.tpl +10 -8
  162. package/templates/partials/category-filter-content.tpl +5 -17
  163. package/templates/partials/category-filter-right.tpl +1 -1
  164. package/templates/partials/category-selector-content.tpl +4 -17
  165. package/templates/partials/category-selector-right.tpl +1 -1
  166. package/templates/partials/change_owner_modal.tpl +22 -0
  167. package/templates/partials/chats/message-window.tpl +8 -10
  168. package/templates/partials/chats/message.tpl +11 -11
  169. package/templates/partials/chats/options.tpl +8 -8
  170. package/templates/partials/chats/recent_room.tpl +1 -1
  171. package/templates/partials/chats/system-message.tpl +1 -1
  172. package/templates/partials/chats/user.tpl +1 -1
  173. package/templates/partials/chats-menu.tpl +11 -11
  174. package/templates/partials/cookie-consent.tpl +1 -1
  175. package/templates/partials/delete_posts_modal.tpl +19 -0
  176. package/templates/partials/flags/filters.tpl +32 -34
  177. package/templates/partials/fork_thread_modal.tpl +22 -0
  178. package/templates/partials/groups/list.tpl +6 -6
  179. package/templates/partials/groups/memberlist.tpl +10 -11
  180. package/templates/partials/menu.tpl +156 -149
  181. package/templates/partials/merge_topics_modal.tpl +58 -0
  182. package/templates/partials/modals/change_picture_modal.tpl +73 -0
  183. package/templates/partials/modals/flag_modal.tpl +45 -0
  184. package/templates/partials/modals/manage_room.tpl +11 -0
  185. package/templates/partials/modals/manage_room_users.tpl +7 -0
  186. package/templates/partials/modals/post_history.tpl +36 -0
  187. package/templates/partials/modals/rename_room.tpl +4 -0
  188. package/templates/partials/modals/upload_file_modal.tpl +44 -0
  189. package/templates/partials/modals/upload_picture_from_url_modal.tpl +17 -0
  190. package/templates/partials/modals/votes_modal.tpl +10 -0
  191. package/templates/partials/move_thread_modal.tpl +17 -0
  192. package/templates/partials/notifications_list.tpl +2 -2
  193. package/templates/partials/paginator.tpl +21 -21
  194. package/templates/partials/post_bar.tpl +4 -4
  195. package/templates/partials/posts_list.tpl +1 -1
  196. package/templates/partials/posts_list_item.tpl +2 -2
  197. package/templates/partials/quick-search-results.tpl +11 -14
  198. package/templates/partials/slideout-menu.tpl +1 -1
  199. package/templates/partials/tags_list.tpl +3 -3
  200. package/templates/partials/thread_tools.tpl +4 -4
  201. package/templates/partials/topic/badge.tpl +5 -0
  202. package/templates/partials/topic/deleted-message.tpl +2 -2
  203. package/templates/partials/topic/event.tpl +2 -2
  204. package/templates/partials/topic/navigation-post.tpl +3 -3
  205. package/templates/partials/topic/navigator.tpl +7 -7
  206. package/templates/partials/topic/necro-post.tpl +1 -1
  207. package/templates/partials/topic/post-menu-list.tpl +23 -26
  208. package/templates/partials/topic/post-menu.tpl +3 -3
  209. package/templates/partials/topic/post.tpl +44 -49
  210. package/templates/partials/topic/quickreply.tpl +3 -3
  211. package/templates/partials/topic/reply-button.tpl +3 -3
  212. package/templates/partials/topic/sort.tpl +5 -5
  213. package/templates/partials/topic/tags.tpl +5 -3
  214. package/templates/partials/topic/topic-menu-list.tpl +16 -18
  215. package/templates/partials/topic/watch.tpl +10 -11
  216. package/templates/partials/topics_list.tpl +25 -27
  217. package/templates/partials/users_list.tpl +10 -22
  218. package/templates/partials/users_list_menu.tpl +9 -19
  219. package/templates/popular.tpl +35 -9
  220. package/templates/post-queue.tpl +35 -42
  221. package/templates/recent.tpl +24 -10
  222. package/templates/register.tpl +17 -17
  223. package/templates/registerComplete.tpl +10 -14
  224. package/templates/reset.tpl +5 -7
  225. package/templates/reset_code.tpl +9 -9
  226. package/templates/search.tpl +87 -100
  227. package/templates/tag.tpl +10 -8
  228. package/templates/tags.tpl +3 -5
  229. package/templates/top.tpl +35 -9
  230. package/templates/topic.tpl +10 -8
  231. package/templates/tos.tpl +4 -4
  232. package/templates/unread.tpl +22 -10
  233. package/templates/users.tpl +20 -7
  234. package/theme.json +6 -6
  235. package/theme.less +2 -0
  236. package/scss/modules/nprogress.scss +0 -80
  237. package/scss/overrides.scss +0 -44
  238. package/scss/search.scss +0 -39
  239. package/scss/tags.scss +0 -11
  240. package/scss/topics_list.scss +0 -17
  241. package/templates/partials/groups/admin.tpl +0 -195
  242. package/templates/partials/groups/badge.tpl +0 -1
  243. package/templates/partials/toast.tpl +0 -14
  244. package/templates/partials/topic/tag.tpl +0 -1
  245. package/templates/partials/topic-filters.tpl +0 -12
  246. package/templates/partials/topic-terms.tpl +0 -12
  247. package/theme.scss +0 -1
@@ -0,0 +1,273 @@
1
+
2
+ //
3
+ // Load core variables and mixins
4
+ // --------------------------------------------------
5
+
6
+ @import "variables.less";
7
+ @import "mixins.less";
8
+
9
+
10
+ //
11
+ // Buttons
12
+ // --------------------------------------------------
13
+
14
+ // Common styles
15
+ .btn-default,
16
+ .btn-primary,
17
+ .btn-success,
18
+ .btn-info,
19
+ .btn-warning,
20
+ .btn-danger {
21
+ text-shadow: 0 -1px 0 rgba(0,0,0,.2);
22
+ @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);
23
+ .box-shadow(@shadow);
24
+
25
+ // Reset the shadow
26
+ &:active,
27
+ &.active {
28
+ .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
29
+ }
30
+
31
+ .badge {
32
+ text-shadow: none;
33
+ }
34
+ }
35
+
36
+ // Mixin for generating new styles
37
+ .btn-styles(@btn-color: #555) {
38
+ #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));
39
+ .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners; see https://github.com/twbs/bootstrap/issues/10620
40
+ background-repeat: repeat-x;
41
+ border-color: darken(@btn-color, 14%);
42
+
43
+ &:hover,
44
+ &:focus {
45
+ background-color: darken(@btn-color, 12%);
46
+ background-position: 0 -15px;
47
+ }
48
+
49
+ &:active,
50
+ &.active {
51
+ background-color: darken(@btn-color, 12%);
52
+ border-color: darken(@btn-color, 14%);
53
+ }
54
+
55
+ &.disabled,
56
+ &:disabled,
57
+ &[disabled] {
58
+ background-color: darken(@btn-color, 12%);
59
+ background-image: none;
60
+ }
61
+ }
62
+
63
+ // Common styles
64
+ .btn {
65
+ // Remove the gradient for the pressed/active state
66
+ &:active,
67
+ &.active {
68
+ background-image: none;
69
+ }
70
+ }
71
+
72
+ // Apply the mixin to the buttons
73
+ .btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }
74
+ .btn-primary { .btn-styles(@btn-primary-bg); }
75
+ .btn-success { .btn-styles(@btn-success-bg); }
76
+ .btn-info { .btn-styles(@btn-info-bg); }
77
+ .btn-warning { .btn-styles(@btn-warning-bg); }
78
+ .btn-danger { .btn-styles(@btn-danger-bg); }
79
+
80
+
81
+ //
82
+ // Images
83
+ // --------------------------------------------------
84
+
85
+ .thumbnail,
86
+ .img-thumbnail {
87
+ .box-shadow(0 1px 2px rgba(0,0,0,.075));
88
+ }
89
+
90
+
91
+ //
92
+ // Dropdowns
93
+ // --------------------------------------------------
94
+
95
+ .dropdown-menu > li > a:hover,
96
+ .dropdown-menu > li > a:focus {
97
+ #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));
98
+ background-color: darken(@dropdown-link-hover-bg, 5%);
99
+ }
100
+ .dropdown-menu > .active > a,
101
+ .dropdown-menu > .active > a:hover,
102
+ .dropdown-menu > .active > a:focus {
103
+ #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));
104
+ background-color: darken(@dropdown-link-active-bg, 5%);
105
+ }
106
+
107
+
108
+ //
109
+ // Navbar
110
+ // --------------------------------------------------
111
+
112
+ // Default navbar
113
+ .navbar-default {
114
+ #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg);
115
+ .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
116
+ border-radius: @navbar-border-radius;
117
+ @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
118
+ .box-shadow(@shadow);
119
+
120
+ .navbar-nav > .open > a,
121
+ .navbar-nav > .active > a {
122
+ #gradient > .vertical(@start-color: darken(@navbar-default-link-active-bg, 5%); @end-color: darken(@navbar-default-link-active-bg, 2%));
123
+ .box-shadow(inset 0 3px 9px rgba(0,0,0,.075));
124
+ }
125
+ }
126
+ .navbar-brand,
127
+ .navbar-nav > li > a {
128
+ text-shadow: 0 1px 0 rgba(255,255,255,.25);
129
+ }
130
+
131
+ // Inverted navbar
132
+ .navbar-inverse {
133
+ #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);
134
+ .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered; see https://github.com/twbs/bootstrap/issues/10257
135
+
136
+ .navbar-nav > .open > a,
137
+ .navbar-nav > .active > a {
138
+ #gradient > .vertical(@start-color: @navbar-inverse-link-active-bg; @end-color: lighten(@navbar-inverse-link-active-bg, 2.5%));
139
+ .box-shadow(inset 0 3px 9px rgba(0,0,0,.25));
140
+ }
141
+
142
+ .navbar-brand,
143
+ .navbar-nav > li > a {
144
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
145
+ }
146
+ }
147
+
148
+ // Undo rounded corners in static and fixed navbars
149
+ .navbar-static-top,
150
+ .navbar-fixed-top,
151
+ .navbar-fixed-bottom {
152
+ border-radius: 0;
153
+ }
154
+
155
+ // Fix active state of dropdown items in collapsed mode
156
+ @media (max-width: @grid-float-breakpoint-max) {
157
+ .navbar .navbar-nav .open .dropdown-menu > .active > a {
158
+ &,
159
+ &:hover,
160
+ &:focus {
161
+ color: #fff;
162
+ #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));
163
+ }
164
+ }
165
+ }
166
+
167
+
168
+ //
169
+ // Alerts
170
+ // --------------------------------------------------
171
+
172
+ // Common styles
173
+ .alert {
174
+ text-shadow: 0 1px 0 rgba(255,255,255,.2);
175
+ @shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);
176
+ .box-shadow(@shadow);
177
+ }
178
+
179
+ // Mixin for generating new styles
180
+ .alert-styles(@color) {
181
+ #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 7.5%));
182
+ border-color: darken(@color, 15%);
183
+ }
184
+
185
+ // Apply the mixin to the alerts
186
+ .alert-success { .alert-styles(@alert-success-bg); }
187
+ .alert-info { .alert-styles(@alert-info-bg); }
188
+ .alert-warning { .alert-styles(@alert-warning-bg); }
189
+ .alert-danger { .alert-styles(@alert-danger-bg); }
190
+
191
+
192
+ //
193
+ // Progress bars
194
+ // --------------------------------------------------
195
+
196
+ // Give the progress background some depth
197
+ .progress {
198
+ #gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg)
199
+ }
200
+
201
+ // Mixin for generating new styles
202
+ .progress-bar-styles(@color) {
203
+ #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%));
204
+ }
205
+
206
+ // Apply the mixin to the progress bars
207
+ .progress-bar { .progress-bar-styles(@progress-bar-bg); }
208
+ .progress-bar-success { .progress-bar-styles(@progress-bar-success-bg); }
209
+ .progress-bar-info { .progress-bar-styles(@progress-bar-info-bg); }
210
+ .progress-bar-warning { .progress-bar-styles(@progress-bar-warning-bg); }
211
+ .progress-bar-danger { .progress-bar-styles(@progress-bar-danger-bg); }
212
+
213
+ // Reset the striped class because our mixins don't do multiple gradients and
214
+ // the above custom styles override the new `.progress-bar-striped` in v3.2.0.
215
+ .progress-bar-striped {
216
+ #gradient > .striped();
217
+ }
218
+
219
+
220
+ //
221
+ // List groups
222
+ // --------------------------------------------------
223
+
224
+ .list-group {
225
+ border-radius: @border-radius-base;
226
+ .box-shadow(0 1px 2px rgba(0,0,0,.075));
227
+ }
228
+ .list-group-item.active,
229
+ .list-group-item.active:hover,
230
+ .list-group-item.active:focus {
231
+ text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%);
232
+ #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%));
233
+ border-color: darken(@list-group-active-border, 7.5%);
234
+
235
+ .badge {
236
+ text-shadow: none;
237
+ }
238
+ }
239
+
240
+
241
+ //
242
+ // Panels
243
+ // --------------------------------------------------
244
+
245
+ // Common styles
246
+ .panel {
247
+ .box-shadow(0 1px 2px rgba(0,0,0,.05));
248
+ }
249
+
250
+ // Mixin for generating new styles
251
+ .panel-heading-styles(@color) {
252
+ #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%));
253
+ }
254
+
255
+ // Apply the mixin to the panel headings only
256
+ .panel-default > .panel-heading { .panel-heading-styles(@panel-default-heading-bg); }
257
+ .panel-primary > .panel-heading { .panel-heading-styles(@panel-primary-heading-bg); }
258
+ .panel-success > .panel-heading { .panel-heading-styles(@panel-success-heading-bg); }
259
+ .panel-info > .panel-heading { .panel-heading-styles(@panel-info-heading-bg); }
260
+ .panel-warning > .panel-heading { .panel-heading-styles(@panel-warning-heading-bg); }
261
+ .panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); }
262
+
263
+
264
+ //
265
+ // Wells
266
+ // --------------------------------------------------
267
+
268
+ .well {
269
+ #gradient > .vertical(@start-color: darken(@well-bg, 5%); @end-color: @well-bg);
270
+ border-color: darken(@well-bg, 10%);
271
+ @shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
272
+ .box-shadow(@shadow);
273
+ }
@@ -0,0 +1,36 @@
1
+ //
2
+ // Thumbnails
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Mixin and adjust the regular image class
7
+ .thumbnail {
8
+ display: block;
9
+ padding: @thumbnail-padding;
10
+ margin-bottom: @line-height-computed;
11
+ line-height: @line-height-base;
12
+ background-color: @thumbnail-bg;
13
+ border: 1px solid @thumbnail-border;
14
+ border-radius: @thumbnail-border-radius;
15
+ .transition(border .2s ease-in-out);
16
+
17
+ > img,
18
+ a > img {
19
+ &:extend(.img-responsive);
20
+ margin-left: auto;
21
+ margin-right: auto;
22
+ }
23
+
24
+ // Add a hover state for linked versions only
25
+ a&:hover,
26
+ a&:focus,
27
+ a&.active {
28
+ border-color: @link-color;
29
+ }
30
+
31
+ // Image captions
32
+ .caption {
33
+ padding: @thumbnail-caption-padding;
34
+ color: @thumbnail-caption-color;
35
+ }
36
+ }
@@ -0,0 +1,102 @@
1
+ //
2
+ // Tooltips
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Base class
7
+ .tooltip {
8
+ position: absolute;
9
+ z-index: @zindex-tooltip;
10
+ display: block;
11
+ // Reset font and text properties given new insertion method
12
+ font-family: @font-family-base;
13
+ font-size: @font-size-small;
14
+ font-weight: normal;
15
+ line-height: 1.4;
16
+ .opacity(0);
17
+
18
+ &.in { .opacity(@tooltip-opacity); }
19
+ &.top { margin-top: -3px; padding: @tooltip-arrow-width 0; }
20
+ &.right { margin-left: 3px; padding: 0 @tooltip-arrow-width; }
21
+ &.bottom { margin-top: 3px; padding: @tooltip-arrow-width 0; }
22
+ &.left { margin-left: -3px; padding: 0 @tooltip-arrow-width; }
23
+ }
24
+
25
+ // Wrapper for the tooltip content
26
+ .tooltip-inner {
27
+ max-width: @tooltip-max-width;
28
+ padding: 3px 8px;
29
+ color: @tooltip-color;
30
+ text-align: center;
31
+ text-decoration: none;
32
+ background-color: @tooltip-bg;
33
+ border-radius: @border-radius-base;
34
+ }
35
+
36
+ // Arrows
37
+ .tooltip-arrow {
38
+ position: absolute;
39
+ width: 0;
40
+ height: 0;
41
+ border-color: transparent;
42
+ border-style: solid;
43
+ }
44
+ // Note: Deprecated .top-left, .top-right, .bottom-left, and .bottom-right as of v3.3.1
45
+ .tooltip {
46
+ &.top .tooltip-arrow {
47
+ bottom: 0;
48
+ left: 50%;
49
+ margin-left: -@tooltip-arrow-width;
50
+ border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
51
+ border-top-color: @tooltip-arrow-color;
52
+ }
53
+ &.top-left .tooltip-arrow {
54
+ bottom: 0;
55
+ right: @tooltip-arrow-width;
56
+ margin-bottom: -@tooltip-arrow-width;
57
+ border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
58
+ border-top-color: @tooltip-arrow-color;
59
+ }
60
+ &.top-right .tooltip-arrow {
61
+ bottom: 0;
62
+ left: @tooltip-arrow-width;
63
+ margin-bottom: -@tooltip-arrow-width;
64
+ border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
65
+ border-top-color: @tooltip-arrow-color;
66
+ }
67
+ &.right .tooltip-arrow {
68
+ top: 50%;
69
+ left: 0;
70
+ margin-top: -@tooltip-arrow-width;
71
+ border-width: @tooltip-arrow-width @tooltip-arrow-width @tooltip-arrow-width 0;
72
+ border-right-color: @tooltip-arrow-color;
73
+ }
74
+ &.left .tooltip-arrow {
75
+ top: 50%;
76
+ right: 0;
77
+ margin-top: -@tooltip-arrow-width;
78
+ border-width: @tooltip-arrow-width 0 @tooltip-arrow-width @tooltip-arrow-width;
79
+ border-left-color: @tooltip-arrow-color;
80
+ }
81
+ &.bottom .tooltip-arrow {
82
+ top: 0;
83
+ left: 50%;
84
+ margin-left: -@tooltip-arrow-width;
85
+ border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
86
+ border-bottom-color: @tooltip-arrow-color;
87
+ }
88
+ &.bottom-left .tooltip-arrow {
89
+ top: 0;
90
+ right: @tooltip-arrow-width;
91
+ margin-top: -@tooltip-arrow-width;
92
+ border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
93
+ border-bottom-color: @tooltip-arrow-color;
94
+ }
95
+ &.bottom-right .tooltip-arrow {
96
+ top: 0;
97
+ left: @tooltip-arrow-width;
98
+ margin-top: -@tooltip-arrow-width;
99
+ border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
100
+ border-bottom-color: @tooltip-arrow-color;
101
+ }
102
+ }
@@ -0,0 +1,302 @@
1
+ //
2
+ // Typography
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Headings
7
+ // -------------------------
8
+
9
+ h1, h2, h3, h4, h5, h6,
10
+ .h1, .h2, .h3, .h4, .h5, .h6 {
11
+ font-family: @headings-font-family;
12
+ font-weight: @headings-font-weight;
13
+ line-height: @headings-line-height;
14
+ color: @headings-color;
15
+
16
+ small,
17
+ .small {
18
+ font-weight: normal;
19
+ line-height: 1;
20
+ color: @headings-small-color;
21
+ }
22
+ }
23
+
24
+ h1, .h1,
25
+ h2, .h2,
26
+ h3, .h3 {
27
+ margin-top: @line-height-computed;
28
+ margin-bottom: (@line-height-computed / 2);
29
+
30
+ small,
31
+ .small {
32
+ font-size: 65%;
33
+ }
34
+ }
35
+ h4, .h4,
36
+ h5, .h5,
37
+ h6, .h6 {
38
+ margin-top: (@line-height-computed / 2);
39
+ margin-bottom: (@line-height-computed / 2);
40
+
41
+ small,
42
+ .small {
43
+ font-size: 75%;
44
+ }
45
+ }
46
+
47
+ h1, .h1 { font-size: @font-size-h1; }
48
+ h2, .h2 { font-size: @font-size-h2; }
49
+ h3, .h3 { font-size: @font-size-h3; }
50
+ h4, .h4 { font-size: @font-size-h4; }
51
+ h5, .h5 { font-size: @font-size-h5; }
52
+ h6, .h6 { font-size: @font-size-h6; }
53
+
54
+
55
+ // Body text
56
+ // -------------------------
57
+
58
+ p {
59
+ margin: 0 0 (@line-height-computed / 2);
60
+ }
61
+
62
+ .lead {
63
+ margin-bottom: @line-height-computed;
64
+ font-size: floor((@font-size-base * 1.15));
65
+ font-weight: 300;
66
+ line-height: 1.4;
67
+
68
+ @media (min-width: @screen-sm-min) {
69
+ font-size: (@font-size-base * 1.5);
70
+ }
71
+ }
72
+
73
+
74
+ // Emphasis & misc
75
+ // -------------------------
76
+
77
+ // Ex: (12px small font / 14px base font) * 100% = about 85%
78
+ small,
79
+ .small {
80
+ font-size: floor((100% * @font-size-small / @font-size-base));
81
+ }
82
+
83
+ mark,
84
+ .mark {
85
+ background-color: @state-warning-bg;
86
+ padding: .2em;
87
+ }
88
+
89
+ // Alignment
90
+ .text-left { text-align: left; }
91
+ .text-right { text-align: right; }
92
+ .text-center { text-align: center; }
93
+ .text-justify { text-align: justify; }
94
+ .text-nowrap { white-space: nowrap; }
95
+
96
+ // Transformation
97
+ .text-lowercase { text-transform: lowercase; }
98
+ .text-uppercase { text-transform: uppercase; }
99
+ .text-capitalize { text-transform: capitalize; }
100
+
101
+ // Contextual colors
102
+ .text-muted {
103
+ color: @text-muted;
104
+ }
105
+ .text-primary {
106
+ .text-emphasis-variant(@brand-primary);
107
+ }
108
+ .text-success {
109
+ .text-emphasis-variant(@state-success-text);
110
+ }
111
+ .text-info {
112
+ .text-emphasis-variant(@state-info-text);
113
+ }
114
+ .text-warning {
115
+ .text-emphasis-variant(@state-warning-text);
116
+ }
117
+ .text-danger {
118
+ .text-emphasis-variant(@state-danger-text);
119
+ }
120
+
121
+ // Contextual backgrounds
122
+ // For now we'll leave these alongside the text classes until v4 when we can
123
+ // safely shift things around (per SemVer rules).
124
+ .bg-primary {
125
+ // Given the contrast here, this is the only class to have its color inverted
126
+ // automatically.
127
+ color: #fff;
128
+ .bg-variant(@brand-primary);
129
+ }
130
+ .bg-success {
131
+ .bg-variant(@state-success-bg);
132
+ }
133
+ .bg-info {
134
+ .bg-variant(@state-info-bg);
135
+ }
136
+ .bg-warning {
137
+ .bg-variant(@state-warning-bg);
138
+ }
139
+ .bg-danger {
140
+ .bg-variant(@state-danger-bg);
141
+ }
142
+
143
+
144
+ // Page header
145
+ // -------------------------
146
+
147
+ .page-header {
148
+ padding-bottom: ((@line-height-computed / 2) - 1);
149
+ margin: (@line-height-computed * 2) 0 @line-height-computed;
150
+ border-bottom: 1px solid @page-header-border-color;
151
+ }
152
+
153
+
154
+ // Lists
155
+ // -------------------------
156
+
157
+ // Unordered and Ordered lists
158
+ ul,
159
+ ol {
160
+ margin-top: 0;
161
+ margin-bottom: (@line-height-computed / 2);
162
+ ul,
163
+ ol {
164
+ margin-bottom: 0;
165
+ }
166
+ }
167
+
168
+ // List options
169
+
170
+ // Unstyled keeps list items block level, just removes default browser padding and list-style
171
+ .list-unstyled {
172
+ padding-left: 0;
173
+ list-style: none;
174
+ }
175
+
176
+ // Inline turns list items into inline-block
177
+ .list-inline {
178
+ .list-unstyled();
179
+ margin-left: -5px;
180
+
181
+ > li {
182
+ display: inline-block;
183
+ padding-left: 5px;
184
+ padding-right: 5px;
185
+ }
186
+ }
187
+
188
+ // Description Lists
189
+ dl {
190
+ margin-top: 0; // Remove browser default
191
+ margin-bottom: @line-height-computed;
192
+ }
193
+ dt,
194
+ dd {
195
+ line-height: @line-height-base;
196
+ }
197
+ dt {
198
+ font-weight: bold;
199
+ }
200
+ dd {
201
+ margin-left: 0; // Undo browser default
202
+ }
203
+
204
+ // Horizontal description lists
205
+ //
206
+ // Defaults to being stacked without any of the below styles applied, until the
207
+ // grid breakpoint is reached (default of ~768px).
208
+
209
+ .dl-horizontal {
210
+ dd {
211
+ &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
212
+ }
213
+
214
+ @media (min-width: @grid-float-breakpoint) {
215
+ dt {
216
+ float: left;
217
+ width: (@dl-horizontal-offset - 20);
218
+ clear: left;
219
+ text-align: right;
220
+ .text-overflow();
221
+ }
222
+ dd {
223
+ margin-left: @dl-horizontal-offset;
224
+ }
225
+ }
226
+ }
227
+
228
+
229
+ // Misc
230
+ // -------------------------
231
+
232
+ // Abbreviations and acronyms
233
+ abbr[title],
234
+ // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
235
+ abbr[data-original-title] {
236
+ cursor: help;
237
+ border-bottom: 1px dotted @abbr-border-color;
238
+ }
239
+ .initialism {
240
+ font-size: 90%;
241
+ .text-uppercase();
242
+ }
243
+
244
+ // Blockquotes
245
+ blockquote {
246
+ padding: (@line-height-computed / 2) @line-height-computed;
247
+ margin: 0 0 @line-height-computed;
248
+ font-size: @blockquote-font-size;
249
+ border-left: 5px solid @blockquote-border-color;
250
+
251
+ p,
252
+ ul,
253
+ ol {
254
+ &:last-child {
255
+ margin-bottom: 0;
256
+ }
257
+ }
258
+
259
+ // Note: Deprecated small and .small as of v3.1.0
260
+ // Context: https://github.com/twbs/bootstrap/issues/11660
261
+ footer,
262
+ small,
263
+ .small {
264
+ display: block;
265
+ font-size: 80%; // back to default font-size
266
+ line-height: @line-height-base;
267
+ color: @blockquote-small-color;
268
+
269
+ &:before {
270
+ content: '\2014 \00A0'; // em dash, nbsp
271
+ }
272
+ }
273
+ }
274
+
275
+ // Opposite alignment of blockquote
276
+ //
277
+ // Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.
278
+ .blockquote-reverse,
279
+ blockquote.pull-right {
280
+ padding-right: 15px;
281
+ padding-left: 0;
282
+ border-right: 5px solid @blockquote-border-color;
283
+ border-left: 0;
284
+ text-align: right;
285
+
286
+ // Account for citation
287
+ footer,
288
+ small,
289
+ .small {
290
+ &:before { content: ''; }
291
+ &:after {
292
+ content: '\00A0 \2014'; // nbsp, em dash
293
+ }
294
+ }
295
+ }
296
+
297
+ // Addresses
298
+ address {
299
+ margin-bottom: @line-height-computed;
300
+ font-style: normal;
301
+ line-height: @line-height-base;
302
+ }