foundation-sass-rails 5.5.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +37 -0
- data/LICENSE.txt +21 -0
- data/README.md +62 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/foundation-sass-rails.gemspec +29 -0
- data/lib/foundation-sass-rails.rb +8 -0
- data/lib/foundation/version.rb +5 -0
- data/lib/generators/foundation/overrides_generator.rb +39 -0
- data/vendor/assets/stylesheets/foundation.scss +42 -0
- data/vendor/assets/stylesheets/foundation/_functions.scss +156 -0
- data/vendor/assets/stylesheets/foundation/_settings.scss +1489 -0
- data/vendor/assets/stylesheets/foundation/components/_accordion.scss +161 -0
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +128 -0
- data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +133 -0
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +132 -0
- data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +208 -0
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +261 -0
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +260 -0
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +130 -0
- data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +269 -0
- data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +51 -0
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +607 -0
- data/vendor/assets/stylesheets/foundation/components/_global.scss +566 -0
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +292 -0
- data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +460 -0
- data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +58 -0
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +220 -0
- data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +60 -0
- data/vendor/assets/stylesheets/foundation/components/_labels.scss +106 -0
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +34 -0
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +606 -0
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +388 -0
- data/vendor/assets/stylesheets/foundation/components/_pagination.scss +163 -0
- data/vendor/assets/stylesheets/foundation/components/_panels.scss +107 -0
- data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +150 -0
- data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +85 -0
- data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +177 -0
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +212 -0
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +120 -0
- data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +203 -0
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +125 -0
- data/vendor/assets/stylesheets/foundation/components/_switches.scss +241 -0
- data/vendor/assets/stylesheets/foundation/components/_tables.scss +135 -0
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +142 -0
- data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +66 -0
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +142 -0
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +745 -0
- data/vendor/assets/stylesheets/foundation/components/_type.scss +525 -0
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +425 -0
- data/vendor/assets/stylesheets/normalize.scss +424 -0
- metadata +163 -0
@@ -0,0 +1,161 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
|
7
|
+
//
|
8
|
+
// @variables
|
9
|
+
//
|
10
|
+
|
11
|
+
$include-html-accordion-classes: $include-html-classes !default;
|
12
|
+
|
13
|
+
$accordion-navigation-padding: rem-calc(16) !default;
|
14
|
+
$accordion-navigation-bg-color: $silver !default;
|
15
|
+
$accordion-navigation-hover-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -5%) !default;
|
16
|
+
$accordion-navigation-active-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -3%) !default;
|
17
|
+
$accordion-navigation-active-font-color: $jet !default;
|
18
|
+
$accordion-navigation-font-color: $jet !default;
|
19
|
+
$accordion-navigation-font-size: rem-calc(16) !default;
|
20
|
+
$accordion-navigation-font-family: $body-font-family !default;
|
21
|
+
|
22
|
+
$accordion-content-padding: ($column-gutter/2) !default;
|
23
|
+
$accordion-content-active-bg-color: $white !default;
|
24
|
+
|
25
|
+
|
26
|
+
// Mixin: accordion-container()
|
27
|
+
// Decription: Responsible for the container component of accordions, generating styles relating to a margin of zero and a clearfix
|
28
|
+
// Explicit Dependencies: a clearfix mixin *is* defined.
|
29
|
+
// Implicit Dependencies: None
|
30
|
+
|
31
|
+
@mixin accordion-container() {
|
32
|
+
@include clearfix;
|
33
|
+
margin-bottom: 0;
|
34
|
+
}
|
35
|
+
|
36
|
+
// Mixin: accordion-navigation( $bg, $hover-bg, $active-bg, $padding, $active_class, $font-color, $font-size, $font-family) {
|
37
|
+
// @params $bg-color: [ color or string ]: Specify the background color for the navigation element
|
38
|
+
// @params $hover-bg-color [ color or string ]: Specify the background color for the navigation element when hovered
|
39
|
+
// @params $active-bg [ color or string ]: Specify the background color for the navigation element when clicked and not released.
|
40
|
+
// @params $active_class [ string ]: Specify the class name used to keep track of which accordion tab should be visible
|
41
|
+
// @params $font-color [ color or string ]: Color of the font for accordion
|
42
|
+
// @params $font-size [ number ]: Specifiy the font-size of the text inside the navigation element
|
43
|
+
// @params $font-family [ string ]: Specify the font family for the text of the navigation of the accorion
|
44
|
+
// @params $active-font [ color or string ]: Specify the font color for the navigation element when active.
|
45
|
+
|
46
|
+
@mixin accordion-navigation( $bg: $accordion-navigation-bg-color, $hover-bg: $accordion-navigation-hover-bg-color, $active-bg: $accordion-navigation-active-bg-color, $padding: $accordion-navigation-padding, $active_class: 'active', $font-color: $accordion-navigation-font-color, $font-size: $accordion-navigation-font-size, $font-family: $accordion-navigation-font-family, $active-font: $accordion-navigation-active-font-color ) {
|
47
|
+
display: block;
|
48
|
+
margin-bottom: 0 !important;
|
49
|
+
@if type-of($active_class) != "string" {
|
50
|
+
@warn "`#{$active_class}` isn't a valid string. A valid string is needed to correctly be interpolated as a CSS class. CSS classes cannot start with a number or consist of only numbers. CSS will not be generated for the active state of this navigation component."
|
51
|
+
}
|
52
|
+
@else {
|
53
|
+
&.#{ $active_class } > a {
|
54
|
+
background: $active-bg;
|
55
|
+
color: $active-font;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
> a {
|
59
|
+
background: $bg;
|
60
|
+
color: $font-color;
|
61
|
+
@if type-of($padding) != number {
|
62
|
+
@warn "`#{$padding}` was read as #{type-of($padding)}";
|
63
|
+
@if $accordion-navigation-padding != null {
|
64
|
+
@warn "#{$padding} was read as a #{type-of($padding)}";
|
65
|
+
@warn "`#{$padding}` isn't a valid number. $accordion-navigation-padding (#{$accordion-navigation-padding}) will be used instead.)";
|
66
|
+
padding: $accordion-navigation-padding;
|
67
|
+
}
|
68
|
+
@else {
|
69
|
+
@warn "`#{$padding}` isn't a valid number and $accordion-navigation-padding is missing. A value of `null` is returned to not output an invalid value for padding";
|
70
|
+
padding: null;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
@else {
|
74
|
+
padding: $padding;
|
75
|
+
}
|
76
|
+
display: block;
|
77
|
+
font-family: $font-family;
|
78
|
+
@if type-of($font-size) != number {
|
79
|
+
@warn "`#{$font-size}` was read as a #{type-of($font-size)}";
|
80
|
+
@if $accordion-navigation-font-size != null {
|
81
|
+
@warn "`#{$font-size}` is not a valid number. The value of $accordion-navigation-font-size will be used instead (#{$accordion-navigation-font-size}).";
|
82
|
+
font-size: $accordion-navigation-font-size;
|
83
|
+
}
|
84
|
+
@else{
|
85
|
+
@warn "`#{$font-size}` is not a valid number and the default value of $accordion-navigation-font-size is not defined. A value of `null` will be returned to not generate an invalid value for font-size.";
|
86
|
+
font-size: null;
|
87
|
+
|
88
|
+
}
|
89
|
+
}
|
90
|
+
@else {
|
91
|
+
font-size: $font-size;
|
92
|
+
}
|
93
|
+
&:hover {
|
94
|
+
background: $hover-bg;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
// Mixin: accordion-content($bg, $padding, $active-class)
|
100
|
+
// @params $padding [ number ]: Padding for the content of the container
|
101
|
+
// @params $bg [ color ]: Background color for the content when it's visible
|
102
|
+
// @params $active_class [ string ]: Class name used to keep track of which accordion tab should be visible.
|
103
|
+
|
104
|
+
@mixin accordion-content($bg: $accordion-content-active-bg-color, $padding: $accordion-content-padding, $active_class: 'active') {
|
105
|
+
display: none;
|
106
|
+
@if type-of($padding) != "number" {
|
107
|
+
@warn "#{$padding} was read as a #{type-of($padding)}";
|
108
|
+
@if $accordion-content-padding != null {
|
109
|
+
@warn "`#{$padding}` isn't a valid number. $accordion-content-padding used instead";
|
110
|
+
padding: $accordion-content-padding;
|
111
|
+
} @else {
|
112
|
+
@warn "`#{$padding}` isn't a valid number and the default value of $accordion-content-padding is not defined. A value of `null` is returned to not output an invalid value for padding.";
|
113
|
+
padding: null;
|
114
|
+
}
|
115
|
+
} @else {
|
116
|
+
padding: $padding;
|
117
|
+
}
|
118
|
+
|
119
|
+
@if type-of($active_class) != "string" {
|
120
|
+
@warn "`#{$active_class}` isn't a valid string. A valid string is needed to correctly be interpolated as a CSS class. CSS classes cannot start with a number or consist of only numbers. CSS will not be generated for the active state of the content. "
|
121
|
+
}
|
122
|
+
@else {
|
123
|
+
&.#{$active_class} {
|
124
|
+
background: $bg;
|
125
|
+
display: block;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
@include exports("accordion") {
|
131
|
+
@if $include-html-accordion-classes {
|
132
|
+
.accordion {
|
133
|
+
@include clearfix;
|
134
|
+
margin-bottom: 0;
|
135
|
+
margin-left: 0;
|
136
|
+
.accordion-navigation, dd {
|
137
|
+
display: block;
|
138
|
+
margin-bottom: 0 !important;
|
139
|
+
&.active > a { background: $accordion-navigation-active-bg-color; color: $accordion-navigation-active-font-color; }
|
140
|
+
> a {
|
141
|
+
background: $accordion-navigation-bg-color;
|
142
|
+
color: $accordion-navigation-font-color;
|
143
|
+
display: block;
|
144
|
+
font-family: $accordion-navigation-font-family;
|
145
|
+
font-size: $accordion-navigation-font-size;
|
146
|
+
padding: $accordion-navigation-padding;
|
147
|
+
&:hover { background: $accordion-navigation-hover-bg-color; }
|
148
|
+
}
|
149
|
+
|
150
|
+
> .content {
|
151
|
+
display: none;
|
152
|
+
padding: $accordion-content-padding;
|
153
|
+
&.active {
|
154
|
+
background: $accordion-content-active-bg-color;
|
155
|
+
display: block;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
@@ -0,0 +1,128 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
|
7
|
+
//
|
8
|
+
// Alert Box Variables
|
9
|
+
//
|
10
|
+
$include-html-alert-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
// We use this to control alert padding.
|
13
|
+
$alert-padding-top: rem-calc(14) !default;
|
14
|
+
$alert-padding-default-float: $alert-padding-top !default;
|
15
|
+
$alert-padding-opposite-direction: $alert-padding-top + rem-calc(10) !default;
|
16
|
+
$alert-padding-bottom: $alert-padding-top !default;
|
17
|
+
|
18
|
+
// We use these to control text style.
|
19
|
+
$alert-font-weight: $font-weight-normal !default;
|
20
|
+
$alert-font-size: rem-calc(13) !default;
|
21
|
+
$alert-font-color: $white !default;
|
22
|
+
$alert-font-color-alt: scale-color($secondary-color, $lightness: -66%) !default;
|
23
|
+
|
24
|
+
// We use this for close hover effect.
|
25
|
+
$alert-function-factor: -14% !default;
|
26
|
+
|
27
|
+
// We use these to control border styles.
|
28
|
+
$alert-border-style: solid !default;
|
29
|
+
$alert-border-width: 1px !default;
|
30
|
+
$alert-border-color: scale-color($primary-color, $lightness: $alert-function-factor) !default;
|
31
|
+
$alert-bottom-margin: rem-calc(20) !default;
|
32
|
+
|
33
|
+
// We use these to style the close buttons
|
34
|
+
$alert-close-color: $oil !default;
|
35
|
+
$alert-close-top: 50% !default;
|
36
|
+
$alert-close-position: rem-calc(4) !default;
|
37
|
+
$alert-close-font-size: rem-calc(22) !default;
|
38
|
+
$alert-close-opacity: .3 !default;
|
39
|
+
$alert-close-opacity-hover: .5 !default;
|
40
|
+
$alert-close-padding: 0 6px 4px !default;
|
41
|
+
$alert-close-background: inherit !default;
|
42
|
+
|
43
|
+
// We use this to control border radius
|
44
|
+
$alert-radius: $global-radius !default;
|
45
|
+
|
46
|
+
$alert-transition-speed: 300ms !default;
|
47
|
+
$alert-transition-ease: ease-out !default;
|
48
|
+
|
49
|
+
//
|
50
|
+
// Alert Mixins
|
51
|
+
//
|
52
|
+
|
53
|
+
// We use this mixin to create a default alert base.
|
54
|
+
@mixin alert-base {
|
55
|
+
border-style: $alert-border-style;
|
56
|
+
border-width: $alert-border-width;
|
57
|
+
display: block;
|
58
|
+
font-size: $alert-font-size;
|
59
|
+
font-weight: $alert-font-weight;
|
60
|
+
margin-bottom: $alert-bottom-margin;
|
61
|
+
padding: $alert-padding-top $alert-padding-opposite-direction $alert-padding-bottom $alert-padding-default-float;
|
62
|
+
position: relative;
|
63
|
+
@include single-transition(opacity, $alert-transition-speed, $alert-transition-ease)
|
64
|
+
}
|
65
|
+
|
66
|
+
// We use this mixin to add alert styles
|
67
|
+
//
|
68
|
+
// $bg - The background of the alert. Default: $primary-color.
|
69
|
+
@mixin alert-style($bg:$primary-color) {
|
70
|
+
|
71
|
+
// This finds the lightness percentage of the background color.
|
72
|
+
$bg-lightness: lightness($bg);
|
73
|
+
|
74
|
+
// We control which background color and border come through.
|
75
|
+
background-color: $bg;
|
76
|
+
border-color: scale-color($bg, $lightness: $alert-function-factor);
|
77
|
+
|
78
|
+
// We control the text color for you based on the background color.
|
79
|
+
@if $bg-lightness > 70% { color: $alert-font-color-alt; }
|
80
|
+
@else { color: $alert-font-color; }
|
81
|
+
|
82
|
+
}
|
83
|
+
|
84
|
+
// We use this to create the close button.
|
85
|
+
@mixin alert-close {
|
86
|
+
#{$opposite-direction}: $alert-close-position;
|
87
|
+
background: $alert-close-background;
|
88
|
+
color: $alert-close-color;
|
89
|
+
font-size: $alert-close-font-size;
|
90
|
+
line-height: .9;
|
91
|
+
margin-top: -($alert-close-font-size / 2);
|
92
|
+
opacity: $alert-close-opacity;
|
93
|
+
padding: $alert-close-padding;
|
94
|
+
position: absolute;
|
95
|
+
top: $alert-close-top;
|
96
|
+
&:hover,
|
97
|
+
&:focus { opacity: $alert-close-opacity-hover; }
|
98
|
+
}
|
99
|
+
|
100
|
+
// We use this to quickly create alerts with a single mixin.
|
101
|
+
//
|
102
|
+
// $bg - Background of alert. Default: $primary-color.
|
103
|
+
// $radius - Radius of alert box. Default: false.
|
104
|
+
@mixin alert($bg:$primary-color, $radius:false) {
|
105
|
+
@include alert-base;
|
106
|
+
@include alert-style($bg);
|
107
|
+
@include radius($radius);
|
108
|
+
}
|
109
|
+
|
110
|
+
@include exports("alert-box") {
|
111
|
+
@if $include-html-alert-classes {
|
112
|
+
.alert-box {
|
113
|
+
@include alert;
|
114
|
+
|
115
|
+
.close { @include alert-close; }
|
116
|
+
|
117
|
+
&.radius { @include radius($alert-radius); }
|
118
|
+
&.round { @include radius($global-rounded); }
|
119
|
+
|
120
|
+
&.success { @include alert-style($success-color); }
|
121
|
+
&.alert { @include alert-style($alert-color); }
|
122
|
+
&.secondary { @include alert-style($secondary-color); }
|
123
|
+
&.warning { @include alert-style($warning-color); }
|
124
|
+
&.info { @include alert-style($info-color); }
|
125
|
+
&.alert-close { opacity: 0}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
@@ -0,0 +1,133 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
|
7
|
+
//
|
8
|
+
// Block Grid Variables
|
9
|
+
//
|
10
|
+
$include-html-block-grid-classes: $include-html-classes !default;
|
11
|
+
$include-xl-html-block-grid-classes: false !default;
|
12
|
+
|
13
|
+
// We use this to control the maximum number of block grid elements per row
|
14
|
+
$block-grid-elements: 12 !default;
|
15
|
+
$block-grid-default-spacing: rem-calc(20) !default;
|
16
|
+
|
17
|
+
$align-block-grid-to-grid: false !default;
|
18
|
+
@if $align-block-grid-to-grid {
|
19
|
+
$block-grid-default-spacing: $column-gutter;
|
20
|
+
}
|
21
|
+
|
22
|
+
// Enables media queries for block-grid classes. Set to false if writing semantic HTML.
|
23
|
+
$block-grid-media-queries: true !default;
|
24
|
+
|
25
|
+
//
|
26
|
+
// Block Grid Mixins
|
27
|
+
//
|
28
|
+
|
29
|
+
// Create a custom block grid
|
30
|
+
//
|
31
|
+
// $per-row - # of items to display per row. Default: false.
|
32
|
+
// $spacing - # of ems to use as padding on each block item. Default: rem-calc(20).
|
33
|
+
// $include-spacing - Adds padding to our list item. Default: true.
|
34
|
+
// $base-style - Apply a base style to block grid. Default: true.
|
35
|
+
@mixin block-grid(
|
36
|
+
$per-row:false,
|
37
|
+
$spacing:$block-grid-default-spacing,
|
38
|
+
$include-spacing:true,
|
39
|
+
$base-style:true) {
|
40
|
+
|
41
|
+
@if $base-style {
|
42
|
+
display: block;
|
43
|
+
padding: 0;
|
44
|
+
@if $align-block-grid-to-grid {
|
45
|
+
margin: 0;
|
46
|
+
} @else {
|
47
|
+
margin: 0 (-$spacing/2);
|
48
|
+
}
|
49
|
+
@include clearfix;
|
50
|
+
|
51
|
+
> li {
|
52
|
+
display: block;
|
53
|
+
float: $default-float;
|
54
|
+
height: auto;
|
55
|
+
@if $include-spacing {
|
56
|
+
padding: 0 ($spacing/2) $spacing;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
@if $per-row {
|
62
|
+
> li {
|
63
|
+
list-style: none;
|
64
|
+
@if $include-spacing {
|
65
|
+
padding: 0 ($spacing/2) $spacing;
|
66
|
+
}
|
67
|
+
width: 100%/$per-row;
|
68
|
+
|
69
|
+
&:nth-of-type(1n) { clear: none; }
|
70
|
+
&:nth-of-type(#{$per-row}n+1) { clear: both; }
|
71
|
+
@if $align-block-grid-to-grid {
|
72
|
+
@include block-grid-aligned($per-row, $spacing);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
@mixin block-grid-aligned($per-row, $spacing) {
|
79
|
+
@for $i from 1 through $block-grid-elements {
|
80
|
+
@if $per-row >= $i {
|
81
|
+
$grid-column: '+' + $i;
|
82
|
+
@if $per-row == $i {
|
83
|
+
$grid-column: '';
|
84
|
+
}
|
85
|
+
&:nth-of-type(#{$per-row}n#{unquote($grid-column)}) {
|
86
|
+
padding-left: ($spacing - (($spacing / $per-row) * ($per-row - ($i - 1))));
|
87
|
+
padding-right: ($spacing - (($spacing / $per-row) * $i));
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
// Generate presentational markup for block grid.
|
94
|
+
//
|
95
|
+
// $size - Name of class to use, i.e. "large" will generate .large-block-grid-1, .large-block-grid-2, etc.
|
96
|
+
@mixin block-grid-html-classes($size, $include-spacing) {
|
97
|
+
@for $i from 1 through $block-grid-elements {
|
98
|
+
.#{$size}-block-grid-#{($i)} {
|
99
|
+
@include block-grid($i, $block-grid-default-spacing, $include-spacing, false);
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
@include exports("block-grid") {
|
105
|
+
@if $include-html-block-grid-classes {
|
106
|
+
|
107
|
+
[class*="block-grid-"] { @include block-grid; }
|
108
|
+
|
109
|
+
@if $block-grid-media-queries {
|
110
|
+
@media #{$small-up} {
|
111
|
+
@include block-grid-html-classes($size:small, $include-spacing:false);
|
112
|
+
}
|
113
|
+
|
114
|
+
@media #{$medium-up} {
|
115
|
+
@include block-grid-html-classes($size:medium, $include-spacing:false);
|
116
|
+
}
|
117
|
+
|
118
|
+
@media #{$large-up} {
|
119
|
+
@include block-grid-html-classes($size:large, $include-spacing:false);
|
120
|
+
}
|
121
|
+
|
122
|
+
@if $include-xl-html-block-grid-classes {
|
123
|
+
@media #{$xlarge-up} {
|
124
|
+
@include block-grid-html-classes($size:xlarge, $include-spacing:false);
|
125
|
+
}
|
126
|
+
|
127
|
+
@media #{$xxlarge-up} {
|
128
|
+
@include block-grid-html-classes($size:xxlarge, $include-spacing:false);
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
@@ -0,0 +1,132 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
|
7
|
+
//
|
8
|
+
// Breadcrumb Variables
|
9
|
+
//
|
10
|
+
$include-html-nav-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
// We use this to set the background color for the breadcrumb container.
|
13
|
+
$crumb-bg: scale-color($secondary-color, $lightness: 55%) !default;
|
14
|
+
|
15
|
+
// We use these to set the padding around the breadcrumbs.
|
16
|
+
$crumb-padding: rem-calc(9 14 9) !default;
|
17
|
+
$crumb-side-padding: rem-calc(12) !default;
|
18
|
+
|
19
|
+
// We use these to control border styles.
|
20
|
+
$crumb-function-factor: -10% !default;
|
21
|
+
$crumb-border-size: 1px !default;
|
22
|
+
$crumb-border-style: solid !default;
|
23
|
+
$crumb-border-color: scale-color($crumb-bg, $lightness: $crumb-function-factor) !default;
|
24
|
+
$crumb-radius: $global-radius !default;
|
25
|
+
|
26
|
+
// We use these to set various text styles for breadcrumbs.
|
27
|
+
$crumb-font-size: rem-calc(11) !default;
|
28
|
+
$crumb-font-color: $primary-color !default;
|
29
|
+
$crumb-font-color-current: $oil !default;
|
30
|
+
$crumb-font-color-unavailable: $aluminum !default;
|
31
|
+
$crumb-font-transform: uppercase !default;
|
32
|
+
$crumb-link-decor: underline !default;
|
33
|
+
|
34
|
+
// We use these to control the slash between breadcrumbs
|
35
|
+
$crumb-slash-color: $base !default;
|
36
|
+
$crumb-slash: "/" !default;
|
37
|
+
$crumb-slash-position: 1px !default;
|
38
|
+
|
39
|
+
//
|
40
|
+
// Breadcrumb Mixins
|
41
|
+
//
|
42
|
+
|
43
|
+
// We use this mixin to create a container around our breadcrumbs
|
44
|
+
@mixin crumb-container {
|
45
|
+
border-style: $crumb-border-style;
|
46
|
+
border-width: $crumb-border-size;
|
47
|
+
display: block;
|
48
|
+
list-style: none;
|
49
|
+
margin-#{$default-float}: 0;
|
50
|
+
overflow: hidden;
|
51
|
+
padding: $crumb-padding;
|
52
|
+
|
53
|
+
// We control which background color and border come through.
|
54
|
+
background-color: $crumb-bg;
|
55
|
+
border-color: $crumb-border-color;
|
56
|
+
}
|
57
|
+
|
58
|
+
// We use this mixin to create breadcrumb styles from list items.
|
59
|
+
@mixin crumbs {
|
60
|
+
|
61
|
+
// A normal state will make the links look and act like clickable breadcrumbs.
|
62
|
+
color: $crumb-font-color;
|
63
|
+
float: $default-float;
|
64
|
+
font-size: $crumb-font-size;
|
65
|
+
line-height: $crumb-font-size;
|
66
|
+
margin: 0;
|
67
|
+
text-transform: $crumb-font-transform;
|
68
|
+
|
69
|
+
&:hover a, &:focus a { text-decoration: $crumb-link-decor; }
|
70
|
+
|
71
|
+
a {
|
72
|
+
color: $crumb-font-color;
|
73
|
+
}
|
74
|
+
|
75
|
+
// Current is for the link of the current page
|
76
|
+
&.current {
|
77
|
+
color: $crumb-font-color-current;
|
78
|
+
cursor: $cursor-default-value;
|
79
|
+
a {
|
80
|
+
color: $crumb-font-color-current;
|
81
|
+
cursor: $cursor-default-value;
|
82
|
+
}
|
83
|
+
|
84
|
+
&:hover, &:hover a,
|
85
|
+
&:focus, &:focus a { text-decoration: none; }
|
86
|
+
}
|
87
|
+
|
88
|
+
// Unavailable removed color and link styles so it looks inactive.
|
89
|
+
&.unavailable {
|
90
|
+
color: $crumb-font-color-unavailable;
|
91
|
+
a { color: $crumb-font-color-unavailable; }
|
92
|
+
|
93
|
+
&:hover,
|
94
|
+
&:hover a,
|
95
|
+
&:focus,
|
96
|
+
a:focus {
|
97
|
+
color: $crumb-font-color-unavailable;
|
98
|
+
cursor: $cursor-disabled-value;
|
99
|
+
text-decoration: none;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
&:before {
|
104
|
+
color: $crumb-slash-color;
|
105
|
+
content: "#{$crumb-slash}";
|
106
|
+
margin: 0 $crumb-side-padding;
|
107
|
+
position: relative;
|
108
|
+
top: $crumb-slash-position;
|
109
|
+
}
|
110
|
+
|
111
|
+
&:first-child:before {
|
112
|
+
content: " ";
|
113
|
+
margin: 0;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
@include exports("breadcrumbs") {
|
118
|
+
@if $include-html-nav-classes {
|
119
|
+
.breadcrumbs {
|
120
|
+
@include crumb-container;
|
121
|
+
@include radius($crumb-radius);
|
122
|
+
|
123
|
+
> * {
|
124
|
+
@include crumbs;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
/* Accessibility - hides the forward slash */
|
128
|
+
[aria-label="breadcrumbs"] [aria-hidden="true"]:after {
|
129
|
+
content: "/";
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|