bootstrap-sass 3.3.4.1 → 3.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -0
  3. data/.travis.yml +8 -12
  4. data/CHANGELOG.md +26 -0
  5. data/Gemfile +1 -4
  6. data/LICENSE +2 -1
  7. data/README.md +80 -74
  8. data/Rakefile +46 -11
  9. data/assets/javascripts/bootstrap.js +441 -178
  10. data/assets/javascripts/bootstrap.min.js +4 -5
  11. data/assets/javascripts/bootstrap/affix.js +8 -6
  12. data/assets/javascripts/bootstrap/alert.js +6 -5
  13. data/assets/javascripts/bootstrap/button.js +24 -15
  14. data/assets/javascripts/bootstrap/carousel.js +16 -7
  15. data/assets/javascripts/bootstrap/collapse.js +7 -6
  16. data/assets/javascripts/bootstrap/dropdown.js +49 -45
  17. data/assets/javascripts/bootstrap/modal.js +47 -28
  18. data/assets/javascripts/bootstrap/popover.js +25 -10
  19. data/assets/javascripts/bootstrap/scrollspy.js +4 -4
  20. data/assets/javascripts/bootstrap/tab.js +13 -11
  21. data/assets/javascripts/bootstrap/tooltip.js +232 -31
  22. data/assets/javascripts/bootstrap/transition.js +5 -5
  23. data/assets/stylesheets/_bootstrap-mincer.scss +2 -2
  24. data/assets/stylesheets/_bootstrap.scss +6 -0
  25. data/assets/stylesheets/bootstrap/_alerts.scss +3 -3
  26. data/assets/stylesheets/bootstrap/_badges.scss +3 -3
  27. data/assets/stylesheets/bootstrap/_breadcrumbs.scss +3 -1
  28. data/assets/stylesheets/bootstrap/_button-groups.scss +9 -8
  29. data/assets/stylesheets/bootstrap/_buttons.scss +17 -9
  30. data/assets/stylesheets/bootstrap/_carousel.scss +34 -32
  31. data/assets/stylesheets/bootstrap/_close.scss +1 -0
  32. data/assets/stylesheets/bootstrap/_code.scss +3 -3
  33. data/assets/stylesheets/bootstrap/_component-animations.scss +1 -0
  34. data/assets/stylesheets/bootstrap/_dropdowns.scss +22 -23
  35. data/assets/stylesheets/bootstrap/_forms.scss +101 -72
  36. data/assets/stylesheets/bootstrap/_glyphicons.scss +15 -13
  37. data/assets/stylesheets/bootstrap/_grid.scss +10 -0
  38. data/assets/stylesheets/bootstrap/_input-groups.scss +10 -5
  39. data/assets/stylesheets/bootstrap/_jumbotron.scss +8 -4
  40. data/assets/stylesheets/bootstrap/_labels.scss +1 -1
  41. data/assets/stylesheets/bootstrap/_list-group.scss +30 -26
  42. data/assets/stylesheets/bootstrap/_media.scss +6 -1
  43. data/assets/stylesheets/bootstrap/_mixins.scss +1 -0
  44. data/assets/stylesheets/bootstrap/_modals.scss +8 -8
  45. data/assets/stylesheets/bootstrap/_navbar.scss +75 -81
  46. data/assets/stylesheets/bootstrap/_navs.scss +4 -4
  47. data/assets/stylesheets/bootstrap/_normalize.scss +13 -13
  48. data/assets/stylesheets/bootstrap/_pager.scss +2 -2
  49. data/assets/stylesheets/bootstrap/_pagination.scss +15 -17
  50. data/assets/stylesheets/bootstrap/_panels.scss +11 -5
  51. data/assets/stylesheets/bootstrap/_popovers.scss +50 -59
  52. data/assets/stylesheets/bootstrap/_print.scss +90 -98
  53. data/assets/stylesheets/bootstrap/_progress-bars.scss +3 -3
  54. data/assets/stylesheets/bootstrap/_responsive-embed.scss +2 -2
  55. data/assets/stylesheets/bootstrap/_responsive-utilities.scss +7 -5
  56. data/assets/stylesheets/bootstrap/_scaffolding.scss +8 -9
  57. data/assets/stylesheets/bootstrap/_tables.scss +23 -23
  58. data/assets/stylesheets/bootstrap/_theme.scss +42 -20
  59. data/assets/stylesheets/bootstrap/_thumbnails.scss +1 -1
  60. data/assets/stylesheets/bootstrap/_tooltip.scss +42 -32
  61. data/assets/stylesheets/bootstrap/_type.scss +11 -11
  62. data/assets/stylesheets/bootstrap/_variables.scss +16 -8
  63. data/assets/stylesheets/bootstrap/_wells.scss +2 -2
  64. data/assets/stylesheets/bootstrap/mixins/_alerts.scss +2 -1
  65. data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +2 -1
  66. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +4 -4
  67. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +20 -11
  68. data/assets/stylesheets/bootstrap/mixins/_center-block.scss +1 -1
  69. data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +1 -1
  70. data/assets/stylesheets/bootstrap/mixins/_forms.scss +4 -4
  71. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +6 -8
  72. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +2 -2
  73. data/assets/stylesheets/bootstrap/mixins/_grid.scss +8 -8
  74. data/assets/stylesheets/bootstrap/mixins/_hide-text.scss +2 -2
  75. data/assets/stylesheets/bootstrap/mixins/_image.scss +5 -10
  76. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +3 -2
  77. data/assets/stylesheets/bootstrap/mixins/_opacity.scss +2 -3
  78. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +2 -1
  79. data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +18 -0
  80. data/assets/stylesheets/bootstrap/mixins/_resize.scss +1 -1
  81. data/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +1 -5
  82. data/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +3 -3
  83. data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +2 -1
  84. data/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +3 -3
  85. data/bootstrap-sass.gemspec +10 -9
  86. data/bower.json +5 -9
  87. data/composer.json +2 -2
  88. data/eyeglass-exports.js +7 -0
  89. data/lib/bootstrap-sass.rb +18 -11
  90. data/lib/bootstrap-sass/engine.rb +6 -1
  91. data/lib/bootstrap-sass/version.rb +2 -2
  92. data/package-lock.json +1611 -0
  93. data/package.json +20 -6
  94. data/sache.json +1 -1
  95. data/tasks/converter/less_conversion.rb +20 -9
  96. data/tasks/converter/network.rb +2 -2
  97. data/templates/project/_bootstrap-variables.sass +17 -9
  98. data/test/compilation_test.rb +24 -12
  99. data/test/dummy_rails/config/application.rb +2 -1
  100. data/test/dummy_rails/config/boot.rb +1 -1
  101. data/test/dummy_sass_only/Gemfile +1 -1
  102. data/test/dummy_sass_only/compile.rb +14 -7
  103. data/test/dummy_sass_only/import_all.scss +2 -0
  104. data/test/gemfiles/default.gemfile +3 -0
  105. data/test/node_mincer_test.rb +2 -3
  106. data/test/node_sass_compile_test.sh +4 -3
  107. data/test/sass_test.rb +10 -7
  108. data/test/sprockets_rails_test.rb +12 -8
  109. data/test/support/dummy_rails_integration.rb +1 -1
  110. data/test/support/reporting.rb +10 -0
  111. data/test/test_helper.rb +3 -2
  112. metadata +38 -29
  113. data/test/compass_test.rb +0 -9
  114. data/test/dummy_sass_only/import_all.sass +0 -2
  115. data/test/gemfiles/sass_3_2.gemfile +0 -6
  116. data/test/gemfiles/sass_3_3.gemfile +0 -6
  117. data/test/gemfiles/sass_3_4.gemfile +0 -7
  118. data/test/gemfiles/sass_head.gemfile +0 -6
@@ -7,8 +7,8 @@
7
7
  // --------------------------------------------------
8
8
 
9
9
  .nav {
10
- margin-bottom: 0;
11
10
  padding-left: 0; // Override default ul/ol
11
+ margin-bottom: 0;
12
12
  list-style: none;
13
13
  @include clearfix;
14
14
 
@@ -35,8 +35,8 @@
35
35
  &:focus {
36
36
  color: $nav-disabled-link-hover-color;
37
37
  text-decoration: none;
38
- background-color: transparent;
39
38
  cursor: $cursor-disabled;
39
+ background-color: transparent;
40
40
  }
41
41
  }
42
42
  }
@@ -97,10 +97,10 @@
97
97
  &:hover,
98
98
  &:focus {
99
99
  color: $nav-tabs-active-link-hover-color;
100
+ cursor: default;
100
101
  background-color: $nav-tabs-active-link-hover-bg;
101
102
  border: 1px solid $nav-tabs-active-link-hover-border-color;
102
103
  border-bottom-color: transparent;
103
- cursor: default;
104
104
  }
105
105
  }
106
106
  }
@@ -163,8 +163,8 @@
163
163
  > li {
164
164
  float: none;
165
165
  > a {
166
- text-align: center;
167
166
  margin-bottom: 5px;
167
+ text-align: center;
168
168
  }
169
169
  }
170
170
 
@@ -1,9 +1,9 @@
1
- /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
1
+ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
2
2
 
3
3
  //
4
4
  // 1. Set default font family to sans-serif.
5
- // 2. Prevent iOS text size adjust after orientation change, without disabling
6
- // user zoom.
5
+ // 2. Prevent iOS and IE text size adjust after device orientation change,
6
+ // without disabling user zoom.
7
7
  //
8
8
 
9
9
  html {
@@ -71,7 +71,7 @@ audio:not([controls]) {
71
71
 
72
72
  //
73
73
  // Address `[hidden]` styling not present in IE 8/9/10.
74
- // Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
74
+ // Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
75
75
  //
76
76
 
77
77
  [hidden],
@@ -91,7 +91,8 @@ a {
91
91
  }
92
92
 
93
93
  //
94
- // Improve readability when focused and also mouse hovered in all browsers.
94
+ // Improve readability of focused elements when they are also in an
95
+ // active/hover state.
95
96
  //
96
97
 
97
98
  a:active,
@@ -103,11 +104,14 @@ a:hover {
103
104
  // ==========================================================================
104
105
 
105
106
  //
106
- // Address styling not present in IE 8/9/10/11, Safari, and Chrome.
107
+ // 1. Remove the bottom border in Chrome 57- and Firefox 39-.
108
+ // 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
107
109
  //
108
110
 
109
111
  abbr[title] {
110
- border-bottom: 1px dotted;
112
+ border-bottom: none; // 1
113
+ text-decoration: underline; // 2
114
+ text-decoration: underline dotted; // 2
111
115
  }
112
116
 
113
117
  //
@@ -209,7 +213,6 @@ figure {
209
213
  //
210
214
 
211
215
  hr {
212
- -moz-box-sizing: content-box;
213
216
  box-sizing: content-box;
214
217
  height: 0;
215
218
  }
@@ -350,15 +353,12 @@ input[type="number"]::-webkit-outer-spin-button {
350
353
 
351
354
  //
352
355
  // 1. Address `appearance` set to `searchfield` in Safari and Chrome.
353
- // 2. Address `box-sizing` set to `border-box` in Safari and Chrome
354
- // (include `-moz` to future-proof).
356
+ // 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
355
357
  //
356
358
 
357
359
  input[type="search"] {
358
360
  -webkit-appearance: textfield; // 1
359
- -moz-box-sizing: content-box;
360
- -webkit-box-sizing: content-box; // 2
361
- box-sizing: content-box;
361
+ box-sizing: content-box; //2
362
362
  }
363
363
 
364
364
  //
@@ -6,8 +6,8 @@
6
6
  .pager {
7
7
  padding-left: 0;
8
8
  margin: $line-height-computed 0;
9
- list-style: none;
10
9
  text-align: center;
10
+ list-style: none;
11
11
  @include clearfix;
12
12
  li {
13
13
  display: inline;
@@ -47,8 +47,8 @@
47
47
  > a:focus,
48
48
  > span {
49
49
  color: $pager-disabled-color;
50
- background-color: $pager-bg;
51
50
  cursor: $cursor-disabled;
51
+ background-color: $pager-bg;
52
52
  }
53
53
  }
54
54
  }
@@ -14,12 +14,20 @@
14
14
  position: relative;
15
15
  float: left; // Collapse white-space
16
16
  padding: $padding-base-vertical $padding-base-horizontal;
17
+ margin-left: -1px;
17
18
  line-height: $line-height-base;
18
- text-decoration: none;
19
19
  color: $pagination-color;
20
+ text-decoration: none;
20
21
  background-color: $pagination-bg;
21
22
  border: 1px solid $pagination-border;
22
- margin-left: -1px;
23
+
24
+ &:hover,
25
+ &:focus {
26
+ z-index: 2;
27
+ color: $pagination-hover-color;
28
+ background-color: $pagination-hover-bg;
29
+ border-color: $pagination-hover-border;
30
+ }
23
31
  }
24
32
  &:first-child {
25
33
  > a,
@@ -36,26 +44,16 @@
36
44
  }
37
45
  }
38
46
 
39
- > li > a,
40
- > li > span {
41
- &:hover,
42
- &:focus {
43
- color: $pagination-hover-color;
44
- background-color: $pagination-hover-bg;
45
- border-color: $pagination-hover-border;
46
- }
47
- }
48
-
49
47
  > .active > a,
50
48
  > .active > span {
51
49
  &,
52
50
  &:hover,
53
51
  &:focus {
54
- z-index: 2;
52
+ z-index: 3;
55
53
  color: $pagination-active-color;
54
+ cursor: default;
56
55
  background-color: $pagination-active-bg;
57
56
  border-color: $pagination-active-border;
58
- cursor: default;
59
57
  }
60
58
  }
61
59
 
@@ -67,9 +65,9 @@
67
65
  > a:hover,
68
66
  > a:focus {
69
67
  color: $pagination-disabled-color;
68
+ cursor: $cursor-disabled;
70
69
  background-color: $pagination-disabled-bg;
71
70
  border-color: $pagination-disabled-border;
72
- cursor: $cursor-disabled;
73
71
  }
74
72
  }
75
73
  }
@@ -79,10 +77,10 @@
79
77
 
80
78
  // Large
81
79
  .pagination-lg {
82
- @include pagination-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $border-radius-large);
80
+ @include pagination-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large);
83
81
  }
84
82
 
85
83
  // Small
86
84
  .pagination-sm {
87
- @include pagination-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $border-radius-small);
85
+ @include pagination-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small);
88
86
  }
@@ -9,7 +9,7 @@
9
9
  background-color: $panel-bg;
10
10
  border: 1px solid transparent;
11
11
  border-radius: $panel-border-radius;
12
- @include box-shadow(0 1px 1px rgba(0,0,0,.05));
12
+ @include box-shadow(0 1px 1px rgba(0, 0, 0, .05));
13
13
  }
14
14
 
15
15
  // Panel contents
@@ -76,6 +76,7 @@
76
76
  @include border-top-radius(($panel-border-radius - 1));
77
77
  }
78
78
  }
79
+
79
80
  // Add border bottom radius for last one
80
81
  &:last-child {
81
82
  .list-group-item:last-child {
@@ -84,6 +85,11 @@
84
85
  }
85
86
  }
86
87
  }
88
+ > .panel-heading + .panel-collapse > .list-group {
89
+ .list-group-item:first-child {
90
+ @include border-top-radius(0);
91
+ }
92
+ }
87
93
  }
88
94
  // Collapse space between when there's no additional content.
89
95
  .panel-heading + .list-group {
@@ -107,8 +113,8 @@
107
113
  margin-bottom: 0;
108
114
 
109
115
  caption {
110
- padding-left: $panel-body-padding;
111
116
  padding-right: $panel-body-padding;
117
+ padding-left: $panel-body-padding;
112
118
  }
113
119
  }
114
120
  // Add border top radius for first one
@@ -141,8 +147,8 @@
141
147
  > tbody:last-child,
142
148
  > tfoot:last-child {
143
149
  > tr:last-child {
144
- border-bottom-left-radius: ($panel-border-radius - 1);
145
150
  border-bottom-right-radius: ($panel-border-radius - 1);
151
+ border-bottom-left-radius: ($panel-border-radius - 1);
146
152
 
147
153
  td:first-child,
148
154
  th:first-child {
@@ -202,13 +208,13 @@
202
208
  }
203
209
  }
204
210
  > .table-responsive {
205
- border: 0;
206
211
  margin-bottom: 0;
212
+ border: 0;
207
213
  }
208
214
  }
209
215
 
210
216
 
211
- // Collapsable panels (aka, accordion)
217
+ // Collapsible panels (aka, accordion)
212
218
  //
213
219
  // Wrap a series of panels in `.panel-group` to turn them into an accordion with
214
220
  // the help of our collapse JavaScript plugin.
@@ -11,107 +11,85 @@
11
11
  display: none;
12
12
  max-width: $popover-max-width;
13
13
  padding: 1px;
14
- // Reset font and text properties given new insertion method
15
- font-family: $font-family-base;
14
+ // Our parent element can be arbitrary since popovers are by default inserted as a sibling of their target element.
15
+ // So reset our font and text properties to avoid inheriting weird values.
16
+ @include reset-text;
16
17
  font-size: $font-size-base;
17
- font-weight: normal;
18
- line-height: $line-height-base;
19
- text-align: left;
20
18
  background-color: $popover-bg;
21
19
  background-clip: padding-box;
22
20
  border: 1px solid $popover-fallback-border-color;
23
21
  border: 1px solid $popover-border-color;
24
22
  border-radius: $border-radius-large;
25
- @include box-shadow(0 5px 10px rgba(0,0,0,.2));
26
-
27
- // Overrides for proper insertion
28
- white-space: normal;
23
+ @include box-shadow(0 5px 10px rgba(0, 0, 0, .2));
29
24
 
30
25
  // Offset the popover to account for the popover arrow
31
- &.top { margin-top: -$popover-arrow-width; }
32
- &.right { margin-left: $popover-arrow-width; }
33
- &.bottom { margin-top: $popover-arrow-width; }
34
- &.left { margin-left: -$popover-arrow-width; }
35
- }
26
+ &.top { margin-top: -$popover-arrow-width; }
27
+ &.right { margin-left: $popover-arrow-width; }
28
+ &.bottom { margin-top: $popover-arrow-width; }
29
+ &.left { margin-left: -$popover-arrow-width; }
36
30
 
37
- .popover-title {
38
- margin: 0; // reset heading margin
39
- padding: 8px 14px;
40
- font-size: $font-size-base;
41
- background-color: $popover-title-bg;
42
- border-bottom: 1px solid darken($popover-title-bg, 5%);
43
- border-radius: ($border-radius-large - 1) ($border-radius-large - 1) 0 0;
44
- }
31
+ // Arrows
32
+ // .arrow is outer, .arrow:after is inner
33
+ > .arrow {
34
+ border-width: $popover-arrow-outer-width;
45
35
 
46
- .popover-content {
47
- padding: 9px 14px;
48
- }
49
-
50
- // Arrows
51
- //
52
- // .arrow is outer, .arrow:after is inner
36
+ &,
37
+ &:after {
38
+ position: absolute;
39
+ display: block;
40
+ width: 0;
41
+ height: 0;
42
+ border-color: transparent;
43
+ border-style: solid;
44
+ }
53
45
 
54
- .popover > .arrow {
55
- &,
56
- &:after {
57
- position: absolute;
58
- display: block;
59
- width: 0;
60
- height: 0;
61
- border-color: transparent;
62
- border-style: solid;
46
+ &:after {
47
+ content: "";
48
+ border-width: $popover-arrow-width;
49
+ }
63
50
  }
64
- }
65
- .popover > .arrow {
66
- border-width: $popover-arrow-outer-width;
67
- }
68
- .popover > .arrow:after {
69
- border-width: $popover-arrow-width;
70
- content: "";
71
- }
72
51
 
73
- .popover {
74
52
  &.top > .arrow {
53
+ bottom: -$popover-arrow-outer-width;
75
54
  left: 50%;
76
55
  margin-left: -$popover-arrow-outer-width;
77
- border-bottom-width: 0;
78
56
  border-top-color: $popover-arrow-outer-fallback-color; // IE8 fallback
79
57
  border-top-color: $popover-arrow-outer-color;
80
- bottom: -$popover-arrow-outer-width;
58
+ border-bottom-width: 0;
81
59
  &:after {
82
- content: " ";
83
60
  bottom: 1px;
84
61
  margin-left: -$popover-arrow-width;
85
- border-bottom-width: 0;
62
+ content: " ";
86
63
  border-top-color: $popover-arrow-color;
64
+ border-bottom-width: 0;
87
65
  }
88
66
  }
89
67
  &.right > .arrow {
90
68
  top: 50%;
91
69
  left: -$popover-arrow-outer-width;
92
70
  margin-top: -$popover-arrow-outer-width;
93
- border-left-width: 0;
94
71
  border-right-color: $popover-arrow-outer-fallback-color; // IE8 fallback
95
72
  border-right-color: $popover-arrow-outer-color;
73
+ border-left-width: 0;
96
74
  &:after {
97
- content: " ";
98
- left: 1px;
99
75
  bottom: -$popover-arrow-width;
100
- border-left-width: 0;
76
+ left: 1px;
77
+ content: " ";
101
78
  border-right-color: $popover-arrow-color;
79
+ border-left-width: 0;
102
80
  }
103
81
  }
104
82
  &.bottom > .arrow {
83
+ top: -$popover-arrow-outer-width;
105
84
  left: 50%;
106
85
  margin-left: -$popover-arrow-outer-width;
107
86
  border-top-width: 0;
108
87
  border-bottom-color: $popover-arrow-outer-fallback-color; // IE8 fallback
109
88
  border-bottom-color: $popover-arrow-outer-color;
110
- top: -$popover-arrow-outer-width;
111
89
  &:after {
112
- content: " ";
113
90
  top: 1px;
114
91
  margin-left: -$popover-arrow-width;
92
+ content: " ";
115
93
  border-top-width: 0;
116
94
  border-bottom-color: $popover-arrow-color;
117
95
  }
@@ -125,11 +103,24 @@
125
103
  border-left-color: $popover-arrow-outer-fallback-color; // IE8 fallback
126
104
  border-left-color: $popover-arrow-outer-color;
127
105
  &:after {
128
- content: " ";
129
106
  right: 1px;
107
+ bottom: -$popover-arrow-width;
108
+ content: " ";
130
109
  border-right-width: 0;
131
110
  border-left-color: $popover-arrow-color;
132
- bottom: -$popover-arrow-width;
133
111
  }
134
112
  }
135
113
  }
114
+
115
+ .popover-title {
116
+ padding: 8px 14px;
117
+ margin: 0; // reset heading margin
118
+ font-size: $font-size-base;
119
+ background-color: $popover-title-bg;
120
+ border-bottom: 1px solid darken($popover-title-bg, 5%);
121
+ border-radius: ($border-radius-large - 1) ($border-radius-large - 1) 0 0;
122
+ }
123
+
124
+ .popover-content {
125
+ padding: 9px 14px;
126
+ }
@@ -6,102 +6,94 @@
6
6
  // ==========================================================================
7
7
 
8
8
  @media print {
9
- *,
10
- *:before,
11
- *:after {
12
- background: transparent !important;
13
- color: #000 !important; // Black prints faster: h5bp.com/s
14
- box-shadow: none !important;
15
- text-shadow: none !important;
16
- }
17
-
18
- a,
19
- a:visited {
20
- text-decoration: underline;
21
- }
22
-
23
- a[href]:after {
24
- content: " (" attr(href) ")";
25
- }
26
-
27
- abbr[title]:after {
28
- content: " (" attr(title) ")";
29
- }
30
-
31
- // Don't show links that are fragment identifiers,
32
- // or use the `javascript:` pseudo protocol
33
- a[href^="#"]:after,
34
- a[href^="javascript:"]:after {
35
- content: "";
36
- }
37
-
38
- pre,
39
- blockquote {
40
- border: 1px solid #999;
41
- page-break-inside: avoid;
42
- }
43
-
44
- thead {
45
- display: table-header-group; // h5bp.com/t
46
- }
47
-
48
- tr,
49
- img {
50
- page-break-inside: avoid;
51
- }
52
-
53
- img {
54
- max-width: 100% !important;
55
- }
56
-
57
- p,
58
- h2,
59
- h3 {
60
- orphans: 3;
61
- widows: 3;
62
- }
63
-
64
- h2,
65
- h3 {
66
- page-break-after: avoid;
67
- }
68
-
69
- // Bootstrap specific changes start
70
- //
71
- // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
72
- // Once fixed, we can just straight up remove this.
73
- select {
74
- background: #fff !important;
75
- }
76
-
77
- // Bootstrap components
78
- .navbar {
79
- display: none;
80
- }
81
- .btn,
82
- .dropup > .btn {
83
- > .caret {
84
- border-top-color: #000 !important;
85
- }
86
- }
87
- .label {
88
- border: 1px solid #000;
89
- }
90
-
91
- .table {
92
- border-collapse: collapse !important;
93
-
94
- td,
95
- th {
96
- background-color: #fff !important;
97
- }
98
- }
99
- .table-bordered {
100
- th,
101
- td {
102
- border: 1px solid #ddd !important;
103
- }
104
- }
105
-
106
- // Bootstrap specific changes end
9
+ *,
10
+ *:before,
11
+ *:after {
12
+ color: #000 !important; // Black prints faster: h5bp.com/s
13
+ text-shadow: none !important;
14
+ background: transparent !important;
15
+ box-shadow: none !important;
16
+ }
17
+
18
+ a,
19
+ a:visited {
20
+ text-decoration: underline;
21
+ }
22
+
23
+ a[href]:after {
24
+ content: " (" attr(href) ")";
25
+ }
26
+
27
+ abbr[title]:after {
28
+ content: " (" attr(title) ")";
29
+ }
30
+
31
+ // Don't show links that are fragment identifiers,
32
+ // or use the `javascript:` pseudo protocol
33
+ a[href^="#"]:after,
34
+ a[href^="javascript:"]:after {
35
+ content: "";
36
+ }
37
+
38
+ pre,
39
+ blockquote {
40
+ border: 1px solid #999;
41
+ page-break-inside: avoid;
42
+ }
43
+
44
+ thead {
45
+ display: table-header-group; // h5bp.com/t
46
+ }
47
+
48
+ tr,
49
+ img {
50
+ page-break-inside: avoid;
51
+ }
52
+
53
+ img {
54
+ max-width: 100% !important;
55
+ }
56
+
57
+ p,
58
+ h2,
59
+ h3 {
60
+ orphans: 3;
61
+ widows: 3;
62
+ }
63
+
64
+ h2,
65
+ h3 {
66
+ page-break-after: avoid;
67
+ }
68
+
69
+ // Bootstrap specific changes start
70
+
71
+ // Bootstrap components
72
+ .navbar {
73
+ display: none;
74
+ }
75
+ .btn,
76
+ .dropup > .btn {
77
+ > .caret {
78
+ border-top-color: #000 !important;
79
+ }
80
+ }
81
+ .label {
82
+ border: 1px solid #000;
83
+ }
84
+
85
+ .table {
86
+ border-collapse: collapse !important;
87
+
88
+ td,
89
+ th {
90
+ background-color: #fff !important;
91
+ }
92
+ }
93
+ .table-bordered {
94
+ th,
95
+ td {
96
+ border: 1px solid #ddd !important;
97
+ }
98
+ }
107
99
  }