nodebb-theme-persona 11.2.20 → 11.2.21

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 (216) hide show
  1. package/.eslintrc +2 -2
  2. package/README.md +14 -14
  3. package/languages/de/persona.json +3 -3
  4. package/languages/en-GB/persona.json +2 -2
  5. package/languages/en-US/persona.json +2 -2
  6. package/languages/fr/persona.json +3 -3
  7. package/languages/pl/persona.json +3 -3
  8. package/languages/pt-PT/persona.json +2 -2
  9. package/languages/tr/persona.json +4 -4
  10. package/languages/zh-CN/persona.json +4 -4
  11. package/less/bootstrap/.csscomb.json +297 -297
  12. package/less/bootstrap/.csslintrc +19 -19
  13. package/less/bootstrap/alerts.less +73 -73
  14. package/less/bootstrap/badges.less +66 -66
  15. package/less/bootstrap/bootstrap.less +50 -50
  16. package/less/bootstrap/breadcrumbs.less +26 -26
  17. package/less/bootstrap/button-groups.less +243 -243
  18. package/less/bootstrap/buttons.less +160 -160
  19. package/less/bootstrap/carousel.less +269 -269
  20. package/less/bootstrap/close.less +34 -34
  21. package/less/bootstrap/code.less +69 -69
  22. package/less/bootstrap/component-animations.less +33 -33
  23. package/less/bootstrap/forms.less +574 -574
  24. package/less/bootstrap/glyphicons.less +305 -305
  25. package/less/bootstrap/grid.less +84 -84
  26. package/less/bootstrap/input-groups.less +166 -166
  27. package/less/bootstrap/jumbotron.less +50 -50
  28. package/less/bootstrap/labels.less +64 -64
  29. package/less/bootstrap/list-group.less +124 -124
  30. package/less/bootstrap/media.less +61 -61
  31. package/less/bootstrap/mixins/alerts.less +14 -14
  32. package/less/bootstrap/mixins/background-variant.less +8 -8
  33. package/less/bootstrap/mixins/border-radius.less +18 -18
  34. package/less/bootstrap/mixins/buttons.less +52 -52
  35. package/less/bootstrap/mixins/center-block.less +7 -7
  36. package/less/bootstrap/mixins/clearfix.less +22 -22
  37. package/less/bootstrap/mixins/forms.less +85 -85
  38. package/less/bootstrap/mixins/gradients.less +59 -59
  39. package/less/bootstrap/mixins/grid-framework.less +91 -91
  40. package/less/bootstrap/mixins/grid.less +122 -122
  41. package/less/bootstrap/mixins/hide-text.less +21 -21
  42. package/less/bootstrap/mixins/image.less +33 -33
  43. package/less/bootstrap/mixins/labels.less +12 -12
  44. package/less/bootstrap/mixins/list-group.less +29 -29
  45. package/less/bootstrap/mixins/nav-divider.less +10 -10
  46. package/less/bootstrap/mixins/nav-vertical-align.less +9 -9
  47. package/less/bootstrap/mixins/opacity.less +8 -8
  48. package/less/bootstrap/mixins/pagination.less +23 -23
  49. package/less/bootstrap/mixins/panels.less +24 -24
  50. package/less/bootstrap/mixins/progress-bar.less +10 -10
  51. package/less/bootstrap/mixins/reset-filter.less +8 -8
  52. package/less/bootstrap/mixins/resize.less +6 -6
  53. package/less/bootstrap/mixins/responsive-visibility.less +15 -15
  54. package/less/bootstrap/mixins/size.less +10 -10
  55. package/less/bootstrap/mixins/tab-focus.less +9 -9
  56. package/less/bootstrap/mixins/table-row.less +28 -28
  57. package/less/bootstrap/mixins/text-emphasis.less +8 -8
  58. package/less/bootstrap/mixins/text-overflow.less +8 -8
  59. package/less/bootstrap/mixins/vendor-prefixes.less +227 -227
  60. package/less/bootstrap/mixins.less +39 -39
  61. package/less/bootstrap/modals.less +150 -150
  62. package/less/bootstrap/navbar.less +660 -660
  63. package/less/bootstrap/navs.less +242 -242
  64. package/less/bootstrap/normalize.less +427 -427
  65. package/less/bootstrap/pager.less +54 -54
  66. package/less/bootstrap/pagination.less +88 -88
  67. package/less/bootstrap/panels.less +265 -265
  68. package/less/bootstrap/popovers.less +135 -135
  69. package/less/bootstrap/print.less +107 -107
  70. package/less/bootstrap/progress-bars.less +87 -87
  71. package/less/bootstrap/responsive-embed.less +35 -35
  72. package/less/bootstrap/responsive-utilities.less +194 -194
  73. package/less/bootstrap/scaffolding.less +161 -161
  74. package/less/bootstrap/tables.less +234 -234
  75. package/less/bootstrap/theme.less +273 -273
  76. package/less/bootstrap/thumbnails.less +36 -36
  77. package/less/bootstrap/tooltip.less +102 -102
  78. package/less/bootstrap/type.less +302 -302
  79. package/less/bootstrap/utilities.less +55 -55
  80. package/less/bootstrap/variables.less +861 -861
  81. package/less/bootstrap/wells.less +29 -29
  82. package/less/bootstrap-flipped.css +1550 -1550
  83. package/less/categories.less +235 -235
  84. package/less/chats.less +622 -622
  85. package/less/flags.less +42 -42
  86. package/less/footer.less +17 -17
  87. package/less/ip-blacklist.less +6 -6
  88. package/less/keyframes.less +152 -152
  89. package/less/mobile.less +291 -291
  90. package/less/modules/composer-default.less +16 -16
  91. package/less/modules/cookie-consent.less +12 -12
  92. package/less/modules/fab.less +32 -32
  93. package/less/modules/morph.less +268 -268
  94. package/less/modules/necro-post.less +8 -8
  95. package/less/modules/nprogress.less +80 -80
  96. package/less/modules/usercard.less +64 -64
  97. package/less/noscript.less +82 -82
  98. package/less/notifications.less +37 -37
  99. package/less/outgoing.less +8 -8
  100. package/less/persona.less +47 -47
  101. package/less/post-queue.less +19 -19
  102. package/less/register.less +75 -75
  103. package/less/rtl.less +132 -132
  104. package/less/style.less +303 -303
  105. package/less/tags.less +36 -36
  106. package/less/topics_list.less +15 -15
  107. package/less/users.less +72 -72
  108. package/less/variables.less +6 -6
  109. package/package.json +1 -1
  110. package/public/.eslintrc +2 -2
  111. package/public/admin.js +23 -23
  112. package/public/modules/autohidingnavbar.js +220 -220
  113. package/templates/account/blocks.tpl +34 -34
  114. package/templates/account/categories.tpl +28 -28
  115. package/templates/account/consent.tpl +68 -68
  116. package/templates/account/edit/email.tpl +30 -30
  117. package/templates/account/edit/password.tpl +31 -31
  118. package/templates/account/edit/username.tpl +29 -29
  119. package/templates/account/followers.tpl +16 -16
  120. package/templates/account/following.tpl +16 -16
  121. package/templates/account/groups.tpl +16 -16
  122. package/templates/account/info.tpl +187 -187
  123. package/templates/account/posts.tpl +18 -18
  124. package/templates/account/sessions.tpl +31 -31
  125. package/templates/account/topics.tpl +30 -30
  126. package/templates/account/uploads.tpl +42 -42
  127. package/templates/admin/plugins/persona.tpl +28 -28
  128. package/templates/alert.tpl +15 -15
  129. package/templates/categories.tpl +31 -31
  130. package/templates/category.tpl +62 -62
  131. package/templates/chats.tpl +15 -15
  132. package/templates/flags/list.tpl +71 -71
  133. package/templates/footer.tpl +18 -18
  134. package/templates/groups/details.tpl +272 -272
  135. package/templates/groups/list.tpl +46 -46
  136. package/templates/groups/members.tpl +8 -8
  137. package/templates/ip-blacklist.tpl +55 -55
  138. package/templates/login.tpl +90 -90
  139. package/templates/modules/taskbar.tpl +2 -2
  140. package/templates/modules/usercard.tpl +36 -36
  141. package/templates/notifications.tpl +64 -64
  142. package/templates/partials/acceptTos.tpl +8 -8
  143. package/templates/partials/account/category-item.tpl +22 -22
  144. package/templates/partials/account/header.tpl +46 -46
  145. package/templates/partials/breadcrumbs.tpl +18 -18
  146. package/templates/partials/buttons/newTopic.tpl +15 -15
  147. package/templates/partials/categories/item.tpl +46 -46
  148. package/templates/partials/categories/lastpost.tpl +26 -26
  149. package/templates/partials/categories/link.tpl +10 -10
  150. package/templates/partials/category/sort.tpl +14 -14
  151. package/templates/partials/category/subcategory.tpl +17 -17
  152. package/templates/partials/category/tags.tpl +4 -4
  153. package/templates/partials/category/tools.tpl +80 -80
  154. package/templates/partials/category/watch.tpl +22 -22
  155. package/templates/partials/category-filter-content.tpl +18 -18
  156. package/templates/partials/category-filter-right.tpl +2 -2
  157. package/templates/partials/category-filter.tpl +2 -2
  158. package/templates/partials/category-selector-right.tpl +2 -2
  159. package/templates/partials/category-selector.tpl +2 -2
  160. package/templates/partials/change_owner_modal.tpl +22 -22
  161. package/templates/partials/chats/dropdown.tpl +33 -33
  162. package/templates/partials/chats/messages.tpl +6 -6
  163. package/templates/partials/chats/recent_room.tpl +24 -24
  164. package/templates/partials/chats-menu.tpl +10 -10
  165. package/templates/partials/cookie-consent.tpl +4 -4
  166. package/templates/partials/delete_posts_modal.tpl +18 -18
  167. package/templates/partials/fork_thread_modal.tpl +21 -21
  168. package/templates/partials/groups/list.tpl +20 -20
  169. package/templates/partials/groups/memberlist.tpl +39 -39
  170. package/templates/partials/menu.tpl +238 -230
  171. package/templates/partials/merge_topics_modal.tpl +57 -57
  172. package/templates/partials/modals/flag_modal.tpl +44 -44
  173. package/templates/partials/modals/manage_room.tpl +10 -10
  174. package/templates/partials/modals/manage_room_users.tpl +6 -6
  175. package/templates/partials/modals/post_history.tpl +36 -36
  176. package/templates/partials/modals/rename_room.tpl +3 -3
  177. package/templates/partials/modals/votes_modal.tpl +10 -10
  178. package/templates/partials/move_thread_modal.tpl +16 -16
  179. package/templates/partials/paginator.tpl +44 -44
  180. package/templates/partials/post_bar.tpl +20 -20
  181. package/templates/partials/posts_list.tpl +7 -7
  182. package/templates/partials/quick-search-results.tpl +30 -30
  183. package/templates/partials/slideout-menu.tpl +26 -26
  184. package/templates/partials/tags_list.tpl +4 -4
  185. package/templates/partials/thread_tools.tpl +7 -7
  186. package/templates/partials/topic/badge.tpl +4 -4
  187. package/templates/partials/topic/browsing-users.tpl +12 -12
  188. package/templates/partials/topic/deleted-message.tpl +10 -10
  189. package/templates/partials/topic/navigation-post.tpl +11 -11
  190. package/templates/partials/topic/navigator.tpl +31 -31
  191. package/templates/partials/topic/necro-post.tpl +2 -2
  192. package/templates/partials/topic/post-menu.tpl +4 -4
  193. package/templates/partials/topic/post.tpl +104 -104
  194. package/templates/partials/topic/quickreply.tpl +20 -20
  195. package/templates/partials/topic/reply-button.tpl +26 -26
  196. package/templates/partials/topic/selection-tooltip.tpl +2 -2
  197. package/templates/partials/topic/sort.tpl +9 -9
  198. package/templates/partials/topic/stats.tpl +11 -11
  199. package/templates/partials/topic/tags.tpl +4 -4
  200. package/templates/partials/topic/watch.tpl +20 -20
  201. package/templates/partials/users_list.tpl +39 -39
  202. package/templates/partials/users_list_menu.tpl +10 -10
  203. package/templates/popular.tpl +61 -61
  204. package/templates/post-queue.tpl +75 -75
  205. package/templates/recent.tpl +51 -51
  206. package/templates/reset.tpl +23 -23
  207. package/templates/reset_code.tpl +41 -41
  208. package/templates/tag.tpl +35 -35
  209. package/templates/tags.tpl +30 -30
  210. package/templates/top.tpl +61 -61
  211. package/templates/tos.tpl +4 -4
  212. package/templates/unread.tpl +49 -49
  213. package/templates/unsubscribe.tpl +6 -6
  214. package/templates/users.tpl +47 -47
  215. package/theme.json +6 -6
  216. package/theme.less +1 -1
@@ -1,7 +1,7 @@
1
- // Center-align a block level element
2
-
3
- .center-block() {
4
- display: block;
5
- margin-left: auto;
6
- margin-right: auto;
7
- }
1
+ // Center-align a block level element
2
+
3
+ .center-block() {
4
+ display: block;
5
+ margin-left: auto;
6
+ margin-right: auto;
7
+ }
@@ -1,22 +1,22 @@
1
- // Clearfix
2
- //
3
- // For modern browsers
4
- // 1. The space content is one way to avoid an Opera bug when the
5
- // contenteditable attribute is included anywhere else in the document.
6
- // Otherwise it causes space to appear at the top and bottom of elements
7
- // that are clearfixed.
8
- // 2. The use of `table` rather than `block` is only necessary if using
9
- // `:before` to contain the top-margins of child elements.
10
- //
11
- // Source: http://nicolasgallagher.com/micro-clearfix-hack/
12
-
13
- .clearfix() {
14
- &:before,
15
- &:after {
16
- content: " "; // 1
17
- display: table; // 2
18
- }
19
- &:after {
20
- clear: both;
21
- }
22
- }
1
+ // Clearfix
2
+ //
3
+ // For modern browsers
4
+ // 1. The space content is one way to avoid an Opera bug when the
5
+ // contenteditable attribute is included anywhere else in the document.
6
+ // Otherwise it causes space to appear at the top and bottom of elements
7
+ // that are clearfixed.
8
+ // 2. The use of `table` rather than `block` is only necessary if using
9
+ // `:before` to contain the top-margins of child elements.
10
+ //
11
+ // Source: http://nicolasgallagher.com/micro-clearfix-hack/
12
+
13
+ .clearfix() {
14
+ &:before,
15
+ &:after {
16
+ content: " "; // 1
17
+ display: table; // 2
18
+ }
19
+ &:after {
20
+ clear: both;
21
+ }
22
+ }
@@ -1,85 +1,85 @@
1
- // Form validation states
2
- //
3
- // Used in forms.less to generate the form validation CSS for warnings, errors,
4
- // and successes.
5
-
6
- .form-control-validation(@text-color: #555; @border-color: #ccc; @background-color: #f5f5f5) {
7
- // Color the label and help text
8
- .help-block,
9
- .control-label,
10
- .radio,
11
- .checkbox,
12
- .radio-inline,
13
- .checkbox-inline,
14
- &.radio label,
15
- &.checkbox label,
16
- &.radio-inline label,
17
- &.checkbox-inline label {
18
- color: @text-color;
19
- }
20
- // Set the border and box shadow on specific inputs to match
21
- .form-control {
22
- border-color: @border-color;
23
- .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
24
- &:focus {
25
- border-color: darken(@border-color, 10%);
26
- @shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@border-color, 20%);
27
- .box-shadow(@shadow);
28
- }
29
- }
30
- // Set validation states also for addons
31
- .input-group-addon {
32
- color: @text-color;
33
- border-color: @border-color;
34
- background-color: @background-color;
35
- }
36
- // Optional feedback icon
37
- .form-control-feedback {
38
- color: @text-color;
39
- }
40
- }
41
-
42
-
43
- // Form control focus state
44
- //
45
- // Generate a customized focus state and for any input with the specified color,
46
- // which defaults to the `@input-border-focus` variable.
47
- //
48
- // We highly encourage you to not customize the default value, but instead use
49
- // this to tweak colors on an as-needed basis. This aesthetic change is based on
50
- // WebKit's default styles, but applicable to a wider range of browsers. Its
51
- // usability and accessibility should be taken into account with any change.
52
- //
53
- // Example usage: change the default blue border and shadow to white for better
54
- // contrast against a dark gray background.
55
- .form-control-focus(@color: @input-border-focus) {
56
- @color-rgba: rgba(red(@color), green(@color), blue(@color), .6);
57
- &:focus {
58
- border-color: @color;
59
- outline: 0;
60
- .box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px @{color-rgba}");
61
- }
62
- }
63
-
64
- // Form control sizing
65
- //
66
- // Relative text size, padding, and border-radii changes for form controls. For
67
- // horizontal sizing, wrap controls in the predefined grid classes. `<select>`
68
- // element gets special love because it's special, and that's a fact!
69
- .input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
70
- height: @input-height;
71
- padding: @padding-vertical @padding-horizontal;
72
- font-size: @font-size;
73
- line-height: @line-height;
74
- border-radius: @border-radius;
75
-
76
- select& {
77
- height: @input-height;
78
- line-height: @input-height;
79
- }
80
-
81
- textarea&,
82
- select[multiple]& {
83
- height: auto;
84
- }
85
- }
1
+ // Form validation states
2
+ //
3
+ // Used in forms.less to generate the form validation CSS for warnings, errors,
4
+ // and successes.
5
+
6
+ .form-control-validation(@text-color: #555; @border-color: #ccc; @background-color: #f5f5f5) {
7
+ // Color the label and help text
8
+ .help-block,
9
+ .control-label,
10
+ .radio,
11
+ .checkbox,
12
+ .radio-inline,
13
+ .checkbox-inline,
14
+ &.radio label,
15
+ &.checkbox label,
16
+ &.radio-inline label,
17
+ &.checkbox-inline label {
18
+ color: @text-color;
19
+ }
20
+ // Set the border and box shadow on specific inputs to match
21
+ .form-control {
22
+ border-color: @border-color;
23
+ .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
24
+ &:focus {
25
+ border-color: darken(@border-color, 10%);
26
+ @shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@border-color, 20%);
27
+ .box-shadow(@shadow);
28
+ }
29
+ }
30
+ // Set validation states also for addons
31
+ .input-group-addon {
32
+ color: @text-color;
33
+ border-color: @border-color;
34
+ background-color: @background-color;
35
+ }
36
+ // Optional feedback icon
37
+ .form-control-feedback {
38
+ color: @text-color;
39
+ }
40
+ }
41
+
42
+
43
+ // Form control focus state
44
+ //
45
+ // Generate a customized focus state and for any input with the specified color,
46
+ // which defaults to the `@input-border-focus` variable.
47
+ //
48
+ // We highly encourage you to not customize the default value, but instead use
49
+ // this to tweak colors on an as-needed basis. This aesthetic change is based on
50
+ // WebKit's default styles, but applicable to a wider range of browsers. Its
51
+ // usability and accessibility should be taken into account with any change.
52
+ //
53
+ // Example usage: change the default blue border and shadow to white for better
54
+ // contrast against a dark gray background.
55
+ .form-control-focus(@color: @input-border-focus) {
56
+ @color-rgba: rgba(red(@color), green(@color), blue(@color), .6);
57
+ &:focus {
58
+ border-color: @color;
59
+ outline: 0;
60
+ .box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px @{color-rgba}");
61
+ }
62
+ }
63
+
64
+ // Form control sizing
65
+ //
66
+ // Relative text size, padding, and border-radii changes for form controls. For
67
+ // horizontal sizing, wrap controls in the predefined grid classes. `<select>`
68
+ // element gets special love because it's special, and that's a fact!
69
+ .input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
70
+ height: @input-height;
71
+ padding: @padding-vertical @padding-horizontal;
72
+ font-size: @font-size;
73
+ line-height: @line-height;
74
+ border-radius: @border-radius;
75
+
76
+ select& {
77
+ height: @input-height;
78
+ line-height: @input-height;
79
+ }
80
+
81
+ textarea&,
82
+ select[multiple]& {
83
+ height: auto;
84
+ }
85
+ }
@@ -1,59 +1,59 @@
1
- // Gradients
2
-
3
- #gradient {
4
-
5
- // Horizontal gradient, from left to right
6
- //
7
- // Creates two color stops, start and end, by specifying a color and position for each color stop.
8
- // Color stops are not available in IE9 and below.
9
- .horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
10
- background-image: -webkit-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+
11
- background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12
12
- background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
13
- background-repeat: repeat-x;
14
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down
15
- }
16
-
17
- // Vertical gradient, from top to bottom
18
- //
19
- // Creates two color stops, start and end, by specifying a color and position for each color stop.
20
- // Color stops are not available in IE9 and below.
21
- .vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
22
- background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+
23
- background-image: -o-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Opera 12
24
- background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
25
- background-repeat: repeat-x;
26
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down
27
- }
28
-
29
- .directional(@start-color: #555; @end-color: #333; @deg: 45deg) {
30
- background-repeat: repeat-x;
31
- background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+
32
- background-image: -o-linear-gradient(@deg, @start-color, @end-color); // Opera 12
33
- background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
34
- }
35
- .horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
36
- background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
37
- background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
38
- background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);
39
- background-repeat: no-repeat;
40
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
41
- }
42
- .vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
43
- background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
44
- background-image: -o-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
45
- background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);
46
- background-repeat: no-repeat;
47
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
48
- }
49
- .radial(@inner-color: #555; @outer-color: #333) {
50
- background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);
51
- background-image: radial-gradient(circle, @inner-color, @outer-color);
52
- background-repeat: no-repeat;
53
- }
54
- .striped(@color: rgba(255,255,255,.15); @angle: 45deg) {
55
- background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
56
- background-image: -o-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
57
- background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
58
- }
59
- }
1
+ // Gradients
2
+
3
+ #gradient {
4
+
5
+ // Horizontal gradient, from left to right
6
+ //
7
+ // Creates two color stops, start and end, by specifying a color and position for each color stop.
8
+ // Color stops are not available in IE9 and below.
9
+ .horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
10
+ background-image: -webkit-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+
11
+ background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12
12
+ background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
13
+ background-repeat: repeat-x;
14
+ filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down
15
+ }
16
+
17
+ // Vertical gradient, from top to bottom
18
+ //
19
+ // Creates two color stops, start and end, by specifying a color and position for each color stop.
20
+ // Color stops are not available in IE9 and below.
21
+ .vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
22
+ background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+
23
+ background-image: -o-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Opera 12
24
+ background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
25
+ background-repeat: repeat-x;
26
+ filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down
27
+ }
28
+
29
+ .directional(@start-color: #555; @end-color: #333; @deg: 45deg) {
30
+ background-repeat: repeat-x;
31
+ background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+
32
+ background-image: -o-linear-gradient(@deg, @start-color, @end-color); // Opera 12
33
+ background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
34
+ }
35
+ .horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
36
+ background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
37
+ background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
38
+ background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);
39
+ background-repeat: no-repeat;
40
+ filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
41
+ }
42
+ .vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
43
+ background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
44
+ background-image: -o-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
45
+ background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);
46
+ background-repeat: no-repeat;
47
+ filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
48
+ }
49
+ .radial(@inner-color: #555; @outer-color: #333) {
50
+ background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);
51
+ background-image: radial-gradient(circle, @inner-color, @outer-color);
52
+ background-repeat: no-repeat;
53
+ }
54
+ .striped(@color: rgba(255,255,255,.15); @angle: 45deg) {
55
+ background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
56
+ background-image: -o-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
57
+ background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
58
+ }
59
+ }
@@ -1,91 +1,91 @@
1
- // Framework grid generation
2
- //
3
- // Used only by Bootstrap to generate the correct number of grid classes given
4
- // any value of `@grid-columns`.
5
-
6
- .make-grid-columns() {
7
- // Common styles for all sizes of grid columns, widths 1-12
8
- .col(@index) { // initial
9
- @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
10
- .col((@index + 1), @item);
11
- }
12
- .col(@index, @list) when (@index =< @grid-columns) { // general; "=<" isn't a typo
13
- @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
14
- .col((@index + 1), ~"@{list}, @{item}");
15
- }
16
- .col(@index, @list) when (@index > @grid-columns) { // terminal
17
- @{list} {
18
- position: relative;
19
- // Prevent columns from collapsing when empty
20
- min-height: 1px;
21
- // Inner gutter via padding
22
- padding-left: (@grid-gutter-width / 2);
23
- padding-right: (@grid-gutter-width / 2);
24
- }
25
- }
26
- .col(1); // kickstart it
27
- }
28
-
29
- .float-grid-columns(@class) {
30
- .col(@index) { // initial
31
- @item: ~".col-@{class}-@{index}";
32
- .col((@index + 1), @item);
33
- }
34
- .col(@index, @list) when (@index =< @grid-columns) { // general
35
- @item: ~".col-@{class}-@{index}";
36
- .col((@index + 1), ~"@{list}, @{item}");
37
- }
38
- .col(@index, @list) when (@index > @grid-columns) { // terminal
39
- @{list} {
40
- float: left;
41
- }
42
- }
43
- .col(1); // kickstart it
44
- }
45
-
46
- .calc-grid-column(@index, @class, @type) when (@type = width) and (@index > 0) {
47
- .col-@{class}-@{index} {
48
- width: percentage((@index / @grid-columns));
49
- }
50
- }
51
- .calc-grid-column(@index, @class, @type) when (@type = push) and (@index > 0) {
52
- .col-@{class}-push-@{index} {
53
- left: percentage((@index / @grid-columns));
54
- }
55
- }
56
- .calc-grid-column(@index, @class, @type) when (@type = push) and (@index = 0) {
57
- .col-@{class}-push-0 {
58
- left: auto;
59
- }
60
- }
61
- .calc-grid-column(@index, @class, @type) when (@type = pull) and (@index > 0) {
62
- .col-@{class}-pull-@{index} {
63
- right: percentage((@index / @grid-columns));
64
- }
65
- }
66
- .calc-grid-column(@index, @class, @type) when (@type = pull) and (@index = 0) {
67
- .col-@{class}-pull-0 {
68
- right: auto;
69
- }
70
- }
71
- .calc-grid-column(@index, @class, @type) when (@type = offset) {
72
- .col-@{class}-offset-@{index} {
73
- margin-left: percentage((@index / @grid-columns));
74
- }
75
- }
76
-
77
- // Basic looping in LESS
78
- .loop-grid-columns(@index, @class, @type) when (@index >= 0) {
79
- .calc-grid-column(@index, @class, @type);
80
- // next iteration
81
- .loop-grid-columns((@index - 1), @class, @type);
82
- }
83
-
84
- // Create grid for specific class
85
- .make-grid(@class) {
86
- .float-grid-columns(@class);
87
- .loop-grid-columns(@grid-columns, @class, width);
88
- .loop-grid-columns(@grid-columns, @class, pull);
89
- .loop-grid-columns(@grid-columns, @class, push);
90
- .loop-grid-columns(@grid-columns, @class, offset);
91
- }
1
+ // Framework grid generation
2
+ //
3
+ // Used only by Bootstrap to generate the correct number of grid classes given
4
+ // any value of `@grid-columns`.
5
+
6
+ .make-grid-columns() {
7
+ // Common styles for all sizes of grid columns, widths 1-12
8
+ .col(@index) { // initial
9
+ @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
10
+ .col((@index + 1), @item);
11
+ }
12
+ .col(@index, @list) when (@index =< @grid-columns) { // general; "=<" isn't a typo
13
+ @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
14
+ .col((@index + 1), ~"@{list}, @{item}");
15
+ }
16
+ .col(@index, @list) when (@index > @grid-columns) { // terminal
17
+ @{list} {
18
+ position: relative;
19
+ // Prevent columns from collapsing when empty
20
+ min-height: 1px;
21
+ // Inner gutter via padding
22
+ padding-left: (@grid-gutter-width / 2);
23
+ padding-right: (@grid-gutter-width / 2);
24
+ }
25
+ }
26
+ .col(1); // kickstart it
27
+ }
28
+
29
+ .float-grid-columns(@class) {
30
+ .col(@index) { // initial
31
+ @item: ~".col-@{class}-@{index}";
32
+ .col((@index + 1), @item);
33
+ }
34
+ .col(@index, @list) when (@index =< @grid-columns) { // general
35
+ @item: ~".col-@{class}-@{index}";
36
+ .col((@index + 1), ~"@{list}, @{item}");
37
+ }
38
+ .col(@index, @list) when (@index > @grid-columns) { // terminal
39
+ @{list} {
40
+ float: left;
41
+ }
42
+ }
43
+ .col(1); // kickstart it
44
+ }
45
+
46
+ .calc-grid-column(@index, @class, @type) when (@type = width) and (@index > 0) {
47
+ .col-@{class}-@{index} {
48
+ width: percentage((@index / @grid-columns));
49
+ }
50
+ }
51
+ .calc-grid-column(@index, @class, @type) when (@type = push) and (@index > 0) {
52
+ .col-@{class}-push-@{index} {
53
+ left: percentage((@index / @grid-columns));
54
+ }
55
+ }
56
+ .calc-grid-column(@index, @class, @type) when (@type = push) and (@index = 0) {
57
+ .col-@{class}-push-0 {
58
+ left: auto;
59
+ }
60
+ }
61
+ .calc-grid-column(@index, @class, @type) when (@type = pull) and (@index > 0) {
62
+ .col-@{class}-pull-@{index} {
63
+ right: percentage((@index / @grid-columns));
64
+ }
65
+ }
66
+ .calc-grid-column(@index, @class, @type) when (@type = pull) and (@index = 0) {
67
+ .col-@{class}-pull-0 {
68
+ right: auto;
69
+ }
70
+ }
71
+ .calc-grid-column(@index, @class, @type) when (@type = offset) {
72
+ .col-@{class}-offset-@{index} {
73
+ margin-left: percentage((@index / @grid-columns));
74
+ }
75
+ }
76
+
77
+ // Basic looping in LESS
78
+ .loop-grid-columns(@index, @class, @type) when (@index >= 0) {
79
+ .calc-grid-column(@index, @class, @type);
80
+ // next iteration
81
+ .loop-grid-columns((@index - 1), @class, @type);
82
+ }
83
+
84
+ // Create grid for specific class
85
+ .make-grid(@class) {
86
+ .float-grid-columns(@class);
87
+ .loop-grid-columns(@grid-columns, @class, width);
88
+ .loop-grid-columns(@grid-columns, @class, pull);
89
+ .loop-grid-columns(@grid-columns, @class, push);
90
+ .loop-grid-columns(@grid-columns, @class, offset);
91
+ }