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,10 @@
1
+ // z-index Helpers
2
+ @mixin z-layers($z-layers) {
3
+ @each $name, $z in $z-layers {
4
+ .#{$name} {
5
+ z-index: $z !important;
6
+ }
7
+ }
8
+ }
9
+
10
+ @include z-layers($z-layers);
@@ -0,0 +1,5 @@
1
+ @import "TextInput/form-control";
2
+ @import "Text/text";
3
+ @import "Badge/badges";
4
+ @import "Badge/labels";
5
+ @import "Highlight/styles";
@@ -0,0 +1,139 @@
1
+ // Now dependent on link
2
+ // refactor link to separate mixin
3
+
4
+
5
+
6
+ //== Alerts
7
+ //
8
+ //## Define alert colors, border radius, and padding.
9
+
10
+ $alert-padding: 15px !default;
11
+ $alert-border-radius: $border-radius-base !default;
12
+ $alert-link-font-weight: bold !default;
13
+
14
+ $alert-success-bg: $power-green;
15
+ $alert-success-text: $state-success-text !default;
16
+ $alert-success-border: $state-success-border !default;
17
+
18
+ $alert-info-bg: $power-royal;
19
+ $alert-info-text: $state-info-text !default;
20
+ $alert-info-border: $state-info-border !default;
21
+
22
+ $alert-warning-bg: $power-gold;
23
+ $alert-warning-text: $state-warning-text !default;
24
+ $alert-warning-border: $state-warning-border !default;
25
+
26
+ $alert-danger-bg: $power-red;
27
+ $alert-danger-text: $state-danger-text !default;
28
+ $alert-danger-border: $state-danger-border !default;
29
+
30
+
31
+
32
+ // Alerts
33
+
34
+ // Alerts
35
+
36
+ @mixin alert-variant($background) {
37
+ background-color: tint($background, 90%);
38
+ border-color: $background;
39
+ color: $background;
40
+
41
+ hr {
42
+ border-top-color: darken($background, 5%);
43
+ }
44
+ .alert-link {
45
+ @include link($color: $background, $underline: true);
46
+ }
47
+ &.alert-dismissable, &.alert-dismissible {
48
+ .close:hover {
49
+ color: shade($background, 20%);
50
+ }
51
+ }
52
+ }
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+ //
61
+ // Alerts
62
+ // --------------------------------------------------
63
+
64
+
65
+ // Base styles
66
+ // -------------------------
67
+
68
+ .alert {
69
+ padding: $alert-padding;
70
+ margin-bottom: $line-height-computed;
71
+ border: 1px solid transparent;
72
+ border-radius: $border-rad-heavier;
73
+
74
+ // Headings for larger alerts
75
+ h4 {
76
+ margin-top: 0;
77
+ // Specified for the h4 to prevent conflicts of changing $headings-color
78
+ color: inherit;
79
+ }
80
+
81
+
82
+
83
+ // Provide class for links that match alerts
84
+ .alert-link {
85
+ // font-weight: $alert-link-font-weight;
86
+ @include link($color: $power-royal, $underline: true);
87
+ }
88
+
89
+ // Improve alignment and spacing of inner content
90
+ > p,
91
+ > ul {
92
+ margin-bottom: 0;
93
+ }
94
+
95
+ > p + p {
96
+ margin-top: 5px;
97
+ }
98
+ }
99
+
100
+ // Dismissible alerts
101
+ //
102
+ // Expand the right padding and account for the close button's positioning.
103
+
104
+ .alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0.
105
+ .alert-dismissible {
106
+ padding-right: ($alert-padding + 20);
107
+
108
+ // Adjust close link position
109
+ .close {
110
+ position: relative;
111
+ top: -2px;
112
+ right: -21px;
113
+ color: inherit;
114
+ font-size: 36px;
115
+ font-weight: 400;
116
+ opacity: 1;
117
+ }
118
+ }
119
+
120
+ // Alternate styles
121
+ //
122
+ // Generate contextual modifier classes for colorizing the alert.
123
+
124
+
125
+ .alert-success {
126
+ @include alert-variant($power-green);
127
+ }
128
+
129
+ .alert-info {
130
+ @include alert-variant($power-royal);
131
+ }
132
+
133
+ .alert-warning {
134
+ @include alert-variant( $power-gold);
135
+ }
136
+
137
+ .alert-danger {
138
+ @include alert-variant($power-red);
139
+ }
@@ -0,0 +1,33 @@
1
+ @import "grid";
2
+ @import "animations";
3
+ @import "buttons/all";
4
+ @import "dashboards";
5
+ @import "forms/all";
6
+ @import "links";
7
+ @import "cards-panels/all";
8
+ @import "code";
9
+ @import "tables";
10
+ @import "tables-responsive";
11
+ @import "tables/all";
12
+ @import "navigation/all";
13
+ @import "jumbotron";
14
+ @import "thumbnails";
15
+ @import "alerts";
16
+ @import "progress-bars";
17
+ @import "media";
18
+ @import "responsive-embed";
19
+ @import "wells";
20
+ @import "modals";
21
+ @import "notify";
22
+ @import "tooltip";
23
+ @import "popovers";
24
+ @import "typography";
25
+ @import "list-group";
26
+ @import "value-stat";
27
+ @import "connect-cards";
28
+ @import "full-menu";
29
+ @import "layouts/sidebar-layout";
30
+ @import "side-modal";
31
+ @import "fixed-confirmation-toast";
32
+ @import "icon-toggle";
33
+ @import "carousel";
@@ -0,0 +1,37 @@
1
+ //
2
+ // Component animations
3
+ // --------------------------------------------------
4
+
5
+ // Heads up!
6
+ //
7
+ // We don't use the `.opacity()` mixin here since it causes a bug with text
8
+ // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.
9
+
10
+ .fade {
11
+ opacity: 0;
12
+ @include transition(opacity .15s linear);
13
+ &.in {
14
+ opacity: 1;
15
+ }
16
+ }
17
+
18
+ .collapse {
19
+ display: none;
20
+
21
+ &.in { display: block; }
22
+ // [converter] extracted tr&.in to tr.collapse.in
23
+ // [converter] extracted tbody&.in to tbody.collapse.in
24
+ }
25
+
26
+ tr.collapse.in { display: table-row; }
27
+
28
+ tbody.collapse.in { display: table-row-group; }
29
+
30
+ .collapsing {
31
+ position: relative;
32
+ height: 0;
33
+ overflow: hidden;
34
+ @include transition-property(height, visibility);
35
+ @include transition-duration(.35s);
36
+ @include transition-timing-function(ease);
37
+ }
@@ -0,0 +1,281 @@
1
+ //
2
+ // Carousel
3
+ // --------------------------------------------------
4
+
5
+ $carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6) !default;
6
+
7
+ $carousel-control-color: #fff !default;
8
+ $carousel-control-width: 15% !default;
9
+ $carousel-control-opacity: .5 !default;
10
+ $carousel-control-font-size: 20px !default;
11
+
12
+ $carousel-indicator-active-bg: #fff !default;
13
+ $carousel-indicator-border-color: #fff !default;
14
+
15
+ $carousel-caption-color: #fff !default;
16
+
17
+ // Wrapper for the slide container and indicators
18
+ .carousel {
19
+ position: relative;
20
+ }
21
+
22
+ .carousel-inner {
23
+ position: relative;
24
+ overflow: hidden;
25
+ width: 100%;
26
+
27
+ > .item {
28
+ display: none;
29
+ position: relative;
30
+ @include transition(.6s ease-in-out left);
31
+
32
+ // Account for jankitude on images
33
+ > img,
34
+ > a > img {
35
+ @include img-responsive;
36
+ line-height: 1;
37
+ }
38
+
39
+ // WebKit CSS3 transforms for supported devices
40
+ @media all and (transform-3d), (-webkit-transform-3d) {
41
+ @include transition-transform(0.6s ease-in-out);
42
+ @include backface-visibility(hidden);
43
+ @include perspective(1000px);
44
+
45
+ &.next,
46
+ &.active.right {
47
+ @include translate3d(100%, 0, 0);
48
+ left: 0;
49
+ }
50
+ &.prev,
51
+ &.active.left {
52
+ @include translate3d(-100%, 0, 0);
53
+ left: 0;
54
+ }
55
+ &.next.left,
56
+ &.prev.right,
57
+ &.active {
58
+ @include translate3d(0, 0, 0);
59
+ left: 0;
60
+ }
61
+ }
62
+ }
63
+
64
+ > .active,
65
+ > .next,
66
+ > .prev {
67
+ display: block;
68
+ }
69
+
70
+ > .active {
71
+ left: 0;
72
+ }
73
+
74
+ > .next,
75
+ > .prev {
76
+ position: absolute;
77
+ top: 0;
78
+ width: 100%;
79
+ }
80
+
81
+ > .next {
82
+ left: 100%;
83
+ }
84
+ > .prev {
85
+ left: -100%;
86
+ }
87
+ > .next.left,
88
+ > .prev.right {
89
+ left: 0;
90
+ }
91
+
92
+ > .active.left {
93
+ left: -100%;
94
+ }
95
+ > .active.right {
96
+ left: 100%;
97
+ }
98
+
99
+ }
100
+
101
+ // Left/right controls for nav
102
+ // ---------------------------
103
+
104
+ .carousel-control {
105
+ position: absolute;
106
+ top: 0;
107
+ left: 0;
108
+ bottom: 0;
109
+ width: $carousel-control-width;
110
+ @include opacity($carousel-control-opacity);
111
+ font-size: $carousel-control-font-size;
112
+ color: $carousel-control-color;
113
+ text-align: center;
114
+ text-shadow: $carousel-text-shadow;
115
+ background-color: rgba(0, 0, 0, 0); // Fix IE9 click-thru bug
116
+ // We can't have this transition here because WebKit cancels the carousel
117
+ // animation if you trip this while in the middle of another animation.
118
+
119
+ // Set gradients for backgrounds
120
+ &.left {
121
+ @include gradient-horizontal($start-color: rgba(0,0,0,.5), $end-color: rgba(0,0,0,.0001));
122
+ }
123
+ &.right {
124
+ left: auto;
125
+ right: 0;
126
+ @include gradient-horizontal($start-color: rgba(0,0,0,.0001), $end-color: rgba(0,0,0,.5));
127
+ }
128
+
129
+ // Hover/focus state
130
+ &:hover,
131
+ &:focus {
132
+ outline: 0;
133
+ color: $carousel-control-color;
134
+ text-decoration: none;
135
+ @include opacity(.9);
136
+ }
137
+
138
+ // Toggles
139
+ .icon-prev,
140
+ .icon-next,
141
+ .glyphicon-chevron-left,
142
+ .glyphicon-chevron-right {
143
+ position: absolute;
144
+ top: 50%;
145
+ margin-top: -10px;
146
+ z-index: 5;
147
+ display: inline-block;
148
+ }
149
+ .icon-prev,
150
+ .glyphicon-chevron-left {
151
+ left: 50%;
152
+ margin-left: -10px;
153
+ }
154
+ .icon-next,
155
+ .glyphicon-chevron-right {
156
+ right: 50%;
157
+ margin-right: -10px;
158
+ }
159
+ .icon-prev,
160
+ .icon-next {
161
+ width: 20px;
162
+ height: 20px;
163
+ line-height: 1;
164
+ font-family: serif;
165
+ }
166
+
167
+
168
+ .icon-prev {
169
+ &:before {
170
+ content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
171
+ }
172
+ }
173
+ .icon-next {
174
+ &:before {
175
+ content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
176
+ }
177
+ }
178
+ }
179
+
180
+ // Optional indicator pips
181
+ //
182
+ // Add an unordered list with the following class and add a list item for each
183
+ // slide your carousel holds.
184
+
185
+ .carousel-indicators {
186
+ position: absolute;
187
+ bottom: 10px;
188
+ left: 50%;
189
+ z-index: 15;
190
+ width: 60%;
191
+ margin-left: -30%;
192
+ padding-left: 0;
193
+ list-style: none;
194
+ text-align: center;
195
+
196
+ li {
197
+ display: inline-block;
198
+ width: 10px;
199
+ height: 10px;
200
+ margin: 1px;
201
+ text-indent: -999px;
202
+ border: 1px solid $carousel-indicator-border-color;
203
+ border-radius: 10px;
204
+ cursor: pointer;
205
+
206
+ // IE8-9 hack for event handling
207
+ //
208
+ // Internet Explorer 8-9 does not support clicks on elements without a set
209
+ // `background-color`. We cannot use `filter` since that's not viewed as a
210
+ // background color by the browser. Thus, a hack is needed.
211
+ // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Internet_Explorer
212
+ //
213
+ // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
214
+ // set alpha transparency for the best results possible.
215
+ background-color: #000 \9; // IE8
216
+ background-color: rgba(0,0,0,0); // IE9
217
+ }
218
+ .active {
219
+ margin: 0;
220
+ width: 12px;
221
+ height: 12px;
222
+ background-color: $carousel-indicator-active-bg;
223
+ }
224
+ }
225
+
226
+ // Optional captions
227
+ // -----------------------------
228
+ // Hidden by default for smaller viewports
229
+ .carousel-caption {
230
+ position: absolute;
231
+ left: 15%;
232
+ right: 15%;
233
+ bottom: 20px;
234
+ z-index: 10;
235
+ padding-top: 20px;
236
+ padding-bottom: 20px;
237
+ color: $carousel-caption-color;
238
+ text-align: center;
239
+ text-shadow: $carousel-text-shadow;
240
+ & .btn {
241
+ text-shadow: none; // No shadow for button elements in carousel-caption
242
+ }
243
+ }
244
+
245
+
246
+ // Scale up controls for tablets and up
247
+ @media screen and (min-width: $screen-sm-min) {
248
+
249
+ // Scale up the controls a smidge
250
+ .carousel-control {
251
+ .glyphicon-chevron-left,
252
+ .glyphicon-chevron-right,
253
+ .icon-prev,
254
+ .icon-next {
255
+ width: ($carousel-control-font-size * 1.5);
256
+ height: ($carousel-control-font-size * 1.5);
257
+ margin-top: ($carousel-control-font-size / -2);
258
+ font-size: ($carousel-control-font-size * 1.5);
259
+ }
260
+ .glyphicon-chevron-left,
261
+ .icon-prev {
262
+ margin-left: ($carousel-control-font-size / -2);
263
+ }
264
+ .glyphicon-chevron-right,
265
+ .icon-next {
266
+ margin-right: ($carousel-control-font-size / -2);
267
+ }
268
+ }
269
+
270
+ // Show and left align the captions
271
+ .carousel-caption {
272
+ left: 20%;
273
+ right: 20%;
274
+ padding-bottom: 30px;
275
+ }
276
+
277
+ // Move up the indicators
278
+ .carousel-indicators {
279
+ bottom: 20px;
280
+ }
281
+ }