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.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -17
  3. data/_data/menu.yml +53 -0
  4. data/_includes/candidate_badge.html +6 -15
  5. data/_includes/footer.html +92 -12
  6. data/_includes/head.html +24 -25
  7. data/_includes/header.html +14 -14
  8. data/_includes/js/main.html +71 -14
  9. data/_includes/menu.html +43 -51
  10. data/_includes/people/profile_badge.html +1 -3
  11. data/_includes/right-bar/bar_cal.html +4 -6
  12. data/_includes/right-bar/bar_fb.html +3 -3
  13. data/_includes/right-bar/bar_garant.html +3 -2
  14. data/_includes/right-bar/bar_people.html +21 -18
  15. data/_includes/right-bar/bar_person_contact.html +11 -55
  16. data/_includes/right-bar/rbar.html +3 -3
  17. data/_layouts/komunalni-volby.html +9 -7
  18. data/_sass/_base.scss +114 -1
  19. data/_sass/_settings.scss +1 -1
  20. data/_sass/components/BasicPage.scss +6 -1
  21. data/_sass/components/hero.scss +2 -2
  22. data/_sass/components/icon.scss +5 -1
  23. data/_sass/components/program.scss +5 -1
  24. data/_sass/components/top-bar.scss +236 -491
  25. data/_sass/components/top-sub-nav.scss +1 -1
  26. data/_sass/objects/media.scss +46 -38
  27. data/_sass/utilities/utilities.scss +6 -6
  28. data/assets/css/main.scss +40 -106
  29. data/assets/js/apps.js +8 -0
  30. data/assets/js/apps/scroll-top/ScrollTop.vue +83 -0
  31. data/assets/js/apps/scroll-top/index.js +9 -0
  32. data/assets/js/apps/site-search/SiteSearch.vue +85 -0
  33. data/assets/js/apps/site-search/SiteSearchItemTemplate.vue +29 -0
  34. data/assets/js/apps/site-search/index.js +14 -0
  35. data/assets/js/index.js +52 -0
  36. metadata +9 -91
  37. data/_includes/js/custom.js +0 -245
  38. data/_includes/js/fb.js +0 -15
  39. data/_includes/js/piwik.js +0 -11
  40. data/_includes/js/tw.js +0 -15
  41. data/_includes/people/item.html +0 -49
  42. data/_includes/people/list-2col.html +0 -24
  43. data/_includes/people/list-group.html +0 -12
  44. data/_includes/title/title_header.html +0 -9
  45. data/_sass/components/scroll-top.scss +0 -32
  46. data/_sass/components/welcome-header.scss +0 -188
  47. data/_sass/foundation/_global.scss +0 -638
  48. data/_sass/foundation/components/_accordion-menu.scss +0 -32
  49. data/_sass/foundation/components/_accordion.scss +0 -129
  50. data/_sass/foundation/components/_badge.scss +0 -55
  51. data/_sass/foundation/components/_breadcrumbs.scss +0 -95
  52. data/_sass/foundation/components/_button-group.scss +0 -195
  53. data/_sass/foundation/components/_button.scss +0 -265
  54. data/_sass/foundation/components/_callout.scss +0 -105
  55. data/_sass/foundation/components/_close-button.scss +0 -61
  56. data/_sass/foundation/components/_drilldown.scss +0 -79
  57. data/_sass/foundation/components/_dropdown-menu.scss +0 -221
  58. data/_sass/foundation/components/_dropdown.scss +0 -65
  59. data/_sass/foundation/components/_flex-video.scss +0 -63
  60. data/_sass/foundation/components/_flex.scss +0 -28
  61. data/_sass/foundation/components/_float.scss +0 -27
  62. data/_sass/foundation/components/_label.scss +0 -55
  63. data/_sass/foundation/components/_media-object.scss +0 -115
  64. data/_sass/foundation/components/_menu-icon.scss +0 -9
  65. data/_sass/foundation/components/_menu.scss +0 -314
  66. data/_sass/foundation/components/_off-canvas.scss +0 -177
  67. data/_sass/foundation/components/_orbit.scss +0 -193
  68. data/_sass/foundation/components/_pagination.scss +0 -162
  69. data/_sass/foundation/components/_progress-bar.scss +0 -64
  70. data/_sass/foundation/components/_reveal.scss +0 -172
  71. data/_sass/foundation/components/_slider.scss +0 -133
  72. data/_sass/foundation/components/_sticky.scss +0 -38
  73. data/_sass/foundation/components/_switch.scss +0 -232
  74. data/_sass/foundation/components/_table.scss +0 -234
  75. data/_sass/foundation/components/_tabs.scss +0 -165
  76. data/_sass/foundation/components/_thumbnail.scss +0 -54
  77. data/_sass/foundation/components/_title-bar.scss +0 -89
  78. data/_sass/foundation/components/_tooltip.scss +0 -104
  79. data/_sass/foundation/components/_top-bar.scss +0 -168
  80. data/_sass/foundation/components/_visibility.scss +0 -132
  81. data/_sass/foundation/forms/_checkbox.scss +0 -40
  82. data/_sass/foundation/forms/_error.scss +0 -84
  83. data/_sass/foundation/forms/_fieldset.scss +0 -54
  84. data/_sass/foundation/forms/_forms.scss +0 -34
  85. data/_sass/foundation/forms/_help-text.scss +0 -30
  86. data/_sass/foundation/forms/_input-group.scss +0 -128
  87. data/_sass/foundation/forms/_label.scss +0 -48
  88. data/_sass/foundation/forms/_meter.scss +0 -109
  89. data/_sass/foundation/forms/_progress.scss +0 -85
  90. data/_sass/foundation/forms/_range.scss +0 -144
  91. data/_sass/foundation/forms/_select.scss +0 -67
  92. data/_sass/foundation/forms/_text.scss +0 -163
  93. data/_sass/foundation/foundation.scss +0 -102
  94. data/_sass/foundation/grid/_classes.scss +0 -151
  95. data/_sass/foundation/grid/_column.scss +0 -126
  96. data/_sass/foundation/grid/_flex-grid.scss +0 -274
  97. data/_sass/foundation/grid/_grid.scss +0 -60
  98. data/_sass/foundation/grid/_gutter.scss +0 -34
  99. data/_sass/foundation/grid/_layout.scss +0 -51
  100. data/_sass/foundation/grid/_position.scss +0 -73
  101. data/_sass/foundation/grid/_row.scss +0 -95
  102. data/_sass/foundation/grid/_size.scss +0 -24
  103. data/_sass/foundation/settings/_settings.scss +0 -567
  104. data/_sass/foundation/typography/_alignment.scss +0 -22
  105. data/_sass/foundation/typography/_base.scss +0 -443
  106. data/_sass/foundation/typography/_helpers.scss +0 -77
  107. data/_sass/foundation/typography/_print.scss +0 -77
  108. data/_sass/foundation/typography/_typography.scss +0 -28
  109. data/_sass/foundation/util/_breakpoint.scss +0 -275
  110. data/_sass/foundation/util/_color.scss +0 -60
  111. data/_sass/foundation/util/_flex.scss +0 -68
  112. data/_sass/foundation/util/_mixins.scss +0 -235
  113. data/_sass/foundation/util/_selector.scss +0 -40
  114. data/_sass/foundation/util/_unit.scss +0 -90
  115. data/_sass/foundation/util/_util.scss +0 -11
  116. data/_sass/foundation/util/_value.scss +0 -107
  117. data/_sass/jquery-ui.scss +0 -1311
  118. data/_sass/main.scss +0 -41
  119. data/_sass/minima.scss +0 -51
  120. data/_sass/minima/_base.scss +0 -254
  121. data/_sass/minima/_layout.scss +0 -255
  122. data/_sass/minima/_syntax-highlighting.scss +0 -71
  123. data/_sass/scroll-top.scss +0 -31
  124. data/assets/js/common-libs.min.js +0 -1
  125. data/assets/js/custom.min.js +0 -1
  126. data/assets/snippet/profile.html +0 -19
@@ -1,60 +0,0 @@
1
- // Foundation for Sites by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- ////
6
- /// @group functions
7
- ////
8
-
9
- /// Checks the lightness of `$color`, and if it passes the `$threshold` of lightness, it returns the `$yes` color. Otherwise, it returns the `$no` color. Use this function to dynamically output a foreground color based on a given background color.
10
- ///
11
- /// @param {Color} $color - Color to check the lightness of.
12
- /// @param {Color} $yes [$black] - Color to return if `$color` is light.
13
- /// @param {Color} $no [$white] - Color to return if `$color` is dark.
14
- /// @param {Percentage} $threshold [60%] - Threshold of lightness to check against.
15
- ///
16
- /// @returns {Color} The $yes color or $no color.
17
- @function foreground($color, $yes: $black, $no: $white, $threshold: 60%) {
18
- @if $color == transparent {
19
- $color: $body-background;
20
- }
21
- @if (lightness($color) > $threshold) {
22
- @return $yes;
23
- }
24
- @else {
25
- @return $no;
26
- }
27
- }
28
-
29
- /// Scales a color to be lighter if it's light, or darker if it's dark. Use this function to tint a color appropriate to its lightness.
30
- ///
31
- /// @param {Color} $color - Color to scale.
32
- /// @param {Percentage} $scale [5%] - Amount to scale up or down.
33
- /// @param {Percentage} $threshold [40%] - Threshold of lightness to check against.
34
- ///
35
- /// @returns {Color} A scaled color.
36
- @function smart-scale($color, $scale: 5%, $threshold: 40%) {
37
- @if lightness($color) > $threshold {
38
- $scale: -$scale;
39
- }
40
- @return scale-color($color, $lightness: $scale);
41
- }
42
-
43
- /// Transfers the colors in the `$foundation-palette` variable into the legacy color variables, such as `$primary-color` and `$secondary-color`. Call this mixin below the Global section of your settings file to properly migrate your codebase.
44
- @mixin add-foundation-colors() {
45
- @if map-has-key($foundation-palette, primary) {
46
- $primary-color: map-get($foundation-palette, primary) !global;
47
- }
48
- @if map-has-key($foundation-palette, secondary) {
49
- $secondary-color: map-get($foundation-palette, secondary) !global;
50
- }
51
- @if map-has-key($foundation-palette, success) {
52
- $success-color: map-get($foundation-palette, success) !global;
53
- }
54
- @if map-has-key($foundation-palette, warning) {
55
- $warning-color: map-get($foundation-palette, warning) !global;
56
- }
57
- @if map-has-key($foundation-palette, alert) {
58
- $alert-color: map-get($foundation-palette, alert) !global;
59
- }
60
- }
@@ -1,68 +0,0 @@
1
- $-zf-flex-justify: (
2
- 'left': flex-start,
3
- 'right': flex-end,
4
- 'center': center,
5
- 'justify': space-between,
6
- 'spaced': space-around,
7
- );
8
-
9
- $-zf-flex-align: (
10
- 'top': flex-start,
11
- 'bottom': flex-end,
12
- 'middle': center,
13
- 'stretch': stretch,
14
- );
15
-
16
- /// Enables flexbox by adding `display: flex` to the element.
17
- @mixin flex {
18
- display: flex;
19
- }
20
-
21
- /// Horizontally or vertically aligns the items within a flex container.
22
- ///
23
- /// @param {Keyword} $x [null] - Horizontal alignment to use. Can be `left`, `right`, `center`, `justify`, or `spaced`. Or, set it to `null` (the default) to not set horizontal alignment.
24
- /// @param {Keyword} $y [null] - Vertical alignment to use. Can be `top`, `bottom`, `middle`, or `stretch`. Or, set it to `null` (the default) to not set vertical alignment.
25
- @mixin flex-align($x: null, $y: null) {
26
- @if $x {
27
- @if map-has-key($-zf-flex-justify, $x) {
28
- $x: map-get($-zf-flex-justify, $x);
29
- }
30
- @else {
31
- @warn 'flex-grid-row-align(): #{$x} is not a valid value for horizontal alignment. Use left, right, center, justify, or spaced.'
32
- }
33
- }
34
-
35
- @if $y {
36
- @if map-has-key($-zf-flex-align, $y) {
37
- $y: map-get($-zf-flex-align, $y);
38
- }
39
- @else {
40
- @warn 'flex-grid-row-align(): #{$y} is not a valid value for vertical alignment. Use top, bottom, middle, or stretch.'
41
- }
42
- }
43
-
44
- justify-content: $x;
45
- align-items: $y;
46
- }
47
-
48
- /// Vertically align a single column within a flex row. Apply this mixin to a flex column.
49
- ///
50
- /// @param {Keyword} $y [null] - Vertical alignment to use. Can be `top`, `bottom`, `middle`, or `stretch`. Or, set it to `null` (the default) to not set vertical alignment.
51
- @mixin flex-align-self($y: null) {
52
- @if $y {
53
- @if map-has-key($-zf-flex-align, $y) {
54
- $y: map-get($-zf-flex-align, $y);
55
- }
56
- @else {
57
- @warn 'flex-grid-column-align(): #{$y} is not a valid value for alignment. Use top, bottom, middle, or stretch.'
58
- }
59
- }
60
-
61
- align-self: $y;
62
- }
63
-
64
- /// Changes the source order of a flex child. Children with lower numbers appear first in the layout.
65
- /// @param {Number} $order [0] - Order number to apply.
66
- @mixin flex-order($order: 0) {
67
- order: $order;
68
- }
@@ -1,235 +0,0 @@
1
- // Foundation for Sites by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- ////
6
- /// @group functions
7
- ////
8
-
9
- /// Creates a CSS triangle, which can be used for dropdown arrows, dropdown pips, and more. Use this mixin inside a `&::before` or `&::after` selector, to attach the triangle to an existing element.
10
- ///
11
- /// @param {Number} $triangle-size - Width of the triangle.
12
- /// @param {Color} $triangle-color - Color of the triangle.
13
- /// @param {Keyword} $triangle-direction - Direction the triangle points. Can be `up`, `right`, `down`, or `left`.
14
- @mixin css-triangle(
15
- $triangle-size,
16
- $triangle-color,
17
- $triangle-direction
18
- ) {
19
- content: '';
20
- display: block;
21
- width: 0;
22
- height: 0;
23
- border: inset $triangle-size;
24
-
25
- @if ($triangle-direction == down) {
26
- border-color: $triangle-color transparent transparent;
27
- border-top-style: solid;
28
- border-bottom-width: 0;
29
- }
30
- @if ($triangle-direction == up) {
31
- border-color: transparent transparent $triangle-color;
32
- border-bottom-style: solid;
33
- border-top-width: 0;
34
- }
35
- @if ($triangle-direction == right) {
36
- border-color: transparent transparent transparent $triangle-color;
37
- border-left-style: solid;
38
- border-right-width: 0;
39
- }
40
- @if ($triangle-direction == left) {
41
- border-color: transparent $triangle-color transparent transparent;
42
- border-right-style: solid;
43
- border-left-width: 0;
44
- }
45
- }
46
-
47
- /// Creates a menu icon with a set width, height, number of bars, and colors. The mixin uses the height of the icon and the weight of the bars to determine spacing. <div class="docs-example-burger"></div>
48
- ///
49
- /// @param {Color} $color [$black] - Color to use for the icon.
50
- /// @param {Color} $color-hover [$dark-gray] - Color to use when the icon is hovered over.
51
- /// @param {Number} $width [20px] - Width of the icon.
52
- /// @param {Number} $height [16px] - Height of the icon.
53
- /// @param {Number} $weight [2px] - Height of individual bars in the icon.
54
- /// @param {Number} $bars [3] - Number of bars in the icon.
55
- @mixin hamburger(
56
- $color: $black,
57
- $color-hover: $dark-gray,
58
- $width: 20px,
59
- $height: 16px,
60
- $weight: 2px,
61
- $bars: 3
62
- ) {
63
- // box-shadow CSS output
64
- $shadow: ();
65
- $hover-shadow: ();
66
-
67
- // Spacing between bars is calculated based on the total height of the icon and the weight of each bar
68
- $spacing: floor(($height - ($weight * $bars)) / ($bars - 1));
69
-
70
- // Icon container
71
- position: relative;
72
- display: inline-block;
73
- vertical-align: middle;
74
- cursor: pointer;
75
- width: $width;
76
- height: $height;
77
-
78
- // Icon bars
79
- &::after {
80
- content: '';
81
- position: absolute;
82
- display: block;
83
- width: 100%;
84
- height: $weight;
85
- background: $color;
86
- top: 0;
87
- left: 0;
88
-
89
- @for $i from 2 through $bars {
90
- $offset: ($weight + $spacing) * ($i - 1);
91
- $shadow: append($shadow, 0 $offset 0 $color, comma);
92
- }
93
-
94
- box-shadow: $shadow;
95
- }
96
-
97
- // Hover state
98
- @if $color-hover {
99
- // Generate CSS
100
- @for $i from 2 through $bars {
101
- $offset: ($weight + $spacing) * ($i - 1);
102
- $hover-shadow: append($hover-shadow, 0 $offset 0 $color-hover, comma);
103
- }
104
-
105
- &:hover::after {
106
- background: $color-hover;
107
- box-shadow: $hover-shadow;
108
- }
109
- }
110
- }
111
-
112
- /// Adds a downward-facing triangle as a background image to an element. The image is formatted as an SVG, making it easy to change the color. Because Internet Explorer doesn't support encoded SVGs as background images, a PNG fallback is also included.
113
- /// There are two PNG fallbacks: a black triangle and a white triangle. The one used depends on the lightness of the input color.
114
- ///
115
- /// @param {Color} $color [$black] - Color to use for the triangle.
116
- @mixin background-triangle($color: $black) {
117
- $rgb: 'rgb%28#{red($color)}, #{green($color)}, #{blue($color)}%29';
118
-
119
- background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: #{$rgb}'></polygon></svg>");
120
-
121
- @media screen and (min-width:0\0) {
122
- @if lightness($color) < 60% {
123
- // White triangle
124
- background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAYAAACbU/80AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIpJREFUeNrEkckNgDAMBBfRkEt0ObRBBdsGXUDgmQfK4XhH2m8czQAAy27R3tsw4Qfe2x8uOO6oYLb6GlOor3GF+swURAOmUJ+RwtEJs9WvTGEYxBXqI1MQAZhCfUQKRzDMVj+TwrAIV6jvSUEkYAr1LSkcyTBb/V+KYfX7xAeusq3sLDtGH3kEGACPWIflNZfhRQAAAABJRU5ErkJggg==');
125
- }
126
- @else {
127
- // Black triangle
128
- background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAYAAACbU/80AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMBJREFUeNrEllsOhCAMRVszC9IlzU7KCmVHTJsoMWYMUtpyv9BgbuXQB5ZSdgBYYY4ycgBivk8KYFsQMfMiTTBP4o3nUzCKzOabLJbLy2/g31evGkAginR4/ZegKH5qX3bJCscA3t0x3kgO5tQFyhhFf50xRqFLbyMUNJQzgyjGS/wgCpvKqkRBpuWrE4V9d+1E4dPUXqIg107SQOE/2DRQxMwTDygIInVDET9T3lCoj/6j/VCmGjZOl2lKpZ8AAwDQP7zIimDGFQAAAABJRU5ErkJggg==');
129
- }
130
- }
131
- }
132
-
133
- /// Applies the micro clearfix hack popularized by Nicolas Gallagher. Include this mixin on a container if its children are all floated, to give the container a proper height.
134
- /// The clearfix is augmented with specific styles to prevent borders in flexbox environments
135
- /// @link http://nicolasgallagher.com/micro-clearfix-hack/ Micro Clearfix Hack
136
- /// @link http://danisadesigner.com/blog/flexbox-clear-fix-pseudo-elements/ Flexbox fix
137
- @mixin clearfix {
138
- &::before,
139
- &::after {
140
- content: ' ';
141
- display: table;
142
- @if $global-flexbox {
143
- flex-basis: 0;
144
- order: 1;
145
- }
146
- }
147
-
148
- &::after {
149
- clear: both;
150
- }
151
- }
152
-
153
- /// Adds CSS for a "quantity query" selector that automatically sizes elements based on how many there are inside a container.
154
- /// @link http://alistapart.com/article/quantity-queries-for-css Quantity Queries for CSS
155
- ///
156
- /// @param {Number} $max - Maximum number of items to detect. The higher this number is, the more CSS that's required to cover each number of items.
157
- /// @param {Keyword} $elem [li] - Tag to use for sibling selectors.
158
- @mixin auto-width($max, $elem: li) {
159
- @for $i from 2 through $max {
160
- &:nth-last-child(#{$i}):first-child,
161
- &:nth-last-child(#{$i}):first-child ~ #{$elem} {
162
- width: percentage(1 / $i);
163
- }
164
- }
165
- }
166
-
167
- /// Removes the focus ring around an element when a mouse input is detected.
168
- @mixin disable-mouse-outline {
169
- [data-whatinput='mouse'] & {
170
- outline: 0;
171
- }
172
- }
173
-
174
- /// Makes an element visually hidden, but still accessible to keyboards and assistive devices.
175
- /// @link http://snook.ca/archives/html_and_css/hiding-content-for-accessibility Hiding Content for Accessibility
176
- @mixin element-invisible {
177
- position: absolute !important;
178
- width: 1px;
179
- height: 1px;
180
- overflow: hidden;
181
- clip: rect(0, 0, 0, 0);
182
- }
183
-
184
- /// Reverses the CSS output created by the `element-invisible()` mixin.
185
- @mixin element-invisible-off {
186
- position: static !important;
187
- height: auto;
188
- width: auto;
189
- overflow: visible;
190
- clip: auto;
191
- }
192
-
193
- /// Vertically centers the element inside of its first non-static parent,
194
- /// @link http://www.sitepoint.com/centering-with-sass/ Centering With Sass
195
- @mixin vertical-center {
196
- position: absolute;
197
- top: 50%;
198
- transform: translateY(-50%);
199
- }
200
-
201
- /// Horizontally centers the element inside of its first non-static parent,
202
- /// @link http://www.sitepoint.com/centering-with-sass/ Centering With Sass
203
- @mixin horizontal-center {
204
- position: absolute;
205
- left: 50%;
206
- transform: translateX(-50%);
207
- }
208
-
209
- /// Absolutely centers the element inside of its first non-static parent,
210
- /// @link http://www.sitepoint.com/centering-with-sass/ Centering With Sass
211
- @mixin absolute-center {
212
- position: absolute;
213
- top: 50%;
214
- left: 50%;
215
- transform: translate(-50%, -50%);
216
- }
217
-
218
- /// Iterates through breakpoints defined in `$breakpoint-classes` and prints the CSS inside the mixin at each breakpoint's media query. Use this with the grid, or any other component that has responsive classes.
219
- ///
220
- /// @param {Boolean} $small [true] - If `false`, the mixin will skip the `small` breakpoint. Use this with components that don't prefix classes with `small-`, only `medium-` and up.
221
- @mixin -zf-each-breakpoint($small: true) {
222
- $map: $breakpoint-classes;
223
-
224
- @if not $small {
225
- $map: map-remove($map, $-zf-zero-breakpoint);
226
- }
227
-
228
- @each $size in $map {
229
- $-zf-size: $size !global;
230
-
231
- @include breakpoint($size) {
232
- @content;
233
- }
234
- }
235
- }
@@ -1,40 +0,0 @@
1
- // Foundation for Sites by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- ////
6
- /// @group functions
7
- ////
8
-
9
- /// Generates a selector with every text input type. You can also filter the list to only output a subset of those selectors.
10
- ///
11
- /// @param {List|Keyword} $types [()] - A list of text input types to use. Leave blank to use all of them.
12
- @function text-inputs($types: ()) {
13
- $return: ();
14
-
15
- $all-types:
16
- text
17
- password
18
- date
19
- datetime
20
- datetime-local
21
- month
22
- week
23
- email
24
- number
25
- search
26
- tel
27
- time
28
- url
29
- color;
30
-
31
- @if not has-value($types) {
32
- $types: $all-types;
33
- }
34
-
35
- @each $type in $types {
36
- $return: append($return, unquote('[type=\'#{$type}\']'), comma);
37
- }
38
-
39
- @return $return;
40
- }
@@ -1,90 +0,0 @@
1
- // Foundation for Sites by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- ////
6
- /// @group functions
7
- ////
8
-
9
- $global-font-size: 100% !default;
10
-
11
- // scss-lint:disable ZeroUnit
12
-
13
- /// Removes the unit (e.g. px, em, rem) from a value, returning the number only.
14
- ///
15
- /// @param {Number} $num - Number to strip unit from.
16
- ///
17
- /// @returns {Number} The same number, sans unit.
18
- @function strip-unit($num) {
19
- @return $num / ($num * 0 + 1);
20
- }
21
-
22
- /// Converts one or more pixel values into matching rem values.
23
- ///
24
- /// @param {Number|List} $values - One or more values to convert. Be sure to separate them with spaces and not commas. If you need to convert a comma-separated list, wrap the list in parentheses.
25
- /// @param {Number} $base [null] - The base value to use when calculating the `rem`. If you're using Foundation out of the box, this is 16px. If this parameter is `null`, the function will reference the `$base-font-size` variable as the base.
26
- ///
27
- /// @returns {List} A list of converted values.
28
- @function rem-calc($values, $base: null) {
29
- $rem-values: ();
30
- $count: length($values);
31
-
32
- // If no base is defined, defer to the global font size
33
- @if $base == null {
34
- $base: $global-font-size;
35
- }
36
-
37
- // If the base font size is a %, then multiply it by 16px
38
- // This is because 100% font size = 16px in most all browsers
39
- @if unit($base) == '%' {
40
- $base: ($base / 100%) * 16px;
41
- }
42
-
43
- @if $count == 1 {
44
- @return -zf-to-rem($values, $base);
45
- }
46
-
47
- @for $i from 1 through $count {
48
- $rem-values: append($rem-values, -zf-to-rem(nth($values, $i), $base));
49
- }
50
-
51
- @return $rem-values;
52
- }
53
-
54
- // Converts a unitless, pixel, or rem value to em, for use in breakpoints.
55
- @function -zf-bp-to-em($value) {
56
- // Pixel and unitless values are converted to rems
57
- @if unit($value) == 'px' or unitless($value) {
58
- $value: rem-calc($value, $base: 16px);
59
- }
60
-
61
- // Then the value is converted to ems
62
- @return strip-unit($value) * 1em;
63
- }
64
-
65
- /// Converts a pixel value to matching rem value. *Any* value passed, regardless of unit, is assumed to be a pixel value. By default, the base pixel value used to calculate the rem value is taken from the `$global-font-size` variable.
66
- /// @access private
67
- ///
68
- /// @param {Number} $value - Pixel value to convert.
69
- /// @param {Number} $base [null] - Base for pixel conversion.
70
- ///
71
- /// @returns {Number} A number in rems, calculated based on the given value and the base pixel value. rem values are passed through as is.
72
- @function -zf-to-rem($value, $base: null) {
73
- // Check if the value is a number
74
- @if type-of($value) != 'number' {
75
- @warn inspect($value) + ' was passed to rem-calc(), which is not a number.';
76
- @return $value;
77
- }
78
-
79
- // Calculate rem if units for $value is not rem
80
- @if unit($value) != 'rem' {
81
- $value: strip-unit($value) / strip-unit($base) * 1rem;
82
- }
83
-
84
- // Turn 0rem into 0
85
- @if $value == 0rem {
86
- $value: 0;
87
- }
88
-
89
- @return $value;
90
- }