foundation6-jekyll-base 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +2 -0
  4. data/_includes/footer.html +1 -0
  5. data/_includes/head.html +16 -0
  6. data/_includes/header.html +1 -0
  7. data/_includes/javascripts.html +4 -0
  8. data/_layouts/default.html +18 -0
  9. data/_layouts/home.html +26 -0
  10. data/_layouts/page.html +15 -0
  11. data/_layouts/post.html +25 -0
  12. data/_sass/_vendor/normalize-scss/sass/_normalize.scss +3 -0
  13. data/_sass/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  14. data/_sass/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  15. data/_sass/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  16. data/_sass/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  17. data/_sass/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  18. data/_sass/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  19. data/_sass/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  20. data/_sass/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  21. data/_sass/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  22. data/_sass/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  23. data/_sass/foundation/_global.scss +219 -0
  24. data/_sass/foundation/components/_accordion-menu.scss +36 -0
  25. data/_sass/foundation/components/_accordion.scss +150 -0
  26. data/_sass/foundation/components/_badge.scss +63 -0
  27. data/_sass/foundation/components/_breadcrumbs.scss +97 -0
  28. data/_sass/foundation/components/_button-group.scss +249 -0
  29. data/_sass/foundation/components/_button.scss +303 -0
  30. data/_sass/foundation/components/_callout.scss +106 -0
  31. data/_sass/foundation/components/_card.scss +121 -0
  32. data/_sass/foundation/components/_close-button.scss +102 -0
  33. data/_sass/foundation/components/_drilldown.scss +93 -0
  34. data/_sass/foundation/components/_dropdown-menu.scss +226 -0
  35. data/_sass/foundation/components/_dropdown.scss +72 -0
  36. data/_sass/foundation/components/_flex-video.scss +1 -0
  37. data/_sass/foundation/components/_flex.scss +28 -0
  38. data/_sass/foundation/components/_float.scss +27 -0
  39. data/_sass/foundation/components/_label.scss +64 -0
  40. data/_sass/foundation/components/_media-object.scss +114 -0
  41. data/_sass/foundation/components/_menu-icon.scss +9 -0
  42. data/_sass/foundation/components/_menu.scss +371 -0
  43. data/_sass/foundation/components/_off-canvas.scss +329 -0
  44. data/_sass/foundation/components/_orbit.scss +196 -0
  45. data/_sass/foundation/components/_pagination.scss +193 -0
  46. data/_sass/foundation/components/_progress-bar.scss +64 -0
  47. data/_sass/foundation/components/_responsive-embed.scss +67 -0
  48. data/_sass/foundation/components/_reveal.scss +178 -0
  49. data/_sass/foundation/components/_slider.scss +138 -0
  50. data/_sass/foundation/components/_sticky.scss +38 -0
  51. data/_sass/foundation/components/_switch.scss +247 -0
  52. data/_sass/foundation/components/_table.scss +329 -0
  53. data/_sass/foundation/components/_tabs.scss +196 -0
  54. data/_sass/foundation/components/_thumbnail.scss +67 -0
  55. data/_sass/foundation/components/_title-bar.scss +84 -0
  56. data/_sass/foundation/components/_tooltip.scss +107 -0
  57. data/_sass/foundation/components/_top-bar.scss +173 -0
  58. data/_sass/foundation/components/_visibility.scss +132 -0
  59. data/_sass/foundation/forms/_checkbox.scss +41 -0
  60. data/_sass/foundation/forms/_error.scss +88 -0
  61. data/_sass/foundation/forms/_fieldset.scss +54 -0
  62. data/_sass/foundation/forms/_forms.scss +34 -0
  63. data/_sass/foundation/forms/_help-text.scss +30 -0
  64. data/_sass/foundation/forms/_input-group.scss +135 -0
  65. data/_sass/foundation/forms/_label.scss +50 -0
  66. data/_sass/foundation/forms/_meter.scss +110 -0
  67. data/_sass/foundation/forms/_progress.scss +94 -0
  68. data/_sass/foundation/forms/_range.scss +149 -0
  69. data/_sass/foundation/forms/_select.scss +85 -0
  70. data/_sass/foundation/forms/_text.scss +170 -0
  71. data/_sass/foundation/foundation.scss +118 -0
  72. data/_sass/foundation/grid/_classes.scss +176 -0
  73. data/_sass/foundation/grid/_column.scss +112 -0
  74. data/_sass/foundation/grid/_flex-grid.scss +307 -0
  75. data/_sass/foundation/grid/_grid.scss +44 -0
  76. data/_sass/foundation/grid/_gutter.scss +82 -0
  77. data/_sass/foundation/grid/_layout.scss +76 -0
  78. data/_sass/foundation/grid/_position.scss +76 -0
  79. data/_sass/foundation/grid/_row.scss +99 -0
  80. data/_sass/foundation/grid/_size.scss +24 -0
  81. data/_sass/foundation/settings/_settings.scss +621 -0
  82. data/_sass/foundation/typography/_alignment.scss +22 -0
  83. data/_sass/foundation/typography/_base.scss +509 -0
  84. data/_sass/foundation/typography/_helpers.scss +78 -0
  85. data/_sass/foundation/typography/_print.scss +81 -0
  86. data/_sass/foundation/typography/_typography.scss +26 -0
  87. data/_sass/foundation/util/_breakpoint.scss +281 -0
  88. data/_sass/foundation/util/_color.scss +126 -0
  89. data/_sass/foundation/util/_direction.scss +31 -0
  90. data/_sass/foundation/util/_flex.scss +85 -0
  91. data/_sass/foundation/util/_math.scss +72 -0
  92. data/_sass/foundation/util/_mixins.scss +276 -0
  93. data/_sass/foundation/util/_selector.scss +41 -0
  94. data/_sass/foundation/util/_unit.scss +152 -0
  95. data/_sass/foundation/util/_util.scss +13 -0
  96. data/_sass/foundation/util/_value.scss +140 -0
  97. data/assets/js/app.js +1 -0
  98. data/assets/js/vendor/foundation/foundation.d.ts +496 -0
  99. data/assets/js/vendor/foundation/foundation.js +10207 -0
  100. data/assets/js/vendor/foundation/foundation.min.js +4 -0
  101. data/assets/js/vendor/foundation/plugins/foundation.abide.js +637 -0
  102. data/assets/js/vendor/foundation/plugins/foundation.abide.min.js +1 -0
  103. data/assets/js/vendor/foundation/plugins/foundation.accordion.js +252 -0
  104. data/assets/js/vendor/foundation/plugins/foundation.accordion.min.js +1 -0
  105. data/assets/js/vendor/foundation/plugins/foundation.accordionMenu.js +318 -0
  106. data/assets/js/vendor/foundation/plugins/foundation.accordionMenu.min.js +1 -0
  107. data/assets/js/vendor/foundation/plugins/foundation.core.js +386 -0
  108. data/assets/js/vendor/foundation/plugins/foundation.core.min.js +1 -0
  109. data/assets/js/vendor/foundation/plugins/foundation.drilldown.js +565 -0
  110. data/assets/js/vendor/foundation/plugins/foundation.drilldown.min.js +1 -0
  111. data/assets/js/vendor/foundation/plugins/foundation.dropdown.js +465 -0
  112. data/assets/js/vendor/foundation/plugins/foundation.dropdown.min.js +1 -0
  113. data/assets/js/vendor/foundation/plugins/foundation.dropdownMenu.js +486 -0
  114. data/assets/js/vendor/foundation/plugins/foundation.dropdownMenu.min.js +1 -0
  115. data/assets/js/vendor/foundation/plugins/foundation.equalizer.js +374 -0
  116. data/assets/js/vendor/foundation/plugins/foundation.equalizer.min.js +1 -0
  117. data/assets/js/vendor/foundation/plugins/foundation.interchange.js +233 -0
  118. data/assets/js/vendor/foundation/plugins/foundation.interchange.min.js +1 -0
  119. data/assets/js/vendor/foundation/plugins/foundation.magellan.js +285 -0
  120. data/assets/js/vendor/foundation/plugins/foundation.magellan.min.js +1 -0
  121. data/assets/js/vendor/foundation/plugins/foundation.offcanvas.js +474 -0
  122. data/assets/js/vendor/foundation/plugins/foundation.offcanvas.min.js +1 -0
  123. data/assets/js/vendor/foundation/plugins/foundation.orbit.js +566 -0
  124. data/assets/js/vendor/foundation/plugins/foundation.orbit.min.js +1 -0
  125. data/assets/js/vendor/foundation/plugins/foundation.responsiveMenu.js +169 -0
  126. data/assets/js/vendor/foundation/plugins/foundation.responsiveMenu.min.js +1 -0
  127. data/assets/js/vendor/foundation/plugins/foundation.responsiveToggle.js +177 -0
  128. data/assets/js/vendor/foundation/plugins/foundation.responsiveToggle.min.js +1 -0
  129. data/assets/js/vendor/foundation/plugins/foundation.reveal.js +633 -0
  130. data/assets/js/vendor/foundation/plugins/foundation.reveal.min.js +1 -0
  131. data/assets/js/vendor/foundation/plugins/foundation.slider.js +762 -0
  132. data/assets/js/vendor/foundation/plugins/foundation.slider.min.js +1 -0
  133. data/assets/js/vendor/foundation/plugins/foundation.sticky.js +518 -0
  134. data/assets/js/vendor/foundation/plugins/foundation.sticky.min.js +1 -0
  135. data/assets/js/vendor/foundation/plugins/foundation.tabs.js +512 -0
  136. data/assets/js/vendor/foundation/plugins/foundation.tabs.min.js +1 -0
  137. data/assets/js/vendor/foundation/plugins/foundation.toggler.js +169 -0
  138. data/assets/js/vendor/foundation/plugins/foundation.toggler.min.js +1 -0
  139. data/assets/js/vendor/foundation/plugins/foundation.tooltip.js +492 -0
  140. data/assets/js/vendor/foundation/plugins/foundation.tooltip.min.js +1 -0
  141. data/assets/js/vendor/foundation/plugins/foundation.util.box.js +196 -0
  142. data/assets/js/vendor/foundation/plugins/foundation.util.box.min.js +1 -0
  143. data/assets/js/vendor/foundation/plugins/foundation.util.keyboard.js +163 -0
  144. data/assets/js/vendor/foundation/plugins/foundation.util.keyboard.min.js +1 -0
  145. data/assets/js/vendor/foundation/plugins/foundation.util.mediaQuery.js +233 -0
  146. data/assets/js/vendor/foundation/plugins/foundation.util.mediaQuery.min.js +1 -0
  147. data/assets/js/vendor/foundation/plugins/foundation.util.motion.js +103 -0
  148. data/assets/js/vendor/foundation/plugins/foundation.util.motion.min.js +1 -0
  149. data/assets/js/vendor/foundation/plugins/foundation.util.nest.js +74 -0
  150. data/assets/js/vendor/foundation/plugins/foundation.util.nest.min.js +1 -0
  151. data/assets/js/vendor/foundation/plugins/foundation.util.timerAndImageLoader.js +90 -0
  152. data/assets/js/vendor/foundation/plugins/foundation.util.timerAndImageLoader.min.js +1 -0
  153. data/assets/js/vendor/foundation/plugins/foundation.util.touch.js +352 -0
  154. data/assets/js/vendor/foundation/plugins/foundation.util.touch.min.js +1 -0
  155. data/assets/js/vendor/foundation/plugins/foundation.util.triggers.js +261 -0
  156. data/assets/js/vendor/foundation/plugins/foundation.util.triggers.min.js +1 -0
  157. data/assets/js/vendor/foundation/plugins/foundation.zf.responsiveAccordionTabs.js +262 -0
  158. data/assets/js/vendor/foundation/plugins/foundation.zf.responsiveAccordionTabs.min.js +1 -0
  159. data/assets/main.scss +6 -0
  160. metadata +232 -0
@@ -0,0 +1,196 @@
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
+ /// Font color of tab item.
18
+ /// @type Color
19
+ $tab-color: $primary-color !default;
20
+
21
+ /// Active background color of a tab bar.
22
+ /// @type Color
23
+ $tab-background-active: $light-gray !default;
24
+
25
+ /// Active font color of tab item.
26
+ /// @type Color
27
+ $tab-active-color: $primary-color !default;
28
+
29
+ /// Font size of tab items.
30
+ /// @type Number
31
+ $tab-item-font-size: rem-calc(12) !default;
32
+
33
+ /// Default background color on hover for items in a Menu.
34
+ $tab-item-background-hover: $white !default;
35
+
36
+ /// Default padding of a tab item.
37
+ /// @type Number
38
+ $tab-item-padding: 1.25rem 1.5rem !default;
39
+
40
+ /// Maximum number of `expand-n` classes to include in the CSS.
41
+ /// @type Number
42
+ $tab-expand-max: 6 !default;
43
+
44
+ /// Default background color of tab content.
45
+ /// @type Color
46
+ $tab-content-background: $white !default;
47
+
48
+ /// Default border color of tab content.
49
+ /// @type Color
50
+ $tab-content-border: $light-gray !default;
51
+
52
+ /// Default text color of tab content.
53
+ /// @type Color
54
+ $tab-content-color: $body-font-color !default;
55
+
56
+ /// Default padding for tab content.
57
+ /// @type Number | List
58
+ $tab-content-padding: 1rem !default;
59
+
60
+ /// Adds styles for a tab container. Apply this to a `<ul>`.
61
+ @mixin tabs-container (
62
+ $margin: $tab-margin,
63
+ $background: $tab-background,
64
+ $border-color: $tab-content-border
65
+ ) {
66
+ @include clearfix;
67
+ margin: $margin;
68
+ border: 1px solid $border-color;
69
+ background: $background;
70
+ list-style-type: none;
71
+ }
72
+
73
+ /// Augments a tab container to have vertical tabs. Use this in conjunction with `tabs-container()`.
74
+ @mixin tabs-container-vertical {
75
+ > li {
76
+ display: block;
77
+ float: none;
78
+ width: auto;
79
+ }
80
+ }
81
+
82
+ /// Adds styles for the links within a tab container. Apply this to the `<li>` elements inside a tab container.
83
+ @mixin tabs-title (
84
+ $padding: $tab-item-padding,
85
+ $font-size: $tab-item-font-size,
86
+ $color: $tab-color,
87
+ $color-active: $tab-active-color,
88
+ $background-hover: $tab-item-background-hover,
89
+ $background-active: $tab-background-active
90
+ ) {
91
+ float: #{$global-left};
92
+
93
+ > a {
94
+ display: block;
95
+ padding: $padding;
96
+ font-size: $font-size;
97
+ line-height: 1;
98
+ color: $color;
99
+
100
+ &:hover {
101
+ background: $background-hover;
102
+ color: scale-color($color, $lightness: -14%);
103
+ }
104
+
105
+ &:focus,
106
+ &[aria-selected='true'] {
107
+ background: $background-active;
108
+ color: $color-active;
109
+ }
110
+ }
111
+ }
112
+
113
+ /// Adds styles for the wrapper that surrounds a tab group's content panes.
114
+ @mixin tabs-content (
115
+ $background: $tab-content-background,
116
+ $color: $tab-content-color,
117
+ $border-color: $tab-content-border
118
+ ) {
119
+ border: 1px solid $border-color;
120
+ border-top: 0;
121
+ background: $background;
122
+ color: $color;
123
+ transition: all 0.5s ease;
124
+ }
125
+
126
+ /// Augments a tab content container to have a vertical style, by shifting the border around. Use this in conjunction with `tabs-content()`.
127
+ @mixin tabs-content-vertical (
128
+ $border-color: $tab-content-border
129
+ ) {
130
+ border: 1px solid $border-color;
131
+ border-#{$global-left}: 0;
132
+ }
133
+
134
+ /// Adds styles for an individual tab content panel within the tab content container.
135
+ @mixin tabs-panel (
136
+ $padding: $tab-content-padding
137
+ ) {
138
+ display: none;
139
+ padding: $padding;
140
+
141
+ &[aria-hidden="false"] {
142
+ display: block;
143
+ }
144
+ }
145
+
146
+ @mixin foundation-tabs {
147
+ .tabs {
148
+ @include tabs-container;
149
+ }
150
+
151
+ // Vertical
152
+ .tabs.vertical {
153
+ @include tabs-container-vertical;
154
+ }
155
+
156
+ // Simple
157
+ .tabs.simple {
158
+ > li > a {
159
+ padding: 0;
160
+
161
+ &:hover {
162
+ background: transparent;
163
+ }
164
+ }
165
+ }
166
+
167
+ // Primary color
168
+ .tabs.primary {
169
+ background: $primary-color;
170
+
171
+ > li > a {
172
+ color: color-pick-contrast($primary-color);
173
+
174
+ &:hover,
175
+ &:focus {
176
+ background: smart-scale($primary-color);
177
+ }
178
+ }
179
+ }
180
+
181
+ .tabs-title {
182
+ @include tabs-title;
183
+ }
184
+
185
+ .tabs-content {
186
+ @include tabs-content;
187
+ }
188
+
189
+ .tabs-content.vertical {
190
+ @include tabs-content-vertical;
191
+ }
192
+
193
+ .tabs-panel {
194
+ @include tabs-panel;
195
+ }
196
+ }
@@ -0,0 +1,67 @@
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
+ display: inline-block;
36
+ max-width: 100%;
37
+ margin-bottom: $thumbnail-margin-bottom;
38
+
39
+ border: $thumbnail-border;
40
+ border-radius: $thumbnail-radius;
41
+ box-shadow: $thumbnail-shadow;
42
+
43
+ line-height: 0;
44
+ }
45
+
46
+ @mixin thumbnail-link {
47
+ transition: $thumbnail-transition;
48
+
49
+ &:hover,
50
+ &:focus {
51
+ box-shadow: $thumbnail-shadow-hover;
52
+ }
53
+
54
+ image {
55
+ box-shadow: none;
56
+ }
57
+ }
58
+
59
+ @mixin foundation-thumbnail {
60
+ .thumbnail {
61
+ @include thumbnail;
62
+ }
63
+
64
+ a.thumbnail {
65
+ @include thumbnail-link;
66
+ }
67
+ }
@@ -0,0 +1,84 @@
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
+ padding: $titlebar-padding;
40
+ background: $titlebar-background;
41
+ color: $titlebar-color;
42
+
43
+ @if $global-flexbox {
44
+ display: flex;
45
+ justify-content: space-between;
46
+ align-items: center;
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
+ .title-bar-left,
60
+ .title-bar-right {
61
+ flex: 1 1 0px; // sass-lint:disable-line zero-unit
62
+ }
63
+
64
+ .title-bar-right {
65
+ text-align: right;
66
+ }
67
+ }
68
+ @else {
69
+ .title-bar-left {
70
+ float: left;
71
+ }
72
+
73
+ .title-bar-right {
74
+ float: right;
75
+ text-align: right;
76
+ }
77
+ }
78
+
79
+ .title-bar-title {
80
+ display: inline-block;
81
+ vertical-align: middle;
82
+ font-weight: $titlebar-text-font-weight;
83
+ }
84
+ }
@@ -0,0 +1,107 @@
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
+ position: relative;
47
+ display: inline-block;
48
+
49
+ border-bottom: $has-tip-border-bottom;
50
+ font-weight: $has-tip-font-weight;
51
+ cursor: help;
52
+ }
53
+
54
+ @mixin tooltip {
55
+ position: absolute;
56
+ top: calc(100% + #{$tooltip-pip-height});
57
+ z-index: 1200;
58
+
59
+ max-width: 10rem;
60
+ padding: $tooltip-padding;
61
+
62
+ border-radius: $tooltip-radius;
63
+ background-color: $tooltip-background-color;
64
+ font-size: $tooltip-font-size;
65
+ color: $tooltip-color;
66
+
67
+ &::before {
68
+ @include css-triangle($tooltip-pip-width, $tooltip-background-color, up);
69
+ position: absolute;
70
+ bottom: 100%;
71
+ left: 50%;
72
+ transform: translateX(-50%);
73
+ }
74
+
75
+ &.top::before {
76
+ @include css-triangle($tooltip-pip-width, $tooltip-background-color, down);
77
+ top: 100%;
78
+ bottom: auto;
79
+ }
80
+
81
+ &.left::before {
82
+ @include css-triangle($tooltip-pip-width, $tooltip-background-color, right);
83
+ top: 50%;
84
+ bottom: auto;
85
+ left: 100%;
86
+ transform: translateY(-50%);
87
+ }
88
+
89
+ &.right::before {
90
+ @include css-triangle($tooltip-pip-width, $tooltip-background-color, left);
91
+ top: 50%;
92
+ right: 100%;
93
+ bottom: auto;
94
+ left: auto;
95
+ transform: translateY(-50%);
96
+ }
97
+ }
98
+
99
+ @mixin foundation-tooltip {
100
+ .has-tip {
101
+ @include has-tip;
102
+ }
103
+
104
+ .tooltip {
105
+ @include tooltip;
106
+ }
107
+ }