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,219 @@
1
+ // List group
2
+
3
+ $list-group-color: $white;
4
+ $list-group-bg: $white !default;
5
+ $list-group-border-color: rgba($black,.125) !default;
6
+ $list-group-border-width: $border-width !default; // Global?
7
+ $list-group-border-radius: $border-radius !default;
8
+
9
+ $list-group-item-padding-x: 1.25rem !default;
10
+ $list-group-item-padding-y: .75rem !default;
11
+
12
+ $list-group-hover-bg: $gray-lightest !default;
13
+ $list-group-active-color: $component-active-color !default;
14
+ $list-group-active-bg: $component-active-bg !default;
15
+ $list-group-active-border: $list-group-active-bg !default;
16
+ $list-group-active-text-color: lighten($list-group-active-bg, 50%) !default;
17
+
18
+ $list-group-disabled-color: $gray-light !default;
19
+ $list-group-disabled-bg: $list-group-bg !default;
20
+ $list-group-disabled-text-color: $list-group-disabled-color !default;
21
+
22
+ $list-group-link-color: $gray !default;
23
+ $list-group-link-heading-color: $gray-7 !default;
24
+ $list-group-link-hover-color: $list-group-link-color !default;
25
+
26
+ $list-group-link-active-color: $list-group-color !default;
27
+ $list-group-link-active-bg: $gray-5 !default;
28
+
29
+ // List Groups
30
+
31
+ @mixin list-group-item-variant($state, $background, $color) {
32
+ .list-group-item-#{$state} {
33
+ color: $color;
34
+ background-color: $background;
35
+ }
36
+
37
+ a.list-group-item-#{$state},
38
+ button.list-group-item-#{$state} {
39
+ color: $color;
40
+
41
+ .list-group-item-heading {
42
+ color: inherit;
43
+ }
44
+
45
+ @include hover-focus {
46
+ color: $color;
47
+ background-color: darken($background, 5%);
48
+ }
49
+
50
+ &.active {
51
+ color: #fff;
52
+ background-color: $color;
53
+ border-color: $color;
54
+ }
55
+ }
56
+ }
57
+
58
+
59
+ // Base class
60
+ //
61
+ // Easily usable on <ul>, <ol>, or <div>.
62
+
63
+ .list-group {
64
+ display: flex;
65
+ flex-direction: column;
66
+
67
+ // No need to set list-style: none; since .list-group-item is block level
68
+ padding-left: 0; // reset padding because ul and ol
69
+ margin-bottom: 0;
70
+ }
71
+
72
+
73
+ // Interactive list items
74
+ //
75
+ // Use anchor or button elements instead of `li`s or `div`s to create interactive
76
+ // list items. Includes an extra `.active` modifier class for selected items.
77
+
78
+ .list-group-item-action {
79
+ width: 100%; // For `<button>`s (anchors become 100% by default though)
80
+ color: $list-group-link-color;
81
+ text-align: inherit; // For `<button>`s (anchors inherit)
82
+
83
+ .list-group-item-heading {
84
+ color: $list-group-link-heading-color;
85
+ }
86
+
87
+ // Hover state
88
+ @include hover-focus {
89
+ color: $list-group-link-hover-color;
90
+ text-decoration: none;
91
+ background-color: $list-group-hover-bg;
92
+ }
93
+
94
+ &:active {
95
+ color: $list-group-link-active-color;
96
+ background-color: $list-group-link-active-bg;
97
+ }
98
+ }
99
+
100
+
101
+
102
+ // Individual list items
103
+ //
104
+ // Use on `li`s or `div`s within the `.list-group` parent.
105
+
106
+ .list-group-item {
107
+ position: relative;
108
+ display: flex;
109
+ flex-flow: row wrap;
110
+ align-items: center;
111
+ padding: $list-group-item-padding-y $list-group-item-padding-x;
112
+ // Place the border on the list items and negative margin up for better styling
113
+ margin-bottom: -$list-group-border-width;
114
+ background-color: $list-group-bg;
115
+ border: $list-group-border-width solid $list-group-border-color;
116
+
117
+ .badge, .pill, .label {
118
+ margin-right: $space-base;
119
+ }
120
+
121
+ &:first-child {
122
+ @include border-top-radius($list-group-border-radius);
123
+ }
124
+
125
+ &:last-child {
126
+ margin-bottom: 0;
127
+ @include border-bottom-radius($list-group-border-radius);
128
+ }
129
+
130
+ @include hover-focus {
131
+ text-decoration: none;
132
+ }
133
+
134
+ &.disabled,
135
+ &:disabled {
136
+ color: $list-group-disabled-color;
137
+ cursor: $cursor-disabled;
138
+ background-color: $list-group-disabled-bg;
139
+
140
+ // Force color to inherit for custom content
141
+ .list-group-item-heading {
142
+ color: inherit;
143
+ }
144
+ .list-group-item-text {
145
+ color: $list-group-disabled-text-color;
146
+ }
147
+ }
148
+
149
+ // Include both here for `<a>`s and `<button>`s
150
+ &.active {
151
+ z-index: 2; // Place active items above their siblings for proper border styling
152
+ color: $list-group-active-color;
153
+ background-color: $list-group-active-bg;
154
+ border-color: $list-group-active-border;
155
+
156
+ // Force color to inherit for custom content
157
+ .list-group-item-heading,
158
+ .list-group-item-heading > small,
159
+ .list-group-item-heading > .small {
160
+ color: inherit;
161
+ }
162
+
163
+ .list-group-item-text {
164
+ color: $list-group-active-text-color;
165
+ }
166
+ }
167
+ }
168
+
169
+
170
+ // Flush list items
171
+ //
172
+ // Remove borders and border-radius to keep list group items edge-to-edge. Most
173
+ // useful within other components (e.g., cards).
174
+
175
+ .list-group-flush {
176
+ .list-group-item {
177
+ border-right: 0;
178
+ border-left: 0;
179
+ border-radius: 0;
180
+ }
181
+
182
+ &:first-child {
183
+ .list-group-item:first-child {
184
+ border-top: 0;
185
+ }
186
+ }
187
+
188
+ &:last-child {
189
+ .list-group-item:last-child {
190
+ border-bottom: 0;
191
+ }
192
+ }
193
+ }
194
+
195
+ // Button Like Navigation
196
+ // Future extend styles using list-group-{$color}
197
+ .list-group-item-button {
198
+ margin-bottom: $space-smaller;
199
+ border: 0 !important;
200
+ font-weight: $bold;
201
+ border-radius: $border-rad-light;
202
+ color: $ink-lightest;
203
+ @include smooth-font;
204
+ &.active {
205
+ background: $sky-light;
206
+ color: $ink;
207
+ }
208
+ }
209
+
210
+
211
+ // Contextual variants
212
+ //
213
+ // Add modifier classes to change text and background color on individual items.
214
+ // Organizationally, this must come after the `:hover` states.
215
+
216
+ @include list-group-item-variant(success, $state-success-bg, $state-success-text);
217
+ @include list-group-item-variant(info, $state-info-bg, $state-info-text);
218
+ @include list-group-item-variant(warning, $state-warning-bg, $state-warning-text);
219
+ @include list-group-item-variant(danger, $state-danger-bg, $state-danger-text);
@@ -0,0 +1,66 @@
1
+ .media {
2
+ // Proper spacing between instances of .media
3
+ margin-top: 15px;
4
+
5
+ &:first-child {
6
+ margin-top: 0;
7
+ }
8
+ }
9
+
10
+ .media,
11
+ .media-body {
12
+ zoom: 1;
13
+ overflow: hidden;
14
+ }
15
+
16
+ .media-body {
17
+ width: 10000px;
18
+ }
19
+
20
+ .media-object {
21
+ display: block;
22
+
23
+ // Fix collapse in webkit from max-width: 100% and display: table-cell.
24
+ &.img-thumbnail {
25
+ max-width: none;
26
+ }
27
+ }
28
+
29
+ .media-right,
30
+ .media > .pull-right {
31
+ padding-left: 10px;
32
+ }
33
+
34
+ .media-left,
35
+ .media > .pull-left {
36
+ padding-right: 10px;
37
+ }
38
+
39
+ .media-left,
40
+ .media-right,
41
+ .media-body {
42
+ display: table-cell;
43
+ vertical-align: top;
44
+ }
45
+
46
+ .media-middle {
47
+ vertical-align: middle;
48
+ }
49
+
50
+ .media-bottom {
51
+ vertical-align: bottom;
52
+ }
53
+
54
+ // Reset margins on headings for tighter default spacing
55
+ .media-heading {
56
+ margin-top: 0;
57
+ margin-bottom: 5px;
58
+ }
59
+
60
+ // Media list variation
61
+ //
62
+ // Undo default ul/ol styles
63
+ .media-list {
64
+ padding-left: 0;
65
+ list-style: none;
66
+ }
@@ -0,0 +1,311 @@
1
+ $zindex-modal-background: 1040 !default;
2
+ $zindex-modal: 1050 !default;
3
+
4
+ //== Modals
5
+ //
6
+ //##
7
+
8
+ //** Padding applied to the modal body
9
+ $modal-inner-padding: 15px !default;
10
+
11
+
12
+ //** Padding applied to the modal title
13
+ $modal-title-padding: 15px !default;
14
+ $modal-title-padding-top-bottom: 5px !default;
15
+ //** Modal title line-height
16
+ $modal-title-line-height: $line-height-base !default;
17
+
18
+ //** Background color of modal content area
19
+ $modal-content-bg: #fff !default;
20
+ //** Modal content border color
21
+ $modal-content-border-color: transparent;
22
+ //** Modal content border color **for IE8**
23
+ $modal-content-fallback-border-color: #999 !default;
24
+
25
+ //** Modal backdrop background color
26
+ $modal-backdrop-bg: #000 !default;
27
+ //** Modal backdrop opacity
28
+ $modal-backdrop-opacity: .5 !default;
29
+ //** Modal header border color
30
+ $modal-header-border-color: #e5e5e5 !default;
31
+ //** Modal footer border color
32
+ $modal-footer-border-color: $modal-header-border-color !default;
33
+
34
+ $modal-lg: 900px !default;
35
+ $modal-md: 600px !default;
36
+ $modal-sm: 300px !default;
37
+ $modal-full: 85%;
38
+ $modal-full-max-width: 1200px;
39
+
40
+
41
+
42
+
43
+
44
+ //
45
+ // Modals
46
+ // --------------------------------------------------
47
+
48
+ // .modal-open - body class for killing the scroll
49
+ // .modal - container to scroll within
50
+ // .modal-dialog - positioning shell for the actual modal
51
+ // .modal-content - actual modal w/ bg and corners and shit
52
+
53
+ // Kill the scroll on the body
54
+ .modal-open {
55
+ overflow: hidden;
56
+ }
57
+
58
+ // Container that the modal scrolls within
59
+ .modal {
60
+ display: none;
61
+ overflow: hidden;
62
+ position: fixed;
63
+ top: 0;
64
+ right: 0;
65
+ bottom: 0;
66
+ left: 0;
67
+ z-index: $zindex-modal;
68
+ -webkit-overflow-scrolling: touch;
69
+
70
+ // Prevent Chrome on Windows from adding a focus outline. For details, see
71
+ // https://github.com/twbs/bootstrap/pull/10951.
72
+ outline: 0;
73
+
74
+ // When fading in the modal, animate it to slide down
75
+ &.fade .modal-dialog {
76
+ @include translate(0, -25%);
77
+ @include transition-transform(0.3s ease-out);
78
+ }
79
+ &.in .modal-dialog { @include translate(0, 0) }
80
+ }
81
+ .modal-open .modal {
82
+ overflow-x: hidden;
83
+ overflow-y: auto;
84
+ }
85
+
86
+ // Shell div to position the modal with bottom padding
87
+ .modal-dialog {
88
+ position: relative;
89
+ width: auto;
90
+ margin: 10px;
91
+
92
+ //Sizing
93
+ &.full {
94
+ width: $modal-full;
95
+ max-width: $modal-full-max-width;
96
+ height: 100vh;
97
+ margin: 0;
98
+ padding: 0;
99
+
100
+ .modal-content {
101
+ border-radius: $border-rad-normal;
102
+ height: 100vh;
103
+ display: flex;
104
+ flex-direction: column;
105
+ justify-content: space-between;
106
+ }
107
+ }
108
+ }
109
+
110
+ // Actual modal
111
+ .modal-content {
112
+ position: relative;
113
+ background-color: $modal-content-bg;
114
+ border: 1px solid $modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
115
+ border: 1px solid $modal-content-border-color;
116
+ border-radius: $border-radius-large;
117
+ @include box-shadow(0 3px 9px rgba(0,0,0,.5));
118
+ background-clip: padding-box;
119
+ // Remove focus outline from opened modal
120
+ outline: 0;
121
+ }
122
+
123
+ // Modal background
124
+ .modal-backdrop {
125
+ position: fixed;
126
+ top: 0;
127
+ right: 0;
128
+ bottom: 0;
129
+ left: 0;
130
+ z-index: $zindex-modal-background;
131
+ background-color: $modal-backdrop-bg;
132
+ // Fade for backdrop
133
+ &.fade { @include opacity(0); }
134
+ &.in { @include opacity($modal-backdrop-opacity); }
135
+ }
136
+
137
+ // Modal header
138
+ // Top section of the modal w/ title and dismiss
139
+ .modal-header {
140
+ padding: $modal-title-padding-top-bottom $modal-title-padding;
141
+ border-bottom: 1px solid $modal-header-border-color;
142
+ min-height: ($modal-title-padding + $modal-title-line-height);
143
+ }
144
+ // Close icon
145
+ .modal-header .close {
146
+ margin-top: -2px;
147
+ }
148
+
149
+ // Title text within header
150
+ .modal-title {
151
+ margin: 0;
152
+ line-height: $modal-title-line-height;
153
+ }
154
+
155
+ // Modal body
156
+ // Where all modal content resides (sibling of .modal-header and .modal-footer)
157
+ .modal-body {
158
+ position: relative;
159
+ padding: $modal-inner-padding;
160
+ }
161
+
162
+ // Footer (for actions)
163
+ .modal-footer {
164
+ padding: $modal-inner-padding;
165
+ text-align: right; // right align buttons
166
+ border-top: 1px solid $modal-footer-border-color;
167
+ @include clearfix; // clear it in case folks use .pull-* classes on buttons
168
+
169
+ // Properly space out buttons
170
+ .btn + .btn {
171
+ margin-left: 5px;
172
+ margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
173
+ }
174
+ // but override that for button groups
175
+ .btn-group .btn + .btn {
176
+ margin-left: -1px;
177
+ }
178
+ // and override it for block buttons as well
179
+ .btn-block + .btn-block {
180
+ margin-left: 0;
181
+ }
182
+ }
183
+
184
+ // Measure scrollbar width for padding body during modal show/hide
185
+ .modal-scrollbar-measure {
186
+ position: absolute;
187
+ top: -9999px;
188
+ width: 50px;
189
+ height: 50px;
190
+ overflow: scroll;
191
+ }
192
+
193
+ // Scale up the modal
194
+ @media (min-width: $screen-sm-min) {
195
+ // Automatically set modal's width for larger viewports
196
+ .modal-dialog {
197
+ width: $modal-md;
198
+ margin: 30px auto;
199
+ }
200
+ .modal-content {
201
+ @include box-shadow(0 5px 15px rgba(0,0,0,.5));
202
+ }
203
+
204
+ // Modal sizes
205
+ .modal-sm { width: $modal-sm; }
206
+ }
207
+
208
+ @media (min-width: $screen-md-min) {
209
+ .modal-lg { width: $modal-lg; }
210
+ }
211
+
212
+ .sl-row [class*="col"] {
213
+ padding: 0;
214
+ }
215
+
216
+ .sl-title, .sl-title > * {
217
+ font-weight: bold;
218
+ color: $black;
219
+ }
220
+
221
+ .sl-date {
222
+ color: $gray-4;
223
+ font-size: $font-smaller;
224
+ }
225
+
226
+
227
+
228
+
229
+ // ------------
230
+ // Modal Overrides
231
+ // ------------
232
+
233
+ /*
234
+ Workaround for Mobile Safari scrolling issue on modals; users were unable to
235
+ scroll modal after activating on-screen keyboard
236
+ ref: https://github.com/twbs/bootstrap/issues/14839
237
+ */
238
+ .modal {
239
+ -webkit-overflow-scrolling: auto !important;
240
+ }
241
+ // CENTER MODALS
242
+ .modal {
243
+ text-align: center;
244
+ overflow: visible;
245
+ @include clearfix;
246
+ }
247
+
248
+ @media screen and (min-width: 768px) {
249
+ .modal:before {
250
+ display: inline-block;
251
+ vertical-align: middle;
252
+ content: " ";
253
+ height: 100%;
254
+ }
255
+ }
256
+
257
+ // Temporary fix for modal positioning off
258
+ .body-estimates,
259
+ .body-project_payments,
260
+ .body-project_documents,
261
+ .body-project_photos,
262
+ .body-projects,
263
+ .body-credit_applications,
264
+ .body-candidate_interviews {
265
+ .modal:before {
266
+ content: " ";
267
+ display: table;
268
+ height: auto;
269
+ }
270
+ }
271
+ .modal-dialog {
272
+ display: inline-block;
273
+ text-align: left;
274
+ vertical-align: middle;
275
+ }
276
+
277
+ // Temporary fix for candidate interview modal height
278
+ .candidate-interview-modal {
279
+ .modal-body {
280
+ max-height: 90vh;
281
+ overflow-y: auto;
282
+ }
283
+ }
284
+
285
+ // Actual modal
286
+ .modal-content {
287
+ border-radius: $border-rad-heavy;
288
+ box-shadow: $shadow-deepest;
289
+ border: 0;
290
+ }
291
+
292
+ .modal-header .close {
293
+ font-size: $font-jumbo;
294
+ font-weight: $regular;
295
+ margin-top: 0;
296
+ }
297
+
298
+ .modal-body {
299
+ @include clearfix;
300
+ .no-padding {
301
+ padding: 0;
302
+ }
303
+ }
304
+
305
+ .modal-title {
306
+ font-size: $font-base;
307
+ }
308
+
309
+ .modal-footer {
310
+ text-align: left; // Buttons should align next to form if not multiple steps. Explination: http://uxmovement.com/forms/where-to-align-form-buttons-on-different-layouts/
311
+ }