nitro_sg 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/fonts/fontawesome.js +1978 -0
  3. data/fonts/regular.js +1217 -0
  4. data/lib/nitro_sg/version.rb +1 -1
  5. data/sass-mixins/_global.scss +415 -0
  6. data/sass-mixins/_normalize.scss +424 -0
  7. data/sass-mixins/_print.scss +101 -0
  8. data/sass-mixins/application.scss +29 -0
  9. data/sass-mixins/application.scss.flow +1592 -0
  10. data/sass-mixins/base-mixins/_all.scss +11 -0
  11. data/sass-mixins/base-mixins/_all.scss.flow +6 -0
  12. data/sass-mixins/base-mixins/_border-radius.scss +25 -0
  13. data/sass-mixins/base-mixins/_breakpoints.scss +95 -0
  14. data/sass-mixins/base-mixins/_color.sass +22 -0
  15. data/sass-mixins/base-mixins/_forms.scss +33 -0
  16. data/sass-mixins/base-mixins/_general.scss +599 -0
  17. data/sass-mixins/base-mixins/_grid-framework.scss +81 -0
  18. data/sass-mixins/base-mixins/_grid.scss +126 -0
  19. data/sass-mixins/base-mixins/_hover.scss +26 -0
  20. data/sass-mixins/base-mixins/_images.scss +33 -0
  21. data/sass-mixins/base-mixins/_media-queries.sass +58 -0
  22. data/sass-mixins/base-mixins/_type.scss +46 -0
  23. data/sass-mixins/base-variables/_all.scss +11 -0
  24. data/sass-mixins/base-variables/_animation-curves.scss +37 -0
  25. data/sass-mixins/base-variables/_bootstrap-variables.scss +284 -0
  26. data/sass-mixins/base-variables/_border-radius.sass +27 -0
  27. data/sass-mixins/base-variables/_color-bootstrap.scss +62 -0
  28. data/sass-mixins/base-variables/_color-deprecated.scss +26 -0
  29. data/sass-mixins/base-variables/_color-ui-elements.scss +20 -0
  30. data/sass-mixins/base-variables/_colors-export.scss +13 -0
  31. data/sass-mixins/base-variables/_colors-export.scss.flow +92 -0
  32. data/sass-mixins/base-variables/_colors.scss +267 -0
  33. data/sass-mixins/base-variables/_colors.scss.flow +5 -0
  34. data/sass-mixins/base-variables/_fonts.scss +97 -0
  35. data/sass-mixins/base-variables/_forms.scss +44 -0
  36. data/sass-mixins/base-variables/_opacity.scss +9 -0
  37. data/sass-mixins/base-variables/_positioning.scss +24 -0
  38. data/sass-mixins/base-variables/_shadows.scss +5 -0
  39. data/sass-mixins/base-variables/_sizing-ui-elements.scss +2 -0
  40. data/sass-mixins/base-variables/_spacing.sass +27 -0
  41. data/sass-mixins/base-variables/_typography.sass +79 -0
  42. data/sass-mixins/class-helpers/_all.scss +17 -0
  43. data/sass-mixins/class-helpers/_borders.scss +40 -0
  44. data/sass-mixins/class-helpers/_color.sass +61 -0
  45. data/sass-mixins/class-helpers/_display.scss +40 -0
  46. data/sass-mixins/class-helpers/_flexbox.scss +213 -0
  47. data/sass-mixins/class-helpers/_glyphicons.scss +307 -0
  48. data/sass-mixins/class-helpers/_line-height.scss +21 -0
  49. data/sass-mixins/class-helpers/_radius-and-shadows.scss +49 -0
  50. data/sass-mixins/class-helpers/_responsive-utilities.scss +179 -0
  51. data/sass-mixins/class-helpers/_screen-readers.scss +34 -0
  52. data/sass-mixins/class-helpers/_spacing.scss +51 -0
  53. data/sass-mixins/class-helpers/_type.scss +323 -0
  54. data/sass-mixins/class-helpers/_z-index.scss +10 -0
  55. data/sass-mixins/components.scss +5 -0
  56. data/sass-mixins/nitro-ui/_alerts.scss +139 -0
  57. data/sass-mixins/nitro-ui/_all.scss +33 -0
  58. data/sass-mixins/nitro-ui/_animations.scss +37 -0
  59. data/sass-mixins/nitro-ui/_carousel.scss +281 -0
  60. data/sass-mixins/nitro-ui/_code.scss +87 -0
  61. data/sass-mixins/nitro-ui/_connect-cards.scss +150 -0
  62. data/sass-mixins/nitro-ui/_dashboards.scss +516 -0
  63. data/sass-mixins/nitro-ui/_fixed-confirmation-toast.scss +48 -0
  64. data/sass-mixins/nitro-ui/_full-menu.scss +168 -0
  65. data/sass-mixins/nitro-ui/_grid.scss +92 -0
  66. data/sass-mixins/nitro-ui/_icon-toggle.scss +37 -0
  67. data/sass-mixins/nitro-ui/_jumbotron.scss +65 -0
  68. data/sass-mixins/nitro-ui/_links.scss +69 -0
  69. data/sass-mixins/nitro-ui/_list-group.scss +219 -0
  70. data/sass-mixins/nitro-ui/_media.scss +66 -0
  71. data/sass-mixins/nitro-ui/_modals.scss +311 -0
  72. data/sass-mixins/nitro-ui/_notify.scss +56 -0
  73. data/sass-mixins/nitro-ui/_popovers.scss +167 -0
  74. data/sass-mixins/nitro-ui/_progress-bars.scss +125 -0
  75. data/sass-mixins/nitro-ui/_responsive-embed.scss +35 -0
  76. data/sass-mixins/nitro-ui/_side-modal.scss +92 -0
  77. data/sass-mixins/nitro-ui/_tables-responsive.scss +253 -0
  78. data/sass-mixins/nitro-ui/_tables.scss +296 -0
  79. data/sass-mixins/nitro-ui/_thumbnails.scss +38 -0
  80. data/sass-mixins/nitro-ui/_tooltip.scss +124 -0
  81. data/sass-mixins/nitro-ui/_typography.scss +176 -0
  82. data/sass-mixins/nitro-ui/_value-stat.scss +149 -0
  83. data/sass-mixins/nitro-ui/_wells.scss +37 -0
  84. data/sass-mixins/nitro-ui/buttons/_all.scss +97 -0
  85. data/sass-mixins/nitro-ui/buttons/_button-capping.scss +21 -0
  86. data/sass-mixins/nitro-ui/buttons/_button-groups.scss +236 -0
  87. data/sass-mixins/nitro-ui/buttons/_button-mixins.scss +66 -0
  88. data/sass-mixins/nitro-ui/buttons/_button-variables.scss +51 -0
  89. data/sass-mixins/nitro-ui/buttons/_choice-buttons.scss +9 -0
  90. data/sass-mixins/nitro-ui/buttons/_circle-buttons.scss +30 -0
  91. data/sass-mixins/nitro-ui/buttons/_close.scss +45 -0
  92. data/sass-mixins/nitro-ui/buttons/_dropdowns.scss +270 -0
  93. data/sass-mixins/nitro-ui/buttons/_ghost-buttons.scss +58 -0
  94. data/sass-mixins/nitro-ui/buttons/_link-buttons.scss +53 -0
  95. data/sass-mixins/nitro-ui/buttons/_solid-buttons.scss +69 -0
  96. data/sass-mixins/nitro-ui/cards-panels/_all.scss +3 -0
  97. data/sass-mixins/nitro-ui/cards-panels/_cards.scss +409 -0
  98. data/sass-mixins/nitro-ui/cards-panels/_collapsible-card.scss +19 -0
  99. data/sass-mixins/nitro-ui/cards-panels/_panel-collapse.scss +34 -0
  100. data/sass-mixins/nitro-ui/cards-panels/_panel-list-groups.scss +41 -0
  101. data/sass-mixins/nitro-ui/cards-panels/_panel-tables.scss +111 -0
  102. data/sass-mixins/nitro-ui/cards-panels/_panels.scss +120 -0
  103. data/sass-mixins/nitro-ui/forms/_all.scss +18 -0
  104. data/sass-mixins/nitro-ui/forms/_checkbox-radio.scss +154 -0
  105. data/sass-mixins/nitro-ui/forms/_checkbox-toggle.scss +77 -0
  106. data/sass-mixins/nitro-ui/forms/_color-feedback.scss +53 -0
  107. data/sass-mixins/nitro-ui/forms/_dropdown.scss +12 -0
  108. data/sass-mixins/nitro-ui/forms/_form-group.scss +104 -0
  109. data/sass-mixins/nitro-ui/forms/_general-element-reset.scss +120 -0
  110. data/sass-mixins/nitro-ui/forms/_help-block.scss +11 -0
  111. data/sass-mixins/nitro-ui/forms/_horizontal-forms.scss +69 -0
  112. data/sass-mixins/nitro-ui/forms/_input-groups.scss +169 -0
  113. data/sass-mixins/nitro-ui/forms/_label.scss +29 -0
  114. data/sass-mixins/nitro-ui/forms/_multi-input-group.scss +89 -0
  115. data/sass-mixins/nitro-ui/forms/_static-form-text.scss +19 -0
  116. data/sass-mixins/nitro-ui/forms/_validation-states.scss +78 -0
  117. data/sass-mixins/nitro-ui/layouts/_sidebar-layout.scss +59 -0
  118. data/sass-mixins/nitro-ui/navigation/_all.scss +36 -0
  119. data/sass-mixins/nitro-ui/navigation/_breadcrumbs.scss +30 -0
  120. data/sass-mixins/nitro-ui/navigation/_pager.scss +71 -0
  121. data/sass-mixins/nitro-ui/navigation/_pagination.scss +212 -0
  122. data/sass-mixins/nitro-ui/navigation/navbar/_brand.scss +25 -0
  123. data/sass-mixins/nitro-ui/navigation/navbar/_collapse-content.scss +49 -0
  124. data/sass-mixins/nitro-ui/navigation/navbar/_default-navbar.scss +33 -0
  125. data/sass-mixins/nitro-ui/navigation/navbar/_dropdowns-buttons.scss +29 -0
  126. data/sass-mixins/nitro-ui/navigation/navbar/_floats.scss +21 -0
  127. data/sass-mixins/nitro-ui/navigation/navbar/_flush.scss +14 -0
  128. data/sass-mixins/nitro-ui/navigation/navbar/_forms.scss +41 -0
  129. data/sass-mixins/nitro-ui/navigation/navbar/_header.scss +31 -0
  130. data/sass-mixins/nitro-ui/navigation/navbar/_inverse-navbar.scss +32 -0
  131. data/sass-mixins/nitro-ui/navigation/navbar/_light-navbar.scss +36 -0
  132. data/sass-mixins/nitro-ui/navigation/navbar/_links.scss +52 -0
  133. data/sass-mixins/nitro-ui/navigation/navbar/_mixins.scss +161 -0
  134. data/sass-mixins/nitro-ui/navigation/navbar/_navbar.scss +29 -0
  135. data/sass-mixins/nitro-ui/navigation/navbar/_position.scss +50 -0
  136. data/sass-mixins/nitro-ui/navigation/navbar/_text.scss +13 -0
  137. data/sass-mixins/nitro-ui/navigation/navbar/_toggle-button.scss +37 -0
  138. data/sass-mixins/nitro-ui/navigation/navbar/_variables.scss +8 -0
  139. data/sass-mixins/nitro-ui/navigation/navs/_nav-dropdowns.scss +10 -0
  140. data/sass-mixins/nitro-ui/navigation/navs/_nav-justified.scss +32 -0
  141. data/sass-mixins/nitro-ui/navigation/navs/_nav-pills.scss +41 -0
  142. data/sass-mixins/nitro-ui/navigation/navs/_nav-tabs-justified.scss +30 -0
  143. data/sass-mixins/nitro-ui/navigation/navs/_nav-tabs.scss +41 -0
  144. data/sass-mixins/nitro-ui/navigation/navs/_nav.scss +383 -0
  145. data/sass-mixins/nitro-ui/navigation/navs/_navs.scss +70 -0
  146. data/sass-mixins/nitro-ui/navigation/navs/_tabbable-tabs.scss +12 -0
  147. data/sass-mixins/nitro-ui/navigation/navs/_variables.scss +23 -0
  148. data/sass-mixins/nitro-ui/tables/_all.scss +14 -0
  149. data/sass-mixins/nitro-ui/tables/_as-cards.scss +49 -0
  150. data/sass-mixins/nitro-ui/tables/_content.scss +13 -0
  151. data/sass-mixins/nitro-ui/tables/_headers.scss +17 -0
  152. data/sass-mixins/nitro-ui/tables/_hover.scss +66 -0
  153. data/sass-mixins/nitro-ui/tables/_mixins.scss +0 -0
  154. data/sass-mixins/nitro-ui/tables/_mobile.scss +138 -0
  155. data/sass-mixins/nitro-ui/tables/_reset.scss +17 -0
  156. data/sass-mixins/nitro-ui/tables/_single-line.scss +35 -0
  157. data/sass-mixins/nitro-ui/tables/_structure.scss +39 -0
  158. data/sass-mixins/nitro-ui/tables/_table-card.scss +88 -0
  159. data/sass-mixins/nitro-ui/tables/_table-dark.scss +92 -0
  160. data/sass-mixins/nitro-ui/tables/_variables.scss +23 -0
  161. data/sass-mixins/vendor/_bootstrap-overrides.scss +41 -0
  162. data/sass-mixins/vendor/_dropzone.scss +388 -0
  163. data/sass-mixins/vendor/_nitro-bootstrap.scss +95 -0
  164. data/sass-mixins/vendor/_nitro-dropzone.scss +56 -0
  165. data/sass-mixins/vendor/_react-datetime.scss +105 -0
  166. data/sass-mixins/vendor/_selectize.scss +407 -0
  167. data/sass-mixins/vendor/_sweet-alert-extended.scss +3 -0
  168. data/sass-mixins/vendor/react-select.css +375 -0
  169. data/sass-mixins/vendor/svg-with-js.css +5 -0
  170. data/sass-mixins/vendor/type-ahead.scss +43 -0
  171. metadata +170 -2
@@ -0,0 +1,53 @@
1
+ @mixin link-button-hover($color) {
2
+ text-shadow: none;
3
+ text-decoration: none;
4
+ outline: 0;
5
+ border-color: transparent;
6
+ @if lightness($color) > 75% {
7
+ color: tint($color, 40%);
8
+ }
9
+ @else {
10
+ color: shade($color, 40%);
11
+ }
12
+ }
13
+
14
+ @mixin link-button-disabled($color) {
15
+ cursor: not-allowed;
16
+ opacity: $opacity-7;
17
+ }
18
+
19
+ @mixin link-button($color) {
20
+ text-align: initial;
21
+ @include button-base;
22
+ @include btn-styles;
23
+ color: $color;
24
+ background: none;
25
+ &:focus, &.focus {
26
+ @include link-button-hover($color);
27
+ }
28
+ &:hover {
29
+ @include link-button-hover($color);
30
+ }
31
+ &:active, &.active, .open > &.dropdown-toggle {
32
+ @include link-button-hover($color);
33
+ &:hover, &:focus, &.focus {
34
+ @include link-button-hover($color);
35
+ }
36
+ }
37
+ &:active, &.active, .open > &.dropdown-toggle {
38
+ background-image: none;
39
+ }
40
+ &.disabled, &[disabled], fieldset[disabled] & {
41
+ &, &:hover, &:focus, &.focus, &:active, &.active {
42
+ @include link-button-disabled($color);
43
+ }
44
+ }
45
+ }
46
+
47
+ @mixin link-button-colors($colors-list) {
48
+ @each $name, $color in $colors-list {
49
+ &-#{$name} {
50
+ @include link-button($color);
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,69 @@
1
+ @mixin btn-hover($base-color, $active: false) {
2
+ outline: 0;
3
+ @if $active {
4
+ background: tint($base_color, 30%);
5
+ border-color: tint($base_color, 30%);
6
+ @include text-color(tint($base_color, 10%), $more_contrast: true);
7
+ text-shadow: none;
8
+ text-decoration: none;
9
+ }
10
+ @else {
11
+ background: tint($base_color, 20%);
12
+ border-color: tint($base_color, 20%);
13
+ @include text-color($base_color);
14
+ text-shadow: none;
15
+ text-decoration: none;
16
+ }
17
+ }
18
+
19
+ @mixin btn-disabled($base-color) {
20
+ cursor: not-allowed;
21
+ opacity: $opacity-7;
22
+ background: $gray-2;
23
+ border-color: $gray-2;
24
+ @include text-color($gray-2, false);
25
+ box-shadow: none;
26
+ text-shadow: none;
27
+ text-decoration: none;
28
+ }
29
+
30
+ @mixin solid-button($color) {
31
+ @include button-base;
32
+ @include btn-styles;
33
+ border-color: $color;
34
+ background: $color;
35
+ @include text-color($color, $more_contrast: true);
36
+ &:focus, &.focus {
37
+ @include btn-hover($color);
38
+ }
39
+ &:hover {
40
+ @include btn-hover($color);
41
+ }
42
+ &:active, &.active, .open > &.dropdown-toggle {
43
+ @include btn-hover($color, true);
44
+ &:hover, &:focus, &.focus {
45
+ @include btn-hover($color);
46
+ }
47
+ }
48
+ &:active, &.active, .open > &.dropdown-toggle {
49
+ background-image: none;
50
+ }
51
+ &.disabled, &[disabled], fieldset[disabled] & {
52
+ &, &:hover, &:focus, &.focus, &:active, &.active {
53
+ @include btn-disabled($color);
54
+ }
55
+ }
56
+ // Move?
57
+ .badge {
58
+ @include text-color(shade($color, 35%));
59
+ background-color: shade($color, 20%);
60
+ }
61
+ }
62
+
63
+ @mixin solid-button-colors($colors-list) {
64
+ @each $name, $color in $colors-list {
65
+ &-#{$name} {
66
+ @include solid-button($color);
67
+ }
68
+ }
69
+ }
@@ -0,0 +1,3 @@
1
+ @import "cards";
2
+ @import "collapsible-card";
3
+ @import "panels";
@@ -0,0 +1,409 @@
1
+ // Cards
2
+ $grid-gutter-width-base: 30px;
3
+
4
+ $card-spacer-x: 1.25rem !default;
5
+ $card-spacer-y: .75rem !default;
6
+ $card-border-width: 1px !default;
7
+ $card-border-radius: $border-rad-light;
8
+ $card-border-color: rgba($black,.125) !default;
9
+ $card-border-radius-inner: calc(#{$card-border-radius} - #{$card-border-width}) !default;
10
+ $card-cap-bg: $gray-1;
11
+ $card-bg: $white !default;
12
+
13
+ $card-link-hover-color: $white !default;
14
+
15
+ $card-img-overlay-padding: 1.25rem !default;
16
+
17
+ $card-deck-margin: ($grid-gutter-width-base / 2) !default;
18
+
19
+ $card-columns-count: 3 !default;
20
+ $card-columns-gap: 1.25rem !default;
21
+ $card-columns-margin: $card-spacer-y !default;
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+ // Card variants
33
+
34
+ @mixin card-variant($background, $border) {
35
+ background-color: $background;
36
+ border-color: $border;
37
+
38
+ .card-header,
39
+ .card-footer {
40
+ background-color: transparent;
41
+ }
42
+ }
43
+
44
+ @mixin card-outline-variant($color) {
45
+ background-color: transparent;
46
+ border-color: $color;
47
+ }
48
+
49
+ //
50
+ // Inverse text within a card for use with dark backgrounds
51
+ //
52
+
53
+ @mixin card-inverse {
54
+ color: rgba(255,255,255,.65);
55
+
56
+ .card-header,
57
+ .card-footer {
58
+ background-color: transparent;
59
+ border-color: rgba(255,255,255,.2);
60
+ }
61
+ .card-header,
62
+ .card-footer,
63
+ .card-title,
64
+ .card-blockquote {
65
+ color: #fff;
66
+ }
67
+ .card-link,
68
+ .card-text,
69
+ .card-subtitle,
70
+ .card-blockquote .blockquote-footer {
71
+ color: rgba(255,255,255,.65);
72
+ }
73
+ .card-link {
74
+ @include hover-focus {
75
+ color: $card-link-hover-color;
76
+ }
77
+ }
78
+ }
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+ //
91
+ // Base styles
92
+ //
93
+ @mixin aside-flush {
94
+ padding: 0;
95
+ border-radius: 0;
96
+ background: none;
97
+ .card-img-top {
98
+ border-radius: 0;
99
+ }
100
+ .card-block {
101
+ flex: 0;
102
+ }
103
+ }
104
+
105
+ .card {
106
+ position: relative;
107
+ display: flex;
108
+ flex-direction: column;
109
+ background-color: $card-bg;
110
+ border: $card-border-width solid $card-border-color;
111
+ border-radius: $card-border-radius;
112
+ &-aside-flush-left {
113
+ @include aside-flush;
114
+ border-width: 0 1px 0 0;
115
+ }
116
+ &-aside-flush-right {
117
+ @include aside-flush;
118
+ border-width: 0 0 0 1px;
119
+ }
120
+ &-block {
121
+ flex: 1 1 auto;
122
+ padding: $card-spacer-x;
123
+ &-separator {
124
+ padding: $card-spacer-x 0;
125
+ border-top: $card-border-width solid $card-border-color;
126
+ border-bottom: $card-border-width solid $card-border-color;
127
+ @include clearfix;
128
+ &-group {
129
+ display: -webkit-box;
130
+ display: -webkit-flex;
131
+ display: -ms-flexbox;
132
+ display: flex;
133
+ .card-block-separator {
134
+ flex: 1 0 0;
135
+ &:not(:first-child) {
136
+ border-left: $card-border-width solid $card-border-color;
137
+ padding-left: $card-spacer-x;
138
+ }
139
+ &:first-child {
140
+ padding-right: $card-spacer-x;
141
+ }
142
+ }
143
+ }
144
+ }
145
+ &:last-child .card-block-separator {
146
+ padding: $card-spacer-x 0 0;
147
+ border-bottom: 0;
148
+ }
149
+ }
150
+ }
151
+
152
+
153
+
154
+
155
+
156
+
157
+ .card-title {
158
+ margin-bottom: $card-spacer-y;
159
+ }
160
+
161
+ .card-subtitle {
162
+ margin-top: -($card-spacer-y / 2);
163
+ margin-bottom: 0;
164
+ }
165
+
166
+ .card-text:last-child {
167
+ margin-bottom: 0;
168
+ }
169
+
170
+ .card-link {
171
+ &:hover {
172
+ text-decoration: none;
173
+ }
174
+
175
+ + .card-link {
176
+ margin-left: $card-spacer-x;
177
+ }
178
+ }
179
+
180
+ .card {
181
+ > .list-group:first-child {
182
+ .list-group-item:first-child {
183
+ @include border-top-radius($card-border-radius);
184
+ }
185
+ }
186
+
187
+ > .list-group:last-child {
188
+ .list-group-item:last-child {
189
+ @include border-bottom-radius($card-border-radius);
190
+ }
191
+ }
192
+ }
193
+
194
+
195
+ //
196
+ // Optional textual caps
197
+ //
198
+
199
+ .card-header {
200
+ padding: $card-spacer-y $card-spacer-x;
201
+ margin-bottom: 0; // Removes the default margin-bottom of <hN>
202
+ background-color: $card-cap-bg;
203
+ border-bottom: $card-border-width solid $card-border-color;
204
+
205
+ &:first-child {
206
+ @include border-radius($card-border-radius-inner $card-border-radius-inner 0 0);
207
+ }
208
+ }
209
+
210
+ .card-footer {
211
+ padding: $card-spacer-y $card-spacer-x;
212
+ background-color: $card-cap-bg;
213
+ border-top: $card-border-width solid $card-border-color;
214
+
215
+ &:last-child {
216
+ @include border-radius(0 0 $card-border-radius-inner $card-border-radius-inner);
217
+ }
218
+ }
219
+
220
+
221
+ //
222
+ // Header navs
223
+ //
224
+
225
+ .card-header-tabs {
226
+ margin-right: -($card-spacer-x / 2);
227
+ margin-bottom: -$card-spacer-y;
228
+ margin-left: -($card-spacer-x / 2);
229
+ border-bottom: 0;
230
+ }
231
+
232
+ .card-header-pills {
233
+ margin-right: -($card-spacer-x / 2);
234
+ margin-left: -($card-spacer-x / 2);
235
+ }
236
+
237
+
238
+ //
239
+ // Background variations
240
+ //
241
+
242
+ .card-primary {
243
+ @include card-variant($brand-primary, $brand-primary);
244
+ }
245
+ .card-success {
246
+ @include card-variant($brand-success, $brand-success);
247
+ }
248
+ .card-info {
249
+ @include card-variant($brand-info, $brand-info);
250
+ }
251
+ .card-warning {
252
+ @include card-variant($brand-warning, $brand-warning);
253
+ }
254
+ .card-danger {
255
+ @include card-variant($brand-danger, $brand-danger);
256
+ }
257
+
258
+ // Remove all backgrounds
259
+ .card-outline-primary {
260
+ @include card-outline-variant($power-royal);
261
+ }
262
+ .card-outline-secondary {
263
+ @include card-outline-variant($gray-2);
264
+ }
265
+ .card-outline-info {
266
+ @include card-outline-variant($power-blue);
267
+ }
268
+ .card-outline-success {
269
+ @include card-outline-variant($power-royal);
270
+ }
271
+ .card-outline-warning {
272
+ @include card-outline-variant($power-red);
273
+ }
274
+ .card-outline-danger {
275
+ @include card-outline-variant($power-gold);
276
+ }
277
+
278
+ //
279
+ // Inverse text within a card for use with dark backgrounds
280
+ //
281
+
282
+ .card-inverse {
283
+ @include card-inverse;
284
+ }
285
+
286
+ //
287
+ // Blockquote
288
+ //
289
+
290
+ .card-blockquote {
291
+ padding: 0;
292
+ margin-bottom: 0;
293
+ border-left: 0;
294
+ }
295
+
296
+ // Card image
297
+ .card-img {
298
+ // margin: -1.325rem;
299
+ @include border-radius($card-border-radius-inner);
300
+ }
301
+ .card-img-overlay {
302
+ position: absolute;
303
+ top: 0;
304
+ right: 0;
305
+ bottom: 0;
306
+ left: 0;
307
+ padding: $card-img-overlay-padding;
308
+ }
309
+
310
+
311
+
312
+ // Card image caps
313
+ .card-img-top {
314
+ @include border-top-radius($card-border-radius-inner);
315
+ }
316
+ .card-img-bottom {
317
+ @include border-bottom-radius($card-border-radius-inner);
318
+ }
319
+
320
+
321
+ // Card deck
322
+ @include media-breakpoint-up(sm) {
323
+ .card-deck {
324
+ display: flex;
325
+ flex-flow: row wrap;
326
+
327
+ .card {
328
+ display: flex;
329
+ flex: 1 0 0;
330
+ flex-direction: column;
331
+
332
+ // Selectively apply horizontal margins to cards to avoid doing the
333
+ // negative margin dance like our grid. This differs from the grid
334
+ // due to the use of margins as gutters instead of padding.
335
+ &:not(:first-child) { margin-left: $card-deck-margin; }
336
+ &:not(:last-child) { margin-right: $card-deck-margin; }
337
+ }
338
+ }
339
+ }
340
+
341
+
342
+ //
343
+ // Card groups
344
+ //
345
+
346
+ @include media-breakpoint-up(sm) {
347
+ .card-group {
348
+ display: flex;
349
+ flex-flow: row wrap;
350
+
351
+ .card {
352
+ flex: 1 0 0;
353
+
354
+ + .card {
355
+ margin-left: 0;
356
+ border-left: 0;
357
+ }
358
+
359
+ // Handle rounded corners
360
+ &:first-child {
361
+ @include border-right-radius(0);
362
+
363
+ .card-img-top {
364
+ border-top-right-radius: 0;
365
+ }
366
+ .card-img-bottom {
367
+ border-bottom-right-radius: 0;
368
+ }
369
+ }
370
+ &:last-child {
371
+ @include border-left-radius(0);
372
+
373
+ .card-img-top {
374
+ border-top-left-radius: 0;
375
+ }
376
+ .card-img-bottom {
377
+ border-bottom-left-radius: 0;
378
+ }
379
+ }
380
+
381
+ &:not(:first-child):not(:last-child) {
382
+ border-radius: 0;
383
+
384
+ .card-img-top,
385
+ .card-img-bottom {
386
+ border-radius: 0;
387
+ }
388
+ }
389
+ }
390
+ }
391
+ }
392
+
393
+
394
+ //
395
+ // Columns
396
+ //
397
+
398
+ @include media-breakpoint-up(sm) {
399
+ .card-columns {
400
+ column-count: $card-columns-count;
401
+ column-gap: $card-columns-gap;
402
+
403
+ .card {
404
+ display: inline-block; // Don't let them vertically span multiple columns
405
+ width: 100%; // Don't let their width change
406
+ margin-bottom: $card-columns-margin;
407
+ }
408
+ }
409
+ }