apx-docs-theme 0.1.7 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/footer.html +8 -9
  3. data/_includes/head.html +20 -9
  4. data/_includes/js_files.html +21 -3
  5. data/_includes/navbar.html +28 -0
  6. data/_includes/sidebar.html +43 -0
  7. data/_layouts/default.html +10 -10
  8. data/_layouts/docs.html +12 -20
  9. data/_sass/bootstrap/_alert.scss +51 -0
  10. data/_sass/bootstrap/_badge.scss +53 -0
  11. data/_sass/bootstrap/_breadcrumb.scss +41 -0
  12. data/_sass/bootstrap/_button-group.scss +163 -0
  13. data/_sass/bootstrap/_buttons.scss +73 -101
  14. data/_sass/bootstrap/_card.scss +310 -0
  15. data/_sass/bootstrap/_carousel.scss +130 -202
  16. data/_sass/bootstrap/_close.scss +23 -15
  17. data/_sass/bootstrap/_code.scss +15 -36
  18. data/_sass/bootstrap/_custom-forms.scss +507 -0
  19. data/_sass/bootstrap/_dropdown.scss +191 -0
  20. data/_sass/bootstrap/_forms.scss +215 -498
  21. data/_sass/bootstrap/_functions.scss +86 -0
  22. data/_sass/bootstrap/_grid.scss +29 -61
  23. data/_sass/bootstrap/_images.scss +42 -0
  24. data/_sass/bootstrap/_input-group.scss +193 -0
  25. data/_sass/bootstrap/_jumbotron.scss +9 -47
  26. data/_sass/bootstrap/_list-group.scss +70 -79
  27. data/_sass/bootstrap/_media.scss +3 -61
  28. data/_sass/bootstrap/_mixins.scss +19 -18
  29. data/_sass/bootstrap/_modal.scss +186 -0
  30. data/_sass/bootstrap/_nav.scss +120 -0
  31. data/_sass/bootstrap/_navbar.scss +192 -555
  32. data/_sass/bootstrap/_pagination.scss +59 -70
  33. data/_sass/bootstrap/_popover.scss +183 -0
  34. data/_sass/bootstrap/_print.scss +89 -49
  35. data/_sass/bootstrap/_progress.scss +34 -0
  36. data/_sass/bootstrap/_reboot.scss +462 -0
  37. data/_sass/bootstrap/_root.scss +19 -0
  38. data/_sass/bootstrap/_spinners.scss +53 -0
  39. data/_sass/bootstrap/_tables.scss +119 -166
  40. data/_sass/bootstrap/_toasts.scss +43 -0
  41. data/_sass/bootstrap/_tooltip.scss +93 -79
  42. data/_sass/bootstrap/_transitions.scss +22 -0
  43. data/_sass/bootstrap/_type.scss +66 -239
  44. data/_sass/bootstrap/_utilities.scss +16 -55
  45. data/_sass/bootstrap/_variables.scss +926 -709
  46. data/_sass/bootstrap/bootstrap-grid.scss +29 -0
  47. data/_sass/bootstrap/bootstrap-reboot.scss +12 -0
  48. data/_sass/bootstrap/bootstrap.scss +44 -0
  49. data/_sass/bootstrap/mixins/_alert.scss +13 -0
  50. data/_sass/bootstrap/mixins/_background-variant.scss +14 -5
  51. data/_sass/bootstrap/mixins/_badge.scss +11 -0
  52. data/_sass/bootstrap/mixins/_border-radius.scss +25 -8
  53. data/_sass/bootstrap/mixins/_box-shadow.scss +5 -0
  54. data/_sass/bootstrap/mixins/_breakpoints.scss +123 -0
  55. data/_sass/bootstrap/mixins/_buttons.scss +86 -40
  56. data/_sass/bootstrap/mixins/_caret.scss +62 -0
  57. data/_sass/bootstrap/mixins/_clearfix.scss +3 -18
  58. data/_sass/bootstrap/mixins/_float.scss +11 -0
  59. data/_sass/bootstrap/mixins/_forms.scss +176 -66
  60. data/_sass/bootstrap/mixins/_gradients.scss +17 -30
  61. data/_sass/bootstrap/mixins/_grid-framework.scss +51 -66
  62. data/_sass/bootstrap/mixins/_grid.scss +34 -105
  63. data/_sass/bootstrap/mixins/_hover.scss +37 -0
  64. data/_sass/bootstrap/mixins/_image.scss +18 -15
  65. data/_sass/bootstrap/mixins/_list-group.scss +10 -21
  66. data/_sass/bootstrap/mixins/_lists.scss +7 -0
  67. data/_sass/bootstrap/mixins/_nav-divider.scss +4 -4
  68. data/_sass/bootstrap/mixins/_pagination.scss +10 -12
  69. data/_sass/bootstrap/mixins/_reset-text.scss +7 -8
  70. data/_sass/bootstrap/mixins/_resize.scss +1 -1
  71. data/_sass/bootstrap/mixins/_screen-reader.scss +33 -0
  72. data/_sass/bootstrap/mixins/_size.scss +1 -5
  73. data/_sass/bootstrap/mixins/_table-row.scss +26 -15
  74. data/_sass/bootstrap/mixins/_text-emphasis.scss +7 -5
  75. data/_sass/bootstrap/mixins/_text-hide.scss +13 -0
  76. data/_sass/bootstrap/mixins/{_text-overflow.scss → _text-truncate.scss} +2 -2
  77. data/_sass/bootstrap/mixins/_transition.scss +16 -0
  78. data/_sass/bootstrap/mixins/_visibility.scss +7 -0
  79. data/_sass/bootstrap/utilities/_align.scss +8 -0
  80. data/_sass/bootstrap/utilities/_background.scss +19 -0
  81. data/_sass/bootstrap/utilities/_borders.scss +63 -0
  82. data/_sass/bootstrap/utilities/_clearfix.scss +3 -0
  83. data/_sass/bootstrap/utilities/_display.scss +38 -0
  84. data/_sass/bootstrap/utilities/_embed.scss +39 -0
  85. data/_sass/bootstrap/utilities/_flex.scss +51 -0
  86. data/_sass/bootstrap/utilities/_float.scss +9 -0
  87. data/_sass/bootstrap/utilities/_overflow.scss +5 -0
  88. data/_sass/bootstrap/utilities/_position.scss +32 -0
  89. data/_sass/bootstrap/utilities/_screenreaders.scss +11 -0
  90. data/_sass/bootstrap/utilities/_shadows.scss +6 -0
  91. data/_sass/bootstrap/utilities/_sizing.scss +20 -0
  92. data/_sass/bootstrap/utilities/_spacing.scss +73 -0
  93. data/_sass/bootstrap/utilities/_text.scss +67 -0
  94. data/_sass/bootstrap/utilities/_visibility.scss +11 -0
  95. data/_sass/markdown/code.scss +65 -0
  96. data/_sass/markdown/color-system.scss +114 -0
  97. data/_sass/markdown/images.scss +119 -0
  98. data/_sass/markdown/markdown-body.scss +103 -0
  99. data/_sass/markdown/markdown.scss +15 -0
  100. data/_sass/rouge.scss +209 -0
  101. data/_sass/theme.scss +35 -0
  102. data/_sass/{_typeahead.scss → typeahead.scss} +0 -0
  103. data/assets/css/main.scss +1 -90
  104. data/assets/img/{bg.jpg → jumbotron.jpg} +0 -0
  105. data/assets/js/bootstrap.min.js +6 -6
  106. data/assets/js/jquery-3.3.1.min.js +2 -0
  107. data/assets/js/main.js +2 -1
  108. data/assets/js/search.json +11 -0
  109. data/assets/js/typeahead.bundle.js +2621 -0
  110. data/assets/js/typeahead.bundle.min.js +4 -4
  111. metadata +81 -50
  112. data/_includes/pages_nav.html +0 -40
  113. data/_includes/topnav.html +0 -37
  114. data/_sass/_bootstrap.scss +0 -56
  115. data/_sass/_syntax-highlighting.scss +0 -71
  116. data/_sass/bootstrap/_alerts.scss +0 -73
  117. data/_sass/bootstrap/_badges.scss +0 -68
  118. data/_sass/bootstrap/_breadcrumbs.scss +0 -28
  119. data/_sass/bootstrap/_button-groups.scss +0 -244
  120. data/_sass/bootstrap/_component-animations.scss +0 -37
  121. data/_sass/bootstrap/_dropdowns.scss +0 -216
  122. data/_sass/bootstrap/_glyphicons.scss +0 -307
  123. data/_sass/bootstrap/_input-groups.scss +0 -171
  124. data/_sass/bootstrap/_labels.scss +0 -66
  125. data/_sass/bootstrap/_modals.scss +0 -150
  126. data/_sass/bootstrap/_navs.scss +0 -242
  127. data/_sass/bootstrap/_normalize.scss +0 -424
  128. data/_sass/bootstrap/_pager.scss +0 -54
  129. data/_sass/bootstrap/_panels.scss +0 -271
  130. data/_sass/bootstrap/_popovers.scss +0 -131
  131. data/_sass/bootstrap/_progress-bars.scss +0 -87
  132. data/_sass/bootstrap/_responsive-embed.scss +0 -35
  133. data/_sass/bootstrap/_responsive-utilities.scss +0 -179
  134. data/_sass/bootstrap/_scaffolding.scss +0 -161
  135. data/_sass/bootstrap/_theme.scss +0 -291
  136. data/_sass/bootstrap/_thumbnails.scss +0 -38
  137. data/_sass/bootstrap/_wells.scss +0 -29
  138. data/_sass/bootstrap/mixins/_alerts.scss +0 -14
  139. data/_sass/bootstrap/mixins/_center-block.scss +0 -7
  140. data/_sass/bootstrap/mixins/_hide-text.scss +0 -21
  141. data/_sass/bootstrap/mixins/_labels.scss +0 -12
  142. data/_sass/bootstrap/mixins/_nav-vertical-align.scss +0 -9
  143. data/_sass/bootstrap/mixins/_opacity.scss +0 -8
  144. data/_sass/bootstrap/mixins/_panels.scss +0 -24
  145. data/_sass/bootstrap/mixins/_progress-bar.scss +0 -10
  146. data/_sass/bootstrap/mixins/_reset-filter.scss +0 -8
  147. data/_sass/bootstrap/mixins/_responsive-visibility.scss +0 -21
  148. data/_sass/bootstrap/mixins/_tab-focus.scss +0 -9
  149. data/_sass/bootstrap/mixins/_vendor-prefixes.scss +0 -222
  150. data/assets/css/font-awesome.min.css +0 -4
  151. data/assets/fonts/FontAwesome.otf +0 -0
  152. data/assets/fonts/fontawesome-webfont.eot +0 -0
  153. data/assets/fonts/fontawesome-webfont.svg +0 -2671
  154. data/assets/fonts/fontawesome-webfont.ttf +0 -0
  155. data/assets/fonts/fontawesome-webfont.woff +0 -0
  156. data/assets/fonts/fontawesome-webfont.woff2 +0 -0
@@ -0,0 +1,62 @@
1
+ @mixin caret-down {
2
+ border-top: $caret-width solid;
3
+ border-right: $caret-width solid transparent;
4
+ border-bottom: 0;
5
+ border-left: $caret-width solid transparent;
6
+ }
7
+
8
+ @mixin caret-up {
9
+ border-top: 0;
10
+ border-right: $caret-width solid transparent;
11
+ border-bottom: $caret-width solid;
12
+ border-left: $caret-width solid transparent;
13
+ }
14
+
15
+ @mixin caret-right {
16
+ border-top: $caret-width solid transparent;
17
+ border-right: 0;
18
+ border-bottom: $caret-width solid transparent;
19
+ border-left: $caret-width solid;
20
+ }
21
+
22
+ @mixin caret-left {
23
+ border-top: $caret-width solid transparent;
24
+ border-right: $caret-width solid;
25
+ border-bottom: $caret-width solid transparent;
26
+ }
27
+
28
+ @mixin caret($direction: down) {
29
+ @if $enable-caret {
30
+ &::after {
31
+ display: inline-block;
32
+ margin-left: $caret-width * .85;
33
+ vertical-align: $caret-width * .85;
34
+ content: "";
35
+ @if $direction == down {
36
+ @include caret-down;
37
+ } @else if $direction == up {
38
+ @include caret-up;
39
+ } @else if $direction == right {
40
+ @include caret-right;
41
+ }
42
+ }
43
+
44
+ @if $direction == left {
45
+ &::after {
46
+ display: none;
47
+ }
48
+
49
+ &::before {
50
+ display: inline-block;
51
+ margin-right: $caret-width * .85;
52
+ vertical-align: $caret-width * .85;
53
+ content: "";
54
+ @include caret-left;
55
+ }
56
+ }
57
+
58
+ &:empty::after {
59
+ margin-left: 0;
60
+ }
61
+ }
62
+ }
@@ -1,22 +1,7 @@
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
1
  @mixin clearfix() {
14
- &:before,
15
- &:after {
16
- content: " "; // 1
17
- display: table; // 2
18
- }
19
- &:after {
2
+ &::after {
3
+ display: block;
20
4
  clear: both;
5
+ content: "";
21
6
  }
22
7
  }
@@ -0,0 +1,11 @@
1
+ // stylelint-disable declaration-no-important
2
+
3
+ @mixin float-left {
4
+ float: left !important;
5
+ }
6
+ @mixin float-right {
7
+ float: right !important;
8
+ }
9
+ @mixin float-none {
10
+ float: none !important;
11
+ }
@@ -1,49 +1,7 @@
1
- // Form validation states
2
- //
3
- // Used in forms.less to generate the form validation CSS for warnings, errors,
4
- // and successes.
5
-
6
- @mixin 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
- @include 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
- @include 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
1
  // Form control focus state
44
2
  //
45
3
  // Generate a customized focus state and for any input with the specified color,
46
- // which defaults to the `$input-border-focus` variable.
4
+ // which defaults to the `$input-focus-border-color` variable.
47
5
  //
48
6
  // We highly encourage you to not customize the default value, but instead use
49
7
  // this to tweak colors on an as-needed basis. This aesthetic change is based on
@@ -52,37 +10,189 @@
52
10
  //
53
11
  // Example usage: change the default blue border and shadow to white for better
54
12
  // contrast against a dark gray background.
55
- @mixin form-control-focus($color: $input-border-focus) {
56
- $color-rgba: rgba(red($color), green($color), blue($color), .6);
13
+ @mixin form-control-focus() {
57
14
  &:focus {
58
- border-color: $color;
15
+ color: $input-focus-color;
16
+ background-color: $input-focus-bg;
17
+ border-color: $input-focus-border-color;
59
18
  outline: 0;
60
- @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px $color-rgba);
19
+ // Avoid using mixin so we can pass custom focus shadow properly
20
+ @if $enable-shadows {
21
+ box-shadow: $input-box-shadow, $input-focus-box-shadow;
22
+ } @else {
23
+ box-shadow: $input-focus-box-shadow;
24
+ }
61
25
  }
62
26
  }
63
27
 
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
- // [converter] $parent hack
70
- @mixin input-size($parent, $input-height, $padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
71
- #{$parent} {
72
- height: $input-height;
73
- padding: $padding-vertical $padding-horizontal;
74
- font-size: $font-size;
75
- line-height: $line-height;
76
- border-radius: $border-radius;
28
+
29
+ @mixin form-validation-state($state, $color) {
30
+ .#{$state}-feedback {
31
+ display: none;
32
+ width: 100%;
33
+ margin-top: $form-feedback-margin-top;
34
+ font-size: $form-feedback-font-size;
35
+ color: $color;
77
36
  }
78
37
 
79
- select#{$parent} {
80
- height: $input-height;
81
- line-height: $input-height;
38
+ .#{$state}-tooltip {
39
+ position: absolute;
40
+ top: 100%;
41
+ z-index: 5;
42
+ display: none;
43
+ max-width: 100%; // Contain to parent when possible
44
+ padding: $form-feedback-tooltip-padding-y $form-feedback-tooltip-padding-x;
45
+ margin-top: .1rem;
46
+ font-size: $form-feedback-tooltip-font-size;
47
+ line-height: $form-feedback-tooltip-line-height;
48
+ color: color-yiq($color);
49
+ background-color: rgba($color, $form-feedback-tooltip-opacity);
50
+ @include border-radius($form-feedback-tooltip-border-radius);
82
51
  }
83
52
 
84
- textarea#{$parent},
85
- select[multiple]#{$parent} {
86
- height: auto;
53
+ .form-control {
54
+ .was-validated &:#{$state},
55
+ &.is-#{$state} {
56
+ border-color: $color;
57
+
58
+ @if $enable-validation-icons {
59
+ padding-right: $input-height-inner;
60
+ background-repeat: no-repeat;
61
+ background-position: center right calc(#{$input-height-inner} / 4);
62
+ background-size: calc(#{$input-height-inner} / 2) calc(#{$input-height-inner} / 2);
63
+
64
+ @if $state == "valid" {
65
+ background-image: $form-feedback-icon-valid;
66
+ } @else {
67
+ background-image: $form-feedback-icon-invalid;
68
+ }
69
+ }
70
+
71
+ &:focus {
72
+ border-color: $color;
73
+ box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
74
+ }
75
+
76
+ ~ .#{$state}-feedback,
77
+ ~ .#{$state}-tooltip {
78
+ display: block;
79
+ }
80
+ }
81
+ }
82
+
83
+ // stylelint-disable-next-line selector-no-qualifying-type
84
+ textarea.form-control {
85
+ .was-validated &:#{$state},
86
+ &.is-#{$state} {
87
+ @if $enable-validation-icons {
88
+ padding-right: $input-height-inner;
89
+ background-position: top calc(#{$input-height-inner} / 4) right calc(#{$input-height-inner} / 4);
90
+ }
91
+ }
92
+ }
93
+
94
+ .custom-select {
95
+ .was-validated &:#{$state},
96
+ &.is-#{$state} {
97
+ border-color: $color;
98
+
99
+ @if $enable-validation-icons {
100
+ $form-feedback-icon: if($state == "valid", $form-feedback-icon-valid, $form-feedback-icon-invalid);
101
+ padding-right: $custom-select-feedback-icon-padding-right;
102
+ background: $custom-select-background, $form-feedback-icon no-repeat $custom-select-feedback-icon-position / $custom-select-feedback-icon-size;
103
+ }
104
+
105
+ &:focus {
106
+ border-color: $color;
107
+ box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
108
+ }
109
+
110
+ ~ .#{$state}-feedback,
111
+ ~ .#{$state}-tooltip {
112
+ display: block;
113
+ }
114
+ }
115
+ }
116
+
117
+
118
+ .form-control-file {
119
+ .was-validated &:#{$state},
120
+ &.is-#{$state} {
121
+ ~ .#{$state}-feedback,
122
+ ~ .#{$state}-tooltip {
123
+ display: block;
124
+ }
125
+ }
126
+ }
127
+
128
+ .form-check-input {
129
+ .was-validated &:#{$state},
130
+ &.is-#{$state} {
131
+ ~ .form-check-label {
132
+ color: $color;
133
+ }
134
+
135
+ ~ .#{$state}-feedback,
136
+ ~ .#{$state}-tooltip {
137
+ display: block;
138
+ }
139
+ }
140
+ }
141
+
142
+ .custom-control-input {
143
+ .was-validated &:#{$state},
144
+ &.is-#{$state} {
145
+ ~ .custom-control-label {
146
+ color: $color;
147
+
148
+ &::before {
149
+ border-color: $color;
150
+ }
151
+ }
152
+
153
+ ~ .#{$state}-feedback,
154
+ ~ .#{$state}-tooltip {
155
+ display: block;
156
+ }
157
+
158
+ &:checked {
159
+ ~ .custom-control-label::before {
160
+ border-color: lighten($color, 10%);
161
+ @include gradient-bg(lighten($color, 10%));
162
+ }
163
+ }
164
+
165
+ &:focus {
166
+ ~ .custom-control-label::before {
167
+ box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
168
+ }
169
+
170
+ &:not(:checked) ~ .custom-control-label::before {
171
+ border-color: $color;
172
+ }
173
+ }
174
+ }
175
+ }
176
+
177
+ // custom file
178
+ .custom-file-input {
179
+ .was-validated &:#{$state},
180
+ &.is-#{$state} {
181
+ ~ .custom-file-label {
182
+ border-color: $color;
183
+ }
184
+
185
+ ~ .#{$state}-feedback,
186
+ ~ .#{$state}-tooltip {
187
+ display: block;
188
+ }
189
+
190
+ &:focus {
191
+ ~ .custom-file-label {
192
+ border-color: $color;
193
+ box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
194
+ }
195
+ }
196
+ }
87
197
  }
88
198
  }
@@ -1,58 +1,45 @@
1
1
  // Gradients
2
2
 
3
-
3
+ @mixin gradient-bg($color) {
4
+ @if $enable-gradients {
5
+ background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x;
6
+ } @else {
7
+ background-color: $color;
8
+ }
9
+ }
4
10
 
5
11
  // Horizontal gradient, from left to right
6
12
  //
7
13
  // 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
- @mixin gradient-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+
14
+ @mixin gradient-x($start-color: $gray-700, $end-color: $gray-800, $start-percent: 0%, $end-percent: 100%) {
15
+ background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent);
13
16
  background-repeat: repeat-x;
14
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down
15
17
  }
16
18
 
17
19
  // Vertical gradient, from top to bottom
18
20
  //
19
21
  // 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
- @mixin gradient-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+
22
+ @mixin gradient-y($start-color: $gray-700, $end-color: $gray-800, $start-percent: 0%, $end-percent: 100%) {
23
+ background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent);
25
24
  background-repeat: repeat-x;
26
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down
27
25
  }
28
26
 
29
- @mixin gradient-directional($start-color: #555, $end-color: #333, $deg: 45deg) {
27
+ @mixin gradient-directional($start-color: $gray-700, $end-color: $gray-800, $deg: 45deg) {
28
+ background-image: linear-gradient($deg, $start-color, $end-color);
30
29
  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
30
  }
35
- @mixin gradient-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);
31
+ @mixin gradient-x-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) {
38
32
  background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
39
33
  background-repeat: no-repeat;
40
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down, gets no color-stop at all for proper fallback
41
34
  }
42
- @mixin gradient-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);
35
+ @mixin gradient-y-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) {
45
36
  background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
46
37
  background-repeat: no-repeat;
47
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
48
38
  }
49
- @mixin gradient-radial($inner-color: #555, $outer-color: #333) {
50
- background-image: -webkit-radial-gradient(circle, $inner-color, $outer-color);
39
+ @mixin gradient-radial($inner-color: $gray-700, $outer-color: $gray-800) {
51
40
  background-image: radial-gradient(circle, $inner-color, $outer-color);
52
41
  background-repeat: no-repeat;
53
42
  }
54
- @mixin gradient-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);
43
+ @mixin gradient-striped($color: rgba($white, .15), $angle: 45deg) {
57
44
  background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
58
45
  }
@@ -3,79 +3,64 @@
3
3
  // Used only by Bootstrap to generate the correct number of grid classes given
4
4
  // any value of `$grid-columns`.
5
5
 
6
- // [converter] This is defined recursively in LESS, but Sass supports real loops
7
- @mixin make-grid-columns($i: 1, $list: ".col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}") {
8
- @for $i from (1 + 1) through $grid-columns {
9
- $list: "#{$list}, .col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}";
10
- }
11
- #{$list} {
6
+ @mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {
7
+ // Common properties for all breakpoints
8
+ %grid-column {
12
9
  position: relative;
13
- // Prevent columns from collapsing when empty
14
- min-height: 1px;
15
- // Inner gutter via padding
16
- padding-left: ceil(($grid-gutter-width / 2));
17
- padding-right: floor(($grid-gutter-width / 2));
10
+ width: 100%;
11
+ padding-right: $gutter / 2;
12
+ padding-left: $gutter / 2;
18
13
  }
19
- }
20
-
21
-
22
- // [converter] This is defined recursively in LESS, but Sass supports real loops
23
- @mixin float-grid-columns($class, $i: 1, $list: ".col-#{$class}-#{$i}") {
24
- @for $i from (1 + 1) through $grid-columns {
25
- $list: "#{$list}, .col-#{$class}-#{$i}";
26
- }
27
- #{$list} {
28
- float: left;
29
- }
30
- }
31
14
 
15
+ @each $breakpoint in map-keys($breakpoints) {
16
+ $infix: breakpoint-infix($breakpoint, $breakpoints);
32
17
 
33
- @mixin calc-grid-column($index, $class, $type) {
34
- @if ($type == width) and ($index > 0) {
35
- .col-#{$class}-#{$index} {
36
- width: percentage(($index / $grid-columns));
18
+ // Allow columns to stretch full width below their breakpoints
19
+ @for $i from 1 through $columns {
20
+ .col#{$infix}-#{$i} {
21
+ @extend %grid-column;
22
+ }
37
23
  }
38
- }
39
- @if ($type == push) and ($index > 0) {
40
- .col-#{$class}-push-#{$index} {
41
- left: percentage(($index / $grid-columns));
42
- }
43
- }
44
- @if ($type == push) and ($index == 0) {
45
- .col-#{$class}-push-0 {
46
- left: auto;
24
+ .col#{$infix},
25
+ .col#{$infix}-auto {
26
+ @extend %grid-column;
47
27
  }
48
- }
49
- @if ($type == pull) and ($index > 0) {
50
- .col-#{$class}-pull-#{$index} {
51
- right: percentage(($index / $grid-columns));
52
- }
53
- }
54
- @if ($type == pull) and ($index == 0) {
55
- .col-#{$class}-pull-0 {
56
- right: auto;
57
- }
58
- }
59
- @if ($type == offset) {
60
- .col-#{$class}-offset-#{$index} {
61
- margin-left: percentage(($index / $grid-columns));
62
- }
63
- }
64
- }
65
28
 
66
- // [converter] This is defined recursively in LESS, but Sass supports real loops
67
- @mixin loop-grid-columns($columns, $class, $type) {
68
- @for $i from 0 through $columns {
69
- @include calc-grid-column($i, $class, $type);
70
- }
71
- }
29
+ @include media-breakpoint-up($breakpoint, $breakpoints) {
30
+ // Provide basic `.col-{bp}` classes for equal-width flexbox columns
31
+ .col#{$infix} {
32
+ flex-basis: 0;
33
+ flex-grow: 1;
34
+ max-width: 100%;
35
+ }
36
+ .col#{$infix}-auto {
37
+ flex: 0 0 auto;
38
+ width: auto;
39
+ max-width: 100%; // Reset earlier grid tiers
40
+ }
41
+
42
+ @for $i from 1 through $columns {
43
+ .col#{$infix}-#{$i} {
44
+ @include make-col($i, $columns);
45
+ }
46
+ }
47
+
48
+ .order#{$infix}-first { order: -1; }
72
49
 
50
+ .order#{$infix}-last { order: $columns + 1; }
73
51
 
74
- // Create grid for specific class
75
- @mixin make-grid($class) {
76
- @include float-grid-columns($class);
77
- @include loop-grid-columns($grid-columns, $class, width);
78
- @include loop-grid-columns($grid-columns, $class, pull);
79
- @include loop-grid-columns($grid-columns, $class, push);
80
- @include loop-grid-columns($grid-columns, $class, offset);
52
+ @for $i from 0 through $columns {
53
+ .order#{$infix}-#{$i} { order: $i; }
54
+ }
55
+
56
+ // `$columns - 1` because offsetting by the width of an entire row isn't possible
57
+ @for $i from 0 through ($columns - 1) {
58
+ @if not ($infix == "" and $i == 0) { // Avoid emitting useless .offset-0
59
+ .offset#{$infix}-#{$i} {
60
+ @include make-col-offset($i, $columns);
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
81
66
  }