foundation-scss 6.3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/_vendor/normalize-scss/sass/_normalize.scss +3 -0
  3. data/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  4. data/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  5. data/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  6. data/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  7. data/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  8. data/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  9. data/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  10. data/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  11. data/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  12. data/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  13. data/foundation-scss.gemspec +9 -0
  14. data/lib/foundation/scss/in/sass_path.rb +6 -0
  15. data/scss/_global.scss +219 -0
  16. data/scss/components/_accordion-menu.scss +36 -0
  17. data/scss/components/_accordion.scss +150 -0
  18. data/scss/components/_badge.scss +63 -0
  19. data/scss/components/_breadcrumbs.scss +100 -0
  20. data/scss/components/_button-group.scss +253 -0
  21. data/scss/components/_button.scss +332 -0
  22. data/scss/components/_callout.scss +106 -0
  23. data/scss/components/_card.scss +121 -0
  24. data/scss/components/_close-button.scss +102 -0
  25. data/scss/components/_drilldown.scss +93 -0
  26. data/scss/components/_dropdown-menu.scss +226 -0
  27. data/scss/components/_dropdown.scss +72 -0
  28. data/scss/components/_flex-video.scss +1 -0
  29. data/scss/components/_flex.scss +34 -0
  30. data/scss/components/_float.scss +27 -0
  31. data/scss/components/_label.scss +64 -0
  32. data/scss/components/_media-object.scss +114 -0
  33. data/scss/components/_menu-icon.scss +9 -0
  34. data/scss/components/_menu.scss +376 -0
  35. data/scss/components/_off-canvas.scss +329 -0
  36. data/scss/components/_orbit.scss +196 -0
  37. data/scss/components/_pagination.scss +193 -0
  38. data/scss/components/_progress-bar.scss +64 -0
  39. data/scss/components/_responsive-embed.scss +70 -0
  40. data/scss/components/_reveal.scss +178 -0
  41. data/scss/components/_slider.scss +138 -0
  42. data/scss/components/_sticky.scss +38 -0
  43. data/scss/components/_switch.scss +247 -0
  44. data/scss/components/_table.scss +329 -0
  45. data/scss/components/_tabs.scss +196 -0
  46. data/scss/components/_thumbnail.scss +67 -0
  47. data/scss/components/_title-bar.scss +84 -0
  48. data/scss/components/_tooltip.scss +107 -0
  49. data/scss/components/_top-bar.scss +173 -0
  50. data/scss/components/_visibility.scss +132 -0
  51. data/scss/forms/_checkbox.scss +41 -0
  52. data/scss/forms/_error.scss +88 -0
  53. data/scss/forms/_fieldset.scss +54 -0
  54. data/scss/forms/_forms.scss +34 -0
  55. data/scss/forms/_help-text.scss +30 -0
  56. data/scss/forms/_input-group.scss +135 -0
  57. data/scss/forms/_label.scss +50 -0
  58. data/scss/forms/_meter.scss +110 -0
  59. data/scss/forms/_progress.scss +94 -0
  60. data/scss/forms/_range.scss +149 -0
  61. data/scss/forms/_select.scss +85 -0
  62. data/scss/forms/_text.scss +170 -0
  63. data/scss/foundation.scss +118 -0
  64. data/scss/grid/_classes.scss +176 -0
  65. data/scss/grid/_column.scss +112 -0
  66. data/scss/grid/_flex-grid.scss +312 -0
  67. data/scss/grid/_grid.scss +48 -0
  68. data/scss/grid/_gutter.scss +82 -0
  69. data/scss/grid/_layout.scss +76 -0
  70. data/scss/grid/_position.scss +76 -0
  71. data/scss/grid/_row.scss +99 -0
  72. data/scss/grid/_size.scss +24 -0
  73. data/scss/settings/_settings.scss +620 -0
  74. data/scss/typography/_alignment.scss +22 -0
  75. data/scss/typography/_base.scss +509 -0
  76. data/scss/typography/_helpers.scss +78 -0
  77. data/scss/typography/_print.scss +86 -0
  78. data/scss/typography/_typography.scss +26 -0
  79. data/scss/util/_breakpoint.scss +281 -0
  80. data/scss/util/_color.scss +126 -0
  81. data/scss/util/_direction.scss +31 -0
  82. data/scss/util/_flex.scss +85 -0
  83. data/scss/util/_math.scss +72 -0
  84. data/scss/util/_mixins.scss +276 -0
  85. data/scss/util/_selector.scss +41 -0
  86. data/scss/util/_typography.scss +26 -0
  87. data/scss/util/_unit.scss +152 -0
  88. data/scss/util/_util.scss +14 -0
  89. data/scss/util/_value.scss +160 -0
  90. metadata +144 -0
@@ -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: $global-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,178 @@
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
+ /// Adds styles for a modal overlay.
42
+ /// @param {Color} $background [$reveal-overlay-background] - Background color of the overlay.
43
+ @mixin reveal-overlay($background: $reveal-overlay-background) {
44
+ position: fixed;
45
+ top: 0;
46
+ right: 0;
47
+ bottom: 0;
48
+ left: 0;
49
+ z-index: $reveal-zindex;
50
+
51
+ display: none;
52
+ background-color: $background;
53
+ overflow-y: scroll;
54
+ }
55
+
56
+ /// Adds base styles for a modal.
57
+ @mixin reveal-modal-base {
58
+ @include disable-mouse-outline;
59
+ z-index: $reveal-zindex + 1;
60
+ // Workaround android browser z-index bug
61
+ backface-visibility: hidden;
62
+
63
+ display: none;
64
+ padding: $reveal-padding;
65
+
66
+ border: $reveal-border;
67
+ border-radius: $reveal-radius;
68
+ background-color: $reveal-background;
69
+
70
+ @include breakpoint(medium) {
71
+ min-height: 0;
72
+ }
73
+
74
+ // Make sure rows don't have a min-width on them
75
+ .column {
76
+ min-width: 0;
77
+ }
78
+
79
+ // Strip margins from the last item in the modal
80
+ > :last-child {
81
+ margin-bottom: 0;
82
+ }
83
+ }
84
+
85
+ /// Adjusts the width of a modal.
86
+ /// @param {Number} $width - Width of the modal. Generally a percentage.
87
+ /// @param {Number} $max-width [$reveal-max-width] - Maximum width of the modal.
88
+ @mixin reveal-modal-width(
89
+ $width: $reveal-width,
90
+ $max-width: $reveal-max-width
91
+ ) {
92
+ @include breakpoint(medium) {
93
+ @extend %reveal-centered;
94
+ width: $width;
95
+ max-width: $reveal-max-width;
96
+ }
97
+ }
98
+
99
+ /// Creates a full-screen modal, which stretches the full width and height of the window.
100
+ @mixin reveal-modal-fullscreen {
101
+ top: 0;
102
+ left: 0;
103
+
104
+ width: 100%;
105
+ max-width: none;
106
+ height: 100%;
107
+ height: 100vh; // sass-lint:disable-line no-duplicate-properties
108
+ min-height: 100vh;
109
+ margin-left: 0;
110
+
111
+ border: 0;
112
+ border-radius: 0;
113
+ }
114
+
115
+ @mixin foundation-reveal {
116
+ // [TODO] Is this necessary?
117
+ body.is-reveal-open { // sass-lint:disable-line no-qualifying-elements
118
+ overflow: hidden;
119
+ }
120
+
121
+ // html gets this class only in iOS
122
+ html.is-reveal-open,
123
+ html.is-reveal-open body {
124
+ min-height: 100%;
125
+ overflow: hidden;
126
+ position: fixed;
127
+ user-select: none;
128
+ }
129
+
130
+ // Overlay
131
+ .reveal-overlay {
132
+ @include reveal-overlay;
133
+ }
134
+
135
+ // Modal container
136
+ .reveal {
137
+ @include reveal-modal-base;
138
+ @include reveal-modal-width($reveal-width);
139
+ position: relative;
140
+ top: 100px;
141
+ margin-right: auto;
142
+ margin-left: auto;
143
+ overflow-y: auto;
144
+
145
+ // Placeholder selector for medium-and-up modals
146
+ // Prevents duplicate CSS when defining multiple Reveal sizes
147
+ @include breakpoint(medium) {
148
+ %reveal-centered {
149
+ right: auto;
150
+ left: auto;
151
+ margin: 0 auto;
152
+ }
153
+ }
154
+
155
+ // Remove padding
156
+ &.collapse {
157
+ padding: 0;
158
+ }
159
+
160
+ // Sizing classes
161
+ &.tiny { @include reveal-modal-width(30%); }
162
+ &.small { @include reveal-modal-width(50%); }
163
+ &.large { @include reveal-modal-width(90%); }
164
+
165
+ // Full-screen mode
166
+ &.full {
167
+ @include reveal-modal-fullscreen;
168
+ }
169
+
170
+ @include breakpoint($-zf-zero-breakpoint only) {
171
+ @include reveal-modal-fullscreen;
172
+ }
173
+
174
+ &.without-overlay {
175
+ position: fixed;
176
+ }
177
+ }
178
+ }