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,19 @@
1
+ .collapsible-card {
2
+ flex-direction: row;
3
+ flex-wrap: wrap;
4
+ &-top-content {
5
+ flex: 1;
6
+ }
7
+ &-hidden {
8
+ width: 100%;
9
+ &-content {
10
+ border-top: 1px solid $sky;
11
+ }
12
+ }
13
+
14
+ .btn-card-toggle {
15
+ flex-basis: auto;
16
+ flex-grow: 0;
17
+ flex-shrink: 0;
18
+ }
19
+ }
@@ -0,0 +1,34 @@
1
+ // Collapsable panels (aka, accordion)
2
+ //
3
+ // Wrap a series of panels in `.panel-group` to turn them into an accordion with
4
+ // the help of our collapse JavaScript plugin.
5
+
6
+ .panel-group {
7
+ margin-bottom: $line-height-computed;
8
+
9
+ // Tighten up margin so it's only between panels
10
+ .panel {
11
+ margin-bottom: 0;
12
+ border-radius: $border-rad-light;
13
+
14
+ + .panel {
15
+ margin-top: 5px;
16
+ }
17
+ }
18
+
19
+ .panel-heading {
20
+ border-bottom: 0;
21
+
22
+ + .panel-collapse > .panel-body,
23
+ + .panel-collapse > .list-group {
24
+ border-top: 1px solid $border-color;
25
+ }
26
+ }
27
+
28
+ .panel-footer {
29
+ border-top: 0;
30
+ + .panel-collapse .panel-body {
31
+ border-bottom: 1px solid $border-color;
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,41 @@
1
+ .panel {
2
+ > .list-group,
3
+ > .panel-collapse > .list-group {
4
+ margin-bottom: 0;
5
+
6
+ .list-group-item {
7
+ border-width: 1px 0;
8
+ border-radius: 0;
9
+ }
10
+
11
+ // Add border top radius for first one
12
+ &:first-child {
13
+ .list-group-item:first-child {
14
+ border-top: 0;
15
+ @include border-top-radius(($border-rad-light - 1));
16
+ }
17
+ }
18
+
19
+ // Add border bottom radius for last one
20
+ &:last-child {
21
+ .list-group-item:last-child {
22
+ border-bottom: 0;
23
+ @include border-bottom-radius(($border-rad-light - 1));
24
+ }
25
+ }
26
+ }
27
+ > .panel-heading + .panel-collapse > .list-group {
28
+ .list-group-item:first-child {
29
+ @include border-top-radius(0);
30
+ }
31
+ }
32
+ }
33
+ // Collapse space between when there's no additional content.
34
+ .panel-heading + .list-group {
35
+ .list-group-item:first-child {
36
+ border-top-width: 0;
37
+ }
38
+ }
39
+ .list-group + .panel-footer {
40
+ border-top-width: 0;
41
+ }
@@ -0,0 +1,111 @@
1
+ // Tables in panels
2
+ //
3
+ // Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
4
+ // watch it go full width.
5
+
6
+ .panel {
7
+ > .table,
8
+ > .table-responsive > .table,
9
+ > .panel-collapse > .table {
10
+ margin-bottom: 0;
11
+
12
+ caption {
13
+ padding-left: $space-large;
14
+ padding-right: $space-large;
15
+ }
16
+ }
17
+ // Add border top radius for first one
18
+ > .table:first-child,
19
+ > .table-responsive:first-child > .table:first-child {
20
+ @include border-top-radius(($border-rad-light - 1));
21
+
22
+ > thead:first-child,
23
+ > tbody:first-child {
24
+ > tr:first-child {
25
+ border-top-left-radius: ($border-rad-light - 1);
26
+ border-top-right-radius: ($border-rad-light - 1);
27
+
28
+ td:first-child,
29
+ th:first-child {
30
+ border-top-left-radius: ($border-rad-light - 1);
31
+ }
32
+ td:last-child,
33
+ th:last-child {
34
+ border-top-right-radius: ($border-rad-light - 1);
35
+ }
36
+ }
37
+ }
38
+ }
39
+ // Add border bottom radius for last one
40
+ > .table:last-child,
41
+ > .table-responsive:last-child > .table:last-child {
42
+ @include border-bottom-radius(($border-rad-light - 1));
43
+
44
+ > tbody:last-child,
45
+ > tfoot:last-child {
46
+ > tr:last-child {
47
+ border-bottom-left-radius: ($border-rad-light - 1);
48
+ border-bottom-right-radius: ($border-rad-light - 1);
49
+
50
+ td:first-child,
51
+ th:first-child {
52
+ border-bottom-left-radius: ($border-rad-light - 1);
53
+ }
54
+ td:last-child,
55
+ th:last-child {
56
+ border-bottom-right-radius: ($border-rad-light - 1);
57
+ }
58
+ }
59
+ }
60
+ }
61
+ > .panel-body + .table,
62
+ > .panel-body + .table-responsive,
63
+ > .table + .panel-body,
64
+ > .table-responsive + .panel-body {
65
+ border-top: 1px solid $border-color;
66
+ }
67
+ > .table > tbody:first-child > tr:first-child th,
68
+ > .table > tbody:first-child > tr:first-child td {
69
+ border-top: 0;
70
+ }
71
+ > .table-bordered,
72
+ > .table-responsive > .table-bordered {
73
+ border: 0;
74
+ > thead,
75
+ > tbody,
76
+ > tfoot {
77
+ > tr {
78
+ > th:first-child,
79
+ > td:first-child {
80
+ border-left: 0;
81
+ }
82
+ > th:last-child,
83
+ > td:last-child {
84
+ border-right: 0;
85
+ }
86
+ }
87
+ }
88
+ > thead,
89
+ > tbody {
90
+ > tr:first-child {
91
+ > td,
92
+ > th {
93
+ border-bottom: 0;
94
+ }
95
+ }
96
+ }
97
+ > tbody,
98
+ > tfoot {
99
+ > tr:last-child {
100
+ > td,
101
+ > th {
102
+ border-bottom: 0;
103
+ }
104
+ }
105
+ }
106
+ }
107
+ > .table-responsive {
108
+ border: 0;
109
+ margin-bottom: 0;
110
+ }
111
+ }
@@ -0,0 +1,120 @@
1
+
2
+ // --------
3
+ // Panels
4
+ // --------
5
+
6
+ $panel-bg: $white;
7
+ $panel-body-padding: 15px;
8
+ $panel-heading-padding: 10px 15px;
9
+ $panel-footer-padding: $panel-heading-padding;
10
+ $panel-border-radius: $border-radius-base;
11
+
12
+
13
+ // Panels are becomming cards.
14
+ // Style transition appropriately
15
+
16
+
17
+ // Panels Mixins (color the panels)
18
+ @mixin panel-variant($color) {
19
+ $border: shade($color, 10%);
20
+ border-color: $border;
21
+
22
+ & > .panel-heading {
23
+ @include text-color($color);
24
+ background-color: $color;
25
+ border-color: $border;
26
+
27
+ + .panel-collapse > .panel-body {
28
+ border-top-color: $border;
29
+ }
30
+ .badge {
31
+ background-color: shade($color, 20%);
32
+ @include text-color($color);
33
+ }
34
+ }
35
+ & > .panel-footer {
36
+ + .panel-collapse > .panel-body {
37
+ border-bottom-color: $border;
38
+ }
39
+ }
40
+ }
41
+
42
+
43
+
44
+ //
45
+ // Panels
46
+ // --------------------------------------------------
47
+
48
+
49
+ // Base class
50
+ .panel {
51
+ margin-bottom: $line-height-computed;
52
+ background-color: $white;
53
+ border: 1px solid transparent;
54
+ border-radius: $border-rad-light;
55
+ @include box-shadow(0 1px 1px rgba(0,0,0,.05));
56
+ &-body {
57
+ padding: $space-large;
58
+ @include clearfix;
59
+ }
60
+ &-heading {
61
+ padding: $space-base $space-large;
62
+ border-bottom: 1px solid transparent;
63
+ @include border-top-radius(($border-rad-light - 1));
64
+
65
+ > .dropdown .dropdown-toggle {
66
+ color: inherit;
67
+ }
68
+ }
69
+ &-title {
70
+ // Within heading, strip any `h*` tag of its default margins for spacing.
71
+ margin-top: 0;
72
+ margin-bottom: 0;
73
+ font-size: ceil(($font-base * 1.125));
74
+ color: inherit;
75
+
76
+ > a,
77
+ > small,
78
+ > .small,
79
+ > small > a,
80
+ > .small > a {
81
+ color: inherit;
82
+ }
83
+ }
84
+ &-footer {
85
+ padding: $space-base $space-large;
86
+ background-color: $sky-light;
87
+ border-top: 1px solid $border-color;
88
+ @include border-bottom-radius(($border-rad-light - 1));
89
+ }
90
+ }
91
+
92
+
93
+
94
+ @import "panel-list-groups";
95
+ @import "panel-tables";
96
+ @import "panel-collapse";
97
+
98
+
99
+
100
+
101
+
102
+ // Contextual variations
103
+ .panel-default {
104
+ @include panel-variant($white);
105
+ }
106
+ .panel-primary {
107
+ @include panel-variant($white);
108
+ }
109
+ .panel-success {
110
+ @include panel-variant($white);
111
+ }
112
+ .panel-info {
113
+ @include panel-variant($white);
114
+ }
115
+ .panel-warning {
116
+ @include panel-variant($white);
117
+ }
118
+ .panel-danger {
119
+ @include panel-variant($white);
120
+ }
@@ -0,0 +1,18 @@
1
+ // Cross Element Variables
2
+ // @import "variables";
3
+ // @import "mixins";
4
+
5
+ // Form Elements
6
+ @import "validation-states";
7
+ @import "general-element-reset";
8
+ @import "checkbox-radio";
9
+ @import "checkbox-toggle";
10
+ @import "static-form-text";
11
+ @import "color-feedback";
12
+ @import "help-block";
13
+ @import "label";
14
+ @import "dropdown";
15
+ @import "horizontal-forms";
16
+ @import "multi-input-group";
17
+ @import "input-groups";
18
+ @import "form-group";
@@ -0,0 +1,154 @@
1
+ // Checkboxes and radios
2
+ //
3
+ // Indent the labels to position radios/checkboxes as hanging controls.
4
+
5
+ $label-offset: 27px;
6
+
7
+ .radio, .checkbox, .form-group .radio, .form-group .checkbox, .form-group.radio, .form-group.checkbox {
8
+ position: relative;
9
+ display: block;
10
+ margin-top: 10px;
11
+ margin-bottom: 10px;
12
+
13
+ label {
14
+ min-height: $line-height-computed; // Ensure the input doesn't jump when there is no text
15
+ padding-left: $label-offset;
16
+ margin-bottom: 0;
17
+ font-weight: normal;
18
+ cursor: pointer;
19
+ font-size: $font-small;
20
+ text-transform: none;
21
+ color: $ink-light;
22
+ line-height: inherit;
23
+ }
24
+ }
25
+ .radio input[type="radio"],
26
+ .radio-inline input[type="radio"],
27
+ .checkbox input[type="checkbox"],
28
+ .checkbox-inline input[type="checkbox"] {
29
+ position: absolute;
30
+ margin-left: -($label-offset);
31
+ margin-top: 2px;
32
+ -webkit-appearance: none;
33
+ -moz-appearance: none;
34
+ appearance: none;
35
+ width: 18px;
36
+ height: 18px;
37
+ border: 1px solid $form-border-color;
38
+ cursor: pointer;
39
+ @include transition-property(all);
40
+ @include transition-duration(.2s);
41
+ @include transition-timing-function(cubic-bezier(.7, 0, .3, 1));
42
+ &:hover {
43
+ // transform: scale(1.1);
44
+ }
45
+ }
46
+
47
+ .radio input[type="radio"],
48
+ .radio-inline input[type="radio"] {
49
+ border-radius: $border-rad-mega;
50
+ width: 17px;
51
+ height: 17px;
52
+ &:checked {
53
+ border-color: $power-royal;
54
+ background: $power-royal;
55
+ &:after {
56
+ content: " ";
57
+ background: $white;
58
+ width: 7px;
59
+ height: 7px;
60
+ display: block;
61
+ border-radius: $border-rad-mega;
62
+ left: 4px;
63
+ top: 4px;
64
+ position: absolute;
65
+ }
66
+ }
67
+ }
68
+ .checkbox input[type="checkbox"],
69
+ .checkbox-inline input[type="checkbox"] {
70
+ border-radius: $border-rad-light;
71
+ background-image: linear-gradient(to bottom, $white 10%, $gray-1 100%);
72
+ &:checked {
73
+ background: $power-royal;
74
+ border-color: $power-royal;
75
+ ~ span {
76
+ color: $ink-light;
77
+ font-weight: $bold;
78
+ }
79
+ &:after {
80
+ content: "";
81
+ display: block;
82
+ width: 15px;
83
+ height: 11px;
84
+ background-image: image-url('pb-check.svg');
85
+ background-repeat: no-repeat;
86
+ position: absolute;
87
+ top: 2px;
88
+ @include center;
89
+ }
90
+ }
91
+ }
92
+
93
+ .radio + .radio,
94
+ .checkbox + .checkbox {
95
+ margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
96
+ }
97
+
98
+ // Override for our custom columnar grouping of options.
99
+ .form-group {
100
+ &.radio-checkbox-columns {
101
+ .checkbox,
102
+ .radio {
103
+ margin-top: -5px;
104
+ }
105
+ }
106
+ }
107
+
108
+ // Radios and checkboxes on same line
109
+ .radio-inline,
110
+ .checkbox-inline {
111
+ position: relative;
112
+ display: inline-block;
113
+ padding-left: 20px;
114
+ margin-bottom: 0;
115
+ vertical-align: middle;
116
+ font-weight: normal;
117
+ cursor: pointer;
118
+ }
119
+ .radio-inline + .radio-inline,
120
+ .checkbox-inline + .checkbox-inline {
121
+ margin-top: 0;
122
+ margin-left: 10px; // space out consecutive inline controls
123
+ }
124
+
125
+ // Apply same disabled cursor tweak as for inputs
126
+ // Some special care is needed because <label>s don't inherit their parent's `cursor`.
127
+ //
128
+ // Note: Neither radios nor checkboxes can be readonly.
129
+ input[type="radio"],
130
+ input[type="checkbox"] {
131
+ &[disabled],
132
+ &.disabled,
133
+ fieldset[disabled] & {
134
+ cursor: $cursor-disabled;
135
+ }
136
+ }
137
+ // These classes are used directly on <label>s
138
+ .radio-inline,
139
+ .checkbox-inline {
140
+ &.disabled,
141
+ fieldset[disabled] & {
142
+ cursor: $cursor-disabled;
143
+ }
144
+ }
145
+ // These classes are used on elements with <label> descendants
146
+ .radio,
147
+ .checkbox {
148
+ &.disabled,
149
+ fieldset[disabled] & {
150
+ label {
151
+ cursor: $cursor-disabled;
152
+ }
153
+ }
154
+ }