jekyll-theme-pirati 0.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/LICENSE +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +55 -0
- data/_includes/accordeon/accordeon-column.html +8 -0
- data/_includes/accordeon/accordeon.html +12 -0
- data/_includes/article-list/featured_article.html +55 -0
- data/_includes/article-list/list-3col.html +55 -0
- data/_includes/article-list/pagination.html +36 -0
- data/_includes/article-list/standard_article.html +45 -0
- data/_includes/disqus_comments.html +20 -0
- data/_includes/footer.html +23 -0
- data/_includes/google-analytics.html +12 -0
- data/_includes/head.html +60 -0
- data/_includes/header.html +115 -0
- data/_includes/icon-github.html +1 -0
- data/_includes/icon-github.svg +1 -0
- data/_includes/icon-twitter.html +1 -0
- data/_includes/icon-twitter.svg +1 -0
- data/_includes/js/custom.js +245 -0
- data/_includes/js/fb.js +15 -0
- data/_includes/js/main.html +18 -0
- data/_includes/js/piwik.js +11 -0
- data/_includes/js/tw.js +15 -0
- data/_includes/people/item.html +31 -0
- data/_includes/people/list-2col.html +25 -0
- data/_includes/right-bar/bar_cal.html +15 -0
- data/_includes/right-bar/bar_fb.html +23 -0
- data/_includes/right-bar/bar_foto.html +20 -0
- data/_includes/right-bar/bar_map.html +37 -0
- data/_includes/right-bar/bar_people.html +25 -0
- data/_includes/right-bar/bar_program.html +35 -0
- data/_includes/right-bar/bar_teams_summary.html +22 -0
- data/_includes/right-bar/bar_teams_toc.html +31 -0
- data/_includes/right-bar/bar_textbox.html +23 -0
- data/_includes/right-bar/bar_toc.html +77 -0
- data/_includes/right-bar/bar_tw.html +16 -0
- data/_includes/right-bar/bar_video.html +23 -0
- data/_includes/right-bar/rbar.html +39 -0
- data/_includes/right-bar/social-bar.html +16 -0
- data/_includes/social.html +14 -0
- data/_includes/submenu.html +22 -0
- data/_includes/title/title_header.html +9 -0
- data/_layouts/blank.html +14 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +23 -0
- data/_layouts/home.html +34 -0
- data/_layouts/page.html +34 -0
- data/_layouts/post.html +110 -0
- data/_layouts/redirected.html +13 -0
- data/_layouts/team.html +45 -0
- data/_sass/_base.scss +24 -0
- data/_sass/_settings.scss +569 -0
- data/_sass/_sprites.scss +0 -0
- data/_sass/components/BasicPage.scss +464 -0
- data/_sass/components/BlogPosting.scss +274 -0
- data/_sass/components/Person.scss +42 -0
- data/_sass/components/Slider.scss +0 -0
- data/_sass/components/banner.scss +75 -0
- data/_sass/components/blockquote.scss +53 -0
- data/_sass/components/card.scss +154 -0
- data/_sass/components/contact-bar.scss +93 -0
- data/_sass/components/content-card.scss +31 -0
- data/_sass/components/cta-button.scss +54 -0
- data/_sass/components/header-bar.scss +108 -0
- data/_sass/components/hero.scss +164 -0
- data/_sass/components/highlight.scss +60 -0
- data/_sass/components/icon.scss +25 -0
- data/_sass/components/pagination.scss +75 -0
- data/_sass/components/pripoj-se.scss +97 -0
- data/_sass/components/scroll-top.scss +32 -0
- data/_sass/components/simple-accordion.scss +85 -0
- data/_sass/components/tag.scss +30 -0
- data/_sass/components/top-bar.scss +492 -0
- data/_sass/components/top-sub-nav.scss +186 -0
- data/_sass/components/vertical-navigation.scss +68 -0
- data/_sass/components/welcome-header.scss +188 -0
- data/_sass/components/widget-accordion.scss +293 -0
- data/_sass/components/widget-share-box.scss +57 -0
- data/_sass/components/widget-simple-text.scss +15 -0
- data/_sass/foundation/_global.scss +638 -0
- data/_sass/foundation/components/_accordion-menu.scss +32 -0
- data/_sass/foundation/components/_accordion.scss +129 -0
- data/_sass/foundation/components/_badge.scss +55 -0
- data/_sass/foundation/components/_breadcrumbs.scss +95 -0
- data/_sass/foundation/components/_button-group.scss +195 -0
- data/_sass/foundation/components/_button.scss +265 -0
- data/_sass/foundation/components/_callout.scss +105 -0
- data/_sass/foundation/components/_close-button.scss +61 -0
- data/_sass/foundation/components/_drilldown.scss +79 -0
- data/_sass/foundation/components/_dropdown-menu.scss +221 -0
- data/_sass/foundation/components/_dropdown.scss +65 -0
- data/_sass/foundation/components/_flex-video.scss +63 -0
- data/_sass/foundation/components/_flex.scss +28 -0
- data/_sass/foundation/components/_float.scss +27 -0
- data/_sass/foundation/components/_label.scss +55 -0
- data/_sass/foundation/components/_media-object.scss +115 -0
- data/_sass/foundation/components/_menu-icon.scss +9 -0
- data/_sass/foundation/components/_menu.scss +314 -0
- data/_sass/foundation/components/_off-canvas.scss +177 -0
- data/_sass/foundation/components/_orbit.scss +193 -0
- data/_sass/foundation/components/_pagination.scss +162 -0
- data/_sass/foundation/components/_progress-bar.scss +64 -0
- data/_sass/foundation/components/_reveal.scss +172 -0
- data/_sass/foundation/components/_slider.scss +133 -0
- data/_sass/foundation/components/_sticky.scss +38 -0
- data/_sass/foundation/components/_switch.scss +232 -0
- data/_sass/foundation/components/_table.scss +234 -0
- data/_sass/foundation/components/_tabs.scss +165 -0
- data/_sass/foundation/components/_thumbnail.scss +54 -0
- data/_sass/foundation/components/_title-bar.scss +89 -0
- data/_sass/foundation/components/_tooltip.scss +104 -0
- data/_sass/foundation/components/_top-bar.scss +168 -0
- data/_sass/foundation/components/_visibility.scss +132 -0
- data/_sass/foundation/forms/_checkbox.scss +40 -0
- data/_sass/foundation/forms/_error.scss +84 -0
- data/_sass/foundation/forms/_fieldset.scss +54 -0
- data/_sass/foundation/forms/_forms.scss +34 -0
- data/_sass/foundation/forms/_help-text.scss +30 -0
- data/_sass/foundation/forms/_input-group.scss +128 -0
- data/_sass/foundation/forms/_label.scss +48 -0
- data/_sass/foundation/forms/_meter.scss +109 -0
- data/_sass/foundation/forms/_progress.scss +85 -0
- data/_sass/foundation/forms/_range.scss +144 -0
- data/_sass/foundation/forms/_select.scss +67 -0
- data/_sass/foundation/forms/_text.scss +163 -0
- data/_sass/foundation/foundation.scss +102 -0
- data/_sass/foundation/grid/_classes.scss +151 -0
- data/_sass/foundation/grid/_column.scss +126 -0
- data/_sass/foundation/grid/_flex-grid.scss +274 -0
- data/_sass/foundation/grid/_grid.scss +60 -0
- data/_sass/foundation/grid/_gutter.scss +34 -0
- data/_sass/foundation/grid/_layout.scss +51 -0
- data/_sass/foundation/grid/_position.scss +73 -0
- data/_sass/foundation/grid/_row.scss +95 -0
- data/_sass/foundation/grid/_size.scss +24 -0
- data/_sass/foundation/settings/_settings.scss +567 -0
- data/_sass/foundation/typography/_alignment.scss +22 -0
- data/_sass/foundation/typography/_base.scss +443 -0
- data/_sass/foundation/typography/_helpers.scss +77 -0
- data/_sass/foundation/typography/_print.scss +77 -0
- data/_sass/foundation/typography/_typography.scss +28 -0
- data/_sass/foundation/util/_breakpoint.scss +275 -0
- data/_sass/foundation/util/_color.scss +60 -0
- data/_sass/foundation/util/_flex.scss +68 -0
- data/_sass/foundation/util/_mixins.scss +235 -0
- data/_sass/foundation/util/_selector.scss +40 -0
- data/_sass/foundation/util/_unit.scss +90 -0
- data/_sass/foundation/util/_util.scss +11 -0
- data/_sass/foundation/util/_value.scss +107 -0
- data/_sass/main.scss +40 -0
- data/_sass/minima.scss +51 -0
- data/_sass/minima/_base.scss +254 -0
- data/_sass/minima/_layout.scss +255 -0
- data/_sass/minima/_syntax-highlighting.scss +71 -0
- data/_sass/objects/media.scss +55 -0
- data/_sass/objects/section.scss +247 -0
- data/_sass/objects/space.scss +7 -0
- data/_sass/scroll-top.scss +31 -0
- data/_sass/utilities/utilities.scss +190 -0
- data/assets/css/main.scss +110 -0
- data/assets/favicon/apple-touch-icon-114x114.png +0 -0
- data/assets/favicon/apple-touch-icon-120x120.png +0 -0
- data/assets/favicon/apple-touch-icon-144x144.png +0 -0
- data/assets/favicon/apple-touch-icon-152x152.png +0 -0
- data/assets/favicon/apple-touch-icon-57x57.png +0 -0
- data/assets/favicon/apple-touch-icon-60x60.png +0 -0
- data/assets/favicon/apple-touch-icon-72x72.png +0 -0
- data/assets/favicon/apple-touch-icon-76x76.png +0 -0
- data/assets/favicon/favicon-128.png +0 -0
- data/assets/favicon/favicon-16x16.png +0 -0
- data/assets/favicon/favicon-196x196.png +0 -0
- data/assets/favicon/favicon-32x32.png +0 -0
- data/assets/favicon/favicon-96x96.png +0 -0
- data/assets/favicon/favicon.ico +0 -0
- data/assets/favicon/mstile-144x144.png +0 -0
- data/assets/favicon/mstile-150x150.png +0 -0
- data/assets/favicon/mstile-310x150.png +0 -0
- data/assets/favicon/mstile-310x310.png +0 -0
- data/assets/favicon/mstile-70x70.png +0 -0
- data/assets/fonts/bebasneue_regular-webfont.eot +0 -0
- data/assets/fonts/bebasneue_regular-webfont.svg +3906 -0
- data/assets/fonts/bebasneue_regular-webfont.ttf +0 -0
- data/assets/fonts/bebasneue_regular-webfont.woff +0 -0
- data/assets/fonts/bebasneue_regular-webfont.woff2 +0 -0
- data/assets/icons/blog.png +0 -0
- data/assets/icons/compass.png +0 -0
- data/assets/icons/facebook.png +0 -0
- data/assets/icons/github.png +0 -0
- data/assets/icons/googleplus.png +0 -0
- data/assets/icons/instagram.png +0 -0
- data/assets/icons/linkedin.png +0 -0
- data/assets/icons/pinterest.png +0 -0
- data/assets/icons/piratewiki.png +0 -0
- data/assets/icons/redmine.png +0 -0
- data/assets/icons/twitter.png +0 -0
- data/assets/icons/vkontakte.png +0 -0
- data/assets/icons/youtube.png +0 -0
- data/assets/img/brand/logo-group.png +0 -0
- data/assets/img/brand/logo-group.svg +27 -0
- data/assets/img/brand/logo-round.png +0 -0
- data/assets/img/brand/logo-round.svg +104 -0
- data/assets/img/brand/logo.ai +5083 -16
- data/assets/img/brand/logo.pdf +1405 -4
- data/assets/img/brand/logo.png +0 -0
- data/assets/img/brand/logo.svg +10 -0
- data/assets/img/brand/logo_easy.png +0 -0
- data/assets/img/brand/logo_napis.ai +5003 -21
- data/assets/img/brand/logo_napis.pdf +1482 -3
- data/assets/img/brand/logo_napis.png +0 -0
- data/assets/img/brand/logo_napis.svg +48 -0
- data/assets/img/brand/logo_napis_male.png +0 -0
- data/assets/img/brand/logo_napis_white.ai +5106 -16
- data/assets/img/brand/logo_napis_white.pdf +1532 -2
- data/assets/img/brand/logo_napis_white.png +0 -0
- data/assets/img/brand/logo_napis_white.svg +51 -0
- data/assets/img/brand/logo_white.ai +5194 -23
- data/assets/img/brand/logo_white.pdf +1388 -4
- data/assets/img/brand/logo_white.png +0 -0
- data/assets/img/brand/logo_white.svg +14 -0
- data/assets/img/brand/logotyp_email.png +0 -0
- data/assets/img/brand/logow.svg +19 -0
- data/assets/img/header/background.jpg +0 -0
- data/assets/img/people/jakub-pirat.jpg +0 -0
- data/assets/img/posts/obrazek.u.tohoto.postu.jpg +0 -0
- data/assets/img/tiles/lightGrey.png +0 -0
- data/assets/img/tiles/tableOfContent.png +0 -0
- data/assets/js/common-libs.min.js +1 -0
- data/assets/js/custom.min.js +1 -0
- data/assets/people/piratska-strana.png +0 -0
- data/assets/people/ppp.jpg +0 -0
- metadata +316 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
// Foundation for Sites by ZURB
|
|
2
|
+
// foundation.zurb.com
|
|
3
|
+
// Licensed under MIT Open Source
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// @group button
|
|
7
|
+
////
|
|
8
|
+
|
|
9
|
+
/// Padding inside buttons.
|
|
10
|
+
/// @type List
|
|
11
|
+
$button-padding: 0.85em 1em !default;
|
|
12
|
+
|
|
13
|
+
/// Margin around buttons.
|
|
14
|
+
/// @type List
|
|
15
|
+
$button-margin: 0 0 $global-margin 0 !default;
|
|
16
|
+
|
|
17
|
+
/// Default fill for buttons. Can either be `solid` or `hollow`.
|
|
18
|
+
/// @type Keyword
|
|
19
|
+
$button-fill: solid !default;
|
|
20
|
+
|
|
21
|
+
/// Default background color for buttons.
|
|
22
|
+
/// @type Color
|
|
23
|
+
$button-background: $primary-color !default;
|
|
24
|
+
|
|
25
|
+
/// Background color on hover for buttons.
|
|
26
|
+
/// @type Color
|
|
27
|
+
$button-background-hover: scale-color($button-background, $lightness: -15%) !default;
|
|
28
|
+
|
|
29
|
+
/// Font color for buttons.
|
|
30
|
+
/// @type List
|
|
31
|
+
$button-color: $white !default;
|
|
32
|
+
|
|
33
|
+
/// Font color for buttons, if the background is light.
|
|
34
|
+
/// @type List
|
|
35
|
+
$button-color-alt: $black !default;
|
|
36
|
+
|
|
37
|
+
/// Border radius for buttons, defaulted to global-radius.
|
|
38
|
+
/// @type Number
|
|
39
|
+
$button-radius: $global-radius !default;
|
|
40
|
+
|
|
41
|
+
/// Sizes for buttons.
|
|
42
|
+
/// @type Map
|
|
43
|
+
$button-sizes: (
|
|
44
|
+
tiny: 0.6rem,
|
|
45
|
+
small: 0.75rem,
|
|
46
|
+
default: 0.9rem,
|
|
47
|
+
large: 1.25rem,
|
|
48
|
+
) !default;
|
|
49
|
+
|
|
50
|
+
/// opacity for a disabled button.
|
|
51
|
+
/// @type List
|
|
52
|
+
$button-opacity-disabled: 0.25 !default;
|
|
53
|
+
|
|
54
|
+
// Internal: flip from margin-right to margin-left for defaults
|
|
55
|
+
@if $global-text-direction == 'rtl' {
|
|
56
|
+
$button-margin: 0 0 $global-margin $global-margin !default;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// TODO: Document button-base() mixin
|
|
60
|
+
@mixin button-base {
|
|
61
|
+
@include disable-mouse-outline;
|
|
62
|
+
display: inline-block;
|
|
63
|
+
text-align: center;
|
|
64
|
+
line-height: 1;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
-webkit-appearance: none;
|
|
67
|
+
transition: background-color 0.25s ease-out, color 0.25s ease-out;
|
|
68
|
+
vertical-align: middle;
|
|
69
|
+
border: 1px solid transparent;
|
|
70
|
+
border-radius: $button-radius;
|
|
71
|
+
padding: $button-padding;
|
|
72
|
+
margin: $button-margin;
|
|
73
|
+
font-size: map-get($button-sizes, default);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/// Expands a button to make it full-width.
|
|
77
|
+
/// @param {Boolean} $expand [true] - Set to `true` to enable the expand behavior. Set to `false` to reverse this behavior.
|
|
78
|
+
@mixin button-expand($expand: true) {
|
|
79
|
+
@if $expand {
|
|
80
|
+
display: block;
|
|
81
|
+
width: 100%;
|
|
82
|
+
margin-left: 0;
|
|
83
|
+
margin-right: 0;
|
|
84
|
+
}
|
|
85
|
+
@else {
|
|
86
|
+
display: inline-block;
|
|
87
|
+
width: auto;
|
|
88
|
+
margin: $button-margin;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/// Sets the visual style of a button.
|
|
93
|
+
/// @param {Color} $background [$button-background] - Background color of the button.
|
|
94
|
+
/// @param {Color} $background-hover [$button-background-hover] - Background color of the button on hover. Set to `auto` to have the mixin automatically generate a hover color.
|
|
95
|
+
/// @param {Color} $color [$button-color] - Text color of the button. Set to `auto` to automatically generate a color based on the background color.
|
|
96
|
+
@mixin button-style(
|
|
97
|
+
$background: $button-background,
|
|
98
|
+
$background-hover: $button-background-hover,
|
|
99
|
+
$color: $button-color
|
|
100
|
+
) {
|
|
101
|
+
@if $color == auto {
|
|
102
|
+
$color: foreground($background, $button-color-alt, $button-color);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@if $background-hover == auto {
|
|
106
|
+
$background-hover: scale-color($background, $lightness: -20%);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
background-color: $background;
|
|
110
|
+
color: $color;
|
|
111
|
+
|
|
112
|
+
&:hover, &:focus {
|
|
113
|
+
background-color: $background-hover;
|
|
114
|
+
color: $color;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/// Removes background fill on hover and focus for hollow buttons.
|
|
119
|
+
@mixin button-hollow {
|
|
120
|
+
&,
|
|
121
|
+
&:hover, &:focus {
|
|
122
|
+
background-color: transparent;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@mixin button-hollow-style($color: $primary-color) {
|
|
127
|
+
$color-hover: scale-color($color, $lightness: -50%);
|
|
128
|
+
|
|
129
|
+
border: 1px solid $color;
|
|
130
|
+
color: $color;
|
|
131
|
+
|
|
132
|
+
&:hover, &:focus {
|
|
133
|
+
border-color: $color-hover;
|
|
134
|
+
color: $color-hover;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/// Adds disabled styles to a button by fading the element, reseting the cursor, and disabling pointer events.
|
|
139
|
+
@mixin button-disabled {
|
|
140
|
+
opacity: $button-opacity-disabled;
|
|
141
|
+
cursor: not-allowed;
|
|
142
|
+
|
|
143
|
+
&:hover, &:focus {
|
|
144
|
+
background-color: $button-background;
|
|
145
|
+
color: $button-color;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/// Adds a dropdown arrow to a button.
|
|
150
|
+
/// @param {Number} $size [0.4em] - Size of the arrow. We recommend using an `em` value so the triangle scales when used inside different sizes of buttons.
|
|
151
|
+
/// @param {Color} $color [white] - Color of the arrow.
|
|
152
|
+
/// @param {Number} $offset [$button-padding] - Distance between the arrow and the text of the button. Defaults to whatever the right padding of a button is.
|
|
153
|
+
@mixin button-dropdown(
|
|
154
|
+
$size: 0.4em,
|
|
155
|
+
$color: $white,
|
|
156
|
+
$offset: get-side($button-padding, right)
|
|
157
|
+
) {
|
|
158
|
+
&::after {
|
|
159
|
+
@include css-triangle($size, $color, down);
|
|
160
|
+
position: relative;
|
|
161
|
+
top: 0.4em; // Aligns the arrow with the text of the button
|
|
162
|
+
float: #{$global-right};
|
|
163
|
+
margin-#{$global-left}: get-side($button-padding, right);
|
|
164
|
+
display: inline-block;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/// Adds all styles for a button. For more granular control over styles, use the individual button mixins.
|
|
169
|
+
/// @param {Boolean} $expand [false] - Set to `true` to make the button full-width.
|
|
170
|
+
/// @param {Color} $background [$button-background] - Background color of the button.
|
|
171
|
+
/// @param {Color} $background-hover [$button-background-hover] - Background color of the button on hover. Set to `auto` to have the mixin automatically generate a hover color.
|
|
172
|
+
/// @param {Color} $color [$button-color] - Text color of the button. Set to `auto` to automatically generate a color based on the background color.
|
|
173
|
+
/// @param {Keyword} $style [solid] - Set to `hollow` to create a hollow button. The color defined in `$background` will be used as the primary color of the button.
|
|
174
|
+
@mixin button(
|
|
175
|
+
$expand: false,
|
|
176
|
+
$background: $button-background,
|
|
177
|
+
$background-hover: $button-background-hover,
|
|
178
|
+
$color: $button-color,
|
|
179
|
+
$style: $button-fill
|
|
180
|
+
) {
|
|
181
|
+
@include button-base;
|
|
182
|
+
|
|
183
|
+
@if $style == solid {
|
|
184
|
+
@include button-style($background, $background-hover, $color);
|
|
185
|
+
}
|
|
186
|
+
@else if $style == hollow {
|
|
187
|
+
@include button-hollow;
|
|
188
|
+
@include button-hollow-style($background);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@if $expand {
|
|
192
|
+
@include button-expand;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
@mixin foundation-button {
|
|
197
|
+
.button {
|
|
198
|
+
@include button;
|
|
199
|
+
|
|
200
|
+
// Sizes
|
|
201
|
+
@each $size, $value in map-remove($button-sizes, default) {
|
|
202
|
+
&.#{$size} {
|
|
203
|
+
font-size: $value;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&.expanded { @include button-expand; }
|
|
208
|
+
|
|
209
|
+
// Colors
|
|
210
|
+
@each $name, $color in $foundation-palette {
|
|
211
|
+
@if $button-fill != hollow {
|
|
212
|
+
&.#{$name} {
|
|
213
|
+
@include button-style($color, auto, auto);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
@else {
|
|
217
|
+
&.#{$name} {
|
|
218
|
+
@include button-hollow-style($color);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&.#{$name}.dropdown::after {
|
|
222
|
+
border-top-color: $color;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// Hollow style
|
|
228
|
+
@if $button-fill != hollow {
|
|
229
|
+
&.hollow {
|
|
230
|
+
@include button-hollow;
|
|
231
|
+
@include button-hollow-style;
|
|
232
|
+
|
|
233
|
+
@each $name, $color in $foundation-palette {
|
|
234
|
+
&.#{$name} {
|
|
235
|
+
@include button-hollow-style($color);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// Disabled style
|
|
242
|
+
&.disabled,
|
|
243
|
+
&[disabled] {
|
|
244
|
+
@include button-disabled;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// Dropdown arrow
|
|
248
|
+
&.dropdown {
|
|
249
|
+
@include button-dropdown;
|
|
250
|
+
|
|
251
|
+
@if $button-fill == hollow {
|
|
252
|
+
&::after {
|
|
253
|
+
border-top-color: $button-background;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// Button with dropdown arrow only
|
|
259
|
+
&.arrow-only::after {
|
|
260
|
+
margin-#{$global-left}: 0;
|
|
261
|
+
float: none;
|
|
262
|
+
top: -0.1em;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// Foundation for Sites by ZURB
|
|
2
|
+
// foundation.zurb.com
|
|
3
|
+
// Licensed under MIT Open Source
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// @group callout
|
|
7
|
+
////
|
|
8
|
+
|
|
9
|
+
/// Default background color.
|
|
10
|
+
/// @type Color
|
|
11
|
+
$callout-background: $white !default;
|
|
12
|
+
|
|
13
|
+
/// Default fade value for callout backgrounds.
|
|
14
|
+
/// @type Number
|
|
15
|
+
$callout-background-fade: 85% !default;
|
|
16
|
+
|
|
17
|
+
/// Default border style for callouts.
|
|
18
|
+
/// @type List
|
|
19
|
+
$callout-border: 1px solid rgba($black, 0.25) !default;
|
|
20
|
+
|
|
21
|
+
/// Default bottom margin for callouts.
|
|
22
|
+
/// @type Number
|
|
23
|
+
$callout-margin: 0 0 1rem 0 !default;
|
|
24
|
+
|
|
25
|
+
/// Default inner padding for callouts.
|
|
26
|
+
/// @type Number
|
|
27
|
+
$callout-padding: 1rem !default;
|
|
28
|
+
|
|
29
|
+
/// Default font color for callouts.
|
|
30
|
+
/// @type Color
|
|
31
|
+
$callout-font-color: $body-font-color !default;
|
|
32
|
+
|
|
33
|
+
/// Default font color for callouts, if the callout has a dark background.
|
|
34
|
+
/// @type Color
|
|
35
|
+
$callout-font-color-alt: $body-background !default;
|
|
36
|
+
|
|
37
|
+
/// Default border radius for callouts.
|
|
38
|
+
/// @type Color
|
|
39
|
+
$callout-radius: $global-radius !default;
|
|
40
|
+
|
|
41
|
+
/// Amount to tint links used within colored panels. Set to `false` to disable this feature.
|
|
42
|
+
/// @type Number | Boolean
|
|
43
|
+
$callout-link-tint: 30% !default;
|
|
44
|
+
|
|
45
|
+
/// Adds basic styles for a callout, including padding and margin.
|
|
46
|
+
@mixin callout-base() {
|
|
47
|
+
margin: $callout-margin;
|
|
48
|
+
padding: $callout-padding;
|
|
49
|
+
border: $callout-border;
|
|
50
|
+
border-radius: $callout-radius;
|
|
51
|
+
position: relative;
|
|
52
|
+
color: $callout-font-color;
|
|
53
|
+
|
|
54
|
+
// Respect the padding, fool.
|
|
55
|
+
> :first-child {
|
|
56
|
+
margin-top: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
> :last-child {
|
|
60
|
+
margin-bottom: 0;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/// Generate quick styles for a callout using a single color as a baseline.
|
|
65
|
+
/// @param {Color} $color [$callout-background] - Color to use.
|
|
66
|
+
@mixin callout-style($color: $callout-background) {
|
|
67
|
+
$background: scale-color($color, $lightness: $callout-background-fade);
|
|
68
|
+
|
|
69
|
+
background-color: $background;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@mixin callout-size($padding) {
|
|
73
|
+
padding-top: $padding;
|
|
74
|
+
padding-right: $padding;
|
|
75
|
+
padding-bottom: $padding;
|
|
76
|
+
padding-left: $padding;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/// Adds styles for a callout.
|
|
81
|
+
/// @param {Color} $color [$callout-background] - Color to use.
|
|
82
|
+
@mixin callout($color: $callout-background) {
|
|
83
|
+
@include callout-base;
|
|
84
|
+
@include callout-style($color);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@mixin foundation-callout {
|
|
88
|
+
.callout {
|
|
89
|
+
@include callout;
|
|
90
|
+
|
|
91
|
+
@each $name, $color in $foundation-palette {
|
|
92
|
+
&.#{$name} {
|
|
93
|
+
@include callout-style($color);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.small {
|
|
98
|
+
@include callout-size(0.5rem);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.large {
|
|
102
|
+
@include callout-size(3rem);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// Foundation for Sites by ZURB
|
|
2
|
+
// foundation.zurb.com
|
|
3
|
+
// Licensed under MIT Open Source
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// @group close-button
|
|
7
|
+
////
|
|
8
|
+
|
|
9
|
+
/// Default position of the close button. The first value should be `right` or `left`, and the second value should be `top` or `bottom`.
|
|
10
|
+
/// @type List
|
|
11
|
+
$closebutton-position: right top !default;
|
|
12
|
+
|
|
13
|
+
/// Right (or left) offset for a close button.
|
|
14
|
+
/// @type Number
|
|
15
|
+
$closebutton-offset-horizontal: 1rem !default;
|
|
16
|
+
|
|
17
|
+
/// Top (or bottom) offset for a close button.
|
|
18
|
+
/// @type Number
|
|
19
|
+
$closebutton-offset-vertical: 0.5rem !default;
|
|
20
|
+
|
|
21
|
+
/// Default font size of the close button.
|
|
22
|
+
/// @type Number
|
|
23
|
+
$closebutton-size: 2em !default;
|
|
24
|
+
|
|
25
|
+
/// The line-height of the close button. It affects the spacing of the element.
|
|
26
|
+
/// @type Number
|
|
27
|
+
$closebutton-lineheight: 1 !default;
|
|
28
|
+
|
|
29
|
+
/// Default color of the close button.
|
|
30
|
+
/// @type Color
|
|
31
|
+
$closebutton-color: $dark-gray !default;
|
|
32
|
+
|
|
33
|
+
/// Default color of the close button when being hovered on.
|
|
34
|
+
/// @type Color
|
|
35
|
+
$closebutton-color-hover: $black !default;
|
|
36
|
+
|
|
37
|
+
/// Adds styles for a close button, using the styles in the settings variables.
|
|
38
|
+
@mixin close-button {
|
|
39
|
+
$x: nth($closebutton-position, 1);
|
|
40
|
+
$y: nth($closebutton-position, 2);
|
|
41
|
+
|
|
42
|
+
@include disable-mouse-outline;
|
|
43
|
+
position: absolute;
|
|
44
|
+
color: $closebutton-color;
|
|
45
|
+
#{$x}: $closebutton-offset-horizontal;
|
|
46
|
+
#{$y}: $closebutton-offset-vertical;
|
|
47
|
+
font-size: $closebutton-size;
|
|
48
|
+
line-height: $closebutton-lineheight;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
|
|
51
|
+
&:hover,
|
|
52
|
+
&:focus {
|
|
53
|
+
color: $closebutton-color-hover;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin foundation-close-button {
|
|
58
|
+
.close-button {
|
|
59
|
+
@include close-button;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// Foundation for Sites by ZURB
|
|
2
|
+
// foundation.zurb.com
|
|
3
|
+
// Licensed under MIT Open Source
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// @group drilldown
|
|
7
|
+
////
|
|
8
|
+
|
|
9
|
+
/// Transition property to use for animating menus.
|
|
10
|
+
/// @type Transition
|
|
11
|
+
$drilldown-transition: transform 0.15s linear !default;
|
|
12
|
+
|
|
13
|
+
/// Adds arrows to drilldown items with submenus, as well as the back button.
|
|
14
|
+
/// @type Boolean
|
|
15
|
+
$drilldown-arrows: true !default;
|
|
16
|
+
|
|
17
|
+
/// Sets drilldown arrow color if arrow is used.
|
|
18
|
+
/// @type Color
|
|
19
|
+
$drilldown-arrow-color: $primary-color !default;
|
|
20
|
+
|
|
21
|
+
/// Background color for drilldown submenus.
|
|
22
|
+
/// @type Color
|
|
23
|
+
$drilldown-background: $white !default;
|
|
24
|
+
|
|
25
|
+
@mixin foundation-drilldown-menu {
|
|
26
|
+
// Applied to the Menu container
|
|
27
|
+
.is-drilldown {
|
|
28
|
+
position: relative;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
|
|
31
|
+
li {
|
|
32
|
+
display: block !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Applied to nested <ul>s
|
|
37
|
+
.is-drilldown-submenu {
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 0;
|
|
40
|
+
#{$global-left}: 100%;
|
|
41
|
+
z-index: -1;
|
|
42
|
+
height: 100%;
|
|
43
|
+
width: 100%;
|
|
44
|
+
background: $drilldown-background;
|
|
45
|
+
transition: $drilldown-transition;
|
|
46
|
+
|
|
47
|
+
&.is-active {
|
|
48
|
+
z-index: 1;
|
|
49
|
+
display: block;
|
|
50
|
+
transform: translateX(if($global-text-direction == ltr, -100%, 100%));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.is-closing {
|
|
54
|
+
transform: translateX(if($global-text-direction == ltr, 100%, -100%));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@if $drilldown-arrows {
|
|
59
|
+
.is-drilldown-submenu-parent > a {
|
|
60
|
+
position: relative;
|
|
61
|
+
|
|
62
|
+
&::after {
|
|
63
|
+
@include css-triangle(6px, $drilldown-arrow-color, $global-right);
|
|
64
|
+
position: absolute;
|
|
65
|
+
top: 50%;
|
|
66
|
+
margin-top: -6px;
|
|
67
|
+
#{$global-right}: 1rem;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.js-drilldown-back > a::before {
|
|
72
|
+
@include css-triangle(6px, $drilldown-arrow-color, $global-left);
|
|
73
|
+
border-#{$global-left}-width: 0;
|
|
74
|
+
display: inline-block;
|
|
75
|
+
vertical-align: middle;
|
|
76
|
+
margin-#{$global-right}: 0.75rem; // Creates space between the arrow and the text
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|