jekyll-theme-pirati 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -17
- data/_data/menu.yml +53 -0
- data/_includes/candidate_badge.html +6 -15
- data/_includes/footer.html +92 -12
- data/_includes/head.html +24 -25
- data/_includes/header.html +14 -14
- data/_includes/js/main.html +71 -14
- data/_includes/menu.html +43 -51
- data/_includes/people/profile_badge.html +1 -3
- data/_includes/right-bar/bar_cal.html +4 -6
- data/_includes/right-bar/bar_fb.html +3 -3
- data/_includes/right-bar/bar_garant.html +3 -2
- data/_includes/right-bar/bar_people.html +21 -18
- data/_includes/right-bar/bar_person_contact.html +11 -55
- data/_includes/right-bar/rbar.html +3 -3
- data/_layouts/komunalni-volby.html +9 -7
- data/_sass/_base.scss +114 -1
- data/_sass/_settings.scss +1 -1
- data/_sass/components/BasicPage.scss +6 -1
- data/_sass/components/hero.scss +2 -2
- data/_sass/components/icon.scss +5 -1
- data/_sass/components/program.scss +5 -1
- data/_sass/components/top-bar.scss +236 -491
- data/_sass/components/top-sub-nav.scss +1 -1
- data/_sass/objects/media.scss +46 -38
- data/_sass/utilities/utilities.scss +6 -6
- data/assets/css/main.scss +40 -106
- data/assets/js/apps.js +8 -0
- data/assets/js/apps/scroll-top/ScrollTop.vue +83 -0
- data/assets/js/apps/scroll-top/index.js +9 -0
- data/assets/js/apps/site-search/SiteSearch.vue +85 -0
- data/assets/js/apps/site-search/SiteSearchItemTemplate.vue +29 -0
- data/assets/js/apps/site-search/index.js +14 -0
- data/assets/js/index.js +52 -0
- metadata +9 -91
- data/_includes/js/custom.js +0 -245
- data/_includes/js/fb.js +0 -15
- data/_includes/js/piwik.js +0 -11
- data/_includes/js/tw.js +0 -15
- data/_includes/people/item.html +0 -49
- data/_includes/people/list-2col.html +0 -24
- data/_includes/people/list-group.html +0 -12
- data/_includes/title/title_header.html +0 -9
- data/_sass/components/scroll-top.scss +0 -32
- data/_sass/components/welcome-header.scss +0 -188
- data/_sass/foundation/_global.scss +0 -638
- data/_sass/foundation/components/_accordion-menu.scss +0 -32
- data/_sass/foundation/components/_accordion.scss +0 -129
- data/_sass/foundation/components/_badge.scss +0 -55
- data/_sass/foundation/components/_breadcrumbs.scss +0 -95
- data/_sass/foundation/components/_button-group.scss +0 -195
- data/_sass/foundation/components/_button.scss +0 -265
- data/_sass/foundation/components/_callout.scss +0 -105
- data/_sass/foundation/components/_close-button.scss +0 -61
- data/_sass/foundation/components/_drilldown.scss +0 -79
- data/_sass/foundation/components/_dropdown-menu.scss +0 -221
- data/_sass/foundation/components/_dropdown.scss +0 -65
- data/_sass/foundation/components/_flex-video.scss +0 -63
- data/_sass/foundation/components/_flex.scss +0 -28
- data/_sass/foundation/components/_float.scss +0 -27
- data/_sass/foundation/components/_label.scss +0 -55
- data/_sass/foundation/components/_media-object.scss +0 -115
- data/_sass/foundation/components/_menu-icon.scss +0 -9
- data/_sass/foundation/components/_menu.scss +0 -314
- data/_sass/foundation/components/_off-canvas.scss +0 -177
- data/_sass/foundation/components/_orbit.scss +0 -193
- data/_sass/foundation/components/_pagination.scss +0 -162
- data/_sass/foundation/components/_progress-bar.scss +0 -64
- data/_sass/foundation/components/_reveal.scss +0 -172
- data/_sass/foundation/components/_slider.scss +0 -133
- data/_sass/foundation/components/_sticky.scss +0 -38
- data/_sass/foundation/components/_switch.scss +0 -232
- data/_sass/foundation/components/_table.scss +0 -234
- data/_sass/foundation/components/_tabs.scss +0 -165
- data/_sass/foundation/components/_thumbnail.scss +0 -54
- data/_sass/foundation/components/_title-bar.scss +0 -89
- data/_sass/foundation/components/_tooltip.scss +0 -104
- data/_sass/foundation/components/_top-bar.scss +0 -168
- data/_sass/foundation/components/_visibility.scss +0 -132
- data/_sass/foundation/forms/_checkbox.scss +0 -40
- data/_sass/foundation/forms/_error.scss +0 -84
- data/_sass/foundation/forms/_fieldset.scss +0 -54
- data/_sass/foundation/forms/_forms.scss +0 -34
- data/_sass/foundation/forms/_help-text.scss +0 -30
- data/_sass/foundation/forms/_input-group.scss +0 -128
- data/_sass/foundation/forms/_label.scss +0 -48
- data/_sass/foundation/forms/_meter.scss +0 -109
- data/_sass/foundation/forms/_progress.scss +0 -85
- data/_sass/foundation/forms/_range.scss +0 -144
- data/_sass/foundation/forms/_select.scss +0 -67
- data/_sass/foundation/forms/_text.scss +0 -163
- data/_sass/foundation/foundation.scss +0 -102
- data/_sass/foundation/grid/_classes.scss +0 -151
- data/_sass/foundation/grid/_column.scss +0 -126
- data/_sass/foundation/grid/_flex-grid.scss +0 -274
- data/_sass/foundation/grid/_grid.scss +0 -60
- data/_sass/foundation/grid/_gutter.scss +0 -34
- data/_sass/foundation/grid/_layout.scss +0 -51
- data/_sass/foundation/grid/_position.scss +0 -73
- data/_sass/foundation/grid/_row.scss +0 -95
- data/_sass/foundation/grid/_size.scss +0 -24
- data/_sass/foundation/settings/_settings.scss +0 -567
- data/_sass/foundation/typography/_alignment.scss +0 -22
- data/_sass/foundation/typography/_base.scss +0 -443
- data/_sass/foundation/typography/_helpers.scss +0 -77
- data/_sass/foundation/typography/_print.scss +0 -77
- data/_sass/foundation/typography/_typography.scss +0 -28
- data/_sass/foundation/util/_breakpoint.scss +0 -275
- data/_sass/foundation/util/_color.scss +0 -60
- data/_sass/foundation/util/_flex.scss +0 -68
- data/_sass/foundation/util/_mixins.scss +0 -235
- data/_sass/foundation/util/_selector.scss +0 -40
- data/_sass/foundation/util/_unit.scss +0 -90
- data/_sass/foundation/util/_util.scss +0 -11
- data/_sass/foundation/util/_value.scss +0 -107
- data/_sass/jquery-ui.scss +0 -1311
- data/_sass/main.scss +0 -41
- data/_sass/minima.scss +0 -51
- data/_sass/minima/_base.scss +0 -254
- data/_sass/minima/_layout.scss +0 -255
- data/_sass/minima/_syntax-highlighting.scss +0 -71
- data/_sass/scroll-top.scss +0 -31
- data/assets/js/common-libs.min.js +0 -1
- data/assets/js/custom.min.js +0 -1
- data/assets/snippet/profile.html +0 -19
@@ -1,193 +0,0 @@
|
|
1
|
-
// Foundation for Sites by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
////
|
6
|
-
/// @group orbit
|
7
|
-
////
|
8
|
-
|
9
|
-
/// Default color for Orbit's bullets.
|
10
|
-
/// @type Color
|
11
|
-
$orbit-bullet-background: $medium-gray !default;
|
12
|
-
|
13
|
-
/// Default active color for Orbit's bullets.
|
14
|
-
/// @type Color
|
15
|
-
$orbit-bullet-background-active: $dark-gray !default;
|
16
|
-
|
17
|
-
/// Default diameter for Orbit's bullets.
|
18
|
-
/// @type Number
|
19
|
-
$orbit-bullet-diameter: 1.2rem !default;
|
20
|
-
|
21
|
-
/// Default margin between Orbit's bullets.
|
22
|
-
/// @type Number
|
23
|
-
$orbit-bullet-margin: 0.1rem !default;
|
24
|
-
|
25
|
-
/// Default distance from slide region for Orbit's bullets.
|
26
|
-
/// @type Number
|
27
|
-
$orbit-bullet-margin-top: 0.8rem !default;
|
28
|
-
|
29
|
-
/// Default bottom margin from Orbit's bullets to whatever content may lurk below it.
|
30
|
-
/// @type Number
|
31
|
-
$orbit-bullet-margin-bottom: 0.8rem !default;
|
32
|
-
|
33
|
-
/// Default background color for Orbit's caption.
|
34
|
-
/// @type Color
|
35
|
-
$orbit-caption-background: rgba($black, 0.5) !default;
|
36
|
-
|
37
|
-
/// Default padding for Orbit's caption.
|
38
|
-
/// @type Number
|
39
|
-
$orbit-caption-padding: 1rem !default;
|
40
|
-
|
41
|
-
/// Default background color for Orbit's controls when hovered.
|
42
|
-
/// @type Color
|
43
|
-
$orbit-control-background-hover: rgba($black, 0.5) !default;
|
44
|
-
|
45
|
-
/// Default padding for Orbit's controls.
|
46
|
-
/// @type Number
|
47
|
-
$orbit-control-padding: 1rem !default;
|
48
|
-
|
49
|
-
/// Default z-index for Orbit's controls.
|
50
|
-
/// @type Number
|
51
|
-
$orbit-control-zindex: 10 !default;
|
52
|
-
|
53
|
-
/// Adds styles for the outer Orbit wrapper. These styles are used on the `.orbit` class.
|
54
|
-
@mixin orbit-wrapper {
|
55
|
-
position: relative;
|
56
|
-
}
|
57
|
-
|
58
|
-
/// Adds styles for the inner Orbit slide container. These styles are used on the `.orbit-container` class.
|
59
|
-
@mixin orbit-container {
|
60
|
-
position: relative;
|
61
|
-
margin: 0;
|
62
|
-
overflow: hidden;
|
63
|
-
list-style: none;
|
64
|
-
}
|
65
|
-
|
66
|
-
/// Adds styles for the individual slides of an Orbit slider. These styles are used on the `.orbit-slide` class.
|
67
|
-
@mixin orbit-slide {
|
68
|
-
width: 100%;
|
69
|
-
max-height: 100%;
|
70
|
-
|
71
|
-
&.no-motionui {
|
72
|
-
&.is-active {
|
73
|
-
top: 0;
|
74
|
-
left: 0;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
|
-
@mixin orbit-figure {
|
80
|
-
margin: 0;
|
81
|
-
}
|
82
|
-
|
83
|
-
@mixin orbit-image {
|
84
|
-
margin: 0;
|
85
|
-
width: 100%;
|
86
|
-
max-width: 100%;
|
87
|
-
}
|
88
|
-
|
89
|
-
/// Adds styles for an orbit slide caption. These styles are used on the `.orbit-caption` class.
|
90
|
-
@mixin orbit-caption {
|
91
|
-
position: absolute;
|
92
|
-
bottom: 0;
|
93
|
-
width: 100%;
|
94
|
-
padding: $orbit-caption-padding;
|
95
|
-
margin-bottom: 0;
|
96
|
-
color: foreground($orbit-caption-background);
|
97
|
-
background-color: $orbit-caption-background;
|
98
|
-
}
|
99
|
-
|
100
|
-
/// Adds base styles for the next/previous buttons in an Orbit slider. These styles are shared between the `.orbit-next` and `.orbit-previous` classes in the default CSS.
|
101
|
-
@mixin orbit-control {
|
102
|
-
@include disable-mouse-outline;
|
103
|
-
@include vertical-center;
|
104
|
-
z-index: $orbit-control-zindex;
|
105
|
-
padding: $orbit-control-padding;
|
106
|
-
color: $white;
|
107
|
-
|
108
|
-
&:hover,
|
109
|
-
&:active,
|
110
|
-
&:focus {
|
111
|
-
background-color: $orbit-control-background-hover;
|
112
|
-
}
|
113
|
-
}
|
114
|
-
|
115
|
-
/// Adds styles for the Orbit previous button. These styles are used on the `.orbit-previous` class.
|
116
|
-
@mixin orbit-previous {
|
117
|
-
#{$global-left}: 0;
|
118
|
-
}
|
119
|
-
|
120
|
-
/// Adds styles for the Orbit next button. These styles are used on the `.orbit-next` class.
|
121
|
-
@mixin orbit-next {
|
122
|
-
#{$global-left}: auto;
|
123
|
-
#{$global-right}: 0;
|
124
|
-
}
|
125
|
-
|
126
|
-
/// Adds styles for a container of Orbit bullets. /// Adds styles for the Orbit previous button. These styles are used on the `.orbit-bullets` class.
|
127
|
-
@mixin orbit-bullets {
|
128
|
-
@include disable-mouse-outline;
|
129
|
-
position: relative;
|
130
|
-
margin-top: $orbit-bullet-margin-top;
|
131
|
-
margin-bottom: $orbit-bullet-margin-bottom;
|
132
|
-
text-align: center;
|
133
|
-
|
134
|
-
button {
|
135
|
-
width: $orbit-bullet-diameter;
|
136
|
-
height: $orbit-bullet-diameter;
|
137
|
-
margin: $orbit-bullet-margin;
|
138
|
-
background-color: $orbit-bullet-background;
|
139
|
-
border-radius: 50%;
|
140
|
-
|
141
|
-
&:hover {
|
142
|
-
background-color: $orbit-bullet-background-active;
|
143
|
-
}
|
144
|
-
|
145
|
-
&.is-active {
|
146
|
-
background-color: $orbit-bullet-background-active;
|
147
|
-
}
|
148
|
-
}
|
149
|
-
}
|
150
|
-
|
151
|
-
@mixin foundation-orbit {
|
152
|
-
.orbit {
|
153
|
-
@include orbit-wrapper;
|
154
|
-
}
|
155
|
-
|
156
|
-
.orbit-container {
|
157
|
-
@include orbit-container;
|
158
|
-
}
|
159
|
-
|
160
|
-
.orbit-slide {
|
161
|
-
@include orbit-slide;
|
162
|
-
}
|
163
|
-
|
164
|
-
.orbit-figure {
|
165
|
-
@include orbit-figure;
|
166
|
-
}
|
167
|
-
|
168
|
-
.orbit-image {
|
169
|
-
@include orbit-image;
|
170
|
-
}
|
171
|
-
|
172
|
-
.orbit-caption {
|
173
|
-
@include orbit-caption;
|
174
|
-
}
|
175
|
-
|
176
|
-
%orbit-control {
|
177
|
-
@include orbit-control;
|
178
|
-
}
|
179
|
-
|
180
|
-
.orbit-previous {
|
181
|
-
@extend %orbit-control;
|
182
|
-
@include orbit-previous;
|
183
|
-
}
|
184
|
-
|
185
|
-
.orbit-next {
|
186
|
-
@extend %orbit-control;
|
187
|
-
@include orbit-next;
|
188
|
-
}
|
189
|
-
|
190
|
-
.orbit-bullets {
|
191
|
-
@include orbit-bullets;
|
192
|
-
}
|
193
|
-
}
|
@@ -1,162 +0,0 @@
|
|
1
|
-
// Foundation for Sites by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
////
|
6
|
-
/// @group pagination
|
7
|
-
////
|
8
|
-
|
9
|
-
/// Font size of pagination items.
|
10
|
-
/// @type Number
|
11
|
-
$pagination-font-size: rem-calc(14) !default;
|
12
|
-
|
13
|
-
/// Default bottom margin of the media object.
|
14
|
-
/// @type Number
|
15
|
-
$pagination-margin-bottom: $global-margin !default;
|
16
|
-
|
17
|
-
/// Text color of pagination items.
|
18
|
-
/// @type Color
|
19
|
-
$pagination-item-color: $black !default;
|
20
|
-
|
21
|
-
/// Padding inside of pagination items.
|
22
|
-
/// @type Number
|
23
|
-
$pagination-item-padding: rem-calc(3 10) !default;
|
24
|
-
|
25
|
-
/// Right margin to separate pagination items.
|
26
|
-
/// @type Number
|
27
|
-
$pagination-item-spacing: rem-calc(1) !default;
|
28
|
-
|
29
|
-
/// Default radius for pagination items.
|
30
|
-
/// @type Number
|
31
|
-
$pagination-radius: $global-radius !default;
|
32
|
-
|
33
|
-
/// Background color of pagination items on hover.
|
34
|
-
/// @type Color
|
35
|
-
$pagination-item-background-hover: $light-gray !default;
|
36
|
-
|
37
|
-
/// Background color of pagination item for the current page.
|
38
|
-
/// @type Color
|
39
|
-
$pagination-item-background-current: $primary-color !default;
|
40
|
-
|
41
|
-
/// Text color of the pagination item for the current page.
|
42
|
-
/// @type Color
|
43
|
-
$pagination-item-color-current: foreground($pagination-item-background-current) !default;
|
44
|
-
|
45
|
-
/// Text color of a disabled pagination item.
|
46
|
-
/// @type Color
|
47
|
-
$pagination-item-color-disabled: $medium-gray !default;
|
48
|
-
|
49
|
-
/// Color of the ellipsis in a pagination menu.
|
50
|
-
/// @type Color
|
51
|
-
$pagination-ellipsis-color: $black !default;
|
52
|
-
|
53
|
-
/// If `false`, don't display page number links on mobile, only next/previous links.
|
54
|
-
/// @type Boolean
|
55
|
-
$pagination-mobile-items: false !default;
|
56
|
-
|
57
|
-
/// If `true`, arrows are added to the next and previous links of pagination.
|
58
|
-
/// @type Boolean
|
59
|
-
$pagination-arrows: true !default;
|
60
|
-
|
61
|
-
/// Adds styles for a pagination container. Apply this to a `<ul>`.
|
62
|
-
@mixin pagination-container {
|
63
|
-
@include clearfix;
|
64
|
-
margin-#{$global-left}: 0;
|
65
|
-
margin-bottom: $pagination-margin-bottom;
|
66
|
-
|
67
|
-
// List item
|
68
|
-
li {
|
69
|
-
font-size: $pagination-font-size;
|
70
|
-
margin-#{$global-right}: $pagination-item-spacing;
|
71
|
-
border-radius: $pagination-radius;
|
72
|
-
|
73
|
-
@if $pagination-mobile-items {
|
74
|
-
display: inline-block;
|
75
|
-
}
|
76
|
-
@else {
|
77
|
-
display: none;
|
78
|
-
|
79
|
-
&:last-child,
|
80
|
-
&:first-child {
|
81
|
-
display: inline-block;
|
82
|
-
}
|
83
|
-
|
84
|
-
@include breakpoint(medium) {
|
85
|
-
display: inline-block;
|
86
|
-
}
|
87
|
-
}
|
88
|
-
}
|
89
|
-
|
90
|
-
// Page links
|
91
|
-
a,
|
92
|
-
button {
|
93
|
-
color: $pagination-item-color;
|
94
|
-
display: block;
|
95
|
-
padding: $pagination-item-padding;
|
96
|
-
border-radius: $global-radius;
|
97
|
-
|
98
|
-
&:hover {
|
99
|
-
background: $pagination-item-background-hover;
|
100
|
-
}
|
101
|
-
}
|
102
|
-
}
|
103
|
-
|
104
|
-
/// Adds styles for the current pagination item. Apply this to an `<a>`.
|
105
|
-
@mixin pagination-item-current {
|
106
|
-
padding: $pagination-item-padding;
|
107
|
-
background: $pagination-item-background-current;
|
108
|
-
color: $pagination-item-color-current;
|
109
|
-
cursor: default;
|
110
|
-
}
|
111
|
-
|
112
|
-
/// Adds styles for a disabled pagination item. Apply this to an `<a>`.
|
113
|
-
@mixin pagination-item-disabled {
|
114
|
-
padding: $pagination-item-padding;
|
115
|
-
color: $pagination-item-color-disabled;
|
116
|
-
cursor: not-allowed;
|
117
|
-
|
118
|
-
&:hover {
|
119
|
-
background: transparent;
|
120
|
-
}
|
121
|
-
}
|
122
|
-
|
123
|
-
/// Adds styles for an ellipsis for use in a pagination list.
|
124
|
-
@mixin pagination-ellipsis {
|
125
|
-
content: '\2026';
|
126
|
-
padding: $pagination-item-padding;
|
127
|
-
color: $pagination-ellipsis-color;
|
128
|
-
}
|
129
|
-
|
130
|
-
@mixin foundation-pagination {
|
131
|
-
.pagination {
|
132
|
-
@include pagination-container;
|
133
|
-
|
134
|
-
.current {
|
135
|
-
@include pagination-item-current;
|
136
|
-
}
|
137
|
-
|
138
|
-
.disabled {
|
139
|
-
@include pagination-item-disabled;
|
140
|
-
}
|
141
|
-
|
142
|
-
.ellipsis::after {
|
143
|
-
@include pagination-ellipsis;
|
144
|
-
}
|
145
|
-
}
|
146
|
-
|
147
|
-
@if $pagination-arrows {
|
148
|
-
.pagination-previous a::before,
|
149
|
-
.pagination-previous.disabled::before {
|
150
|
-
content: '\00ab';
|
151
|
-
display: inline-block;
|
152
|
-
margin-#{$global-right}: 0.5rem;
|
153
|
-
}
|
154
|
-
|
155
|
-
.pagination-next a::after,
|
156
|
-
.pagination-next.disabled::after {
|
157
|
-
content: '\00bb';
|
158
|
-
display: inline-block;
|
159
|
-
margin-#{$global-left}: 0.5rem;
|
160
|
-
}
|
161
|
-
}
|
162
|
-
}
|
@@ -1,64 +0,0 @@
|
|
1
|
-
// Foundation for Sites by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
/// Adds styles for a progress bar container.
|
6
|
-
@mixin progress-container {
|
7
|
-
background-color: $progress-background;
|
8
|
-
height: $progress-height;
|
9
|
-
margin-bottom: $progress-margin-bottom;
|
10
|
-
border-radius: $progress-radius;
|
11
|
-
}
|
12
|
-
|
13
|
-
/// Adds styles for the inner meter of a progress bar.
|
14
|
-
@mixin progress-meter {
|
15
|
-
position: relative;
|
16
|
-
display: block;
|
17
|
-
width: 0%;
|
18
|
-
height: 100%;
|
19
|
-
background-color: $progress-meter-background;
|
20
|
-
|
21
|
-
@if has-value($progress-radius) {
|
22
|
-
border-radius: $global-radius;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
/// Adds styles for text in the progress meter.
|
27
|
-
@mixin progress-meter-text {
|
28
|
-
@include absolute-center;
|
29
|
-
position: absolute;
|
30
|
-
margin: 0;
|
31
|
-
font-size: 0.75rem;
|
32
|
-
font-weight: bold;
|
33
|
-
color: $white;
|
34
|
-
white-space: nowrap;
|
35
|
-
|
36
|
-
@if has-value($progress-radius) {
|
37
|
-
border-radius: $progress-radius;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
@mixin foundation-progress-bar {
|
42
|
-
// Progress bar
|
43
|
-
.progress {
|
44
|
-
@include progress-container;
|
45
|
-
|
46
|
-
@each $name, $color in $foundation-palette {
|
47
|
-
&.#{$name} {
|
48
|
-
.progress-meter {
|
49
|
-
background-color: $color;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
}
|
53
|
-
}
|
54
|
-
|
55
|
-
// Inner meter
|
56
|
-
.progress-meter {
|
57
|
-
@include progress-meter;
|
58
|
-
}
|
59
|
-
|
60
|
-
// Inner meter text
|
61
|
-
.progress-meter-text {
|
62
|
-
@include progress-meter-text;
|
63
|
-
}
|
64
|
-
}
|
@@ -1,172 +0,0 @@
|
|
1
|
-
// Foundation for Sites by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
////
|
6
|
-
/// @group reveal
|
7
|
-
////
|
8
|
-
|
9
|
-
/// Default background color of a modal.
|
10
|
-
/// @type Color
|
11
|
-
$reveal-background: $white !default;
|
12
|
-
|
13
|
-
/// Default width of a modal, with no class applied.
|
14
|
-
/// @type Number
|
15
|
-
$reveal-width: 600px !default;
|
16
|
-
|
17
|
-
/// Default maximum width of a modal.
|
18
|
-
/// @type Number
|
19
|
-
$reveal-max-width: $global-width !default;
|
20
|
-
|
21
|
-
/// Default padding inside a modal.
|
22
|
-
/// @type Number
|
23
|
-
$reveal-padding: $global-padding !default;
|
24
|
-
|
25
|
-
/// Default border around a modal.
|
26
|
-
/// @type Number
|
27
|
-
$reveal-border: 1px solid $medium-gray !default;
|
28
|
-
|
29
|
-
/// Default radius for modal.
|
30
|
-
/// @type Number
|
31
|
-
$reveal-radius: $global-radius !default;
|
32
|
-
|
33
|
-
/// z-index for modals. The overlay uses this value, while the modal itself uses this value plus one.
|
34
|
-
/// @type Number
|
35
|
-
$reveal-zindex: 1005 !default;
|
36
|
-
|
37
|
-
/// Background color of modal overlays.
|
38
|
-
/// @type Color
|
39
|
-
$reveal-overlay-background: rgba($black, 0.45) !default;
|
40
|
-
|
41
|
-
/// Adds styles for a modal overlay.
|
42
|
-
/// @param {Color} $background [$reveal-overlay-background] - Background color of the overlay.
|
43
|
-
@mixin reveal-overlay {
|
44
|
-
display: none;
|
45
|
-
position: fixed;
|
46
|
-
top: 0;
|
47
|
-
bottom: 0;
|
48
|
-
left: 0;
|
49
|
-
right: 0;
|
50
|
-
z-index: $reveal-zindex;
|
51
|
-
background-color: $reveal-overlay-background;
|
52
|
-
overflow-y: scroll;
|
53
|
-
}
|
54
|
-
|
55
|
-
/// Adds base styles for a modal.
|
56
|
-
@mixin reveal-modal-base {
|
57
|
-
@include disable-mouse-outline;
|
58
|
-
display: none;
|
59
|
-
z-index: $reveal-zindex + 1;
|
60
|
-
padding: $reveal-padding;
|
61
|
-
border: $reveal-border;
|
62
|
-
background-color: $reveal-background;
|
63
|
-
border-radius: $reveal-radius;
|
64
|
-
|
65
|
-
@include breakpoint(medium) {
|
66
|
-
min-height: 0;
|
67
|
-
}
|
68
|
-
|
69
|
-
// Make sure rows don't have a min-width on them
|
70
|
-
.column,
|
71
|
-
.columns {
|
72
|
-
min-width: 0;
|
73
|
-
}
|
74
|
-
|
75
|
-
// Strip margins from the last item in the modal
|
76
|
-
> :last-child {
|
77
|
-
margin-bottom: 0;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
|
81
|
-
/// Adjusts the width of a modal.
|
82
|
-
/// @param {Number} $width - Width of the modal. Generally a percentage.
|
83
|
-
/// @param {Number} $max-width [$reveal-max-width] - Maximum width of the modal.
|
84
|
-
@mixin reveal-modal-width(
|
85
|
-
$width: $reveal-width,
|
86
|
-
$max-width: $reveal-max-width
|
87
|
-
) {
|
88
|
-
@include breakpoint(medium) {
|
89
|
-
@extend %reveal-centered;
|
90
|
-
width: $width;
|
91
|
-
max-width: $reveal-max-width;
|
92
|
-
}
|
93
|
-
}
|
94
|
-
|
95
|
-
/// Creates a full-screen modal, which stretches the full width and height of the window.
|
96
|
-
@mixin reveal-modal-fullscreen {
|
97
|
-
// scss-lint:disable DuplicateProperty
|
98
|
-
top: 0;
|
99
|
-
left: 0;
|
100
|
-
width: 100%;
|
101
|
-
height: 100%;
|
102
|
-
height: 100vh;
|
103
|
-
min-height: 100vh;
|
104
|
-
max-width: none;
|
105
|
-
margin-left: 0;
|
106
|
-
border: 0;
|
107
|
-
border-radius: 0;
|
108
|
-
}
|
109
|
-
|
110
|
-
@mixin foundation-reveal {
|
111
|
-
// [TODO] Is this necessary?
|
112
|
-
// scss-lint:disable QualifyingElement
|
113
|
-
body.is-reveal-open {
|
114
|
-
overflow: hidden;
|
115
|
-
}
|
116
|
-
// html gets this class only in iOS
|
117
|
-
html.is-reveal-open,
|
118
|
-
html.is-reveal-open body {
|
119
|
-
height: 100%;
|
120
|
-
overflow: hidden;
|
121
|
-
user-select: none;
|
122
|
-
}
|
123
|
-
|
124
|
-
// Overlay
|
125
|
-
.reveal-overlay {
|
126
|
-
@include reveal-overlay;
|
127
|
-
}
|
128
|
-
|
129
|
-
// Modal container
|
130
|
-
.reveal {
|
131
|
-
@include reveal-modal-base;
|
132
|
-
@include reveal-modal-width($reveal-width);
|
133
|
-
position: relative;
|
134
|
-
top: 100px;
|
135
|
-
margin-left: auto;
|
136
|
-
margin-right: auto;
|
137
|
-
overflow-y: auto;
|
138
|
-
|
139
|
-
// Placeholder selector for medium-and-up modals
|
140
|
-
// Prevents duplicate CSS when defining multiple Reveal sizes
|
141
|
-
@include breakpoint(medium) {
|
142
|
-
%reveal-centered {
|
143
|
-
left: auto;
|
144
|
-
right: auto;
|
145
|
-
margin: 0 auto;
|
146
|
-
}
|
147
|
-
}
|
148
|
-
|
149
|
-
// Remove padding
|
150
|
-
&.collapse {
|
151
|
-
padding: 0;
|
152
|
-
}
|
153
|
-
|
154
|
-
// Sizing classes
|
155
|
-
&.tiny { @include reveal-modal-width(30%); }
|
156
|
-
&.small { @include reveal-modal-width(50%); }
|
157
|
-
&.large { @include reveal-modal-width(90%); }
|
158
|
-
|
159
|
-
// Full-screen mode
|
160
|
-
&.full {
|
161
|
-
@include reveal-modal-fullscreen;
|
162
|
-
}
|
163
|
-
|
164
|
-
@include breakpoint($-zf-zero-breakpoint only) {
|
165
|
-
@include reveal-modal-fullscreen;
|
166
|
-
}
|
167
|
-
|
168
|
-
&.without-overlay {
|
169
|
-
position: fixed;
|
170
|
-
}
|
171
|
-
}
|
172
|
-
}
|