entreprise7pro-bootstrap-sass 3.4.6

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 (171) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.travis.yml +19 -0
  4. data/CHANGELOG.md +233 -0
  5. data/CONTRIBUTING.md +86 -0
  6. data/Gemfile +7 -0
  7. data/LICENSE +22 -0
  8. data/README.md +376 -0
  9. data/Rakefile +98 -0
  10. data/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
  11. data/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
  12. data/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  13. data/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
  14. data/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
  15. data/assets/images/.keep +0 -0
  16. data/assets/javascripts/bootstrap/affix.js +166 -0
  17. data/assets/javascripts/bootstrap/alert.js +97 -0
  18. data/assets/javascripts/bootstrap/button.js +136 -0
  19. data/assets/javascripts/bootstrap/carousel.js +248 -0
  20. data/assets/javascripts/bootstrap/collapse.js +214 -0
  21. data/assets/javascripts/bootstrap/dropdown.js +167 -0
  22. data/assets/javascripts/bootstrap/modal.js +356 -0
  23. data/assets/javascripts/bootstrap/popover.js +123 -0
  24. data/assets/javascripts/bootstrap/scrollspy.js +174 -0
  25. data/assets/javascripts/bootstrap/tab.js +157 -0
  26. data/assets/javascripts/bootstrap/tooltip.js +679 -0
  27. data/assets/javascripts/bootstrap/transition.js +61 -0
  28. data/assets/javascripts/bootstrap-sprockets.js +12 -0
  29. data/assets/javascripts/bootstrap.js +2611 -0
  30. data/assets/javascripts/bootstrap.min.js +7 -0
  31. data/assets/javascripts/jquery.min.js +2 -0
  32. data/assets/stylesheets/_bootstrap-compass.scss +9 -0
  33. data/assets/stylesheets/_bootstrap-mincer.scss +19 -0
  34. data/assets/stylesheets/_bootstrap-sprockets.scss +9 -0
  35. data/assets/stylesheets/_bootstrap.scss +56 -0
  36. data/assets/stylesheets/bootstrap/_alerts.scss +73 -0
  37. data/assets/stylesheets/bootstrap/_badges.scss +68 -0
  38. data/assets/stylesheets/bootstrap/_breadcrumbs.scss +28 -0
  39. data/assets/stylesheets/bootstrap/_button-groups.scss +244 -0
  40. data/assets/stylesheets/bootstrap/_buttons.scss +168 -0
  41. data/assets/stylesheets/bootstrap/_carousel.scss +263 -0
  42. data/assets/stylesheets/bootstrap/_close.scss +37 -0
  43. data/assets/stylesheets/bootstrap/_code.scss +70 -0
  44. data/assets/stylesheets/bootstrap/_component-animations.scss +38 -0
  45. data/assets/stylesheets/bootstrap/_dropdowns.scss +212 -0
  46. data/assets/stylesheets/bootstrap/_forms.scss +602 -0
  47. data/assets/stylesheets/bootstrap/_glyphicons.scss +307 -0
  48. data/assets/stylesheets/bootstrap/_grid.scss +94 -0
  49. data/assets/stylesheets/bootstrap/_input-groups.scss +166 -0
  50. data/assets/stylesheets/bootstrap/_jumbotron.scss +55 -0
  51. data/assets/stylesheets/bootstrap/_labels.scss +66 -0
  52. data/assets/stylesheets/bootstrap/_list-group.scss +128 -0
  53. data/assets/stylesheets/bootstrap/_media.scss +66 -0
  54. data/assets/stylesheets/bootstrap/_mixins.scss +39 -0
  55. data/assets/stylesheets/bootstrap/_modals.scss +150 -0
  56. data/assets/stylesheets/bootstrap/_navbar.scss +657 -0
  57. data/assets/stylesheets/bootstrap/_navs.scss +242 -0
  58. data/assets/stylesheets/bootstrap/_normalize.scss +422 -0
  59. data/assets/stylesheets/bootstrap/_pager.scss +54 -0
  60. data/assets/stylesheets/bootstrap/_pagination.scss +86 -0
  61. data/assets/stylesheets/bootstrap/_panels.scss +271 -0
  62. data/assets/stylesheets/bootstrap/_popovers.scss +126 -0
  63. data/assets/stylesheets/bootstrap/_print.scss +99 -0
  64. data/assets/stylesheets/bootstrap/_progress-bars.scss +87 -0
  65. data/assets/stylesheets/bootstrap/_responsive-embed.scss +35 -0
  66. data/assets/stylesheets/bootstrap/_responsive-utilities.scss +157 -0
  67. data/assets/stylesheets/bootstrap/_scaffolding.scss +161 -0
  68. data/assets/stylesheets/bootstrap/_tables.scss +233 -0
  69. data/assets/stylesheets/bootstrap/_theme.scss +293 -0
  70. data/assets/stylesheets/bootstrap/_thumbnails.scss +38 -0
  71. data/assets/stylesheets/bootstrap/_tooltip.scss +112 -0
  72. data/assets/stylesheets/bootstrap/_type.scss +299 -0
  73. data/assets/stylesheets/bootstrap/_utilities.scss +55 -0
  74. data/assets/stylesheets/bootstrap/_variables.scss +875 -0
  75. data/assets/stylesheets/bootstrap/_wells.scss +29 -0
  76. data/assets/stylesheets/bootstrap/mixins/_alerts.scss +15 -0
  77. data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +12 -0
  78. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
  79. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +61 -0
  80. data/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
  81. data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
  82. data/assets/stylesheets/bootstrap/mixins/_forms.scss +88 -0
  83. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +50 -0
  84. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +82 -0
  85. data/assets/stylesheets/bootstrap/mixins/_grid.scss +123 -0
  86. data/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
  87. data/assets/stylesheets/bootstrap/mixins/_image.scss +28 -0
  88. data/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
  89. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +32 -0
  90. data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +11 -0
  91. data/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +10 -0
  92. data/assets/stylesheets/bootstrap/mixins/_opacity.scss +7 -0
  93. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +24 -0
  94. data/assets/stylesheets/bootstrap/mixins/_panels.scss +24 -0
  95. data/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
  96. data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +18 -0
  97. data/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
  98. data/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +17 -0
  99. data/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
  100. data/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
  101. data/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
  102. data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +12 -0
  103. data/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
  104. data/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +210 -0
  105. data/bower.json +38 -0
  106. data/composer.json +21 -0
  107. data/entreprise7pro-bootstrap-sass.gemspec +37 -0
  108. data/eyeglass-exports.js +7 -0
  109. data/lib/entreprise7pro-bootstrap-sass/engine.rb +17 -0
  110. data/lib/entreprise7pro-bootstrap-sass/version.rb +4 -0
  111. data/lib/entreprise7pro-bootstrap-sass.rb +91 -0
  112. data/package-lock.json +1011 -0
  113. data/package.json +48 -0
  114. data/sache.json +5 -0
  115. data/tasks/bower.rake +31 -0
  116. data/tasks/converter/char_string_scanner.rb +38 -0
  117. data/tasks/converter/fonts_conversion.rb +16 -0
  118. data/tasks/converter/js_conversion.rb +47 -0
  119. data/tasks/converter/less_conversion.rb +752 -0
  120. data/tasks/converter/logger.rb +57 -0
  121. data/tasks/converter/network.rb +97 -0
  122. data/tasks/converter.rb +80 -0
  123. data/templates/project/_bootstrap-variables.sass +876 -0
  124. data/templates/project/manifest.rb +20 -0
  125. data/templates/project/styles.sass +6 -0
  126. data/test/compilation_test.rb +30 -0
  127. data/test/dummy_node_mincer/apple-touch-icon-144-precomposed.png +0 -0
  128. data/test/dummy_node_mincer/application.css.ejs.scss +6 -0
  129. data/test/dummy_node_mincer/manifest.js +87 -0
  130. data/test/dummy_rails/README.rdoc +3 -0
  131. data/test/dummy_rails/Rakefile +6 -0
  132. data/test/dummy_rails/app/assets/images/.keep +0 -0
  133. data/test/dummy_rails/app/assets/javascripts/application.js +2 -0
  134. data/test/dummy_rails/app/assets/stylesheets/application.sass +2 -0
  135. data/test/dummy_rails/app/controllers/application_controller.rb +5 -0
  136. data/test/dummy_rails/app/controllers/pages_controller.rb +4 -0
  137. data/test/dummy_rails/app/helpers/application_helper.rb +2 -0
  138. data/test/dummy_rails/app/views/layouts/application.html.erb +14 -0
  139. data/test/dummy_rails/app/views/pages/root.html.slim +84 -0
  140. data/test/dummy_rails/config/application.rb +31 -0
  141. data/test/dummy_rails/config/boot.rb +5 -0
  142. data/test/dummy_rails/config/environment.rb +5 -0
  143. data/test/dummy_rails/config/environments/development.rb +23 -0
  144. data/test/dummy_rails/config/environments/production.rb +82 -0
  145. data/test/dummy_rails/config/environments/test.rb +38 -0
  146. data/test/dummy_rails/config/initializers/backtrace_silencers.rb +7 -0
  147. data/test/dummy_rails/config/initializers/filter_parameter_logging.rb +4 -0
  148. data/test/dummy_rails/config/initializers/inflections.rb +16 -0
  149. data/test/dummy_rails/config/initializers/mime_types.rb +5 -0
  150. data/test/dummy_rails/config/initializers/secret_token.rb +18 -0
  151. data/test/dummy_rails/config/initializers/session_store.rb +3 -0
  152. data/test/dummy_rails/config/initializers/wrap_parameters.rb +14 -0
  153. data/test/dummy_rails/config/locales/en.yml +3 -0
  154. data/test/dummy_rails/config/locales/es.yml +3 -0
  155. data/test/dummy_rails/config/routes.rb +3 -0
  156. data/test/dummy_rails/config.ru +4 -0
  157. data/test/dummy_rails/log/.keep +0 -0
  158. data/test/dummy_sass_only/Gemfile +4 -0
  159. data/test/dummy_sass_only/compile.rb +20 -0
  160. data/test/dummy_sass_only/import_all.scss +2 -0
  161. data/test/gemfiles/default.gemfile +3 -0
  162. data/test/node_mincer_test.rb +35 -0
  163. data/test/node_sass_compile_test.sh +9 -0
  164. data/test/pages_test.rb +14 -0
  165. data/test/sass_test.rb +29 -0
  166. data/test/sprockets_rails_test.rb +31 -0
  167. data/test/support/dummy_rails_integration.rb +22 -0
  168. data/test/support/reporting.rb +27 -0
  169. data/test/test_helper.rb +36 -0
  170. data/test/test_helper_rails.rb +6 -0
  171. metadata +467 -0
@@ -0,0 +1,157 @@
1
+ //
2
+ // Responsive: Utility classes
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Visibility utilities
7
+ // Note: Deprecated .visible-xs, .visible-sm, .visible-md, and .visible-lg as of v3.2.0
8
+
9
+ @include responsive-invisibility('.visible-xs');
10
+ @include responsive-invisibility('.visible-sm');
11
+ @include responsive-invisibility('.visible-md');
12
+ @include responsive-invisibility('.visible-lg');
13
+
14
+ .visible-xs-block,
15
+ .visible-xs-inline,
16
+ .visible-xs-inline-block,
17
+ .visible-sm-block,
18
+ .visible-sm-inline,
19
+ .visible-sm-inline-block,
20
+ .visible-md-block,
21
+ .visible-md-inline,
22
+ .visible-md-inline-block,
23
+ .visible-lg-block,
24
+ .visible-lg-inline,
25
+ .visible-lg-inline-block {
26
+ display: none !important;
27
+ }
28
+
29
+ @media (max-width: $screen-xs-max) {
30
+ @include responsive-visibility('.visible-xs');
31
+ }
32
+ .visible-xs-block {
33
+ @media (max-width: $screen-xs-max) {
34
+ display: block !important;
35
+ }
36
+ }
37
+ .visible-xs-inline {
38
+ @media (max-width: $screen-xs-max) {
39
+ display: inline !important;
40
+ }
41
+ }
42
+ .visible-xs-inline-block {
43
+ @media (max-width: $screen-xs-max) {
44
+ display: inline-block !important;
45
+ }
46
+ }
47
+
48
+ @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
49
+ @include responsive-visibility('.visible-sm');
50
+ }
51
+ .visible-sm-block {
52
+ @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
53
+ display: block !important;
54
+ }
55
+ }
56
+ .visible-sm-inline {
57
+ @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
58
+ display: inline !important;
59
+ }
60
+ }
61
+ .visible-sm-inline-block {
62
+ @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
63
+ display: inline-block !important;
64
+ }
65
+ }
66
+
67
+ @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
68
+ @include responsive-visibility('.visible-md');
69
+ }
70
+ .visible-md-block {
71
+ @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
72
+ display: block !important;
73
+ }
74
+ }
75
+ .visible-md-inline {
76
+ @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
77
+ display: inline !important;
78
+ }
79
+ }
80
+ .visible-md-inline-block {
81
+ @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
82
+ display: inline-block !important;
83
+ }
84
+ }
85
+
86
+ @media (min-width: $screen-lg-min) {
87
+ @include responsive-visibility('.visible-lg');
88
+ }
89
+ .visible-lg-block {
90
+ @media (min-width: $screen-lg-min) {
91
+ display: block !important;
92
+ }
93
+ }
94
+ .visible-lg-inline {
95
+ @media (min-width: $screen-lg-min) {
96
+ display: inline !important;
97
+ }
98
+ }
99
+ .visible-lg-inline-block {
100
+ @media (min-width: $screen-lg-min) {
101
+ display: inline-block !important;
102
+ }
103
+ }
104
+
105
+ @media (max-width: $screen-xs-max) {
106
+ @include responsive-invisibility('.hidden-xs');
107
+ }
108
+
109
+ @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
110
+ @include responsive-invisibility('.hidden-sm');
111
+ }
112
+
113
+ @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
114
+ @include responsive-invisibility('.hidden-md');
115
+ }
116
+
117
+ @media (min-width: $screen-lg-min) {
118
+ @include responsive-invisibility('.hidden-lg');
119
+ }
120
+
121
+
122
+ // Print utilities
123
+ //
124
+ // Media queries are placed on the inside to be mixin-friendly.
125
+
126
+ // Note: Deprecated .visible-print as of v3.2.0
127
+
128
+ @include responsive-invisibility('.visible-print');
129
+
130
+ @media print {
131
+ @include responsive-visibility('.visible-print');
132
+ }
133
+ .visible-print-block {
134
+ display: none !important;
135
+
136
+ @media print {
137
+ display: block !important;
138
+ }
139
+ }
140
+ .visible-print-inline {
141
+ display: none !important;
142
+
143
+ @media print {
144
+ display: inline !important;
145
+ }
146
+ }
147
+ .visible-print-inline-block {
148
+ display: none !important;
149
+
150
+ @media print {
151
+ display: inline-block !important;
152
+ }
153
+ }
154
+
155
+ @media print {
156
+ @include responsive-invisibility('.hidden-print');
157
+ }
@@ -0,0 +1,161 @@
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
+ // https://getbootstrap.com/docs/3.4/getting-started/#third-box-sizing
11
+ * {
12
+ @include box-sizing(border-box);
13
+ }
14
+ *:before,
15
+ *:after {
16
+ @include box-sizing(border-box);
17
+ }
18
+
19
+
20
+ // Body reset
21
+
22
+ html {
23
+ font-size: 10px;
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: $link-hover-decoration;
56
+ }
57
+
58
+ &:focus {
59
+ @include 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
+ @include 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
+ @include transition(all .2s ease-in-out);
100
+
101
+ // Keep them at most 100% wide
102
+ @include 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: https://a11yproject.com/posts/how-to-hide-content
124
+
125
+ .sr-only {
126
+ position: absolute;
127
+ width: 1px;
128
+ height: 1px;
129
+ padding: 0;
130
+ margin: -1px;
131
+ overflow: hidden;
132
+ clip: rect(0, 0, 0, 0);
133
+ border: 0;
134
+ }
135
+
136
+ // Use in conjunction with .sr-only to only display content when it's focused.
137
+ // Useful for "Skip to main content" links; see https://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
138
+ // Credit: HTML5 Boilerplate
139
+
140
+ .sr-only-focusable {
141
+ &:active,
142
+ &:focus {
143
+ position: static;
144
+ width: auto;
145
+ height: auto;
146
+ margin: 0;
147
+ overflow: visible;
148
+ clip: auto;
149
+ }
150
+ }
151
+
152
+
153
+ // iOS "clickable elements" fix for role="button"
154
+ //
155
+ // Fixes "clickability" issue (and more generally, the firing of events such as focus as well)
156
+ // for traditionally non-focusable elements with role="button"
157
+ // see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
158
+
159
+ [role="button"] {
160
+ cursor: pointer;
161
+ }
@@ -0,0 +1,233 @@
1
+ //
2
+ // Tables
3
+ // --------------------------------------------------
4
+
5
+
6
+ table {
7
+ background-color: $table-bg;
8
+
9
+ // Table cell sizing
10
+ //
11
+ // Reset default table behavior
12
+
13
+ col[class*="col-"] {
14
+ position: static; // Prevent border hiding in Firefox (see https://github.com/twbs/bootstrap/issues/11623)
15
+ display: table-column;
16
+ float: none;
17
+ }
18
+
19
+ td,
20
+ th {
21
+ &[class*="col-"] {
22
+ position: static; // Prevent border hiding in Firefox (see https://github.com/twbs/bootstrap/issues/11623)
23
+ display: table-cell;
24
+ float: none;
25
+ }
26
+ }
27
+ }
28
+
29
+ caption {
30
+ padding-top: $table-cell-padding;
31
+ padding-bottom: $table-cell-padding;
32
+ color: $text-muted;
33
+ text-align: left;
34
+ }
35
+
36
+ th {
37
+ text-align: left;
38
+ }
39
+
40
+
41
+ // Baseline styles
42
+
43
+ .table {
44
+ width: 100%;
45
+ max-width: 100%;
46
+ margin-bottom: $line-height-computed;
47
+ // Cells
48
+ > thead,
49
+ > tbody,
50
+ > tfoot {
51
+ > tr {
52
+ > th,
53
+ > td {
54
+ padding: $table-cell-padding;
55
+ line-height: $line-height-base;
56
+ vertical-align: top;
57
+ border-top: 1px solid $table-border-color;
58
+ }
59
+ }
60
+ }
61
+ // Bottom align for column headings
62
+ > thead > tr > th {
63
+ vertical-align: bottom;
64
+ border-bottom: 2px solid $table-border-color;
65
+ }
66
+ // Remove top border from thead by default
67
+ > caption + thead,
68
+ > colgroup + thead,
69
+ > thead:first-child {
70
+ > tr:first-child {
71
+ > th,
72
+ > td {
73
+ border-top: 0;
74
+ }
75
+ }
76
+ }
77
+ // Account for multiple tbody instances
78
+ > tbody + tbody {
79
+ border-top: 2px solid $table-border-color;
80
+ }
81
+
82
+ // Nesting
83
+ .table {
84
+ background-color: $body-bg;
85
+ }
86
+ }
87
+
88
+
89
+ // Condensed table w/ half padding
90
+
91
+ .table-condensed {
92
+ > thead,
93
+ > tbody,
94
+ > tfoot {
95
+ > tr {
96
+ > th,
97
+ > td {
98
+ padding: $table-condensed-cell-padding;
99
+ }
100
+ }
101
+ }
102
+ }
103
+
104
+
105
+ // Bordered version
106
+ //
107
+ // Add borders all around the table and between all the columns.
108
+
109
+ .table-bordered {
110
+ border: 1px solid $table-border-color;
111
+ > thead,
112
+ > tbody,
113
+ > tfoot {
114
+ > tr {
115
+ > th,
116
+ > td {
117
+ border: 1px solid $table-border-color;
118
+ }
119
+ }
120
+ }
121
+ > thead > tr {
122
+ > th,
123
+ > td {
124
+ border-bottom-width: 2px;
125
+ }
126
+ }
127
+ }
128
+
129
+
130
+ // Zebra-striping
131
+ //
132
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
133
+
134
+ .table-striped {
135
+ > tbody > tr:nth-of-type(odd) {
136
+ background-color: $table-bg-accent;
137
+ }
138
+ }
139
+
140
+
141
+ // Hover effect
142
+ //
143
+ // Placed here since it has to come after the potential zebra striping
144
+
145
+ .table-hover {
146
+ > tbody > tr:hover {
147
+ background-color: $table-bg-hover;
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
+ @include table-row-variant('active', $table-bg-active);
159
+ @include table-row-variant('success', $state-success-bg);
160
+ @include table-row-variant('info', $state-info-bg);
161
+ @include table-row-variant('warning', $state-warning-bg);
162
+ @include 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
+ .table-responsive {
172
+ min-height: .01%; // Workaround for some older browsers (see https://github.com/twbs/bootstrap/issues/14837)
173
+ overflow-x: auto;
174
+
175
+ @media screen and (max-width: $screen-xs-max) {
176
+ width: 100%;
177
+ margin-bottom: ($line-height-computed * .75);
178
+ overflow-y: hidden;
179
+ border: 1px solid $table-border-color;
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
+ }