foundation-scss 6.3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/_vendor/normalize-scss/sass/_normalize.scss +3 -0
- data/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
- data/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
- data/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
- data/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
- data/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
- data/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
- data/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
- data/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
- data/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
- data/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
- data/foundation-scss.gemspec +9 -0
- data/lib/foundation/scss/in/sass_path.rb +6 -0
- data/scss/_global.scss +219 -0
- data/scss/components/_accordion-menu.scss +36 -0
- data/scss/components/_accordion.scss +150 -0
- data/scss/components/_badge.scss +63 -0
- data/scss/components/_breadcrumbs.scss +100 -0
- data/scss/components/_button-group.scss +253 -0
- data/scss/components/_button.scss +332 -0
- data/scss/components/_callout.scss +106 -0
- data/scss/components/_card.scss +121 -0
- data/scss/components/_close-button.scss +102 -0
- data/scss/components/_drilldown.scss +93 -0
- data/scss/components/_dropdown-menu.scss +226 -0
- data/scss/components/_dropdown.scss +72 -0
- data/scss/components/_flex-video.scss +1 -0
- data/scss/components/_flex.scss +34 -0
- data/scss/components/_float.scss +27 -0
- data/scss/components/_label.scss +64 -0
- data/scss/components/_media-object.scss +114 -0
- data/scss/components/_menu-icon.scss +9 -0
- data/scss/components/_menu.scss +376 -0
- data/scss/components/_off-canvas.scss +329 -0
- data/scss/components/_orbit.scss +196 -0
- data/scss/components/_pagination.scss +193 -0
- data/scss/components/_progress-bar.scss +64 -0
- data/scss/components/_responsive-embed.scss +70 -0
- data/scss/components/_reveal.scss +178 -0
- data/scss/components/_slider.scss +138 -0
- data/scss/components/_sticky.scss +38 -0
- data/scss/components/_switch.scss +247 -0
- data/scss/components/_table.scss +329 -0
- data/scss/components/_tabs.scss +196 -0
- data/scss/components/_thumbnail.scss +67 -0
- data/scss/components/_title-bar.scss +84 -0
- data/scss/components/_tooltip.scss +107 -0
- data/scss/components/_top-bar.scss +173 -0
- data/scss/components/_visibility.scss +132 -0
- data/scss/forms/_checkbox.scss +41 -0
- data/scss/forms/_error.scss +88 -0
- data/scss/forms/_fieldset.scss +54 -0
- data/scss/forms/_forms.scss +34 -0
- data/scss/forms/_help-text.scss +30 -0
- data/scss/forms/_input-group.scss +135 -0
- data/scss/forms/_label.scss +50 -0
- data/scss/forms/_meter.scss +110 -0
- data/scss/forms/_progress.scss +94 -0
- data/scss/forms/_range.scss +149 -0
- data/scss/forms/_select.scss +85 -0
- data/scss/forms/_text.scss +170 -0
- data/scss/foundation.scss +118 -0
- data/scss/grid/_classes.scss +176 -0
- data/scss/grid/_column.scss +112 -0
- data/scss/grid/_flex-grid.scss +312 -0
- data/scss/grid/_grid.scss +48 -0
- data/scss/grid/_gutter.scss +82 -0
- data/scss/grid/_layout.scss +76 -0
- data/scss/grid/_position.scss +76 -0
- data/scss/grid/_row.scss +99 -0
- data/scss/grid/_size.scss +24 -0
- data/scss/settings/_settings.scss +620 -0
- data/scss/typography/_alignment.scss +22 -0
- data/scss/typography/_base.scss +509 -0
- data/scss/typography/_helpers.scss +78 -0
- data/scss/typography/_print.scss +86 -0
- data/scss/typography/_typography.scss +26 -0
- data/scss/util/_breakpoint.scss +281 -0
- data/scss/util/_color.scss +126 -0
- data/scss/util/_direction.scss +31 -0
- data/scss/util/_flex.scss +85 -0
- data/scss/util/_math.scss +72 -0
- data/scss/util/_mixins.scss +276 -0
- data/scss/util/_selector.scss +41 -0
- data/scss/util/_typography.scss +26 -0
- data/scss/util/_unit.scss +152 -0
- data/scss/util/_util.scss +14 -0
- data/scss/util/_value.scss +160 -0
- metadata +144 -0
@@ -0,0 +1,48 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group grid
|
7
|
+
////
|
8
|
+
|
9
|
+
/// The maximum width of a row.
|
10
|
+
/// @type Number
|
11
|
+
$grid-row-width: $global-width !default;
|
12
|
+
|
13
|
+
/// The default column count of a grid. Changing this value affects the logic of the grid mixins, and the number of CSS classes output.
|
14
|
+
/// @type Number
|
15
|
+
$grid-column-count: 12 !default;
|
16
|
+
|
17
|
+
/// The amount of space between columns at different screen sizes. To use just one size, set the variable to a number instead of a map.
|
18
|
+
/// @type Map | Length
|
19
|
+
/// @since 6.1.0
|
20
|
+
$grid-column-gutter: (
|
21
|
+
small: 20px,
|
22
|
+
medium: 30px,
|
23
|
+
) !default;
|
24
|
+
|
25
|
+
/// If `true`, the last column in a row will align to the opposite edge of the row.
|
26
|
+
/// @type Boolean
|
27
|
+
$grid-column-align-edge: true !default;
|
28
|
+
|
29
|
+
/// Selector used for an alias of column (with @extend). If `false`, no alias is created.
|
30
|
+
/// @type String
|
31
|
+
$grid-column-alias: 'columns' !default;
|
32
|
+
|
33
|
+
/// The highest number of `.x-up` classes available when using the block grid CSS.
|
34
|
+
/// @type Number
|
35
|
+
$block-grid-max: 8 !default;
|
36
|
+
|
37
|
+
// Internal value to store the end column float direction
|
38
|
+
$-zf-end-float: if($grid-column-align-edge, $global-right, $global-left);
|
39
|
+
|
40
|
+
@import 'row';
|
41
|
+
@import 'column';
|
42
|
+
@import 'size';
|
43
|
+
@import 'position';
|
44
|
+
@import 'gutter';
|
45
|
+
@import 'classes';
|
46
|
+
@import 'layout';
|
47
|
+
|
48
|
+
@import 'flex-grid';
|
@@ -0,0 +1,82 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group grid
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Set the gutters on a column
|
10
|
+
/// @param {Number|Keyword} $gutter [auto]
|
11
|
+
/// Spacing between columns, accepts multiple values:
|
12
|
+
/// - A single value will make the gutter that exact size.
|
13
|
+
/// - A breakpoint name will make the gutter the corresponding size in the $gutters map.
|
14
|
+
/// - "auto" will make the gutter responsive, using the $gutters map values.
|
15
|
+
/// @param {Number|Map} $gutters [$grid-column-gutter] - Gutter map or single value to use. Responsive gutter settings by default.
|
16
|
+
@mixin grid-column-gutter(
|
17
|
+
$gutter: auto,
|
18
|
+
$gutters: $grid-column-gutter
|
19
|
+
) {
|
20
|
+
@include -zf-breakpoint-value($gutter, $gutters) {
|
21
|
+
$padding: rem-calc($-zf-bp-value) / 2;
|
22
|
+
|
23
|
+
padding-right: $padding;
|
24
|
+
padding-left: $padding;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
/// Collapse the gutters on a column by removing the padding. **Note:** only use this mixin within a breakpoint. To collapse a column's gutters on all screen sizes, use the `$gutter` parameter of the `grid-column()` mixin instead.
|
29
|
+
@mixin grid-column-collapse {
|
30
|
+
@include grid-column-gutter(0);
|
31
|
+
}
|
32
|
+
|
33
|
+
/// Un-collapse the gutters on a column by re-adding the padding.
|
34
|
+
///
|
35
|
+
/// @param {Number} $gutter [$grid-column-gutter] - Spacing between columns.
|
36
|
+
@mixin grid-column-uncollapse($gutter: $grid-column-gutter) {
|
37
|
+
@warn 'This mixin is being replaced by grid-column-gutter(). grid-column-uncollapse() will be removed in Foundation 6.4.';
|
38
|
+
@include grid-column-gutter($gutters: $gutter);
|
39
|
+
}
|
40
|
+
|
41
|
+
/// Shorthand for `grid-column-gutter()`.
|
42
|
+
/// @alias grid-column-gutter
|
43
|
+
@mixin grid-col-gutter(
|
44
|
+
$gutter: auto,
|
45
|
+
$gutters: $grid-column-gutter
|
46
|
+
) {
|
47
|
+
@include grid-column-gutter($gutter, $gutters);
|
48
|
+
}
|
49
|
+
|
50
|
+
/// Shorthand for `grid-column-collapse()`.
|
51
|
+
/// @alias grid-column-collapse
|
52
|
+
@mixin grid-col-collapse {
|
53
|
+
@include grid-column-collapse;
|
54
|
+
}
|
55
|
+
|
56
|
+
/// Shorthand for `grid-column-uncollapse()`.
|
57
|
+
/// @alias grid-column-uncollapse
|
58
|
+
@mixin grid-col-uncollapse($gutter: $grid-column-gutter) {
|
59
|
+
@warn 'This mixin is being replaced by grid-col-gutter(). grid-col-uncollapse() will be removed in Foundation 6.4.';
|
60
|
+
@include grid-column-uncollapse($gutter);
|
61
|
+
}
|
62
|
+
|
63
|
+
/// Sets bottom margin on grid columns to match gutters
|
64
|
+
/// @param {Number|Keyword} $margin [auto]
|
65
|
+
/// The bottom margin on grid columns, accepts multiple values:
|
66
|
+
/// - A single value will make the margin that exact size.
|
67
|
+
/// - A breakpoint name will make the margin the corresponding size in the $margins map.
|
68
|
+
/// - "auto" will make the margin responsive, using the $margins map values.
|
69
|
+
/// @param {Number|Map} $margins [$grid-column-gutter] - Map or single value to use. Responsive gutter settings by default.
|
70
|
+
@mixin grid-column-margin (
|
71
|
+
$margin: auto,
|
72
|
+
$margins: $grid-column-gutter
|
73
|
+
) {
|
74
|
+
@include -zf-breakpoint-value($margin, $margins) {
|
75
|
+
$margin-bottom: rem-calc($-zf-bp-value);
|
76
|
+
margin-bottom: $margin-bottom;
|
77
|
+
|
78
|
+
> :last-child {
|
79
|
+
margin-bottom: 0;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group grid
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Sizes child elements so that `$n` number of items appear on each row.
|
10
|
+
///
|
11
|
+
/// @param {Number} $n - Number of elements to display per row.
|
12
|
+
/// @param {String} $selector ['.column'] - Selector(s) to use for child elements.
|
13
|
+
/// @param {Number|List} $gutter
|
14
|
+
/// The gutter to apply to child elements. Accepts multiple values:
|
15
|
+
/// - $grid-column-gutter will use the values in the $grid-column-gutter map, including breakpoint sizes.
|
16
|
+
/// - A fixed numeric value will apply this gutter to all breakpoints.
|
17
|
+
@mixin grid-layout(
|
18
|
+
$n,
|
19
|
+
$selector: '.column',
|
20
|
+
$gutter: null
|
21
|
+
) {
|
22
|
+
& > #{$selector} {
|
23
|
+
float: $global-left;
|
24
|
+
width: percentage(1/$n);
|
25
|
+
|
26
|
+
// If a $gutter value is passed
|
27
|
+
@if($gutter) {
|
28
|
+
// Gutters
|
29
|
+
@if type-of($gutter) == 'map' {
|
30
|
+
@each $breakpoint, $value in $gutter {
|
31
|
+
$padding: rem-calc($value) / 2;
|
32
|
+
|
33
|
+
@include breakpoint($breakpoint) {
|
34
|
+
padding-right: $padding;
|
35
|
+
padding-left: $padding;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
@else if type-of($gutter) == 'number' and strip-unit($gutter) > 0 {
|
40
|
+
$padding: rem-calc($gutter) / 2;
|
41
|
+
padding-right: $padding;
|
42
|
+
padding-left: $padding;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
&:nth-of-type(1n) {
|
47
|
+
clear: none;
|
48
|
+
}
|
49
|
+
|
50
|
+
&:nth-of-type(#{$n}n+1) {
|
51
|
+
clear: both;
|
52
|
+
}
|
53
|
+
|
54
|
+
&:last-child {
|
55
|
+
float: $global-left;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
/// Adds extra CSS to block grid children so the last items in the row center automatically. Apply this to the columns, not the row.
|
61
|
+
///
|
62
|
+
/// @param {Number} $n - Number of items that appear in each row.
|
63
|
+
@mixin grid-layout-center-last($n) {
|
64
|
+
@for $i from 1 to $n {
|
65
|
+
@if $i == 1 {
|
66
|
+
&:nth-child(#{$n}n+1):last-child {
|
67
|
+
margin-left: (100 - 100/$n * $i) / 2 * 1%;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
@else {
|
71
|
+
&:nth-child(#{$n}n+1):nth-last-child(#{$i}) {
|
72
|
+
margin-left: (100 - 100/$n * $i) / 2 * 1%;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group grid
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Reposition a column.
|
10
|
+
///
|
11
|
+
/// @param {Number|Keyword} $position - Direction and amount to move. The column will move equal to the width of the column count specified. A positive number will push the column to the right, while a negative number will pull it to the left. Set to center to center the column.
|
12
|
+
@mixin grid-column-position($position) {
|
13
|
+
@if type-of($position) == 'number' {
|
14
|
+
$offset: percentage($position / $grid-column-count);
|
15
|
+
|
16
|
+
position: relative;
|
17
|
+
#{$global-left}: $offset;
|
18
|
+
}
|
19
|
+
@else if $position == center {
|
20
|
+
&, &:last-child:not(:first-child) {
|
21
|
+
float: none;
|
22
|
+
clear: both;
|
23
|
+
}
|
24
|
+
margin-right: auto;
|
25
|
+
margin-left: auto;
|
26
|
+
}
|
27
|
+
@else {
|
28
|
+
@warn 'Wrong syntax for grid-column-position(). Enter a positive or negative number, or center.';
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
/// Reset a position definition.
|
33
|
+
@mixin grid-column-unposition {
|
34
|
+
position: static;
|
35
|
+
float: left;
|
36
|
+
margin-right: 0;
|
37
|
+
margin-left: 0;
|
38
|
+
}
|
39
|
+
|
40
|
+
/// Offsets a column to the right by `$n` columns.
|
41
|
+
/// @param {Number|List} $n - Width to offset by. You can pass in any value accepted by the `grid-column()` mixin, such as `6`, `50%`, or `1 of 2`.
|
42
|
+
@mixin grid-column-offset($n) {
|
43
|
+
margin-#{$global-left}: grid-column($n);
|
44
|
+
}
|
45
|
+
|
46
|
+
/// Disable the default behavior of the last column in a row aligning to the opposite edge.
|
47
|
+
@mixin grid-column-end {
|
48
|
+
// This extra specificity is required for the property to be applied
|
49
|
+
&:last-child:last-child {
|
50
|
+
float: $global-left;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
/// Shorthand for `grid-column-position()`.
|
55
|
+
/// @alias grid-column-position
|
56
|
+
@mixin grid-col-pos($position) {
|
57
|
+
@include grid-column-position($position);
|
58
|
+
}
|
59
|
+
|
60
|
+
/// Shorthand for `grid-column-unposition()`.
|
61
|
+
/// @alias grid-column-unposition
|
62
|
+
@mixin grid-col-unpos {
|
63
|
+
@include grid-column-unposition;
|
64
|
+
}
|
65
|
+
|
66
|
+
/// Shorthand for `grid-column-offset()`.
|
67
|
+
/// @alias grid-column-offset
|
68
|
+
@mixin grid-col-off($n) {
|
69
|
+
@include grid-column-offset($n);
|
70
|
+
}
|
71
|
+
|
72
|
+
/// Shorthand for `grid-column-end()`.
|
73
|
+
/// @alias grid-column-end
|
74
|
+
@mixin grid-col-end {
|
75
|
+
@include grid-column-end;
|
76
|
+
}
|
data/scss/grid/_row.scss
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group grid
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Change the behavior of columns defined inside this mixin to use a different column count.
|
10
|
+
/// @content
|
11
|
+
///
|
12
|
+
/// @param {Number} $columns - Number of columns to use.
|
13
|
+
/// @param {Boolean} $root [false]
|
14
|
+
/// If `false`, selectors inside this mixin will nest inside the parent selector.
|
15
|
+
/// If `true`, selectors will not nest.
|
16
|
+
@mixin grid-context(
|
17
|
+
$columns,
|
18
|
+
$root: false
|
19
|
+
) {
|
20
|
+
// Store the current column count so it can be re-set later
|
21
|
+
$old-grid-column-count: $grid-column-count;
|
22
|
+
$grid-column-count: $columns !global;
|
23
|
+
|
24
|
+
@if $root {
|
25
|
+
@at-root { @content; }
|
26
|
+
}
|
27
|
+
@else {
|
28
|
+
@content;
|
29
|
+
}
|
30
|
+
|
31
|
+
// Restore the old column count
|
32
|
+
$grid-column-count: $old-grid-column-count !global;
|
33
|
+
}
|
34
|
+
|
35
|
+
/// Creates a grid row.
|
36
|
+
/// @content
|
37
|
+
///
|
38
|
+
/// @param {Number} $columns [null] - Column count for this row. `null` will use the default column count.
|
39
|
+
/// @param {Keywords} $behavior [null]
|
40
|
+
/// Modifications to the default grid styles. `nest` indicates the row will be placed inside another row. `collapse` indicates that the columns inside this row will not have padding. `nest collapse` combines both behaviors.
|
41
|
+
/// @param {Keyword|Number} $size [$grid-row-width] Maximum size of the row. Set to `expand` to make the row taking the full width.
|
42
|
+
/// @param {Boolean} $cf [true] - Whether or not to include a clearfix.
|
43
|
+
/// @param {Number|Map} $gutters [$grid-column-gutter] - Gutter map or single value to use when inverting margins. Responsive gutter settings by default.
|
44
|
+
@mixin grid-row(
|
45
|
+
$columns: null,
|
46
|
+
$behavior: null,
|
47
|
+
$size: $grid-row-width,
|
48
|
+
$cf: true,
|
49
|
+
$gutters: $grid-column-gutter
|
50
|
+
) {
|
51
|
+
$margin: auto;
|
52
|
+
|
53
|
+
@if index($behavior, nest) != null {
|
54
|
+
@include grid-row-nest($gutters);
|
55
|
+
|
56
|
+
@if index($behavior, collapse) != null {
|
57
|
+
margin-right: 0;
|
58
|
+
margin-left: 0;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
@else {
|
62
|
+
@include grid-row-size($size);
|
63
|
+
margin-right: auto;
|
64
|
+
margin-left: auto;
|
65
|
+
}
|
66
|
+
|
67
|
+
@if $cf {
|
68
|
+
@include clearfix;
|
69
|
+
}
|
70
|
+
|
71
|
+
@if $columns != null {
|
72
|
+
@include grid-context($columns) {
|
73
|
+
@content;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
/// Inverts the margins of a row to nest it inside of a column.
|
79
|
+
///
|
80
|
+
/// @param {Number|Map} $gutters [$grid-column-gutter] - Gutter map or single value to use when inverting margins. Responsive gutter settings by default.
|
81
|
+
@mixin grid-row-nest($gutters: $grid-column-gutter) {
|
82
|
+
@include -zf-each-breakpoint {
|
83
|
+
$margin: rem-calc(-zf-get-bp-val($gutters, $-zf-size)) / 2 * -1;
|
84
|
+
|
85
|
+
margin-right: $margin;
|
86
|
+
margin-left: $margin;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
/// Set a grid row size
|
91
|
+
///
|
92
|
+
/// @param {Keyword|Number} $size [$grid-row-width] Maximum size of the row. Set to `expand` to make the row taking the full width.
|
93
|
+
@mixin grid-row-size($size: $grid-row-width) {
|
94
|
+
@if $size == expand {
|
95
|
+
$size: none;
|
96
|
+
}
|
97
|
+
|
98
|
+
max-width: $size;
|
99
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group grid
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Set the width of a grid column.
|
10
|
+
///
|
11
|
+
/// @param {Number|List} $width [$grid-column-count] - Width to make the column. You can pass in any value accepted by the `grid-column()` function, such as `6`, `50%`, or `1 of 2`.
|
12
|
+
@mixin grid-column-size(
|
13
|
+
$columns: $grid-column-count
|
14
|
+
) {
|
15
|
+
width: grid-column($columns);
|
16
|
+
}
|
17
|
+
|
18
|
+
/// Shorthand for `grid-column-size()`.
|
19
|
+
/// @alias grid-column-size
|
20
|
+
@mixin grid-col-size(
|
21
|
+
$columns: $grid-column-count
|
22
|
+
) {
|
23
|
+
@include grid-column-size($columns);
|
24
|
+
}
|
@@ -0,0 +1,620 @@
|
|
1
|
+
// Foundation for Sites Settings
|
2
|
+
// -----------------------------
|
3
|
+
//
|
4
|
+
// Table of Contents:
|
5
|
+
//
|
6
|
+
// 1. Global
|
7
|
+
// 2. Breakpoints
|
8
|
+
// 3. The Grid
|
9
|
+
// 4. Base Typography
|
10
|
+
// 5. Typography Helpers
|
11
|
+
// 6. Abide
|
12
|
+
// 7. Accordion
|
13
|
+
// 8. Accordion Menu
|
14
|
+
// 9. Badge
|
15
|
+
// 10. Breadcrumbs
|
16
|
+
// 11. Button
|
17
|
+
// 12. Button Group
|
18
|
+
// 13. Callout
|
19
|
+
// 14. Card
|
20
|
+
// 15. Close Button
|
21
|
+
// 16. Drilldown
|
22
|
+
// 17. Dropdown
|
23
|
+
// 18. Dropdown Menu
|
24
|
+
// 19. Forms
|
25
|
+
// 20. Label
|
26
|
+
// 21. Media Object
|
27
|
+
// 22. Menu
|
28
|
+
// 23. Meter
|
29
|
+
// 24. Off-canvas
|
30
|
+
// 25. Orbit
|
31
|
+
// 26. Pagination
|
32
|
+
// 27. Progress Bar
|
33
|
+
// 28. Responsive Embed
|
34
|
+
// 29. Reveal
|
35
|
+
// 30. Slider
|
36
|
+
// 31. Switch
|
37
|
+
// 32. Table
|
38
|
+
// 33. Tabs
|
39
|
+
// 34. Thumbnail
|
40
|
+
// 35. Title Bar
|
41
|
+
// 36. Tooltip
|
42
|
+
// 37. Top Bar
|
43
|
+
|
44
|
+
@import 'util/util';
|
45
|
+
|
46
|
+
// 1. Global
|
47
|
+
// ---------
|
48
|
+
|
49
|
+
$global-font-size: 100%;
|
50
|
+
$global-width: rem-calc(1200);
|
51
|
+
$global-lineheight: 1.5;
|
52
|
+
$foundation-palette: (
|
53
|
+
primary: #1779ba,
|
54
|
+
secondary: #767676,
|
55
|
+
success: #3adb76,
|
56
|
+
warning: #ffae00,
|
57
|
+
alert: #cc4b37,
|
58
|
+
);
|
59
|
+
$light-gray: #e6e6e6;
|
60
|
+
$medium-gray: #cacaca;
|
61
|
+
$dark-gray: #8a8a8a;
|
62
|
+
$black: #0a0a0a;
|
63
|
+
$white: #fefefe;
|
64
|
+
$body-background: $white;
|
65
|
+
$body-font-color: $black;
|
66
|
+
$body-font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
|
67
|
+
$body-antialiased: true;
|
68
|
+
$global-margin: 1rem;
|
69
|
+
$global-padding: 1rem;
|
70
|
+
$global-weight-normal: normal;
|
71
|
+
$global-weight-bold: bold;
|
72
|
+
$global-radius: 0;
|
73
|
+
$global-text-direction: ltr;
|
74
|
+
$global-flexbox: false;
|
75
|
+
$print-transparent-backgrounds: true;
|
76
|
+
|
77
|
+
@include add-foundation-colors;
|
78
|
+
|
79
|
+
// 2. Breakpoints
|
80
|
+
// --------------
|
81
|
+
|
82
|
+
$breakpoints: (
|
83
|
+
small: 0,
|
84
|
+
medium: 640px,
|
85
|
+
large: 1024px,
|
86
|
+
xlarge: 1200px,
|
87
|
+
xxlarge: 1440px,
|
88
|
+
);
|
89
|
+
$print-breakpoint: large;
|
90
|
+
$breakpoint-classes: (small medium large);
|
91
|
+
|
92
|
+
// 3. The Grid
|
93
|
+
// -----------
|
94
|
+
|
95
|
+
$grid-row-width: $global-width;
|
96
|
+
$grid-column-count: 12;
|
97
|
+
$grid-column-gutter: (
|
98
|
+
small: 20px,
|
99
|
+
medium: 30px,
|
100
|
+
);
|
101
|
+
$grid-column-align-edge: true;
|
102
|
+
$block-grid-max: 8;
|
103
|
+
|
104
|
+
// 4. Base Typography
|
105
|
+
// ------------------
|
106
|
+
|
107
|
+
$header-font-family: $body-font-family;
|
108
|
+
$header-font-weight: $global-weight-normal;
|
109
|
+
$header-font-style: normal;
|
110
|
+
$font-family-monospace: Consolas, 'Liberation Mono', Courier, monospace;
|
111
|
+
$header-color: inherit;
|
112
|
+
$header-lineheight: 1.4;
|
113
|
+
$header-margin-bottom: 0.5rem;
|
114
|
+
$header-styles: (
|
115
|
+
small: (
|
116
|
+
'h1': ('font-size': 24),
|
117
|
+
'h2': ('font-size': 20),
|
118
|
+
'h3': ('font-size': 19),
|
119
|
+
'h4': ('font-size': 18),
|
120
|
+
'h5': ('font-size': 17),
|
121
|
+
'h6': ('font-size': 16),
|
122
|
+
),
|
123
|
+
medium: (
|
124
|
+
'h1': ('font-size': 48),
|
125
|
+
'h2': ('font-size': 40),
|
126
|
+
'h3': ('font-size': 31),
|
127
|
+
'h4': ('font-size': 25),
|
128
|
+
'h5': ('font-size': 20),
|
129
|
+
'h6': ('font-size': 16),
|
130
|
+
),
|
131
|
+
);
|
132
|
+
$header-text-rendering: optimizeLegibility;
|
133
|
+
$small-font-size: 80%;
|
134
|
+
$header-small-font-color: $medium-gray;
|
135
|
+
$paragraph-lineheight: 1.6;
|
136
|
+
$paragraph-margin-bottom: 1rem;
|
137
|
+
$paragraph-text-rendering: optimizeLegibility;
|
138
|
+
$code-color: $black;
|
139
|
+
$code-font-family: $font-family-monospace;
|
140
|
+
$code-font-weight: $global-weight-normal;
|
141
|
+
$code-background: $light-gray;
|
142
|
+
$code-border: 1px solid $medium-gray;
|
143
|
+
$code-padding: rem-calc(2 5 1);
|
144
|
+
$anchor-color: $primary-color;
|
145
|
+
$anchor-color-hover: scale-color($anchor-color, $lightness: -14%);
|
146
|
+
$anchor-text-decoration: none;
|
147
|
+
$anchor-text-decoration-hover: none;
|
148
|
+
$hr-width: $global-width;
|
149
|
+
$hr-border: 1px solid $medium-gray;
|
150
|
+
$hr-margin: rem-calc(20) auto;
|
151
|
+
$list-lineheight: $paragraph-lineheight;
|
152
|
+
$list-margin-bottom: $paragraph-margin-bottom;
|
153
|
+
$list-style-type: disc;
|
154
|
+
$list-style-position: outside;
|
155
|
+
$list-side-margin: 1.25rem;
|
156
|
+
$list-nested-side-margin: 1.25rem;
|
157
|
+
$defnlist-margin-bottom: 1rem;
|
158
|
+
$defnlist-term-weight: $global-weight-bold;
|
159
|
+
$defnlist-term-margin-bottom: 0.3rem;
|
160
|
+
$blockquote-color: $dark-gray;
|
161
|
+
$blockquote-padding: rem-calc(9 20 0 19);
|
162
|
+
$blockquote-border: 1px solid $medium-gray;
|
163
|
+
$cite-font-size: rem-calc(13);
|
164
|
+
$cite-color: $dark-gray;
|
165
|
+
$cite-pseudo-content: '\2014 \0020';
|
166
|
+
$keystroke-font: $font-family-monospace;
|
167
|
+
$keystroke-color: $black;
|
168
|
+
$keystroke-background: $light-gray;
|
169
|
+
$keystroke-padding: rem-calc(2 4 0);
|
170
|
+
$keystroke-radius: $global-radius;
|
171
|
+
$abbr-underline: 1px dotted $black;
|
172
|
+
|
173
|
+
// 5. Typography Helpers
|
174
|
+
// ---------------------
|
175
|
+
|
176
|
+
$lead-font-size: $global-font-size * 1.25;
|
177
|
+
$lead-lineheight: 1.6;
|
178
|
+
$subheader-lineheight: 1.4;
|
179
|
+
$subheader-color: $dark-gray;
|
180
|
+
$subheader-font-weight: $global-weight-normal;
|
181
|
+
$subheader-margin-top: 0.2rem;
|
182
|
+
$subheader-margin-bottom: 0.5rem;
|
183
|
+
$stat-font-size: 2.5rem;
|
184
|
+
|
185
|
+
// 6. Abide
|
186
|
+
// --------
|
187
|
+
|
188
|
+
$abide-inputs: true;
|
189
|
+
$abide-labels: true;
|
190
|
+
$input-background-invalid: get-color(alert);
|
191
|
+
$form-label-color-invalid: get-color(alert);
|
192
|
+
$input-error-color: get-color(alert);
|
193
|
+
$input-error-font-size: rem-calc(12);
|
194
|
+
$input-error-font-weight: $global-weight-bold;
|
195
|
+
|
196
|
+
// 7. Accordion
|
197
|
+
// ------------
|
198
|
+
|
199
|
+
$accordion-background: $white;
|
200
|
+
$accordion-plusminus: true;
|
201
|
+
$accordion-title-font-size: rem-calc(12);
|
202
|
+
$accordion-item-color: $primary-color;
|
203
|
+
$accordion-item-background-hover: $light-gray;
|
204
|
+
$accordion-item-padding: 1.25rem 1rem;
|
205
|
+
$accordion-content-background: $white;
|
206
|
+
$accordion-content-border: 1px solid $light-gray;
|
207
|
+
$accordion-content-color: $body-font-color;
|
208
|
+
$accordion-content-padding: 1rem;
|
209
|
+
|
210
|
+
// 8. Accordion Menu
|
211
|
+
// -----------------
|
212
|
+
|
213
|
+
$accordionmenu-arrows: true;
|
214
|
+
$accordionmenu-arrow-color: $primary-color;
|
215
|
+
$accordionmenu-arrow-size: 6px;
|
216
|
+
|
217
|
+
// 9. Badge
|
218
|
+
// --------
|
219
|
+
|
220
|
+
$badge-background: $primary-color;
|
221
|
+
$badge-color: $white;
|
222
|
+
$badge-color-alt: $black;
|
223
|
+
$badge-palette: $foundation-palette;
|
224
|
+
$badge-padding: 0.3em;
|
225
|
+
$badge-minwidth: 2.1em;
|
226
|
+
$badge-font-size: 0.6rem;
|
227
|
+
|
228
|
+
// 10. Breadcrumbs
|
229
|
+
// ---------------
|
230
|
+
|
231
|
+
$breadcrumbs-margin: 0 0 $global-margin 0;
|
232
|
+
$breadcrumbs-item-font-size: rem-calc(11);
|
233
|
+
$breadcrumbs-item-color: $primary-color;
|
234
|
+
$breadcrumbs-item-color-current: $black;
|
235
|
+
$breadcrumbs-item-color-disabled: $medium-gray;
|
236
|
+
$breadcrumbs-item-margin: 0.75rem;
|
237
|
+
$breadcrumbs-item-uppercase: true;
|
238
|
+
$breadcrumbs-item-slash: true;
|
239
|
+
|
240
|
+
// 11. Button
|
241
|
+
// ----------
|
242
|
+
|
243
|
+
$button-padding: 0.85em 1em;
|
244
|
+
$button-margin: 0 0 $global-margin 0;
|
245
|
+
$button-fill: solid;
|
246
|
+
$button-background: $primary-color;
|
247
|
+
$button-background-hover: scale-color($button-background, $lightness: -15%);
|
248
|
+
$button-color: $white;
|
249
|
+
$button-color-alt: $black;
|
250
|
+
$button-radius: $global-radius;
|
251
|
+
$button-sizes: (
|
252
|
+
tiny: 0.6rem,
|
253
|
+
small: 0.75rem,
|
254
|
+
default: 0.9rem,
|
255
|
+
large: 1.25rem,
|
256
|
+
);
|
257
|
+
$button-palette: $foundation-palette;
|
258
|
+
$button-opacity-disabled: 0.25;
|
259
|
+
$button-background-hover-lightness: -20%;
|
260
|
+
$button-hollow-hover-lightness: -50%;
|
261
|
+
$button-transition: background-color 0.25s ease-out, color 0.25s ease-out;
|
262
|
+
|
263
|
+
// 12. Button Group
|
264
|
+
// ----------------
|
265
|
+
|
266
|
+
$buttongroup-margin: 1rem;
|
267
|
+
$buttongroup-spacing: 1px;
|
268
|
+
$buttongroup-child-selector: '.button';
|
269
|
+
$buttongroup-expand-max: 6;
|
270
|
+
$buttongroup-radius-on-each: true;
|
271
|
+
|
272
|
+
// 13. Callout
|
273
|
+
// -----------
|
274
|
+
|
275
|
+
$callout-background: $white;
|
276
|
+
$callout-background-fade: 85%;
|
277
|
+
$callout-border: 1px solid rgba($black, 0.25);
|
278
|
+
$callout-margin: 0 0 1rem 0;
|
279
|
+
$callout-padding: 1rem;
|
280
|
+
$callout-font-color: $body-font-color;
|
281
|
+
$callout-font-color-alt: $body-background;
|
282
|
+
$callout-radius: $global-radius;
|
283
|
+
$callout-link-tint: 30%;
|
284
|
+
|
285
|
+
// 14. Card
|
286
|
+
// --------
|
287
|
+
|
288
|
+
$card-background: $white;
|
289
|
+
$card-font-color: $body-font-color;
|
290
|
+
$card-divider-background: $light-gray;
|
291
|
+
$card-border: 1px solid $light-gray;
|
292
|
+
$card-shadow: none;
|
293
|
+
$card-border-radius: $global-radius;
|
294
|
+
$card-padding: $global-padding;
|
295
|
+
$card-margin: $global-margin;
|
296
|
+
|
297
|
+
// 15. Close Button
|
298
|
+
// ----------------
|
299
|
+
|
300
|
+
$closebutton-position: right top;
|
301
|
+
$closebutton-offset-horizontal: (
|
302
|
+
small: 0.66rem,
|
303
|
+
medium: 1rem,
|
304
|
+
);
|
305
|
+
$closebutton-offset-vertical: (
|
306
|
+
small: 0.33em,
|
307
|
+
medium: 0.5rem,
|
308
|
+
);
|
309
|
+
$closebutton-size: (
|
310
|
+
small: 1.5em,
|
311
|
+
medium: 2em,
|
312
|
+
);
|
313
|
+
$closebutton-lineheight: 1;
|
314
|
+
$closebutton-color: $dark-gray;
|
315
|
+
$closebutton-color-hover: $black;
|
316
|
+
|
317
|
+
// 16. Drilldown
|
318
|
+
// -------------
|
319
|
+
|
320
|
+
$drilldown-transition: transform 0.15s linear;
|
321
|
+
$drilldown-arrows: true;
|
322
|
+
$drilldown-arrow-color: $primary-color;
|
323
|
+
$drilldown-arrow-size: 6px;
|
324
|
+
$drilldown-background: $white;
|
325
|
+
|
326
|
+
// 17. Dropdown
|
327
|
+
// ------------
|
328
|
+
|
329
|
+
$dropdown-padding: 1rem;
|
330
|
+
$dropdown-background: $body-background;
|
331
|
+
$dropdown-border: 1px solid $medium-gray;
|
332
|
+
$dropdown-font-size: 1rem;
|
333
|
+
$dropdown-width: 300px;
|
334
|
+
$dropdown-radius: $global-radius;
|
335
|
+
$dropdown-sizes: (
|
336
|
+
tiny: 100px,
|
337
|
+
small: 200px,
|
338
|
+
large: 400px,
|
339
|
+
);
|
340
|
+
|
341
|
+
// 18. Dropdown Menu
|
342
|
+
// -----------------
|
343
|
+
|
344
|
+
$dropdownmenu-arrows: true;
|
345
|
+
$dropdownmenu-arrow-color: $anchor-color;
|
346
|
+
$dropdownmenu-arrow-size: 6px;
|
347
|
+
$dropdownmenu-min-width: 200px;
|
348
|
+
$dropdownmenu-background: $white;
|
349
|
+
$dropdownmenu-border: 1px solid $medium-gray;
|
350
|
+
|
351
|
+
// 19. Forms
|
352
|
+
// ---------
|
353
|
+
|
354
|
+
$fieldset-border: 1px solid $medium-gray;
|
355
|
+
$fieldset-padding: rem-calc(20);
|
356
|
+
$fieldset-margin: rem-calc(18 0);
|
357
|
+
$legend-padding: rem-calc(0 3);
|
358
|
+
$form-spacing: rem-calc(16);
|
359
|
+
$helptext-color: $black;
|
360
|
+
$helptext-font-size: rem-calc(13);
|
361
|
+
$helptext-font-style: italic;
|
362
|
+
$input-prefix-color: $black;
|
363
|
+
$input-prefix-background: $light-gray;
|
364
|
+
$input-prefix-border: 1px solid $medium-gray;
|
365
|
+
$input-prefix-padding: 1rem;
|
366
|
+
$form-label-color: $black;
|
367
|
+
$form-label-font-size: rem-calc(14);
|
368
|
+
$form-label-font-weight: $global-weight-normal;
|
369
|
+
$form-label-line-height: 1.8;
|
370
|
+
$select-background: $white;
|
371
|
+
$select-triangle-color: $dark-gray;
|
372
|
+
$select-radius: $global-radius;
|
373
|
+
$input-color: $black;
|
374
|
+
$input-placeholder-color: $medium-gray;
|
375
|
+
$input-font-family: inherit;
|
376
|
+
$input-font-size: rem-calc(16);
|
377
|
+
$input-font-weight: $global-weight-normal;
|
378
|
+
$input-background: $white;
|
379
|
+
$input-background-focus: $white;
|
380
|
+
$input-background-disabled: $light-gray;
|
381
|
+
$input-border: 1px solid $medium-gray;
|
382
|
+
$input-border-focus: 1px solid $dark-gray;
|
383
|
+
$input-shadow: inset 0 1px 2px rgba($black, 0.1);
|
384
|
+
$input-shadow-focus: 0 0 5px $medium-gray;
|
385
|
+
$input-cursor-disabled: not-allowed;
|
386
|
+
$input-transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
|
387
|
+
$input-number-spinners: true;
|
388
|
+
$input-radius: $global-radius;
|
389
|
+
$form-button-radius: $global-radius;
|
390
|
+
|
391
|
+
// 20. Label
|
392
|
+
// ---------
|
393
|
+
|
394
|
+
$label-background: $primary-color;
|
395
|
+
$label-color: $white;
|
396
|
+
$label-color-alt: $black;
|
397
|
+
$label-palette: $foundation-palette;
|
398
|
+
$label-font-size: 0.8rem;
|
399
|
+
$label-padding: 0.33333rem 0.5rem;
|
400
|
+
$label-radius: $global-radius;
|
401
|
+
|
402
|
+
// 21. Media Object
|
403
|
+
// ----------------
|
404
|
+
|
405
|
+
$mediaobject-margin-bottom: $global-margin;
|
406
|
+
$mediaobject-section-padding: $global-padding;
|
407
|
+
$mediaobject-image-width-stacked: 100%;
|
408
|
+
|
409
|
+
// 22. Menu
|
410
|
+
// --------
|
411
|
+
|
412
|
+
$menu-margin: 0;
|
413
|
+
$menu-margin-nested: 1rem;
|
414
|
+
$menu-item-padding: 0.7rem 1rem;
|
415
|
+
$menu-item-color-active: $white;
|
416
|
+
$menu-item-background-active: get-color(primary);
|
417
|
+
$menu-icon-spacing: 0.25rem;
|
418
|
+
$menu-item-background-hover: $light-gray;
|
419
|
+
$menu-border: $light-gray;
|
420
|
+
|
421
|
+
// 23. Meter
|
422
|
+
// ---------
|
423
|
+
|
424
|
+
$meter-height: 1rem;
|
425
|
+
$meter-radius: $global-radius;
|
426
|
+
$meter-background: $medium-gray;
|
427
|
+
$meter-fill-good: $success-color;
|
428
|
+
$meter-fill-medium: $warning-color;
|
429
|
+
$meter-fill-bad: $alert-color;
|
430
|
+
|
431
|
+
// 24. Off-canvas
|
432
|
+
// --------------
|
433
|
+
|
434
|
+
$offcanvas-size: 250px;
|
435
|
+
$offcanvas-vertical-size: 250px;
|
436
|
+
$offcanvas-background: $light-gray;
|
437
|
+
$offcanvas-shadow: 0 0 10px rgba($black, 0.7);
|
438
|
+
$offcanvas-push-zindex: 1;
|
439
|
+
$offcanvas-overlap-zindex: 10;
|
440
|
+
$offcanvas-reveal-zindex: 1;
|
441
|
+
$offcanvas-transition-length: 0.5s;
|
442
|
+
$offcanvas-transition-timing: ease;
|
443
|
+
$offcanvas-fixed-reveal: true;
|
444
|
+
$offcanvas-exit-background: rgba($white, 0.25);
|
445
|
+
$maincontent-class: 'off-canvas-content';
|
446
|
+
|
447
|
+
// 25. Orbit
|
448
|
+
// ---------
|
449
|
+
|
450
|
+
$orbit-bullet-background: $medium-gray;
|
451
|
+
$orbit-bullet-background-active: $dark-gray;
|
452
|
+
$orbit-bullet-diameter: 1.2rem;
|
453
|
+
$orbit-bullet-margin: 0.1rem;
|
454
|
+
$orbit-bullet-margin-top: 0.8rem;
|
455
|
+
$orbit-bullet-margin-bottom: 0.8rem;
|
456
|
+
$orbit-caption-background: rgba($black, 0.5);
|
457
|
+
$orbit-caption-padding: 1rem;
|
458
|
+
$orbit-control-background-hover: rgba($black, 0.5);
|
459
|
+
$orbit-control-padding: 1rem;
|
460
|
+
$orbit-control-zindex: 10;
|
461
|
+
|
462
|
+
// 26. Pagination
|
463
|
+
// --------------
|
464
|
+
|
465
|
+
$pagination-font-size: rem-calc(14);
|
466
|
+
$pagination-margin-bottom: $global-margin;
|
467
|
+
$pagination-item-color: $black;
|
468
|
+
$pagination-item-padding: rem-calc(3 10);
|
469
|
+
$pagination-item-spacing: rem-calc(1);
|
470
|
+
$pagination-radius: $global-radius;
|
471
|
+
$pagination-item-background-hover: $light-gray;
|
472
|
+
$pagination-item-background-current: $primary-color;
|
473
|
+
$pagination-item-color-current: $white;
|
474
|
+
$pagination-item-color-disabled: $medium-gray;
|
475
|
+
$pagination-ellipsis-color: $black;
|
476
|
+
$pagination-mobile-items: false;
|
477
|
+
$pagination-mobile-current-item: false;
|
478
|
+
$pagination-arrows: true;
|
479
|
+
|
480
|
+
// 27. Progress Bar
|
481
|
+
// ----------------
|
482
|
+
|
483
|
+
$progress-height: 1rem;
|
484
|
+
$progress-background: $medium-gray;
|
485
|
+
$progress-margin-bottom: $global-margin;
|
486
|
+
$progress-meter-background: $primary-color;
|
487
|
+
$progress-radius: $global-radius;
|
488
|
+
|
489
|
+
// 28. Responsive Embed
|
490
|
+
// --------------------
|
491
|
+
|
492
|
+
$responsive-embed-margin-bottom: rem-calc(16);
|
493
|
+
$responsive-embed-ratios: (
|
494
|
+
default: 4 by 3,
|
495
|
+
widescreen: 16 by 9,
|
496
|
+
);
|
497
|
+
|
498
|
+
// 29. Reveal
|
499
|
+
// ----------
|
500
|
+
|
501
|
+
$reveal-background: $white;
|
502
|
+
$reveal-width: 600px;
|
503
|
+
$reveal-max-width: $global-width;
|
504
|
+
$reveal-padding: $global-padding;
|
505
|
+
$reveal-border: 1px solid $medium-gray;
|
506
|
+
$reveal-radius: $global-radius;
|
507
|
+
$reveal-zindex: 1005;
|
508
|
+
$reveal-overlay-background: rgba($black, 0.45);
|
509
|
+
|
510
|
+
// 30. Slider
|
511
|
+
// ----------
|
512
|
+
|
513
|
+
$slider-width-vertical: 0.5rem;
|
514
|
+
$slider-transition: all 0.2s ease-in-out;
|
515
|
+
$slider-height: 0.5rem;
|
516
|
+
$slider-background: $light-gray;
|
517
|
+
$slider-fill-background: $medium-gray;
|
518
|
+
$slider-handle-height: 1.4rem;
|
519
|
+
$slider-handle-width: 1.4rem;
|
520
|
+
$slider-handle-background: $primary-color;
|
521
|
+
$slider-opacity-disabled: 0.25;
|
522
|
+
$slider-radius: $global-radius;
|
523
|
+
|
524
|
+
// 31. Switch
|
525
|
+
// ----------
|
526
|
+
|
527
|
+
$switch-background: $medium-gray;
|
528
|
+
$switch-background-active: $primary-color;
|
529
|
+
$switch-height: 2rem;
|
530
|
+
$switch-height-tiny: 1.5rem;
|
531
|
+
$switch-height-small: 1.75rem;
|
532
|
+
$switch-height-large: 2.5rem;
|
533
|
+
$switch-radius: $global-radius;
|
534
|
+
$switch-margin: $global-margin;
|
535
|
+
$switch-paddle-background: $white;
|
536
|
+
$switch-paddle-offset: 0.25rem;
|
537
|
+
$switch-paddle-radius: $global-radius;
|
538
|
+
$switch-paddle-transition: all 0.25s ease-out;
|
539
|
+
|
540
|
+
// 32. Table
|
541
|
+
// ---------
|
542
|
+
|
543
|
+
$table-background: $white;
|
544
|
+
$table-color-scale: 5%;
|
545
|
+
$table-border: 1px solid smart-scale($table-background, $table-color-scale);
|
546
|
+
$table-padding: rem-calc(8 10 10);
|
547
|
+
$table-hover-scale: 2%;
|
548
|
+
$table-row-hover: darken($table-background, $table-hover-scale);
|
549
|
+
$table-row-stripe-hover: darken($table-background, $table-color-scale + $table-hover-scale);
|
550
|
+
$table-is-striped: true;
|
551
|
+
$table-striped-background: smart-scale($table-background, $table-color-scale);
|
552
|
+
$table-stripe: even;
|
553
|
+
$table-head-background: smart-scale($table-background, $table-color-scale / 2);
|
554
|
+
$table-head-row-hover: darken($table-head-background, $table-hover-scale);
|
555
|
+
$table-foot-background: smart-scale($table-background, $table-color-scale);
|
556
|
+
$table-foot-row-hover: darken($table-foot-background, $table-hover-scale);
|
557
|
+
$table-head-font-color: $body-font-color;
|
558
|
+
$table-foot-font-color: $body-font-color;
|
559
|
+
$show-header-for-stacked: false;
|
560
|
+
|
561
|
+
// 33. Tabs
|
562
|
+
// --------
|
563
|
+
|
564
|
+
$tab-margin: 0;
|
565
|
+
$tab-background: $white;
|
566
|
+
$tab-color: $primary-color;
|
567
|
+
$tab-background-active: $light-gray;
|
568
|
+
$tab-active-color: $primary-color;
|
569
|
+
$tab-item-font-size: rem-calc(12);
|
570
|
+
$tab-item-background-hover: $white;
|
571
|
+
$tab-item-padding: 1.25rem 1.5rem;
|
572
|
+
$tab-expand-max: 6;
|
573
|
+
$tab-content-background: $white;
|
574
|
+
$tab-content-border: $light-gray;
|
575
|
+
$tab-content-color: $body-font-color;
|
576
|
+
$tab-content-padding: 1rem;
|
577
|
+
|
578
|
+
// 34. Thumbnail
|
579
|
+
// -------------
|
580
|
+
|
581
|
+
$thumbnail-border: solid 4px $white;
|
582
|
+
$thumbnail-margin-bottom: $global-margin;
|
583
|
+
$thumbnail-shadow: 0 0 0 1px rgba($black, 0.2);
|
584
|
+
$thumbnail-shadow-hover: 0 0 6px 1px rgba($primary-color, 0.5);
|
585
|
+
$thumbnail-transition: box-shadow 200ms ease-out;
|
586
|
+
$thumbnail-radius: $global-radius;
|
587
|
+
|
588
|
+
// 35. Title Bar
|
589
|
+
// -------------
|
590
|
+
|
591
|
+
$titlebar-background: $black;
|
592
|
+
$titlebar-color: $white;
|
593
|
+
$titlebar-padding: 0.5rem;
|
594
|
+
$titlebar-text-font-weight: bold;
|
595
|
+
$titlebar-icon-color: $white;
|
596
|
+
$titlebar-icon-color-hover: $medium-gray;
|
597
|
+
$titlebar-icon-spacing: 0.25rem;
|
598
|
+
|
599
|
+
// 36. Tooltip
|
600
|
+
// -----------
|
601
|
+
|
602
|
+
$has-tip-font-weight: $global-weight-bold;
|
603
|
+
$has-tip-border-bottom: dotted 1px $dark-gray;
|
604
|
+
$tooltip-background-color: $black;
|
605
|
+
$tooltip-color: $white;
|
606
|
+
$tooltip-padding: 0.75rem;
|
607
|
+
$tooltip-font-size: $small-font-size;
|
608
|
+
$tooltip-pip-width: 0.75rem;
|
609
|
+
$tooltip-pip-height: $tooltip-pip-width * 0.866;
|
610
|
+
$tooltip-radius: $global-radius;
|
611
|
+
|
612
|
+
// 37. Top Bar
|
613
|
+
// -----------
|
614
|
+
|
615
|
+
$topbar-padding: 0.5rem;
|
616
|
+
$topbar-background: $light-gray;
|
617
|
+
$topbar-submenu-background: $topbar-background;
|
618
|
+
$topbar-title-spacing: 0.5rem 1rem 0.5rem 0;
|
619
|
+
$topbar-input-width: 200px;
|
620
|
+
$topbar-unstack-breakpoint: medium;
|