jekyll-theme-foundation 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +48 -0
- data/_includes/google-analytics.html +8 -0
- data/_includes/head.html +17 -0
- data/_includes/scripts.html +4 -0
- data/_layouts/default.html +16 -0
- data/_layouts/home.html +5 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +5 -0
- data/_sass/_vendor/normalize-scss/sass/_normalize.scss +3 -0
- data/_sass/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
- data/_sass/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
- data/_sass/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
- data/_sass/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
- data/_sass/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
- data/_sass/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
- data/_sass/assets/foundation-float.scss +5 -0
- data/_sass/assets/foundation-prototype.scss +3 -0
- data/_sass/assets/foundation-rtl.scss +5 -0
- data/_sass/assets/foundation.scss +3 -0
- data/_sass/jekyll-theme-foundation.scss +5 -0
- data/_sass/scss/_global.scss +249 -0
- data/_sass/scss/components/_accordion-menu.scss +171 -0
- data/_sass/scss/components/_accordion.scss +155 -0
- data/_sass/scss/components/_badge.scss +63 -0
- data/_sass/scss/components/_breadcrumbs.scss +117 -0
- data/_sass/scss/components/_button-group.scss +253 -0
- data/_sass/scss/components/_button.scss +385 -0
- data/_sass/scss/components/_callout.scss +106 -0
- data/_sass/scss/components/_card.scss +129 -0
- data/_sass/scss/components/_close-button.scss +102 -0
- data/_sass/scss/components/_drilldown.scss +142 -0
- data/_sass/scss/components/_dropdown-menu.scss +274 -0
- data/_sass/scss/components/_dropdown.scss +79 -0
- data/_sass/scss/components/_flex-video.scss +1 -0
- data/_sass/scss/components/_flex.scss +117 -0
- data/_sass/scss/components/_float.scss +27 -0
- data/_sass/scss/components/_label.scss +64 -0
- data/_sass/scss/components/_media-object.scss +114 -0
- data/_sass/scss/components/_menu-icon.scss +9 -0
- data/_sass/scss/components/_menu.scss +495 -0
- data/_sass/scss/components/_off-canvas.scss +506 -0
- data/_sass/scss/components/_orbit.scss +196 -0
- data/_sass/scss/components/_pagination.scss +193 -0
- data/_sass/scss/components/_progress-bar.scss +64 -0
- data/_sass/scss/components/_responsive-embed.scss +70 -0
- data/_sass/scss/components/_reveal.scss +180 -0
- data/_sass/scss/components/_slider.scss +137 -0
- data/_sass/scss/components/_sticky.scss +39 -0
- data/_sass/scss/components/_switch.scss +247 -0
- data/_sass/scss/components/_table.scss +330 -0
- data/_sass/scss/components/_tabs.scss +196 -0
- data/_sass/scss/components/_thumbnail.scss +67 -0
- data/_sass/scss/components/_title-bar.scss +84 -0
- data/_sass/scss/components/_tooltip.scss +160 -0
- data/_sass/scss/components/_top-bar.scss +175 -0
- data/_sass/scss/components/_visibility.scss +132 -0
- data/_sass/scss/forms/_checkbox.scss +41 -0
- data/_sass/scss/forms/_error.scss +88 -0
- data/_sass/scss/forms/_fieldset.scss +53 -0
- data/_sass/scss/forms/_forms.scss +34 -0
- data/_sass/scss/forms/_help-text.scss +30 -0
- data/_sass/scss/forms/_input-group.scss +142 -0
- data/_sass/scss/forms/_label.scss +50 -0
- data/_sass/scss/forms/_meter.scss +116 -0
- data/_sass/scss/forms/_progress.scss +94 -0
- data/_sass/scss/forms/_range.scss +149 -0
- data/_sass/scss/forms/_select.scss +86 -0
- data/_sass/scss/forms/_text.scss +179 -0
- data/_sass/scss/foundation.scss +133 -0
- data/_sass/scss/grid/_classes.scss +176 -0
- data/_sass/scss/grid/_column.scss +112 -0
- data/_sass/scss/grid/_flex-grid.scss +259 -0
- data/_sass/scss/grid/_grid.scss +48 -0
- data/_sass/scss/grid/_gutter.scss +82 -0
- data/_sass/scss/grid/_layout.scss +76 -0
- data/_sass/scss/grid/_position.scss +76 -0
- data/_sass/scss/grid/_row.scss +99 -0
- data/_sass/scss/grid/_size.scss +24 -0
- data/_sass/scss/prototype/_arrow.scss +36 -0
- data/_sass/scss/prototype/_border-box.scss +35 -0
- data/_sass/scss/prototype/_border-none.scss +35 -0
- data/_sass/scss/prototype/_bordered.scss +54 -0
- data/_sass/scss/prototype/_box.scss +23 -0
- data/_sass/scss/prototype/_display.scss +50 -0
- data/_sass/scss/prototype/_font-styling.scss +95 -0
- data/_sass/scss/prototype/_list-style-type.scss +95 -0
- data/_sass/scss/prototype/_overflow.scss +72 -0
- data/_sass/scss/prototype/_position.scss +114 -0
- data/_sass/scss/prototype/_prototype.scss +87 -0
- data/_sass/scss/prototype/_relation.scss +157 -0
- data/_sass/scss/prototype/_rotate.scss +31 -0
- data/_sass/scss/prototype/_rounded.scss +54 -0
- data/_sass/scss/prototype/_separator.scss +96 -0
- data/_sass/scss/prototype/_shadow.scss +43 -0
- data/_sass/scss/prototype/_sizing.scss +73 -0
- data/_sass/scss/prototype/_spacing.scss +204 -0
- data/_sass/scss/prototype/_text-decoration.scss +48 -0
- data/_sass/scss/prototype/_text-transformation.scss +48 -0
- data/_sass/scss/prototype/_text-utilities.scss +88 -0
- data/_sass/scss/settings/_settings.scss +869 -0
- data/_sass/scss/typography/_alignment.scss +22 -0
- data/_sass/scss/typography/_base.scss +509 -0
- data/_sass/scss/typography/_helpers.scss +80 -0
- data/_sass/scss/typography/_print.scss +86 -0
- data/_sass/scss/typography/_typography.scss +26 -0
- data/_sass/scss/util/_breakpoint.scss +348 -0
- data/_sass/scss/util/_color.scss +129 -0
- data/_sass/scss/util/_direction.scss +31 -0
- data/_sass/scss/util/_flex.scss +85 -0
- data/_sass/scss/util/_math.scss +72 -0
- data/_sass/scss/util/_mixins.scss +313 -0
- data/_sass/scss/util/_selector.scss +41 -0
- data/_sass/scss/util/_typography.scss +26 -0
- data/_sass/scss/util/_unit.scss +152 -0
- data/_sass/scss/util/_util.scss +14 -0
- data/_sass/scss/util/_value.scss +160 -0
- data/_sass/scss/xy-grid/_cell.scss +169 -0
- data/_sass/scss/xy-grid/_classes.scss +476 -0
- data/_sass/scss/xy-grid/_collapse.scss +74 -0
- data/_sass/scss/xy-grid/_frame.scss +85 -0
- data/_sass/scss/xy-grid/_grid.scss +35 -0
- data/_sass/scss/xy-grid/_gutters.scss +45 -0
- data/_sass/scss/xy-grid/_layout.scss +33 -0
- data/_sass/scss/xy-grid/_position.scss +28 -0
- data/_sass/scss/xy-grid/_xy-grid.scss +51 -0
- data/assets/css/main.scss +5 -0
- data/assets/css/motion-ui.min.css +1 -0
- data/assets/js/foundation.min.js +5 -0
- data/assets/js/motion-ui.min.js +1 -0
- metadata +235 -0
@@ -0,0 +1,171 @@
|
|
1
|
+
////
|
2
|
+
/// @group accordion-menu
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Sets accordion menu padding.
|
6
|
+
/// @type Number
|
7
|
+
$accordionmenu-padding: $global-menu-padding !default;
|
8
|
+
|
9
|
+
/// Sets accordion menu nested margin
|
10
|
+
/// @type Number
|
11
|
+
$accordionmenu-nested-margin: $global-menu-nested-margin !default;
|
12
|
+
|
13
|
+
/// Sets accordion menu submenu padding.
|
14
|
+
/// @type Number
|
15
|
+
$accordionmenu-submenu-padding: $accordionmenu-padding !default;
|
16
|
+
|
17
|
+
/// Sets if accordion menus have the default arrow styles.
|
18
|
+
/// @type Boolean
|
19
|
+
$accordionmenu-arrows: true !default;
|
20
|
+
|
21
|
+
/// Sets accordion menu arrow color if arrow is used.
|
22
|
+
/// @type Color
|
23
|
+
$accordionmenu-arrow-color: $primary-color !default;
|
24
|
+
|
25
|
+
/// Sets accordion menu item padding.
|
26
|
+
/// @type Color
|
27
|
+
$accordionmenu-item-background: null !default;
|
28
|
+
|
29
|
+
/// Sets accordion menu item border.
|
30
|
+
/// @type Color
|
31
|
+
$accordionmenu-border: null !default;
|
32
|
+
|
33
|
+
/// Sets accordion menu item padding.
|
34
|
+
/// @type Color
|
35
|
+
$accordionmenu-submenu-toggle-background: null !default;
|
36
|
+
|
37
|
+
/// Sets accordion menu item padding.
|
38
|
+
/// @type List
|
39
|
+
$accordion-submenu-toggle-border: $accordionmenu-border !default;
|
40
|
+
|
41
|
+
/// Sets accordion menu submenu toggle background width.
|
42
|
+
/// @type Number
|
43
|
+
$accordionmenu-submenu-toggle-width: 40px !default;
|
44
|
+
|
45
|
+
/// Sets accordion menu submenu toggle background height.
|
46
|
+
/// @type Number
|
47
|
+
$accordionmenu-submenu-toggle-height: $accordionmenu-submenu-toggle-width !default;
|
48
|
+
|
49
|
+
/// Sets accordion menu arrow size if arrow is used.
|
50
|
+
/// @type Length
|
51
|
+
$accordionmenu-arrow-size: 6px !default;
|
52
|
+
|
53
|
+
@mixin zf-accordion-menu-left-right-arrows {
|
54
|
+
.is-accordion-submenu-parent:not(.has-submenu-toggle) > a {
|
55
|
+
position: relative;
|
56
|
+
|
57
|
+
&::after {
|
58
|
+
@include css-triangle($accordionmenu-arrow-size, $accordionmenu-arrow-color, down);
|
59
|
+
position: absolute;
|
60
|
+
top: 50%;
|
61
|
+
margin-top: -1 * ($accordionmenu-arrow-size / 2);
|
62
|
+
#{$global-right}: 1rem;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
&.align-left .is-accordion-submenu-parent > a::after {
|
66
|
+
left: auto;
|
67
|
+
right: 1rem;
|
68
|
+
}
|
69
|
+
&.align-right .is-accordion-submenu-parent > a::after {
|
70
|
+
right: auto;
|
71
|
+
left: 1rem;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
@mixin foundation-accordion-menu {
|
75
|
+
|
76
|
+
.accordion-menu {
|
77
|
+
@if $accordionmenu-border {
|
78
|
+
border-bottom: $accordionmenu-border;
|
79
|
+
}
|
80
|
+
|
81
|
+
li {
|
82
|
+
@if $accordionmenu-border {
|
83
|
+
border-top: $accordionmenu-border;
|
84
|
+
border-right: $accordionmenu-border;
|
85
|
+
border-left: $accordionmenu-border;
|
86
|
+
}
|
87
|
+
width: 100%;
|
88
|
+
}
|
89
|
+
|
90
|
+
a {
|
91
|
+
@if $accordionmenu-item-background {
|
92
|
+
background: $accordionmenu-item-background;
|
93
|
+
}
|
94
|
+
padding: $accordionmenu-padding;
|
95
|
+
}
|
96
|
+
|
97
|
+
.is-accordion-submenu a {
|
98
|
+
padding: $accordionmenu-submenu-padding;
|
99
|
+
}
|
100
|
+
|
101
|
+
.nested.is-accordion-submenu {
|
102
|
+
@include menu-nested($accordionmenu-nested-margin);
|
103
|
+
}
|
104
|
+
|
105
|
+
&.align-#{$global-right} {
|
106
|
+
.nested.is-accordion-submenu {
|
107
|
+
@include menu-nested($accordionmenu-nested-margin, right);
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
@if $accordionmenu-arrows {
|
112
|
+
@include zf-accordion-menu-left-right-arrows;
|
113
|
+
|
114
|
+
.is-accordion-submenu-parent[aria-expanded='true'] > a::after {
|
115
|
+
transform: rotate(180deg);
|
116
|
+
transform-origin: 50% 50%;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
.is-accordion-submenu li {
|
122
|
+
@if $accordionmenu-border {
|
123
|
+
border-right: 0;
|
124
|
+
border-left: 0;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
.is-accordion-submenu-parent {
|
129
|
+
position: relative;
|
130
|
+
}
|
131
|
+
|
132
|
+
.has-submenu-toggle > a {
|
133
|
+
margin-#{$global-right}: $accordionmenu-submenu-toggle-width;
|
134
|
+
}
|
135
|
+
|
136
|
+
// Submenu toggle
|
137
|
+
.submenu-toggle {
|
138
|
+
position: absolute;
|
139
|
+
top: 0;
|
140
|
+
#{$global-right}: 0;
|
141
|
+
cursor: pointer;
|
142
|
+
|
143
|
+
width: $accordionmenu-submenu-toggle-width;
|
144
|
+
height: $accordionmenu-submenu-toggle-height;
|
145
|
+
|
146
|
+
border-#{$global-left}: $accordion-submenu-toggle-border;
|
147
|
+
|
148
|
+
@if $accordionmenu-submenu-toggle-background {
|
149
|
+
background: $accordionmenu-submenu-toggle-background;
|
150
|
+
}
|
151
|
+
|
152
|
+
// Add the arrow to the toggle
|
153
|
+
&::after {
|
154
|
+
@include css-triangle(6px, $accordionmenu-arrow-color, down);
|
155
|
+
|
156
|
+
top: 0;
|
157
|
+
bottom: 0;
|
158
|
+
margin: auto;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
// Rotate the arrow when menu is open
|
163
|
+
.submenu-toggle[aria-expanded='true']::after {
|
164
|
+
transform: scaleY(-1);
|
165
|
+
transform-origin: 50% 50%;
|
166
|
+
}
|
167
|
+
|
168
|
+
.submenu-toggle-text {
|
169
|
+
@include element-invisible;
|
170
|
+
}
|
171
|
+
}
|
@@ -0,0 +1,155 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group accordion
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Default background color of an accordion group.
|
10
|
+
/// @type Color
|
11
|
+
$accordion-background: $white !default;
|
12
|
+
|
13
|
+
/// If `true`, adds plus and minus icons to the side of each accordion title.
|
14
|
+
/// @type Boolean
|
15
|
+
$accordion-plusminus: true !default;
|
16
|
+
|
17
|
+
/// Font size of accordion titles.
|
18
|
+
/// @type Number
|
19
|
+
$accordion-title-font-size: rem-calc(12) !default;
|
20
|
+
|
21
|
+
/// Default text color for items in a Menu.
|
22
|
+
/// @type Color
|
23
|
+
$accordion-item-color: $primary-color !default;
|
24
|
+
|
25
|
+
/// Default background color on hover for items in a Menu.
|
26
|
+
/// @type Color
|
27
|
+
$accordion-item-background-hover: $light-gray !default;
|
28
|
+
|
29
|
+
/// Default padding of an accordion item.
|
30
|
+
/// @type Number | List
|
31
|
+
$accordion-item-padding: 1.25rem 1rem !default;
|
32
|
+
|
33
|
+
/// Default background color of tab content.
|
34
|
+
/// @type Color
|
35
|
+
$accordion-content-background: $white !default;
|
36
|
+
|
37
|
+
/// Default border color of tab content.
|
38
|
+
/// @type Color
|
39
|
+
$accordion-content-border: 1px solid $light-gray !default;
|
40
|
+
|
41
|
+
/// Default text color of tab content.
|
42
|
+
/// @type Color
|
43
|
+
$accordion-content-color: $body-font-color !default;
|
44
|
+
|
45
|
+
/// Default padding for tab content.
|
46
|
+
/// @type Number | List
|
47
|
+
$accordion-content-padding: 1rem !default;
|
48
|
+
|
49
|
+
/// Adds styles for an accordion container. Apply this to the same element that gets `data-accordion`.
|
50
|
+
@mixin accordion-container (
|
51
|
+
$background: $accordion-background
|
52
|
+
) {
|
53
|
+
margin-#{$global-left}: 0;
|
54
|
+
background: $background;
|
55
|
+
list-style-type: none;
|
56
|
+
&[disabled] {
|
57
|
+
.accordion-title {
|
58
|
+
cursor: not-allowed;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
/// Adds styles for the accordion item. Apply this to the list item within an accordion ul.
|
64
|
+
@mixin accordion-item {
|
65
|
+
&:first-child > :first-child {
|
66
|
+
border-radius: $global-radius $global-radius 0 0;
|
67
|
+
}
|
68
|
+
|
69
|
+
&:last-child > :last-child {
|
70
|
+
border-radius: 0 0 $global-radius $global-radius;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
/// Adds styles for the title of an accordion item. Apply this to the link within an accordion item.
|
75
|
+
@mixin accordion-title (
|
76
|
+
$padding: $accordion-item-padding,
|
77
|
+
$font-size: $accordion-title-font-size,
|
78
|
+
$color: $accordion-item-color,
|
79
|
+
$border: $accordion-content-border,
|
80
|
+
$background-hover: $accordion-item-background-hover
|
81
|
+
) {
|
82
|
+
position: relative;
|
83
|
+
display: block;
|
84
|
+
padding: $padding;
|
85
|
+
|
86
|
+
border: $border;
|
87
|
+
border-bottom: 0;
|
88
|
+
|
89
|
+
font-size: $font-size;
|
90
|
+
line-height: 1;
|
91
|
+
color: $color;
|
92
|
+
|
93
|
+
:last-child:not(.is-active) > & {
|
94
|
+
border-bottom: $border;
|
95
|
+
border-radius: 0 0 $global-radius $global-radius;
|
96
|
+
}
|
97
|
+
|
98
|
+
&:hover,
|
99
|
+
&:focus {
|
100
|
+
background-color: $background-hover;
|
101
|
+
}
|
102
|
+
|
103
|
+
@if $accordion-plusminus {
|
104
|
+
&::before {
|
105
|
+
position: absolute;
|
106
|
+
top: 50%;
|
107
|
+
#{$global-right}: 1rem;
|
108
|
+
margin-top: -0.5rem;
|
109
|
+
content: '+';
|
110
|
+
}
|
111
|
+
|
112
|
+
.is-active > &::before {
|
113
|
+
content: '\2013';
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
/// Adds styles for accordion content. Apply this to the content pane below an accordion item's title.
|
119
|
+
@mixin accordion-content (
|
120
|
+
$padding: $accordion-content-padding,
|
121
|
+
$border: $accordion-content-border,
|
122
|
+
$background: $accordion-content-background,
|
123
|
+
$color: $accordion-content-color
|
124
|
+
) {
|
125
|
+
display: none;
|
126
|
+
padding: $padding;
|
127
|
+
|
128
|
+
border: $border;
|
129
|
+
border-bottom: 0;
|
130
|
+
background-color: $background;
|
131
|
+
|
132
|
+
color: $color;
|
133
|
+
|
134
|
+
:last-child > &:last-child {
|
135
|
+
border-bottom: $border;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
@mixin foundation-accordion {
|
140
|
+
.accordion {
|
141
|
+
@include accordion-container;
|
142
|
+
}
|
143
|
+
|
144
|
+
.accordion-item {
|
145
|
+
@include accordion-item;
|
146
|
+
}
|
147
|
+
|
148
|
+
.accordion-title {
|
149
|
+
@include accordion-title;
|
150
|
+
}
|
151
|
+
|
152
|
+
.accordion-content {
|
153
|
+
@include accordion-content;
|
154
|
+
}
|
155
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group badge
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Default background color for badges.
|
10
|
+
/// @type Color
|
11
|
+
$badge-background: $primary-color !default;
|
12
|
+
|
13
|
+
/// Default text color for badges.
|
14
|
+
/// @type Color
|
15
|
+
$badge-color: $white !default;
|
16
|
+
|
17
|
+
/// Alternate text color for badges.
|
18
|
+
/// @type Color
|
19
|
+
$badge-color-alt: $black !default;
|
20
|
+
|
21
|
+
/// Coloring classes. A map of classes to output in your CSS, like `.secondary`, `.success`, and so on.
|
22
|
+
/// @type Map
|
23
|
+
$badge-palette: $foundation-palette !default;
|
24
|
+
|
25
|
+
/// Default padding inside badges.
|
26
|
+
/// @type Number
|
27
|
+
$badge-padding: 0.3em !default;
|
28
|
+
|
29
|
+
/// Minimum width of a badge.
|
30
|
+
/// @type Number
|
31
|
+
$badge-minwidth: 2.1em !default;
|
32
|
+
|
33
|
+
/// Default font size for badges.
|
34
|
+
/// @type Number
|
35
|
+
$badge-font-size: 0.6rem !default;
|
36
|
+
|
37
|
+
/// Generates the base styles for a badge.
|
38
|
+
@mixin badge {
|
39
|
+
display: inline-block;
|
40
|
+
min-width: $badge-minwidth;
|
41
|
+
padding: $badge-padding;
|
42
|
+
|
43
|
+
border-radius: 50%;
|
44
|
+
|
45
|
+
font-size: $badge-font-size;
|
46
|
+
text-align: center;
|
47
|
+
}
|
48
|
+
|
49
|
+
@mixin foundation-badge {
|
50
|
+
.badge {
|
51
|
+
@include badge;
|
52
|
+
|
53
|
+
background: $badge-background;
|
54
|
+
color: $badge-color;
|
55
|
+
|
56
|
+
@each $name, $color in $badge-palette {
|
57
|
+
&.#{$name} {
|
58
|
+
background: $color;
|
59
|
+
color: color-pick-contrast($color, ($badge-color, $badge-color-alt));
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group breadcrumbs
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Margin around a breadcrumbs container.
|
10
|
+
/// @type Number
|
11
|
+
$breadcrumbs-margin: 0 0 $global-margin 0 !default;
|
12
|
+
|
13
|
+
/// Font size of breadcrumb links.
|
14
|
+
/// @type Number
|
15
|
+
$breadcrumbs-item-font-size: rem-calc(11) !default;
|
16
|
+
|
17
|
+
/// Color of breadcrumb links.
|
18
|
+
/// @type Color
|
19
|
+
$breadcrumbs-item-color: $primary-color !default;
|
20
|
+
|
21
|
+
/// Color of the active breadcrumb link.
|
22
|
+
/// @type Color
|
23
|
+
$breadcrumbs-item-color-current: $black !default;
|
24
|
+
|
25
|
+
/// Opacity of disabled breadcrumb links.
|
26
|
+
/// @type Number
|
27
|
+
$breadcrumbs-item-color-disabled: $medium-gray !default;
|
28
|
+
|
29
|
+
/// Margin between breadcrumb items.
|
30
|
+
/// @type Number
|
31
|
+
$breadcrumbs-item-margin: 0.75rem !default;
|
32
|
+
|
33
|
+
/// If `true`, makes breadcrumb links uppercase.
|
34
|
+
/// @type Boolean
|
35
|
+
$breadcrumbs-item-uppercase: true !default;
|
36
|
+
|
37
|
+
/// If `true`, adds a seperator between breadcrumb links.
|
38
|
+
/// @type Boolean
|
39
|
+
$breadcrumbs-item-separator: true !default;
|
40
|
+
|
41
|
+
// If it exists $breadcrumbs-item-slash is used to build $breadcrumbs-item-separator. See the documentation.
|
42
|
+
@if variable-exists(breadcrumbs-item-slash) {
|
43
|
+
$breadcrumbs-item-separator: $breadcrumbs-item-slash;
|
44
|
+
}
|
45
|
+
|
46
|
+
/// Used character for the breadcrumb separator.
|
47
|
+
/// @type Content
|
48
|
+
$breadcrumbs-item-separator-item: '/' !default;
|
49
|
+
|
50
|
+
/// Used character for the breadcrumb separator in rtl mode.
|
51
|
+
/// @type Content
|
52
|
+
$breadcrumbs-item-separator-item-rtl: '\\' !default;
|
53
|
+
|
54
|
+
/// Color of breadcrumb item.
|
55
|
+
/// @type Color
|
56
|
+
$breadcrumbs-item-separator-color: $medium-gray !default;
|
57
|
+
|
58
|
+
// If it exists $breadcrumbs-item-slash-color is used to build $breadcrumbs-item-separator-color. See the documentation.
|
59
|
+
@if variable-exists(breadcrumbs-item-slash-color) {
|
60
|
+
$breadcrumbs-item-separator-color: $breadcrumbs-item-slash-color;
|
61
|
+
}
|
62
|
+
|
63
|
+
/// Adds styles for a breadcrumbs container, along with the styles for the `<li>` and `<a>` elements inside of it.
|
64
|
+
@mixin breadcrumbs-container {
|
65
|
+
@include clearfix;
|
66
|
+
margin: $breadcrumbs-margin;
|
67
|
+
list-style: none;
|
68
|
+
|
69
|
+
// Item wrapper
|
70
|
+
li {
|
71
|
+
float: #{$global-left};
|
72
|
+
|
73
|
+
font-size: $breadcrumbs-item-font-size;
|
74
|
+
color: $breadcrumbs-item-color-current;
|
75
|
+
cursor: default;
|
76
|
+
|
77
|
+
@if $breadcrumbs-item-uppercase {
|
78
|
+
text-transform: uppercase;
|
79
|
+
}
|
80
|
+
|
81
|
+
@if $breadcrumbs-item-separator {
|
82
|
+
// Need to escape the backslash
|
83
|
+
$separator: if($global-text-direction == 'ltr', $breadcrumbs-item-separator-item, $breadcrumbs-item-separator-item-rtl);
|
84
|
+
|
85
|
+
&:not(:last-child)::after {
|
86
|
+
position: relative;
|
87
|
+
margin: 0 $breadcrumbs-item-margin;
|
88
|
+
opacity: 1;
|
89
|
+
content: $separator;
|
90
|
+
color: $breadcrumbs-item-separator-color;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
@else {
|
94
|
+
margin-#{$global-right}: $breadcrumbs-item-margin;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
// Page links
|
99
|
+
a {
|
100
|
+
color: $breadcrumbs-item-color;
|
101
|
+
|
102
|
+
&:hover {
|
103
|
+
text-decoration: underline;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
@mixin foundation-breadcrumbs {
|
109
|
+
.breadcrumbs {
|
110
|
+
@include breadcrumbs-container;
|
111
|
+
|
112
|
+
.disabled {
|
113
|
+
color: $breadcrumbs-item-color-disabled;
|
114
|
+
cursor: not-allowed;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|