bastion 2.1.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -15
  3. data/app/assets/stylesheets/bastion/{animations.less → animations.scss} +0 -0
  4. data/app/assets/stylesheets/bastion/{bastion.less → bastion.scss} +8 -16
  5. data/app/assets/stylesheets/bastion/{details-page.less → details-page.scss} +0 -0
  6. data/app/assets/stylesheets/bastion/{forms.less → forms.scss} +1 -1
  7. data/app/assets/stylesheets/bastion/{helpers.less → helpers.scss} +0 -0
  8. data/app/assets/stylesheets/bastion/mixins.scss +15 -0
  9. data/app/assets/stylesheets/bastion/{nutupane.less → nutupane.scss} +11 -12
  10. data/app/assets/stylesheets/bastion/{overrides.less → overrides.scss} +4 -9
  11. data/app/assets/stylesheets/bastion/{path-selector.less → path-selector.scss} +21 -21
  12. data/app/assets/stylesheets/bastion/{typography.less → typography.scss} +0 -0
  13. data/app/assets/stylesheets/bastion/variables.scss +4 -0
  14. data/app/views/bastion/layouts/application.html.erb +1 -1
  15. data/bower.json +1 -17
  16. data/lib/bastion/engine.rb +5 -9
  17. data/lib/bastion/version.rb +1 -1
  18. data/lib/bastion.rb +0 -2
  19. metadata +34 -208
  20. data/app/assets/stylesheets/bastion/mixins.less +0 -15
  21. data/app/assets/stylesheets/bastion/variables.less +0 -4
  22. data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.eot +0 -0
  23. data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.svg +0 -229
  24. data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  25. data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.woff +0 -0
  26. data/vendor/assets/fonts/bastion/font-awesome/FontAwesome.otf +0 -0
  27. data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.eot +0 -0
  28. data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.svg +0 -504
  29. data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.ttf +0 -0
  30. data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.woff +0 -0
  31. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Bold-webfont.eot +0 -0
  32. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Bold-webfont.svg +0 -1830
  33. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Bold-webfont.ttf +0 -0
  34. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Bold-webfont.woff +0 -0
  35. data/vendor/assets/fonts/bastion/patternfly/OpenSans-BoldItalic-webfont.eot +0 -0
  36. data/vendor/assets/fonts/bastion/patternfly/OpenSans-BoldItalic-webfont.svg +0 -1830
  37. data/vendor/assets/fonts/bastion/patternfly/OpenSans-BoldItalic-webfont.ttf +0 -0
  38. data/vendor/assets/fonts/bastion/patternfly/OpenSans-BoldItalic-webfont.woff +0 -0
  39. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBold-webfont.eot +0 -0
  40. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBold-webfont.svg +0 -1830
  41. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBold-webfont.ttf +0 -0
  42. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBold-webfont.woff +0 -0
  43. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
  44. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBoldItalic-webfont.svg +0 -1830
  45. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
  46. data/vendor/assets/fonts/bastion/patternfly/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
  47. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Italic-webfont.eot +0 -0
  48. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Italic-webfont.svg +0 -1830
  49. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Italic-webfont.ttf +0 -0
  50. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Italic-webfont.woff +0 -0
  51. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Light-webfont.eot +0 -0
  52. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Light-webfont.svg +0 -1831
  53. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Light-webfont.ttf +0 -0
  54. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Light-webfont.woff +0 -0
  55. data/vendor/assets/fonts/bastion/patternfly/OpenSans-LightItalic-webfont.eot +0 -0
  56. data/vendor/assets/fonts/bastion/patternfly/OpenSans-LightItalic-webfont.svg +0 -1835
  57. data/vendor/assets/fonts/bastion/patternfly/OpenSans-LightItalic-webfont.ttf +0 -0
  58. data/vendor/assets/fonts/bastion/patternfly/OpenSans-LightItalic-webfont.woff +0 -0
  59. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Regular-webfont.eot +0 -0
  60. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Regular-webfont.svg +0 -1831
  61. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Regular-webfont.ttf +0 -0
  62. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Regular-webfont.woff +0 -0
  63. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Semibold-webfont.eot +0 -0
  64. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Semibold-webfont.svg +0 -1830
  65. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Semibold-webfont.ttf +0 -0
  66. data/vendor/assets/fonts/bastion/patternfly/OpenSans-Semibold-webfont.woff +0 -0
  67. data/vendor/assets/fonts/bastion/patternfly/OpenSans-SemiboldItalic-webfont.eot +0 -0
  68. data/vendor/assets/fonts/bastion/patternfly/OpenSans-SemiboldItalic-webfont.svg +0 -1830
  69. data/vendor/assets/fonts/bastion/patternfly/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  70. data/vendor/assets/fonts/bastion/patternfly/OpenSans-SemiboldItalic-webfont.woff +0 -0
  71. data/vendor/assets/fonts/bastion/patternfly/PatternFlyIcons-webfont.eot +0 -0
  72. data/vendor/assets/fonts/bastion/patternfly/PatternFlyIcons-webfont.svg +0 -37
  73. data/vendor/assets/fonts/bastion/patternfly/PatternFlyIcons-webfont.ttf +0 -0
  74. data/vendor/assets/fonts/bastion/patternfly/PatternFlyIcons-webfont.woff +0 -0
  75. data/vendor/assets/stylesheets/bastion/bootstrap/alerts.less +0 -67
  76. data/vendor/assets/stylesheets/bastion/bootstrap/badges.less +0 -55
  77. data/vendor/assets/stylesheets/bastion/bootstrap/bootstrap.less +0 -49
  78. data/vendor/assets/stylesheets/bastion/bootstrap/breadcrumbs.less +0 -26
  79. data/vendor/assets/stylesheets/bastion/bootstrap/button-groups.less +0 -226
  80. data/vendor/assets/stylesheets/bastion/bootstrap/buttons.less +0 -159
  81. data/vendor/assets/stylesheets/bastion/bootstrap/carousel.less +0 -232
  82. data/vendor/assets/stylesheets/bastion/bootstrap/close.less +0 -33
  83. data/vendor/assets/stylesheets/bastion/bootstrap/code.less +0 -63
  84. data/vendor/assets/stylesheets/bastion/bootstrap/component-animations.less +0 -29
  85. data/vendor/assets/stylesheets/bastion/bootstrap/dropdowns.less +0 -213
  86. data/vendor/assets/stylesheets/bastion/bootstrap/forms.less +0 -438
  87. data/vendor/assets/stylesheets/bastion/bootstrap/glyphicons.less +0 -233
  88. data/vendor/assets/stylesheets/bastion/bootstrap/grid.less +0 -84
  89. data/vendor/assets/stylesheets/bastion/bootstrap/input-groups.less +0 -162
  90. data/vendor/assets/stylesheets/bastion/bootstrap/jumbotron.less +0 -44
  91. data/vendor/assets/stylesheets/bastion/bootstrap/labels.less +0 -64
  92. data/vendor/assets/stylesheets/bastion/bootstrap/list-group.less +0 -110
  93. data/vendor/assets/stylesheets/bastion/bootstrap/media.less +0 -56
  94. data/vendor/assets/stylesheets/bastion/bootstrap/mixins.less +0 -929
  95. data/vendor/assets/stylesheets/bastion/bootstrap/modals.less +0 -139
  96. data/vendor/assets/stylesheets/bastion/bootstrap/navbar.less +0 -616
  97. data/vendor/assets/stylesheets/bastion/bootstrap/navs.less +0 -242
  98. data/vendor/assets/stylesheets/bastion/bootstrap/normalize.less +0 -423
  99. data/vendor/assets/stylesheets/bastion/bootstrap/pager.less +0 -55
  100. data/vendor/assets/stylesheets/bastion/bootstrap/pagination.less +0 -88
  101. data/vendor/assets/stylesheets/bastion/bootstrap/panels.less +0 -241
  102. data/vendor/assets/stylesheets/bastion/bootstrap/popovers.less +0 -133
  103. data/vendor/assets/stylesheets/bastion/bootstrap/print.less +0 -101
  104. data/vendor/assets/stylesheets/bastion/bootstrap/progress-bars.less +0 -80
  105. data/vendor/assets/stylesheets/bastion/bootstrap/responsive-utilities.less +0 -92
  106. data/vendor/assets/stylesheets/bastion/bootstrap/scaffolding.less +0 -134
  107. data/vendor/assets/stylesheets/bastion/bootstrap/tables.less +0 -233
  108. data/vendor/assets/stylesheets/bastion/bootstrap/theme.less +0 -247
  109. data/vendor/assets/stylesheets/bastion/bootstrap/thumbnails.less +0 -36
  110. data/vendor/assets/stylesheets/bastion/bootstrap/tooltip.less +0 -95
  111. data/vendor/assets/stylesheets/bastion/bootstrap/type.less +0 -293
  112. data/vendor/assets/stylesheets/bastion/bootstrap/utilities.less +0 -56
  113. data/vendor/assets/stylesheets/bastion/bootstrap/variables.less +0 -829
  114. data/vendor/assets/stylesheets/bastion/bootstrap/wells.less +0 -29
  115. data/vendor/assets/stylesheets/bastion/font-awesome/less/bootstrap.less +0 -84
  116. data/vendor/assets/stylesheets/bastion/font-awesome/less/bordered-pulled.less +0 -16
  117. data/vendor/assets/stylesheets/bastion/font-awesome/less/core.less +0 -11
  118. data/vendor/assets/stylesheets/bastion/font-awesome/less/extras.less +0 -2
  119. data/vendor/assets/stylesheets/bastion/font-awesome/less/fixed-width.less +0 -6
  120. data/vendor/assets/stylesheets/bastion/font-awesome/less/font-awesome-ie7.less +0 -1953
  121. data/vendor/assets/stylesheets/bastion/font-awesome/less/font-awesome.less +0 -17
  122. data/vendor/assets/stylesheets/bastion/font-awesome/less/icons.less +0 -552
  123. data/vendor/assets/stylesheets/bastion/font-awesome/less/larger.less +0 -13
  124. data/vendor/assets/stylesheets/bastion/font-awesome/less/list.less +0 -19
  125. data/vendor/assets/stylesheets/bastion/font-awesome/less/mixins.less +0 -25
  126. data/vendor/assets/stylesheets/bastion/font-awesome/less/path.less +0 -14
  127. data/vendor/assets/stylesheets/bastion/font-awesome/less/rotated-flipped.less +0 -20
  128. data/vendor/assets/stylesheets/bastion/font-awesome/less/spinning.less +0 -29
  129. data/vendor/assets/stylesheets/bastion/font-awesome/less/stacked.less +0 -20
  130. data/vendor/assets/stylesheets/bastion/font-awesome/less/variables.less +0 -561
  131. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_bootstrap.scss +0 -84
  132. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_bordered-pulled.scss +0 -16
  133. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_core.scss +0 -11
  134. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_extras.scss +0 -44
  135. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_fixed-width.scss +0 -6
  136. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_icons.scss +0 -552
  137. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_larger.scss +0 -13
  138. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_list.scss +0 -19
  139. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_mixins.scss +0 -25
  140. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_path.scss +0 -14
  141. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_rotated-flipped.scss +0 -20
  142. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_spinning.scss +0 -29
  143. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_stacked.scss +0 -20
  144. data/vendor/assets/stylesheets/bastion/font-awesome/scss/_variables.scss +0 -561
  145. data/vendor/assets/stylesheets/bastion/font-awesome/scss/font-awesome-ie7.scss +0 -1953
  146. data/vendor/assets/stylesheets/bastion/font-awesome/scss/font-awesome.scss +0 -17
  147. data/vendor/assets/stylesheets/bastion/patternfly/alerts.less +0 -29
  148. data/vendor/assets/stylesheets/bastion/patternfly/badges.less +0 -11
  149. data/vendor/assets/stylesheets/bastion/patternfly/bootstrap-combobox.less +0 -27
  150. data/vendor/assets/stylesheets/bastion/patternfly/bootstrap-select.less +0 -67
  151. data/vendor/assets/stylesheets/bastion/patternfly/bootstrap-treeview.less +0 -37
  152. data/vendor/assets/stylesheets/bastion/patternfly/breadcrumbs.less +0 -20
  153. data/vendor/assets/stylesheets/bastion/patternfly/buttons.less +0 -48
  154. data/vendor/assets/stylesheets/bastion/patternfly/close.less +0 -13
  155. data/vendor/assets/stylesheets/bastion/patternfly/datatables.less +0 -221
  156. data/vendor/assets/stylesheets/bastion/patternfly/dropdowns.less +0 -145
  157. data/vendor/assets/stylesheets/bastion/patternfly/fonts.less +0 -54
  158. data/vendor/assets/stylesheets/bastion/patternfly/forms.less +0 -22
  159. data/vendor/assets/stylesheets/bastion/patternfly/icons.less +0 -130
  160. data/vendor/assets/stylesheets/bastion/patternfly/infotip.less +0 -149
  161. data/vendor/assets/stylesheets/bastion/patternfly/labels.less +0 -12
  162. data/vendor/assets/stylesheets/bastion/patternfly/list-group.less +0 -18
  163. data/vendor/assets/stylesheets/bastion/patternfly/login.less +0 -121
  164. data/vendor/assets/stylesheets/bastion/patternfly/mixins.less +0 -81
  165. data/vendor/assets/stylesheets/bastion/patternfly/modals.less +0 -38
  166. data/vendor/assets/stylesheets/bastion/patternfly/navbar.less +0 -501
  167. data/vendor/assets/stylesheets/bastion/patternfly/pager.less +0 -72
  168. data/vendor/assets/stylesheets/bastion/patternfly/pagination.less +0 -64
  169. data/vendor/assets/stylesheets/bastion/patternfly/panels.less +0 -57
  170. data/vendor/assets/stylesheets/bastion/patternfly/patternfly.less +0 -42
  171. data/vendor/assets/stylesheets/bastion/patternfly/popovers.less +0 -32
  172. data/vendor/assets/stylesheets/bastion/patternfly/progress-bars.less +0 -87
  173. data/vendor/assets/stylesheets/bastion/patternfly/search.less +0 -65
  174. data/vendor/assets/stylesheets/bastion/patternfly/sidebar.less +0 -174
  175. data/vendor/assets/stylesheets/bastion/patternfly/spinner.less +0 -62
  176. data/vendor/assets/stylesheets/bastion/patternfly/tables.less +0 -74
  177. data/vendor/assets/stylesheets/bastion/patternfly/tabs.less +0 -118
  178. data/vendor/assets/stylesheets/bastion/patternfly/tooltip.less +0 -16
  179. data/vendor/assets/stylesheets/bastion/patternfly/type.less +0 -24
  180. data/vendor/assets/stylesheets/bastion/patternfly/variables.less +0 -219
@@ -1,92 +0,0 @@
1
- //
2
- // Responsive: Utility classes
3
- // --------------------------------------------------
4
-
5
-
6
- // IE10 in Windows (Phone) 8
7
- //
8
- // Support for responsive views via media queries is kind of borked in IE10, for
9
- // Surface/desktop in split view and for Windows Phone 8. This particular fix
10
- // must be accompanied by a snippet of JavaScript to sniff the user agent and
11
- // apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at
12
- // our Getting Started page for more information on this bug.
13
- //
14
- // For more information, see the following:
15
- //
16
- // Issue: https://github.com/twbs/bootstrap/issues/10497
17
- // Docs: http://getbootstrap.com/getting-started/#browsers
18
- // Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
19
-
20
- @-ms-viewport {
21
- width: device-width;
22
- }
23
-
24
-
25
- // Visibility utilities
26
- .visible-xs,
27
- .visible-sm,
28
- .visible-md,
29
- .visible-lg {
30
- .responsive-invisibility();
31
- }
32
-
33
- .visible-xs {
34
- @media (max-width: @screen-xs-max) {
35
- .responsive-visibility();
36
- }
37
- }
38
- .visible-sm {
39
- @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
40
- .responsive-visibility();
41
- }
42
- }
43
- .visible-md {
44
- @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
45
- .responsive-visibility();
46
- }
47
- }
48
- .visible-lg {
49
- @media (min-width: @screen-lg-min) {
50
- .responsive-visibility();
51
- }
52
- }
53
-
54
- .hidden-xs {
55
- @media (max-width: @screen-xs-max) {
56
- .responsive-invisibility();
57
- }
58
- }
59
- .hidden-sm {
60
- @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
61
- .responsive-invisibility();
62
- }
63
- }
64
- .hidden-md {
65
- @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
66
- .responsive-invisibility();
67
- }
68
- }
69
- .hidden-lg {
70
- @media (min-width: @screen-lg-min) {
71
- .responsive-invisibility();
72
- }
73
- }
74
-
75
-
76
- // Print utilities
77
- //
78
- // Media queries are placed on the inside to be mixin-friendly.
79
-
80
- .visible-print {
81
- .responsive-invisibility();
82
-
83
- @media print {
84
- .responsive-visibility();
85
- }
86
- }
87
-
88
- .hidden-print {
89
- @media print {
90
- .responsive-invisibility();
91
- }
92
- }
@@ -1,134 +0,0 @@
1
- //
2
- // Scaffolding
3
- // --------------------------------------------------
4
-
5
-
6
- // Reset the box-sizing
7
- //
8
- // Heads up! This reset may cause conflicts with some third-party widgets.
9
- // For recommendations on resolving such conflicts, see
10
- // http://getbootstrap.com/getting-started/#third-box-sizing
11
- * {
12
- .box-sizing(border-box);
13
- }
14
- *:before,
15
- *:after {
16
- .box-sizing(border-box);
17
- }
18
-
19
-
20
- // Body reset
21
-
22
- html {
23
- font-size: 62.5%;
24
- -webkit-tap-highlight-color: rgba(0,0,0,0);
25
- }
26
-
27
- body {
28
- font-family: @font-family-base;
29
- font-size: @font-size-base;
30
- line-height: @line-height-base;
31
- color: @text-color;
32
- background-color: @body-bg;
33
- }
34
-
35
- // Reset fonts for relevant elements
36
- input,
37
- button,
38
- select,
39
- textarea {
40
- font-family: inherit;
41
- font-size: inherit;
42
- line-height: inherit;
43
- }
44
-
45
-
46
- // Links
47
-
48
- a {
49
- color: @link-color;
50
- text-decoration: none;
51
-
52
- &:hover,
53
- &:focus {
54
- color: @link-hover-color;
55
- text-decoration: underline;
56
- }
57
-
58
- &:focus {
59
- .tab-focus();
60
- }
61
- }
62
-
63
-
64
- // Figures
65
- //
66
- // We reset this here because previously Normalize had no `figure` margins. This
67
- // ensures we don't break anyone's use of the element.
68
-
69
- figure {
70
- margin: 0;
71
- }
72
-
73
-
74
- // Images
75
-
76
- img {
77
- vertical-align: middle;
78
- }
79
-
80
- // Responsive images (ensure images don't scale beyond their parents)
81
- .img-responsive {
82
- .img-responsive();
83
- }
84
-
85
- // Rounded corners
86
- .img-rounded {
87
- border-radius: @border-radius-large;
88
- }
89
-
90
- // Image thumbnails
91
- //
92
- // Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.
93
- .img-thumbnail {
94
- padding: @thumbnail-padding;
95
- line-height: @line-height-base;
96
- background-color: @thumbnail-bg;
97
- border: 1px solid @thumbnail-border;
98
- border-radius: @thumbnail-border-radius;
99
- .transition(all .2s ease-in-out);
100
-
101
- // Keep them at most 100% wide
102
- .img-responsive(inline-block);
103
- }
104
-
105
- // Perfect circle
106
- .img-circle {
107
- border-radius: 50%; // set radius in percents
108
- }
109
-
110
-
111
- // Horizontal rules
112
-
113
- hr {
114
- margin-top: @line-height-computed;
115
- margin-bottom: @line-height-computed;
116
- border: 0;
117
- border-top: 1px solid @hr-border;
118
- }
119
-
120
-
121
- // Only display content to screen readers
122
- //
123
- // See: http://a11yproject.com/posts/how-to-hide-content/
124
-
125
- .sr-only {
126
- position: absolute;
127
- width: 1px;
128
- height: 1px;
129
- margin: -1px;
130
- padding: 0;
131
- overflow: hidden;
132
- clip: rect(0,0,0,0);
133
- border: 0;
134
- }
@@ -1,233 +0,0 @@
1
- //
2
- // Tables
3
- // --------------------------------------------------
4
-
5
-
6
- table {
7
- max-width: 100%;
8
- background-color: @table-bg;
9
- }
10
- th {
11
- text-align: left;
12
- }
13
-
14
-
15
- // Baseline styles
16
-
17
- .table {
18
- width: 100%;
19
- margin-bottom: @line-height-computed;
20
- // Cells
21
- > thead,
22
- > tbody,
23
- > tfoot {
24
- > tr {
25
- > th,
26
- > td {
27
- padding: @table-cell-padding;
28
- line-height: @line-height-base;
29
- vertical-align: top;
30
- border-top: 1px solid @table-border-color;
31
- }
32
- }
33
- }
34
- // Bottom align for column headings
35
- > thead > tr > th {
36
- vertical-align: bottom;
37
- border-bottom: 2px solid @table-border-color;
38
- }
39
- // Remove top border from thead by default
40
- > caption + thead,
41
- > colgroup + thead,
42
- > thead:first-child {
43
- > tr:first-child {
44
- > th,
45
- > td {
46
- border-top: 0;
47
- }
48
- }
49
- }
50
- // Account for multiple tbody instances
51
- > tbody + tbody {
52
- border-top: 2px solid @table-border-color;
53
- }
54
-
55
- // Nesting
56
- .table {
57
- background-color: @body-bg;
58
- }
59
- }
60
-
61
-
62
- // Condensed table w/ half padding
63
-
64
- .table-condensed {
65
- > thead,
66
- > tbody,
67
- > tfoot {
68
- > tr {
69
- > th,
70
- > td {
71
- padding: @table-condensed-cell-padding;
72
- }
73
- }
74
- }
75
- }
76
-
77
-
78
- // Bordered version
79
- //
80
- // Add borders all around the table and between all the columns.
81
-
82
- .table-bordered {
83
- border: 1px solid @table-border-color;
84
- > thead,
85
- > tbody,
86
- > tfoot {
87
- > tr {
88
- > th,
89
- > td {
90
- border: 1px solid @table-border-color;
91
- }
92
- }
93
- }
94
- > thead > tr {
95
- > th,
96
- > td {
97
- border-bottom-width: 2px;
98
- }
99
- }
100
- }
101
-
102
-
103
- // Zebra-striping
104
- //
105
- // Default zebra-stripe styles (alternating gray and transparent backgrounds)
106
-
107
- .table-striped {
108
- > tbody > tr:nth-child(odd) {
109
- > td,
110
- > th {
111
- background-color: @table-bg-accent;
112
- }
113
- }
114
- }
115
-
116
-
117
- // Hover effect
118
- //
119
- // Placed here since it has to come after the potential zebra striping
120
-
121
- .table-hover {
122
- > tbody > tr:hover {
123
- > td,
124
- > th {
125
- background-color: @table-bg-hover;
126
- }
127
- }
128
- }
129
-
130
-
131
- // Table cell sizing
132
- //
133
- // Reset default table behavior
134
-
135
- table col[class*="col-"] {
136
- position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)
137
- float: none;
138
- display: table-column;
139
- }
140
- table {
141
- td,
142
- th {
143
- &[class*="col-"] {
144
- position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)
145
- float: none;
146
- display: table-cell;
147
- }
148
- }
149
- }
150
-
151
-
152
- // Table backgrounds
153
- //
154
- // Exact selectors below required to override `.table-striped` and prevent
155
- // inheritance to nested tables.
156
-
157
- // Generate the contextual variants
158
- .table-row-variant(active; @table-bg-active);
159
- .table-row-variant(success; @state-success-bg);
160
- .table-row-variant(info; @state-info-bg);
161
- .table-row-variant(warning; @state-warning-bg);
162
- .table-row-variant(danger; @state-danger-bg);
163
-
164
-
165
- // Responsive tables
166
- //
167
- // Wrap your tables in `.table-responsive` and we'll make them mobile friendly
168
- // by enabling horizontal scrolling. Only applies <768px. Everything above that
169
- // will display normally.
170
-
171
- @media (max-width: @screen-xs-max) {
172
- .table-responsive {
173
- width: 100%;
174
- margin-bottom: (@line-height-computed * 0.75);
175
- overflow-y: hidden;
176
- overflow-x: scroll;
177
- -ms-overflow-style: -ms-autohiding-scrollbar;
178
- border: 1px solid @table-border-color;
179
- -webkit-overflow-scrolling: touch;
180
-
181
- // Tighten up spacing
182
- > .table {
183
- margin-bottom: 0;
184
-
185
- // Ensure the content doesn't wrap
186
- > thead,
187
- > tbody,
188
- > tfoot {
189
- > tr {
190
- > th,
191
- > td {
192
- white-space: nowrap;
193
- }
194
- }
195
- }
196
- }
197
-
198
- // Special overrides for the bordered tables
199
- > .table-bordered {
200
- border: 0;
201
-
202
- // Nuke the appropriate borders so that the parent can handle them
203
- > thead,
204
- > tbody,
205
- > tfoot {
206
- > tr {
207
- > th:first-child,
208
- > td:first-child {
209
- border-left: 0;
210
- }
211
- > th:last-child,
212
- > td:last-child {
213
- border-right: 0;
214
- }
215
- }
216
- }
217
-
218
- // Only nuke the last row's bottom-border in `tbody` and `tfoot` since
219
- // chances are there will be only one `tr` in a `thead` and that would
220
- // remove the border altogether.
221
- > tbody,
222
- > tfoot {
223
- > tr:last-child {
224
- > th,
225
- > td {
226
- border-bottom: 0;
227
- }
228
- }
229
- }
230
-
231
- }
232
- }
233
- }
@@ -1,247 +0,0 @@
1
-
2
- //
3
- // Load core variables and mixins
4
- // --------------------------------------------------
5
-
6
- @import "variables.less";
7
- @import "mixins.less";
8
-
9
-
10
-
11
- //
12
- // Buttons
13
- // --------------------------------------------------
14
-
15
- // Common styles
16
- .btn-default,
17
- .btn-primary,
18
- .btn-success,
19
- .btn-info,
20
- .btn-warning,
21
- .btn-danger {
22
- text-shadow: 0 -1px 0 rgba(0,0,0,.2);
23
- @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);
24
- .box-shadow(@shadow);
25
-
26
- // Reset the shadow
27
- &:active,
28
- &.active {
29
- .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
30
- }
31
- }
32
-
33
- // Mixin for generating new styles
34
- .btn-styles(@btn-color: #555) {
35
- #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));
36
- .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners
37
- background-repeat: repeat-x;
38
- border-color: darken(@btn-color, 14%);
39
-
40
- &:hover,
41
- &:focus {
42
- background-color: darken(@btn-color, 12%);
43
- background-position: 0 -15px;
44
- }
45
-
46
- &:active,
47
- &.active {
48
- background-color: darken(@btn-color, 12%);
49
- border-color: darken(@btn-color, 14%);
50
- }
51
- }
52
-
53
- // Common styles
54
- .btn {
55
- // Remove the gradient for the pressed/active state
56
- &:active,
57
- &.active {
58
- background-image: none;
59
- }
60
- }
61
-
62
- // Apply the mixin to the buttons
63
- .btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }
64
- .btn-primary { .btn-styles(@btn-primary-bg); }
65
- .btn-success { .btn-styles(@btn-success-bg); }
66
- .btn-info { .btn-styles(@btn-info-bg); }
67
- .btn-warning { .btn-styles(@btn-warning-bg); }
68
- .btn-danger { .btn-styles(@btn-danger-bg); }
69
-
70
-
71
-
72
- //
73
- // Images
74
- // --------------------------------------------------
75
-
76
- .thumbnail,
77
- .img-thumbnail {
78
- .box-shadow(0 1px 2px rgba(0,0,0,.075));
79
- }
80
-
81
-
82
-
83
- //
84
- // Dropdowns
85
- // --------------------------------------------------
86
-
87
- .dropdown-menu > li > a:hover,
88
- .dropdown-menu > li > a:focus {
89
- #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));
90
- background-color: darken(@dropdown-link-hover-bg, 5%);
91
- }
92
- .dropdown-menu > .active > a,
93
- .dropdown-menu > .active > a:hover,
94
- .dropdown-menu > .active > a:focus {
95
- #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));
96
- background-color: darken(@dropdown-link-active-bg, 5%);
97
- }
98
-
99
-
100
-
101
- //
102
- // Navbar
103
- // --------------------------------------------------
104
-
105
- // Default navbar
106
- .navbar-default {
107
- #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg);
108
- .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
109
- border-radius: @navbar-border-radius;
110
- @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
111
- .box-shadow(@shadow);
112
-
113
- .navbar-nav > .active > a {
114
- #gradient > .vertical(@start-color: darken(@navbar-default-bg, 5%); @end-color: darken(@navbar-default-bg, 2%));
115
- .box-shadow(inset 0 3px 9px rgba(0,0,0,.075));
116
- }
117
- }
118
- .navbar-brand,
119
- .navbar-nav > li > a {
120
- text-shadow: 0 1px 0 rgba(255,255,255,.25);
121
- }
122
-
123
- // Inverted navbar
124
- .navbar-inverse {
125
- #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);
126
- .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
127
-
128
- .navbar-nav > .active > a {
129
- #gradient > .vertical(@start-color: @navbar-inverse-bg; @end-color: lighten(@navbar-inverse-bg, 2.5%));
130
- .box-shadow(inset 0 3px 9px rgba(0,0,0,.25));
131
- }
132
-
133
- .navbar-brand,
134
- .navbar-nav > li > a {
135
- text-shadow: 0 -1px 0 rgba(0,0,0,.25);
136
- }
137
- }
138
-
139
- // Undo rounded corners in static and fixed navbars
140
- .navbar-static-top,
141
- .navbar-fixed-top,
142
- .navbar-fixed-bottom {
143
- border-radius: 0;
144
- }
145
-
146
-
147
-
148
- //
149
- // Alerts
150
- // --------------------------------------------------
151
-
152
- // Common styles
153
- .alert {
154
- text-shadow: 0 1px 0 rgba(255,255,255,.2);
155
- @shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);
156
- .box-shadow(@shadow);
157
- }
158
-
159
- // Mixin for generating new styles
160
- .alert-styles(@color) {
161
- #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 7.5%));
162
- border-color: darken(@color, 15%);
163
- }
164
-
165
- // Apply the mixin to the alerts
166
- .alert-success { .alert-styles(@alert-success-bg); }
167
- .alert-info { .alert-styles(@alert-info-bg); }
168
- .alert-warning { .alert-styles(@alert-warning-bg); }
169
- .alert-danger { .alert-styles(@alert-danger-bg); }
170
-
171
-
172
-
173
- //
174
- // Progress bars
175
- // --------------------------------------------------
176
-
177
- // Give the progress background some depth
178
- .progress {
179
- #gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg)
180
- }
181
-
182
- // Mixin for generating new styles
183
- .progress-bar-styles(@color) {
184
- #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%));
185
- }
186
-
187
- // Apply the mixin to the progress bars
188
- .progress-bar { .progress-bar-styles(@progress-bar-bg); }
189
- .progress-bar-success { .progress-bar-styles(@progress-bar-success-bg); }
190
- .progress-bar-info { .progress-bar-styles(@progress-bar-info-bg); }
191
- .progress-bar-warning { .progress-bar-styles(@progress-bar-warning-bg); }
192
- .progress-bar-danger { .progress-bar-styles(@progress-bar-danger-bg); }
193
-
194
-
195
-
196
- //
197
- // List groups
198
- // --------------------------------------------------
199
-
200
- .list-group {
201
- border-radius: @border-radius-base;
202
- .box-shadow(0 1px 2px rgba(0,0,0,.075));
203
- }
204
- .list-group-item.active,
205
- .list-group-item.active:hover,
206
- .list-group-item.active:focus {
207
- text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%);
208
- #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%));
209
- border-color: darken(@list-group-active-border, 7.5%);
210
- }
211
-
212
-
213
-
214
- //
215
- // Panels
216
- // --------------------------------------------------
217
-
218
- // Common styles
219
- .panel {
220
- .box-shadow(0 1px 2px rgba(0,0,0,.05));
221
- }
222
-
223
- // Mixin for generating new styles
224
- .panel-heading-styles(@color) {
225
- #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%));
226
- }
227
-
228
- // Apply the mixin to the panel headings only
229
- .panel-default > .panel-heading { .panel-heading-styles(@panel-default-heading-bg); }
230
- .panel-primary > .panel-heading { .panel-heading-styles(@panel-primary-heading-bg); }
231
- .panel-success > .panel-heading { .panel-heading-styles(@panel-success-heading-bg); }
232
- .panel-info > .panel-heading { .panel-heading-styles(@panel-info-heading-bg); }
233
- .panel-warning > .panel-heading { .panel-heading-styles(@panel-warning-heading-bg); }
234
- .panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); }
235
-
236
-
237
-
238
- //
239
- // Wells
240
- // --------------------------------------------------
241
-
242
- .well {
243
- #gradient > .vertical(@start-color: darken(@well-bg, 5%); @end-color: @well-bg);
244
- border-color: darken(@well-bg, 10%);
245
- @shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
246
- .box-shadow(@shadow);
247
- }