jekyll-theme-pirati 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (232) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/LICENSE.txt +21 -0
  4. data/README.md +55 -0
  5. data/_includes/accordeon/accordeon-column.html +8 -0
  6. data/_includes/accordeon/accordeon.html +12 -0
  7. data/_includes/article-list/featured_article.html +55 -0
  8. data/_includes/article-list/list-3col.html +55 -0
  9. data/_includes/article-list/pagination.html +36 -0
  10. data/_includes/article-list/standard_article.html +45 -0
  11. data/_includes/disqus_comments.html +20 -0
  12. data/_includes/footer.html +23 -0
  13. data/_includes/google-analytics.html +12 -0
  14. data/_includes/head.html +60 -0
  15. data/_includes/header.html +115 -0
  16. data/_includes/icon-github.html +1 -0
  17. data/_includes/icon-github.svg +1 -0
  18. data/_includes/icon-twitter.html +1 -0
  19. data/_includes/icon-twitter.svg +1 -0
  20. data/_includes/js/custom.js +245 -0
  21. data/_includes/js/fb.js +15 -0
  22. data/_includes/js/main.html +18 -0
  23. data/_includes/js/piwik.js +11 -0
  24. data/_includes/js/tw.js +15 -0
  25. data/_includes/people/item.html +31 -0
  26. data/_includes/people/list-2col.html +25 -0
  27. data/_includes/right-bar/bar_cal.html +15 -0
  28. data/_includes/right-bar/bar_fb.html +23 -0
  29. data/_includes/right-bar/bar_foto.html +20 -0
  30. data/_includes/right-bar/bar_map.html +37 -0
  31. data/_includes/right-bar/bar_people.html +25 -0
  32. data/_includes/right-bar/bar_program.html +35 -0
  33. data/_includes/right-bar/bar_teams_summary.html +22 -0
  34. data/_includes/right-bar/bar_teams_toc.html +31 -0
  35. data/_includes/right-bar/bar_textbox.html +23 -0
  36. data/_includes/right-bar/bar_toc.html +77 -0
  37. data/_includes/right-bar/bar_tw.html +16 -0
  38. data/_includes/right-bar/bar_video.html +23 -0
  39. data/_includes/right-bar/rbar.html +39 -0
  40. data/_includes/right-bar/social-bar.html +16 -0
  41. data/_includes/social.html +14 -0
  42. data/_includes/submenu.html +22 -0
  43. data/_includes/title/title_header.html +9 -0
  44. data/_layouts/blank.html +14 -0
  45. data/_layouts/compress.html +10 -0
  46. data/_layouts/default.html +23 -0
  47. data/_layouts/home.html +34 -0
  48. data/_layouts/page.html +34 -0
  49. data/_layouts/post.html +110 -0
  50. data/_layouts/redirected.html +13 -0
  51. data/_layouts/team.html +45 -0
  52. data/_sass/_base.scss +24 -0
  53. data/_sass/_settings.scss +569 -0
  54. data/_sass/_sprites.scss +0 -0
  55. data/_sass/components/BasicPage.scss +464 -0
  56. data/_sass/components/BlogPosting.scss +274 -0
  57. data/_sass/components/Person.scss +42 -0
  58. data/_sass/components/Slider.scss +0 -0
  59. data/_sass/components/banner.scss +75 -0
  60. data/_sass/components/blockquote.scss +53 -0
  61. data/_sass/components/card.scss +154 -0
  62. data/_sass/components/contact-bar.scss +93 -0
  63. data/_sass/components/content-card.scss +31 -0
  64. data/_sass/components/cta-button.scss +54 -0
  65. data/_sass/components/header-bar.scss +108 -0
  66. data/_sass/components/hero.scss +164 -0
  67. data/_sass/components/highlight.scss +60 -0
  68. data/_sass/components/icon.scss +25 -0
  69. data/_sass/components/pagination.scss +75 -0
  70. data/_sass/components/pripoj-se.scss +97 -0
  71. data/_sass/components/scroll-top.scss +32 -0
  72. data/_sass/components/simple-accordion.scss +85 -0
  73. data/_sass/components/tag.scss +30 -0
  74. data/_sass/components/top-bar.scss +492 -0
  75. data/_sass/components/top-sub-nav.scss +186 -0
  76. data/_sass/components/vertical-navigation.scss +68 -0
  77. data/_sass/components/welcome-header.scss +188 -0
  78. data/_sass/components/widget-accordion.scss +293 -0
  79. data/_sass/components/widget-share-box.scss +57 -0
  80. data/_sass/components/widget-simple-text.scss +15 -0
  81. data/_sass/foundation/_global.scss +638 -0
  82. data/_sass/foundation/components/_accordion-menu.scss +32 -0
  83. data/_sass/foundation/components/_accordion.scss +129 -0
  84. data/_sass/foundation/components/_badge.scss +55 -0
  85. data/_sass/foundation/components/_breadcrumbs.scss +95 -0
  86. data/_sass/foundation/components/_button-group.scss +195 -0
  87. data/_sass/foundation/components/_button.scss +265 -0
  88. data/_sass/foundation/components/_callout.scss +105 -0
  89. data/_sass/foundation/components/_close-button.scss +61 -0
  90. data/_sass/foundation/components/_drilldown.scss +79 -0
  91. data/_sass/foundation/components/_dropdown-menu.scss +221 -0
  92. data/_sass/foundation/components/_dropdown.scss +65 -0
  93. data/_sass/foundation/components/_flex-video.scss +63 -0
  94. data/_sass/foundation/components/_flex.scss +28 -0
  95. data/_sass/foundation/components/_float.scss +27 -0
  96. data/_sass/foundation/components/_label.scss +55 -0
  97. data/_sass/foundation/components/_media-object.scss +115 -0
  98. data/_sass/foundation/components/_menu-icon.scss +9 -0
  99. data/_sass/foundation/components/_menu.scss +314 -0
  100. data/_sass/foundation/components/_off-canvas.scss +177 -0
  101. data/_sass/foundation/components/_orbit.scss +193 -0
  102. data/_sass/foundation/components/_pagination.scss +162 -0
  103. data/_sass/foundation/components/_progress-bar.scss +64 -0
  104. data/_sass/foundation/components/_reveal.scss +172 -0
  105. data/_sass/foundation/components/_slider.scss +133 -0
  106. data/_sass/foundation/components/_sticky.scss +38 -0
  107. data/_sass/foundation/components/_switch.scss +232 -0
  108. data/_sass/foundation/components/_table.scss +234 -0
  109. data/_sass/foundation/components/_tabs.scss +165 -0
  110. data/_sass/foundation/components/_thumbnail.scss +54 -0
  111. data/_sass/foundation/components/_title-bar.scss +89 -0
  112. data/_sass/foundation/components/_tooltip.scss +104 -0
  113. data/_sass/foundation/components/_top-bar.scss +168 -0
  114. data/_sass/foundation/components/_visibility.scss +132 -0
  115. data/_sass/foundation/forms/_checkbox.scss +40 -0
  116. data/_sass/foundation/forms/_error.scss +84 -0
  117. data/_sass/foundation/forms/_fieldset.scss +54 -0
  118. data/_sass/foundation/forms/_forms.scss +34 -0
  119. data/_sass/foundation/forms/_help-text.scss +30 -0
  120. data/_sass/foundation/forms/_input-group.scss +128 -0
  121. data/_sass/foundation/forms/_label.scss +48 -0
  122. data/_sass/foundation/forms/_meter.scss +109 -0
  123. data/_sass/foundation/forms/_progress.scss +85 -0
  124. data/_sass/foundation/forms/_range.scss +144 -0
  125. data/_sass/foundation/forms/_select.scss +67 -0
  126. data/_sass/foundation/forms/_text.scss +163 -0
  127. data/_sass/foundation/foundation.scss +102 -0
  128. data/_sass/foundation/grid/_classes.scss +151 -0
  129. data/_sass/foundation/grid/_column.scss +126 -0
  130. data/_sass/foundation/grid/_flex-grid.scss +274 -0
  131. data/_sass/foundation/grid/_grid.scss +60 -0
  132. data/_sass/foundation/grid/_gutter.scss +34 -0
  133. data/_sass/foundation/grid/_layout.scss +51 -0
  134. data/_sass/foundation/grid/_position.scss +73 -0
  135. data/_sass/foundation/grid/_row.scss +95 -0
  136. data/_sass/foundation/grid/_size.scss +24 -0
  137. data/_sass/foundation/settings/_settings.scss +567 -0
  138. data/_sass/foundation/typography/_alignment.scss +22 -0
  139. data/_sass/foundation/typography/_base.scss +443 -0
  140. data/_sass/foundation/typography/_helpers.scss +77 -0
  141. data/_sass/foundation/typography/_print.scss +77 -0
  142. data/_sass/foundation/typography/_typography.scss +28 -0
  143. data/_sass/foundation/util/_breakpoint.scss +275 -0
  144. data/_sass/foundation/util/_color.scss +60 -0
  145. data/_sass/foundation/util/_flex.scss +68 -0
  146. data/_sass/foundation/util/_mixins.scss +235 -0
  147. data/_sass/foundation/util/_selector.scss +40 -0
  148. data/_sass/foundation/util/_unit.scss +90 -0
  149. data/_sass/foundation/util/_util.scss +11 -0
  150. data/_sass/foundation/util/_value.scss +107 -0
  151. data/_sass/main.scss +40 -0
  152. data/_sass/minima.scss +51 -0
  153. data/_sass/minima/_base.scss +254 -0
  154. data/_sass/minima/_layout.scss +255 -0
  155. data/_sass/minima/_syntax-highlighting.scss +71 -0
  156. data/_sass/objects/media.scss +55 -0
  157. data/_sass/objects/section.scss +247 -0
  158. data/_sass/objects/space.scss +7 -0
  159. data/_sass/scroll-top.scss +31 -0
  160. data/_sass/utilities/utilities.scss +190 -0
  161. data/assets/css/main.scss +110 -0
  162. data/assets/favicon/apple-touch-icon-114x114.png +0 -0
  163. data/assets/favicon/apple-touch-icon-120x120.png +0 -0
  164. data/assets/favicon/apple-touch-icon-144x144.png +0 -0
  165. data/assets/favicon/apple-touch-icon-152x152.png +0 -0
  166. data/assets/favicon/apple-touch-icon-57x57.png +0 -0
  167. data/assets/favicon/apple-touch-icon-60x60.png +0 -0
  168. data/assets/favicon/apple-touch-icon-72x72.png +0 -0
  169. data/assets/favicon/apple-touch-icon-76x76.png +0 -0
  170. data/assets/favicon/favicon-128.png +0 -0
  171. data/assets/favicon/favicon-16x16.png +0 -0
  172. data/assets/favicon/favicon-196x196.png +0 -0
  173. data/assets/favicon/favicon-32x32.png +0 -0
  174. data/assets/favicon/favicon-96x96.png +0 -0
  175. data/assets/favicon/favicon.ico +0 -0
  176. data/assets/favicon/mstile-144x144.png +0 -0
  177. data/assets/favicon/mstile-150x150.png +0 -0
  178. data/assets/favicon/mstile-310x150.png +0 -0
  179. data/assets/favicon/mstile-310x310.png +0 -0
  180. data/assets/favicon/mstile-70x70.png +0 -0
  181. data/assets/fonts/bebasneue_regular-webfont.eot +0 -0
  182. data/assets/fonts/bebasneue_regular-webfont.svg +3906 -0
  183. data/assets/fonts/bebasneue_regular-webfont.ttf +0 -0
  184. data/assets/fonts/bebasneue_regular-webfont.woff +0 -0
  185. data/assets/fonts/bebasneue_regular-webfont.woff2 +0 -0
  186. data/assets/icons/blog.png +0 -0
  187. data/assets/icons/compass.png +0 -0
  188. data/assets/icons/facebook.png +0 -0
  189. data/assets/icons/github.png +0 -0
  190. data/assets/icons/googleplus.png +0 -0
  191. data/assets/icons/instagram.png +0 -0
  192. data/assets/icons/linkedin.png +0 -0
  193. data/assets/icons/pinterest.png +0 -0
  194. data/assets/icons/piratewiki.png +0 -0
  195. data/assets/icons/redmine.png +0 -0
  196. data/assets/icons/twitter.png +0 -0
  197. data/assets/icons/vkontakte.png +0 -0
  198. data/assets/icons/youtube.png +0 -0
  199. data/assets/img/brand/logo-group.png +0 -0
  200. data/assets/img/brand/logo-group.svg +27 -0
  201. data/assets/img/brand/logo-round.png +0 -0
  202. data/assets/img/brand/logo-round.svg +104 -0
  203. data/assets/img/brand/logo.ai +5083 -16
  204. data/assets/img/brand/logo.pdf +1405 -4
  205. data/assets/img/brand/logo.png +0 -0
  206. data/assets/img/brand/logo.svg +10 -0
  207. data/assets/img/brand/logo_easy.png +0 -0
  208. data/assets/img/brand/logo_napis.ai +5003 -21
  209. data/assets/img/brand/logo_napis.pdf +1482 -3
  210. data/assets/img/brand/logo_napis.png +0 -0
  211. data/assets/img/brand/logo_napis.svg +48 -0
  212. data/assets/img/brand/logo_napis_male.png +0 -0
  213. data/assets/img/brand/logo_napis_white.ai +5106 -16
  214. data/assets/img/brand/logo_napis_white.pdf +1532 -2
  215. data/assets/img/brand/logo_napis_white.png +0 -0
  216. data/assets/img/brand/logo_napis_white.svg +51 -0
  217. data/assets/img/brand/logo_white.ai +5194 -23
  218. data/assets/img/brand/logo_white.pdf +1388 -4
  219. data/assets/img/brand/logo_white.png +0 -0
  220. data/assets/img/brand/logo_white.svg +14 -0
  221. data/assets/img/brand/logotyp_email.png +0 -0
  222. data/assets/img/brand/logow.svg +19 -0
  223. data/assets/img/header/background.jpg +0 -0
  224. data/assets/img/people/jakub-pirat.jpg +0 -0
  225. data/assets/img/posts/obrazek.u.tohoto.postu.jpg +0 -0
  226. data/assets/img/tiles/lightGrey.png +0 -0
  227. data/assets/img/tiles/tableOfContent.png +0 -0
  228. data/assets/js/common-libs.min.js +1 -0
  229. data/assets/js/custom.min.js +1 -0
  230. data/assets/people/piratska-strana.png +0 -0
  231. data/assets/people/ppp.jpg +0 -0
  232. metadata +316 -0
@@ -0,0 +1,165 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group tabs
7
+ ////
8
+
9
+ /// Default margin of the tab bar.
10
+ /// @type Number
11
+ $tab-margin: 0 !default;
12
+
13
+ /// Default background color of a tab bar.
14
+ /// @type Color
15
+ $tab-background: $white !default;
16
+
17
+ /// active background color of a tab bar.
18
+ /// @type Color
19
+ $tab-background-active: $light-gray !default;
20
+
21
+ /// Font size of tab items.
22
+ /// @type Number
23
+ $tab-item-font-size: rem-calc(12) !default;
24
+
25
+ /// Default background color on hover for items in a Menu.
26
+ $tab-item-background-hover: $white !default;
27
+
28
+ /// Default padding of a tab item.
29
+ /// @type Number
30
+ $tab-item-padding: 1.25rem 1.5rem !default;
31
+
32
+ /// Maximum number of `expand-n` classes to include in the CSS.
33
+ /// @type Number
34
+ $tab-expand-max: 6 !default;
35
+
36
+ /// Default background color of tab content.
37
+ /// @type Color
38
+ $tab-content-background: $white !default;
39
+
40
+ /// Default border color of tab content.
41
+ /// @type Color
42
+ $tab-content-border: $light-gray !default;
43
+
44
+ /// Default text color of tab content.
45
+ /// @type Color
46
+ $tab-content-color: foreground($tab-background, $primary-color) !default;
47
+
48
+ /// Default padding for tab content.
49
+ /// @type Number | List
50
+ $tab-content-padding: 1rem !default;
51
+
52
+ /// Adds styles for a tab container. Apply this to a `<ul>`.
53
+ @mixin tabs-container {
54
+ @include clearfix;
55
+ margin: $tab-margin;
56
+ list-style-type: none;
57
+ background: $tab-background;
58
+ border: 1px solid $tab-content-border;
59
+ }
60
+
61
+ /// Augments a tab container to have vertical tabs. Use this in conjunction with `tabs-container()`.
62
+ @mixin tabs-container-vertical {
63
+ > li {
64
+ width: auto;
65
+ float: none;
66
+ display: block;
67
+ }
68
+ }
69
+
70
+ /// Adds styles for the links within a tab container. Apply this to the `<li>` elements inside a tab container.
71
+ @mixin tabs-title {
72
+ float: #{$global-left};
73
+
74
+ > a {
75
+ display: block;
76
+ padding: $tab-item-padding;
77
+ line-height: 1;
78
+ font-size: $tab-item-font-size;
79
+
80
+ &:hover {
81
+ background: $tab-item-background-hover;
82
+ }
83
+
84
+ &:focus,
85
+ &[aria-selected='true'] {
86
+ background: $tab-background-active;
87
+ }
88
+ }
89
+ }
90
+
91
+ /// Adds styles for the wrapper that surrounds a tab group's content panes.
92
+ @mixin tabs-content {
93
+ background: $tab-content-background;
94
+ transition: all 0.5s ease;
95
+ border: 1px solid $tab-content-border;
96
+ border-top: 0;
97
+ }
98
+
99
+ /// Augments a tab content container to have a vertical style, by shifting the border around. Use this in conjunction with `tabs-content()`.
100
+ @mixin tabs-content-vertical {
101
+ border: 1px solid $tab-content-border;
102
+ border-#{$global-left}: 0;
103
+ }
104
+
105
+ /// Adds styles for an individual tab content panel within the tab content container.
106
+ @mixin tabs-panel {
107
+ display: none;
108
+ padding: $tab-content-padding;
109
+
110
+ &.is-active {
111
+ display: block;
112
+ }
113
+ }
114
+
115
+ @mixin foundation-tabs {
116
+ .tabs {
117
+ @include tabs-container;
118
+ }
119
+
120
+ // Vertical
121
+ .tabs.vertical {
122
+ @include tabs-container-vertical;
123
+ }
124
+
125
+ // Simple
126
+ .tabs.simple {
127
+ > li > a {
128
+ padding: 0;
129
+
130
+ &:hover {
131
+ background: transparent;
132
+ }
133
+ }
134
+ }
135
+
136
+ // Primary color
137
+ .tabs.primary {
138
+ background: $primary-color;
139
+
140
+ > li > a {
141
+ color: foreground($primary-color);
142
+
143
+ &:hover,
144
+ &:focus {
145
+ background: smart-scale($primary-color);
146
+ }
147
+ }
148
+ }
149
+
150
+ .tabs-title {
151
+ @include tabs-title;
152
+ }
153
+
154
+ .tabs-content {
155
+ @include tabs-content;
156
+ }
157
+
158
+ .tabs-content.vertical {
159
+ @include tabs-content-vertical;
160
+ }
161
+
162
+ .tabs-panel {
163
+ @include tabs-panel;
164
+ }
165
+ }
@@ -0,0 +1,54 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group thumbnail
7
+ ////
8
+
9
+ /// Border around thumbnail images.
10
+ /// @type Border
11
+ $thumbnail-border: solid 4px $white !default;
12
+
13
+ /// Bottom margin for thumbnail images.
14
+ /// @type Length
15
+ $thumbnail-margin-bottom: $global-margin !default;
16
+
17
+ /// Box shadow under thumbnail images.
18
+ /// @type Shadow
19
+ $thumbnail-shadow: 0 0 0 1px rgba($black, 0.2) !default;
20
+
21
+ /// Box shadow under thumbnail images.
22
+ /// @type Shadow
23
+ $thumbnail-shadow-hover: 0 0 6px 1px rgba($primary-color, 0.5) !default;
24
+
25
+ /// Transition proprties for thumbnail images.
26
+ /// @type Transition
27
+ $thumbnail-transition: box-shadow 200ms ease-out !default;
28
+
29
+ /// Default radius for thumbnail images.
30
+ /// @type Number
31
+ $thumbnail-radius: $global-radius !default;
32
+
33
+ /// Adds thumbnail styles to an element.
34
+ @mixin thumbnail {
35
+ border: $thumbnail-border;
36
+ box-shadow: $thumbnail-shadow;
37
+ display: inline-block;
38
+ line-height: 0;
39
+ max-width: 100%;
40
+ transition: $thumbnail-transition;
41
+ border-radius: $thumbnail-radius;
42
+ margin-bottom: $thumbnail-margin-bottom;
43
+
44
+ &:hover,
45
+ &:focus {
46
+ box-shadow: $thumbnail-shadow-hover;
47
+ }
48
+ }
49
+
50
+ @mixin foundation-thumbnail {
51
+ .thumbnail {
52
+ @include thumbnail;
53
+ }
54
+ }
@@ -0,0 +1,89 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group title-bar
7
+ ////
8
+
9
+ /// Background color of a title bar.
10
+ /// @type Color
11
+ $titlebar-background: $black !default;
12
+
13
+ /// Color of text inside a title bar.
14
+ /// @type Color
15
+ $titlebar-color: $white !default;
16
+
17
+ /// Padding inside a title bar.
18
+ /// @type Length
19
+ $titlebar-padding: 0.5rem !default;
20
+
21
+ /// Font weight of text inside a title bar.
22
+ /// @type Weight
23
+ $titlebar-text-font-weight: bold !default;
24
+
25
+ /// Color of menu icons inside a title bar.
26
+ /// @type Color
27
+ $titlebar-icon-color: $white !default;
28
+
29
+ /// Color of menu icons inside a title bar on hover.
30
+ /// @type Color
31
+ $titlebar-icon-color-hover: $medium-gray !default;
32
+
33
+ /// Spacing between the menu icon and text inside a title bar.
34
+ /// @type Length
35
+ $titlebar-icon-spacing: 0.25rem !default;
36
+
37
+ @mixin foundation-title-bar {
38
+ .title-bar {
39
+ background: $titlebar-background;
40
+ color: $titlebar-color;
41
+ padding: $titlebar-padding;
42
+
43
+ @if $global-flexbox {
44
+ display: flex;
45
+ align-items: center;
46
+ justify-content: space-between;
47
+ }
48
+ @else {
49
+ @include clearfix;
50
+ }
51
+
52
+ .menu-icon {
53
+ margin-#{$global-left}: $titlebar-icon-spacing;
54
+ margin-#{$global-right}: $titlebar-icon-spacing;
55
+ }
56
+ }
57
+
58
+ @if $global-flexbox {
59
+ // scss-lint:disable ZeroUnit
60
+ .title-bar-left,
61
+ .title-bar-right {
62
+ flex: 1 1 0px;
63
+ }
64
+
65
+ .title-bar-right {
66
+ text-align: right;
67
+ }
68
+ }
69
+ @else {
70
+ .title-bar-left {
71
+ float: left;
72
+ }
73
+
74
+ .title-bar-right {
75
+ float: right;
76
+ text-align: right;
77
+ }
78
+ }
79
+
80
+ .title-bar-title {
81
+ font-weight: $titlebar-text-font-weight;
82
+ vertical-align: middle;
83
+ display: inline-block;
84
+ }
85
+
86
+ .menu-icon.dark {
87
+ @include hamburger;
88
+ }
89
+ }
@@ -0,0 +1,104 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group tooltip
7
+ ////
8
+
9
+ /// Default font weight of the defined term.
10
+ /// @type Keyword | Number
11
+ $has-tip-font-weight: $global-weight-bold !default;
12
+
13
+ /// Default border bottom of the defined term.
14
+ /// @type List
15
+ $has-tip-border-bottom: dotted 1px $dark-gray !default;
16
+
17
+ /// Default color of the tooltip background.
18
+ /// @type Color
19
+ $tooltip-background-color: $black !default;
20
+
21
+ /// Default color of the tooltip font.
22
+ /// @type Color
23
+ $tooltip-color: $white !default;
24
+
25
+ /// Default padding of the tooltip background.
26
+ /// @type Number
27
+ $tooltip-padding: 0.75rem !default;
28
+
29
+ /// Default font size of the tooltip text. By default, we recommend a smaller font size than the body copy.
30
+ /// @type Number
31
+ $tooltip-font-size: $small-font-size !default;
32
+
33
+ /// Default pip width for tooltips.
34
+ /// @type Number
35
+ $tooltip-pip-width: 0.75rem !default;
36
+
37
+ /// Default pip height for tooltips. This is helpful for calculating the distance of the tooltip from the tooltip word.
38
+ /// @type Number
39
+ $tooltip-pip-height: $tooltip-pip-width * 0.866 !default;
40
+
41
+ /// Default radius for tooltips.
42
+ /// @type Number
43
+ $tooltip-radius: $global-radius !default;
44
+
45
+ @mixin has-tip {
46
+ border-bottom: $has-tip-border-bottom;
47
+ font-weight: $has-tip-font-weight;
48
+ position: relative;
49
+ display: inline-block;
50
+ cursor: help;
51
+ }
52
+
53
+ @mixin tooltip {
54
+ background-color: $tooltip-background-color;
55
+ color: $tooltip-color;
56
+ font-size: $tooltip-font-size;
57
+ padding: $tooltip-padding;
58
+ position: absolute;
59
+ z-index: 10;
60
+ top: calc(100% + #{$tooltip-pip-height});
61
+ max-width: 10rem !important;
62
+ border-radius: $tooltip-radius;
63
+
64
+ &::before {
65
+ @include css-triangle($tooltip-pip-width, $tooltip-background-color, up);
66
+ bottom: 100%;
67
+ position: absolute;
68
+ left: 50%;
69
+ transform: translateX(-50%);
70
+ }
71
+
72
+ &.top::before {
73
+ @include css-triangle($tooltip-pip-width, $tooltip-background-color, down);
74
+ top: 100%;
75
+ bottom: auto;
76
+ }
77
+
78
+ &.left::before {
79
+ @include css-triangle($tooltip-pip-width, $tooltip-background-color, right);
80
+ bottom: auto;
81
+ left: 100%;
82
+ top: 50%;
83
+ transform: translateY(-50%);
84
+ }
85
+
86
+ &.right::before {
87
+ @include css-triangle($tooltip-pip-width, $tooltip-background-color, left);
88
+ bottom: auto;
89
+ left: auto;
90
+ right: 100%;
91
+ top: 50%;
92
+ transform: translateY(-50%);
93
+ }
94
+ }
95
+
96
+ @mixin foundation-tooltip {
97
+ .has-tip {
98
+ @include has-tip;
99
+ }
100
+
101
+ .tooltip {
102
+ @include tooltip;
103
+ }
104
+ }
@@ -0,0 +1,168 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group top-bar
7
+ ////
8
+
9
+ /// Padding for the top bar.
10
+ /// @type Number
11
+ $topbar-padding: 0.5rem !default;
12
+
13
+ /// Background color for the top bar. This color also cascades to menus within the top bar.
14
+ /// @type Color
15
+ $topbar-background: $light-gray !default;
16
+
17
+ /// Background color submenus within the top bar. Usefull if $topbar-background is transparent.
18
+ /// @type Color
19
+ $topbar-submenu-background: $topbar-background !default;
20
+
21
+ /// Spacing for the top bar title.
22
+ /// @type Number
23
+ $topbar-title-spacing: 1rem !default;
24
+
25
+ /// Maximum width of `<input>` elements inside the top bar.
26
+ /// @type Number
27
+ $topbar-input-width: 200px !default;
28
+
29
+ /// Breakpoint at which top bar switches from mobile to desktop view.
30
+ /// @type Breakpoint
31
+ $topbar-unstack-breakpoint: medium !default;
32
+
33
+ /// Adds styles for a top bar container.
34
+ @mixin top-bar-container {
35
+ @if $global-flexbox {
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: space-between;
39
+ flex-wrap: nowrap;
40
+ }
41
+ @else {
42
+ @include clearfix;
43
+ }
44
+
45
+ padding: $topbar-padding;
46
+
47
+ &,
48
+ ul {
49
+ background-color: $topbar-background;
50
+ }
51
+
52
+ // Check if $topbar-background is differnt from $topbar-background-submenu
53
+ @if ($topbar-background != $topbar-submenu-background) {
54
+ ul ul {
55
+ background-color: $topbar-submenu-background;
56
+ }
57
+ }
58
+
59
+ // Restrain width of inputs by default to make them easier to arrange
60
+ input {
61
+ max-width: $topbar-input-width;
62
+ margin-#{$global-right}: 1rem;
63
+ }
64
+
65
+ // The above styles shouldn't apply to input group fields
66
+ .input-group-field {
67
+ width: 100%;
68
+ margin-#{$global-right}: 0;
69
+ }
70
+
71
+ // scss-lint:disable QualifyingElement
72
+ input.button {
73
+ width: auto;
74
+ }
75
+ }
76
+
77
+ /// Makes sections of a top bar stack on top of each other.
78
+ @mixin top-bar-stacked {
79
+ @if $global-flexbox {
80
+ flex-wrap: wrap;
81
+
82
+ // Sub-sections
83
+ .top-bar-left,
84
+ .top-bar-right {
85
+ flex: 0 0 100%;
86
+ max-width: 100%;
87
+ }
88
+ }
89
+ @else {
90
+ // Sub-sections
91
+ .top-bar-left,
92
+ .top-bar-right {
93
+ width: 100%;
94
+ }
95
+ }
96
+ }
97
+
98
+ /// Undoes the CSS applied by the `top-bar-stacked()` mixin.
99
+ @mixin top-bar-unstack {
100
+ @if $global-flexbox {
101
+ flex-wrap: nowrap;
102
+
103
+ // scss-lint:disable ZeroUnit
104
+ .top-bar-left,
105
+ .top-bar-right {
106
+ flex: 1 1 0px;
107
+ }
108
+ }
109
+ @else {
110
+ .top-bar-left,
111
+ .top-bar-right {
112
+ width: auto;
113
+ }
114
+ }
115
+ }
116
+
117
+ @mixin foundation-top-bar {
118
+ // Top bar container
119
+ .top-bar {
120
+ @include top-bar-container;
121
+
122
+ // Stack on small screens by default
123
+ @include top-bar-stacked;
124
+
125
+ @include breakpoint($topbar-unstack-breakpoint) {
126
+ @include top-bar-unstack;
127
+ }
128
+
129
+ // Generate classes for stacking on each screen size (defined in $breakpoint-classes)
130
+ @each $size in $breakpoint-classes {
131
+ @if $size != $-zf-zero-breakpoint {
132
+ &.stacked-for-#{$size} {
133
+ @include breakpoint($size down) {
134
+ @include top-bar-stacked;
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
140
+
141
+ // Sub-sections
142
+ @if $global-flexbox {
143
+ .top-bar-title {
144
+ flex: 0 0 auto;
145
+ margin-right: $topbar-title-spacing;
146
+ }
147
+
148
+ .top-bar-left,
149
+ .top-bar-right {
150
+ flex: 0 0 auto;
151
+ }
152
+ }
153
+ @else {
154
+ .top-bar-title {
155
+ float: left;
156
+ margin-right: $topbar-title-spacing;
157
+
158
+ }
159
+
160
+ .top-bar-left {
161
+ float: left;
162
+ }
163
+
164
+ .top-bar-right {
165
+ float: right;
166
+ }
167
+ }
168
+ }