bedrock_sass 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/_normalize.scss +3 -0
  3. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  4. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  5. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  6. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  7. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
  8. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  9. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  10. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  11. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  12. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  13. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  14. data/assets/_vendor/foundation/scss/_global.scss +249 -0
  15. data/assets/_vendor/foundation/scss/components/_accordion-menu.scss +171 -0
  16. data/assets/_vendor/foundation/scss/components/_accordion.scss +155 -0
  17. data/assets/_vendor/foundation/scss/components/_badge.scss +63 -0
  18. data/assets/_vendor/foundation/scss/components/_breadcrumbs.scss +117 -0
  19. data/assets/_vendor/foundation/scss/components/_button-group.scss +253 -0
  20. data/assets/_vendor/foundation/scss/components/_button.scss +385 -0
  21. data/assets/_vendor/foundation/scss/components/_callout.scss +106 -0
  22. data/assets/_vendor/foundation/scss/components/_card.scss +129 -0
  23. data/assets/_vendor/foundation/scss/components/_close-button.scss +102 -0
  24. data/assets/_vendor/foundation/scss/components/_drilldown.scss +142 -0
  25. data/assets/_vendor/foundation/scss/components/_dropdown-menu.scss +274 -0
  26. data/assets/_vendor/foundation/scss/components/_dropdown.scss +79 -0
  27. data/assets/_vendor/foundation/scss/components/_flex-video.scss +1 -0
  28. data/assets/_vendor/foundation/scss/components/_flex.scss +117 -0
  29. data/assets/_vendor/foundation/scss/components/_float.scss +27 -0
  30. data/assets/_vendor/foundation/scss/components/_label.scss +64 -0
  31. data/assets/_vendor/foundation/scss/components/_media-object.scss +114 -0
  32. data/assets/_vendor/foundation/scss/components/_menu-icon.scss +9 -0
  33. data/assets/_vendor/foundation/scss/components/_menu.scss +495 -0
  34. data/assets/_vendor/foundation/scss/components/_off-canvas.scss +506 -0
  35. data/assets/_vendor/foundation/scss/components/_orbit.scss +196 -0
  36. data/assets/_vendor/foundation/scss/components/_pagination.scss +193 -0
  37. data/assets/_vendor/foundation/scss/components/_progress-bar.scss +64 -0
  38. data/assets/_vendor/foundation/scss/components/_responsive-embed.scss +70 -0
  39. data/assets/_vendor/foundation/scss/components/_reveal.scss +180 -0
  40. data/assets/_vendor/foundation/scss/components/_slider.scss +137 -0
  41. data/assets/_vendor/foundation/scss/components/_sticky.scss +39 -0
  42. data/assets/_vendor/foundation/scss/components/_switch.scss +247 -0
  43. data/assets/_vendor/foundation/scss/components/_table.scss +330 -0
  44. data/assets/_vendor/foundation/scss/components/_tabs.scss +196 -0
  45. data/assets/_vendor/foundation/scss/components/_thumbnail.scss +67 -0
  46. data/assets/_vendor/foundation/scss/components/_title-bar.scss +84 -0
  47. data/assets/_vendor/foundation/scss/components/_tooltip.scss +160 -0
  48. data/assets/_vendor/foundation/scss/components/_top-bar.scss +175 -0
  49. data/assets/_vendor/foundation/scss/components/_visibility.scss +132 -0
  50. data/assets/_vendor/foundation/scss/forms/_checkbox.scss +41 -0
  51. data/assets/_vendor/foundation/scss/forms/_error.scss +88 -0
  52. data/assets/_vendor/foundation/scss/forms/_fieldset.scss +53 -0
  53. data/assets/_vendor/foundation/scss/forms/_forms.scss +34 -0
  54. data/assets/_vendor/foundation/scss/forms/_help-text.scss +30 -0
  55. data/assets/_vendor/foundation/scss/forms/_input-group.scss +142 -0
  56. data/assets/_vendor/foundation/scss/forms/_label.scss +50 -0
  57. data/assets/_vendor/foundation/scss/forms/_meter.scss +116 -0
  58. data/assets/_vendor/foundation/scss/forms/_progress.scss +94 -0
  59. data/assets/_vendor/foundation/scss/forms/_range.scss +149 -0
  60. data/assets/_vendor/foundation/scss/forms/_select.scss +86 -0
  61. data/assets/_vendor/foundation/scss/forms/_text.scss +179 -0
  62. data/assets/_vendor/foundation/scss/foundation.scss +133 -0
  63. data/assets/_vendor/foundation/scss/grid/_classes.scss +176 -0
  64. data/assets/_vendor/foundation/scss/grid/_column.scss +112 -0
  65. data/assets/_vendor/foundation/scss/grid/_flex-grid.scss +259 -0
  66. data/assets/_vendor/foundation/scss/grid/_grid.scss +48 -0
  67. data/assets/_vendor/foundation/scss/grid/_gutter.scss +82 -0
  68. data/assets/_vendor/foundation/scss/grid/_layout.scss +76 -0
  69. data/assets/_vendor/foundation/scss/grid/_position.scss +76 -0
  70. data/assets/_vendor/foundation/scss/grid/_row.scss +99 -0
  71. data/assets/_vendor/foundation/scss/grid/_size.scss +24 -0
  72. data/assets/_vendor/foundation/scss/prototype/_arrow.scss +36 -0
  73. data/assets/_vendor/foundation/scss/prototype/_border-box.scss +35 -0
  74. data/assets/_vendor/foundation/scss/prototype/_border-none.scss +35 -0
  75. data/assets/_vendor/foundation/scss/prototype/_bordered.scss +54 -0
  76. data/assets/_vendor/foundation/scss/prototype/_box.scss +23 -0
  77. data/assets/_vendor/foundation/scss/prototype/_display.scss +50 -0
  78. data/assets/_vendor/foundation/scss/prototype/_font-styling.scss +95 -0
  79. data/assets/_vendor/foundation/scss/prototype/_list-style-type.scss +95 -0
  80. data/assets/_vendor/foundation/scss/prototype/_overflow.scss +72 -0
  81. data/assets/_vendor/foundation/scss/prototype/_position.scss +114 -0
  82. data/assets/_vendor/foundation/scss/prototype/_prototype.scss +87 -0
  83. data/assets/_vendor/foundation/scss/prototype/_relation.scss +157 -0
  84. data/assets/_vendor/foundation/scss/prototype/_rotate.scss +31 -0
  85. data/assets/_vendor/foundation/scss/prototype/_rounded.scss +54 -0
  86. data/assets/_vendor/foundation/scss/prototype/_separator.scss +96 -0
  87. data/assets/_vendor/foundation/scss/prototype/_shadow.scss +43 -0
  88. data/assets/_vendor/foundation/scss/prototype/_sizing.scss +73 -0
  89. data/assets/_vendor/foundation/scss/prototype/_spacing.scss +204 -0
  90. data/assets/_vendor/foundation/scss/prototype/_text-decoration.scss +48 -0
  91. data/assets/_vendor/foundation/scss/prototype/_text-transformation.scss +48 -0
  92. data/assets/_vendor/foundation/scss/prototype/_text-utilities.scss +88 -0
  93. data/assets/_vendor/foundation/scss/settings/_settings.scss +869 -0
  94. data/assets/_vendor/foundation/scss/typography/_alignment.scss +22 -0
  95. data/assets/_vendor/foundation/scss/typography/_base.scss +509 -0
  96. data/assets/_vendor/foundation/scss/typography/_helpers.scss +80 -0
  97. data/assets/_vendor/foundation/scss/typography/_print.scss +86 -0
  98. data/assets/_vendor/foundation/scss/typography/_typography.scss +26 -0
  99. data/assets/_vendor/foundation/scss/util/_breakpoint.scss +348 -0
  100. data/assets/_vendor/foundation/scss/util/_color.scss +129 -0
  101. data/assets/_vendor/foundation/scss/util/_direction.scss +31 -0
  102. data/assets/_vendor/foundation/scss/util/_flex.scss +85 -0
  103. data/assets/_vendor/foundation/scss/util/_math.scss +72 -0
  104. data/assets/_vendor/foundation/scss/util/_mixins.scss +313 -0
  105. data/assets/_vendor/foundation/scss/util/_selector.scss +41 -0
  106. data/assets/_vendor/foundation/scss/util/_typography.scss +26 -0
  107. data/assets/_vendor/foundation/scss/util/_unit.scss +152 -0
  108. data/assets/_vendor/foundation/scss/util/_util.scss +14 -0
  109. data/assets/_vendor/foundation/scss/util/_value.scss +160 -0
  110. data/assets/_vendor/foundation/scss/xy-grid/_cell.scss +169 -0
  111. data/assets/_vendor/foundation/scss/xy-grid/_classes.scss +476 -0
  112. data/assets/_vendor/foundation/scss/xy-grid/_collapse.scss +74 -0
  113. data/assets/_vendor/foundation/scss/xy-grid/_frame.scss +85 -0
  114. data/assets/_vendor/foundation/scss/xy-grid/_grid.scss +35 -0
  115. data/assets/_vendor/foundation/scss/xy-grid/_gutters.scss +45 -0
  116. data/assets/_vendor/foundation/scss/xy-grid/_layout.scss +33 -0
  117. data/assets/_vendor/foundation/scss/xy-grid/_position.scss +28 -0
  118. data/assets/_vendor/foundation/scss/xy-grid/_xy-grid.scss +51 -0
  119. data/assets/_vendor/motion-ui/_classes.scss +109 -0
  120. data/assets/_vendor/motion-ui/_settings.scss +61 -0
  121. data/assets/_vendor/motion-ui/effects/_fade.scss +32 -0
  122. data/assets/_vendor/motion-ui/effects/_hinge.scss +65 -0
  123. data/assets/_vendor/motion-ui/effects/_shake.scss +15 -0
  124. data/assets/_vendor/motion-ui/effects/_slide.scss +41 -0
  125. data/assets/_vendor/motion-ui/effects/_spin.scss +28 -0
  126. data/assets/_vendor/motion-ui/effects/_wiggle.scss +13 -0
  127. data/assets/_vendor/motion-ui/effects/_zoom.scss +15 -0
  128. data/assets/_vendor/motion-ui/motion-ui.scss +29 -0
  129. data/assets/_vendor/motion-ui/transitions/_fade.scss +28 -0
  130. data/assets/_vendor/motion-ui/transitions/_hinge.scss +43 -0
  131. data/assets/_vendor/motion-ui/transitions/_slide.scss +42 -0
  132. data/assets/_vendor/motion-ui/transitions/_spin.scss +39 -0
  133. data/assets/_vendor/motion-ui/transitions/_zoom.scss +39 -0
  134. data/assets/_vendor/motion-ui/util/_animation.scss +7 -0
  135. data/assets/_vendor/motion-ui/util/_args.scss +15 -0
  136. data/assets/_vendor/motion-ui/util/_keyframe.scss +136 -0
  137. data/assets/_vendor/motion-ui/util/_selector.scss +23 -0
  138. data/assets/_vendor/motion-ui/util/_series.scss +54 -0
  139. data/assets/_vendor/motion-ui/util/_transition.scss +45 -0
  140. data/assets/_vendor/motion-ui/util/_unit.scss +7 -0
  141. data/assets/bedrock/js/bedrock.js +22993 -0
  142. data/assets/bedrock/scss/_bedrock-components.scss +15 -0
  143. data/assets/bedrock/scss/_bedrock-settings.scss +45 -0
  144. data/assets/bedrock/scss/_foundation-components.scss +50 -0
  145. data/assets/bedrock/scss/_foundation-settings.scss +869 -0
  146. data/assets/bedrock/scss/bedrock.scss +7 -0
  147. data/assets/bedrock/scss/components/global.scss +55 -0
  148. data/assets/bedrock/scss/components/header.scss +60 -0
  149. data/assets/bedrock/scss/components/helper-classes.scss +53 -0
  150. data/assets/bedrock/scss/components/logo-bar.scss +45 -0
  151. data/assets/bedrock/scss/components/off-canvas-menu.scss +359 -0
  152. data/assets/bedrock/scss/components/panel.scss +121 -0
  153. data/assets/bedrock/scss/components/tiny-mce-editor.scss +74 -0
  154. data/lib/bedrock_sass/version.rb +1 -1
  155. metadata +153 -2
@@ -0,0 +1,193 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group pagination
7
+ ////
8
+
9
+ /// Font size of pagination items.
10
+ /// @type Number
11
+ $pagination-font-size: rem-calc(14) !default;
12
+
13
+ /// Default bottom margin of the pagination object.
14
+ /// @type Number
15
+ $pagination-margin-bottom: $global-margin !default;
16
+
17
+ /// Text color of pagination items.
18
+ /// @type Color
19
+ $pagination-item-color: $black !default;
20
+
21
+ /// Padding inside of pagination items.
22
+ /// @type Number
23
+ $pagination-item-padding: rem-calc(3 10) !default;
24
+
25
+ /// Right margin to separate pagination items.
26
+ /// @type Number
27
+ $pagination-item-spacing: rem-calc(1) !default;
28
+
29
+ /// Default radius for pagination items.
30
+ /// @type Number
31
+ $pagination-radius: $global-radius !default;
32
+
33
+ /// Background color of pagination items on hover.
34
+ /// @type Color
35
+ $pagination-item-background-hover: $light-gray !default;
36
+
37
+ /// Background color of pagination item for the current page.
38
+ /// @type Color
39
+ $pagination-item-background-current: $primary-color !default;
40
+
41
+ /// Text color of the pagination item for the current page.
42
+ /// @type Color
43
+ $pagination-item-color-current: $white !default;
44
+
45
+ /// Text color of a disabled pagination item.
46
+ /// @type Color
47
+ $pagination-item-color-disabled: $medium-gray !default;
48
+
49
+ /// Color of the ellipsis in a pagination menu.
50
+ /// @type Color
51
+ $pagination-ellipsis-color: $black !default;
52
+
53
+ /// If `false`, don't display page number links on mobile, only next/previous links
54
+ /// and optionally current page number.
55
+ /// @type Boolean
56
+ $pagination-mobile-items: false !default;
57
+
58
+ /// If `true`, display the current page number on mobile even if `$pagination-mobile-items` is set to `false`.
59
+ /// This parameter will only override the visibility setting of the current item for `$pagination-mobile-items: false;`,
60
+ /// it will not affect the current page number visibility when `$pagination-mobile-items` is set to `true`.
61
+ /// @type Boolean
62
+ $pagination-mobile-current-item: false !default;
63
+
64
+ /// If `true`, arrows are added to the next and previous links of pagination.
65
+ /// @type Boolean
66
+ $pagination-arrows: true !default;
67
+
68
+ /// Adds styles for a pagination container. Apply this to a `<ul>`.
69
+ @mixin pagination-container (
70
+ $margin-bottom: $pagination-margin-bottom,
71
+ $font-size: $pagination-font-size,
72
+ $spacing: $pagination-item-spacing,
73
+ $radius: $pagination-radius,
74
+ $color: $pagination-item-color,
75
+ $padding: $pagination-item-padding,
76
+ $background-hover: $pagination-item-background-hover
77
+ ) {
78
+ @include clearfix;
79
+ margin-#{$global-left}: 0;
80
+ margin-bottom: $margin-bottom;
81
+
82
+ // List item
83
+ li {
84
+ margin-#{$global-right}: $spacing;
85
+ border-radius: $radius;
86
+ font-size: $font-size;
87
+
88
+ @if $pagination-mobile-items {
89
+ display: inline-block;
90
+ }
91
+ @else {
92
+ display: none;
93
+
94
+ &:last-child,
95
+ &:first-child {
96
+ display: inline-block;
97
+ }
98
+
99
+ @if $pagination-mobile-current-item {
100
+ &.current {
101
+ display: inline-block;
102
+ }
103
+ }
104
+
105
+ @include breakpoint(medium) {
106
+ display: inline-block;
107
+ }
108
+ }
109
+ }
110
+
111
+ // Page links
112
+ a,
113
+ button {
114
+ display: block;
115
+ padding: $padding;
116
+ border-radius: $radius;
117
+ color: $color;
118
+
119
+ &:hover {
120
+ background: $background-hover;
121
+ }
122
+ }
123
+ }
124
+
125
+ /// Adds styles for the current pagination item. Apply this to an `<a>`.
126
+ @mixin pagination-item-current (
127
+ $padding: $pagination-item-padding,
128
+ $background-current: $pagination-item-background-current,
129
+ $color-current: $pagination-item-color-current
130
+ ) {
131
+ padding: $padding;
132
+ background: $background-current;
133
+ color: $color-current;
134
+ cursor: default;
135
+ }
136
+
137
+ /// Adds styles for a disabled pagination item. Apply this to an `<a>`.
138
+ @mixin pagination-item-disabled (
139
+ $padding: $pagination-item-padding,
140
+ $color: $pagination-item-color-disabled
141
+ ) {
142
+ padding: $padding;
143
+ color: $color;
144
+ cursor: not-allowed;
145
+
146
+ &:hover {
147
+ background: transparent;
148
+ }
149
+ }
150
+
151
+ /// Adds styles for an ellipsis for use in a pagination list.
152
+ @mixin pagination-ellipsis (
153
+ $padding: $pagination-item-padding,
154
+ $color: $pagination-ellipsis-color
155
+ ) {
156
+ padding: $padding;
157
+ content: '\2026';
158
+ color: $color;
159
+ }
160
+
161
+ @mixin foundation-pagination {
162
+ .pagination {
163
+ @include pagination-container;
164
+
165
+ .current {
166
+ @include pagination-item-current;
167
+ }
168
+
169
+ .disabled {
170
+ @include pagination-item-disabled;
171
+ }
172
+
173
+ .ellipsis::after {
174
+ @include pagination-ellipsis;
175
+ }
176
+ }
177
+
178
+ @if $pagination-arrows {
179
+ .pagination-previous a::before,
180
+ .pagination-previous.disabled::before {
181
+ display: inline-block;
182
+ margin-#{$global-right}: 0.5rem;
183
+ content: '\00ab';
184
+ }
185
+
186
+ .pagination-next a::after,
187
+ .pagination-next.disabled::after {
188
+ display: inline-block;
189
+ margin-#{$global-left}: 0.5rem;
190
+ content: '\00bb';
191
+ }
192
+ }
193
+ }
@@ -0,0 +1,64 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ /// Adds styles for a progress bar container.
6
+ @mixin progress-container {
7
+ height: $progress-height;
8
+ margin-bottom: $progress-margin-bottom;
9
+ border-radius: $progress-radius;
10
+ background-color: $progress-background;
11
+ }
12
+
13
+ /// Adds styles for the inner meter of a progress bar.
14
+ @mixin progress-meter {
15
+ position: relative;
16
+ display: block;
17
+ width: 0%;
18
+ height: 100%;
19
+ background-color: $progress-meter-background;
20
+
21
+ @if has-value($progress-radius) {
22
+ border-radius: $global-radius;
23
+ }
24
+ }
25
+
26
+ /// Adds styles for text in the progress meter.
27
+ @mixin progress-meter-text {
28
+ @include absolute-center;
29
+ position: absolute;
30
+ margin: 0;
31
+ font-size: 0.75rem;
32
+ font-weight: bold;
33
+ color: $white;
34
+ white-space: nowrap;
35
+
36
+ @if has-value($progress-radius) {
37
+ border-radius: $progress-radius;
38
+ }
39
+ }
40
+
41
+ @mixin foundation-progress-bar {
42
+ // Progress bar
43
+ .progress {
44
+ @include progress-container;
45
+
46
+ @each $name, $color in $foundation-palette {
47
+ &.#{$name} {
48
+ .progress-meter {
49
+ background-color: $color;
50
+ }
51
+ }
52
+ }
53
+ }
54
+
55
+ // Inner meter
56
+ .progress-meter {
57
+ @include progress-meter;
58
+ }
59
+
60
+ // Inner meter text
61
+ .progress-meter-text {
62
+ @include progress-meter-text;
63
+ }
64
+ }
@@ -0,0 +1,70 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group responsive-embed
7
+ ////
8
+
9
+ /// Margin below a responsive embed container.
10
+ /// @type Number
11
+ $responsive-embed-margin-bottom: rem-calc(16) !default;
12
+
13
+ /// Aspect ratios used to determine padding-bottom of responsive embed containers.
14
+ /// @type Map
15
+ $responsive-embed-ratios: (
16
+ default: 4 by 3,
17
+ widescreen: 16 by 9,
18
+ ) !default;
19
+
20
+ // WARNING: Will be removed in version 6.4
21
+ $responsive-embed-ratio: default;
22
+
23
+ /// Creates a responsive embed container.
24
+ /// @param {String|List} $ratio [default] - Ratio of the container. Can be a key from the `$responsive-embed-ratios` map or a list formatted as `x by y`.
25
+ @mixin responsive-embed($ratio: default) {
26
+ @if type-of($ratio) == 'string' {
27
+ $ratio: map-get($responsive-embed-ratios, $ratio);
28
+ }
29
+ position: relative;
30
+ height: 0;
31
+ margin-bottom: $responsive-embed-margin-bottom;
32
+ padding-bottom: ratio-to-percentage($ratio);
33
+ overflow: hidden;
34
+
35
+ iframe,
36
+ object,
37
+ embed,
38
+ video {
39
+ position: absolute;
40
+ top: 0;
41
+ #{$global-left}: 0;
42
+ width: 100%;
43
+ height: 100%;
44
+ }
45
+ }
46
+
47
+ @mixin foundation-responsive-embed {
48
+ .responsive-embed,
49
+ .flex-video {
50
+ @include responsive-embed($ratio: default);
51
+
52
+ $ratios: map-remove($responsive-embed-ratios,default);
53
+
54
+ @each $name, $ratio in $ratios {
55
+ &.#{$name} {
56
+ padding-bottom: ratio-to-percentage($ratio);
57
+ }
58
+ }
59
+ }
60
+ }
61
+
62
+ @mixin foundation-flex-video {
63
+ @warn 'This mixin is being replaced by foundation-responsive-embed(). foundation-flex-video() will be removed in Foundation 6.4.';
64
+ @include foundation-responsive-embed;
65
+ }
66
+
67
+ @mixin flex-video($ratio: $responsive-embed-ratio) {
68
+ @warn 'This mixin is being replaced by responsive-embed(). flex-video() will be removed in Foundation 6.4.';
69
+ @include responsive-embed($ratio);
70
+ }
@@ -0,0 +1,180 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group reveal
7
+ ////
8
+
9
+ /// Default background color of a modal.
10
+ /// @type Color
11
+ $reveal-background: $white !default;
12
+
13
+ /// Default width of a modal, with no class applied.
14
+ /// @type Number
15
+ $reveal-width: 600px !default;
16
+
17
+ /// Default maximum width of a modal.
18
+ /// @type Number
19
+ $reveal-max-width: $global-width !default;
20
+
21
+ /// Default padding inside a modal.
22
+ /// @type Number
23
+ $reveal-padding: $global-padding !default;
24
+
25
+ /// Default border around a modal.
26
+ /// @type Number
27
+ $reveal-border: 1px solid $medium-gray !default;
28
+
29
+ /// Default radius for modal.
30
+ /// @type Number
31
+ $reveal-radius: $global-radius !default;
32
+
33
+ /// z-index for modals. The overlay uses this value, while the modal itself uses this value plus one.
34
+ /// @type Number
35
+ $reveal-zindex: 1005 !default;
36
+
37
+ /// Background color of modal overlays.
38
+ /// @type Color
39
+ $reveal-overlay-background: rgba($black, 0.45) !default;
40
+
41
+
42
+ // Placeholder selector for medium-and-up modals
43
+ // Prevents duplicate CSS when defining multiple Reveal sizes
44
+ @include breakpoint(medium) {
45
+ %reveal-centered {
46
+ right: auto;
47
+ left: auto;
48
+ margin: 0 auto;
49
+ }
50
+ }
51
+
52
+
53
+ /// Adds styles for a modal overlay.
54
+ /// @param {Color} $background [$reveal-overlay-background] - Background color of the overlay.
55
+ @mixin reveal-overlay($background: $reveal-overlay-background) {
56
+ position: fixed;
57
+ top: 0;
58
+ right: 0;
59
+ bottom: 0;
60
+ left: 0;
61
+ z-index: $reveal-zindex;
62
+
63
+ display: none;
64
+ background-color: $background;
65
+ overflow-y: scroll;
66
+ }
67
+
68
+ /// Adds base styles for a modal.
69
+ @mixin reveal-modal-base {
70
+ @include disable-mouse-outline;
71
+ z-index: $reveal-zindex + 1;
72
+ // Workaround android browser z-index bug
73
+ backface-visibility: hidden;
74
+
75
+ display: none;
76
+ padding: $reveal-padding;
77
+
78
+ border: $reveal-border;
79
+ border-radius: $reveal-radius;
80
+ background-color: $reveal-background;
81
+
82
+ @include breakpoint(medium) {
83
+ min-height: 0;
84
+ }
85
+
86
+ // Make sure rows don't have a min-width on them
87
+ .column {
88
+ min-width: 0;
89
+ }
90
+
91
+ // Strip margins from the last item in the modal
92
+ > :last-child {
93
+ margin-bottom: 0;
94
+ }
95
+ }
96
+
97
+ /// Adjusts the width of a modal.
98
+ /// @param {Number} $width - Width of the modal. Generally a percentage.
99
+ /// @param {Number} $max-width [$reveal-max-width] - Maximum width of the modal.
100
+ @mixin reveal-modal-width(
101
+ $width: $reveal-width,
102
+ $max-width: $reveal-max-width
103
+ ) {
104
+ @include breakpoint(medium) {
105
+ @extend %reveal-centered;
106
+ width: $width;
107
+ max-width: $max-width;
108
+ }
109
+ }
110
+
111
+ /// Creates a full-screen modal, which stretches the full width and height of the window.
112
+ @mixin reveal-modal-fullscreen {
113
+ top: 0;
114
+ left: 0;
115
+
116
+ width: 100%;
117
+ max-width: none;
118
+ height: 100%;
119
+ height: 100vh; // sass-lint:disable-line no-duplicate-properties
120
+ min-height: 100vh;
121
+ margin-left: 0;
122
+
123
+ border: 0;
124
+ border-radius: 0;
125
+ }
126
+
127
+ @mixin foundation-reveal {
128
+ // [TODO] Is this necessary?
129
+ body.is-reveal-open { // sass-lint:disable-line no-qualifying-elements
130
+ overflow: hidden;
131
+ }
132
+
133
+ // html gets this class only in iOS
134
+ html.is-reveal-open,
135
+ html.is-reveal-open body {
136
+ min-height: 100%;
137
+ overflow: hidden;
138
+ position: fixed;
139
+ user-select: none;
140
+ }
141
+
142
+ // Overlay
143
+ .reveal-overlay {
144
+ @include reveal-overlay;
145
+ }
146
+
147
+ // Modal container
148
+ .reveal {
149
+ @include reveal-modal-base;
150
+ @include reveal-modal-width($reveal-width);
151
+ position: relative;
152
+ top: 100px;
153
+ margin-right: auto;
154
+ margin-left: auto;
155
+ overflow-y: auto;
156
+
157
+ // Remove padding
158
+ &.collapse {
159
+ padding: 0;
160
+ }
161
+
162
+ // Sizing classes
163
+ &.tiny { @include reveal-modal-width(30%); }
164
+ &.small { @include reveal-modal-width(50%); }
165
+ &.large { @include reveal-modal-width(90%); }
166
+
167
+ // Full-screen mode
168
+ &.full {
169
+ @include reveal-modal-fullscreen;
170
+ }
171
+
172
+ @include breakpoint($-zf-zero-breakpoint only) {
173
+ @include reveal-modal-fullscreen;
174
+ }
175
+
176
+ &.without-overlay {
177
+ position: fixed;
178
+ }
179
+ }
180
+ }
@@ -0,0 +1,137 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ // [TODO] Check how plugin confirms disabled or vertical status
6
+ // [TODO] Check if transition: all; is necessary
7
+
8
+ ////
9
+ /// @group slider
10
+ ////
11
+
12
+ /// Default slider width of a vertical slider. (Doesn't apply to the native slider.)
13
+ /// @type Number
14
+ $slider-width-vertical: 0.5rem !default;
15
+
16
+ /// Transition properties to apply to the slider handle and fill. (Doesn't apply to the native slider.)
17
+ /// @type Transition
18
+ $slider-transition: all 0.2s ease-in-out !default;
19
+
20
+ /// Adds the general styles for sliders.
21
+ @mixin slider-container {
22
+ position: relative;
23
+ height: $slider-height;
24
+ margin-top: 1.25rem;
25
+ margin-bottom: 2.25rem;
26
+
27
+ background-color: $slider-background;
28
+ cursor: pointer;
29
+ user-select: none;
30
+ touch-action: none;
31
+ }
32
+
33
+ /// Adds the general styles for active fill for sliders.
34
+ @mixin slider-fill {
35
+ position: absolute;
36
+ top: 0;
37
+ left: 0;
38
+
39
+ display: inline-block;
40
+ max-width: 100%;
41
+ height: $slider-height;
42
+
43
+ background-color: $slider-fill-background;
44
+ transition: $slider-transition;
45
+
46
+ &.is-dragging {
47
+ transition: all 0s linear;
48
+ }
49
+ }
50
+
51
+ /// Adds the general styles for the slider handles.
52
+ @mixin slider-handle {
53
+ @include disable-mouse-outline;
54
+ @include vertical-center;
55
+ left: 0;
56
+ z-index: 1;
57
+
58
+ display: inline-block;
59
+ width: $slider-handle-width;
60
+ height: $slider-handle-height;
61
+
62
+ border-radius: $slider-radius;
63
+ background-color: $slider-handle-background;
64
+ transition: $slider-transition;
65
+ touch-action: manipulation;
66
+
67
+ &:hover {
68
+ background-color: scale-color($slider-handle-background, $lightness: -15%);
69
+ }
70
+
71
+ &.is-dragging {
72
+ transition: all 0s linear;
73
+ }
74
+ }
75
+
76
+ @mixin slider-disabled {
77
+ opacity: $slider-opacity-disabled;
78
+ cursor: not-allowed;
79
+ }
80
+
81
+ @mixin slider-vertical {
82
+ display: inline-block;
83
+ width: $slider-width-vertical;
84
+ height: 12.5rem;
85
+ margin: 0 1.25rem;
86
+ transform: scale(1, -1);
87
+
88
+ .slider-fill {
89
+ top: 0;
90
+ width: $slider-width-vertical;
91
+ max-height: 100%;
92
+ }
93
+
94
+ .slider-handle {
95
+ position: absolute;
96
+ top: 0;
97
+ left: 50%;
98
+ width: $slider-handle-height;
99
+ height: $slider-handle-width;
100
+ transform: translateX(-50%);
101
+ }
102
+ }
103
+
104
+ @mixin foundation-slider {
105
+ // Container
106
+ .slider {
107
+ @include slider-container;
108
+ }
109
+
110
+ // Fill area
111
+ .slider-fill {
112
+ @include slider-fill;
113
+ }
114
+
115
+ // Draggable handle
116
+ .slider-handle {
117
+ @include slider-handle;
118
+ }
119
+
120
+ // Disabled state
121
+ .slider.disabled,
122
+ .slider[disabled] {
123
+ @include slider-disabled;
124
+ }
125
+
126
+ // Vertical slider
127
+ .slider.vertical {
128
+ @include slider-vertical;
129
+ }
130
+
131
+ // RTL support
132
+ @if $global-text-direction == rtl {
133
+ .slider:not(.vertical) {
134
+ transform: scale(-1, 1);
135
+ }
136
+ }
137
+ }
@@ -0,0 +1,39 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @mixin foundation-sticky {
6
+ .sticky-container {
7
+ position: relative;
8
+ }
9
+
10
+ .sticky {
11
+ position: relative;
12
+ z-index: 0;
13
+ transform: translate3d(0, 0, 0);
14
+ }
15
+
16
+ .sticky.is-stuck {
17
+ position: fixed;
18
+ z-index: 5;
19
+ width: 100%;
20
+
21
+ &.is-at-top {
22
+ top: 0;
23
+ }
24
+
25
+ &.is-at-bottom {
26
+ bottom: 0;
27
+ }
28
+ }
29
+
30
+ .sticky.is-anchored {
31
+ position: relative;
32
+ right: auto;
33
+ left: auto;
34
+
35
+ &.is-at-bottom {
36
+ bottom: 0;
37
+ }
38
+ }
39
+ }