locomotivecms_wagon 2.4.0.rc2 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/generators/foundation/public/javascripts/vendor/foundation.js +10839 -6523
  3. data/generators/foundation/public/javascripts/vendor/foundation.min.js +5 -3
  4. data/generators/foundation/public/stylesheets/_settings.scss +455 -115
  5. data/generators/foundation/public/stylesheets/app.css +0 -3
  6. data/generators/foundation/public/stylesheets/app.scss +15 -6
  7. data/generators/foundation/public/stylesheets/foundation.css +4191 -1885
  8. data/generators/foundation/public/stylesheets/foundation6/_global.scss +106 -54
  9. data/generators/foundation/public/stylesheets/foundation6/components/_accordion-menu.scss +157 -14
  10. data/generators/foundation/public/stylesheets/foundation6/components/_accordion.scss +71 -28
  11. data/generators/foundation/public/stylesheets/foundation6/components/_badge.scss +17 -9
  12. data/generators/foundation/public/stylesheets/foundation6/components/_breadcrumbs.scss +33 -10
  13. data/generators/foundation/public/stylesheets/foundation6/components/_button-group.scss +168 -30
  14. data/generators/foundation/public/stylesheets/foundation6/components/_button.scss +165 -44
  15. data/generators/foundation/public/stylesheets/foundation6/components/_callout.scss +9 -18
  16. data/generators/foundation/public/stylesheets/foundation6/components/_card.scss +129 -0
  17. data/generators/foundation/public/stylesheets/foundation6/components/_close-button.scss +54 -13
  18. data/generators/foundation/public/stylesheets/foundation6/components/_drilldown.scss +108 -33
  19. data/generators/foundation/public/stylesheets/foundation6/components/_dropdown-menu.scss +215 -64
  20. data/generators/foundation/public/stylesheets/foundation6/components/_dropdown.scss +22 -7
  21. data/generators/foundation/public/stylesheets/foundation6/components/_flex-video.scss +1 -68
  22. data/generators/foundation/public/stylesheets/foundation6/components/_flex.scss +117 -0
  23. data/generators/foundation/public/stylesheets/foundation6/components/_float.scss +1 -1
  24. data/generators/foundation/public/stylesheets/foundation6/components/_label.scss +16 -8
  25. data/generators/foundation/public/stylesheets/foundation6/components/_media-object.scss +50 -10
  26. data/generators/foundation/public/stylesheets/foundation6/components/_menu-icon.scss +9 -0
  27. data/generators/foundation/public/stylesheets/foundation6/components/_menu.scss +373 -91
  28. data/generators/foundation/public/stylesheets/foundation6/components/_off-canvas.scss +418 -83
  29. data/generators/foundation/public/stylesheets/foundation6/components/_orbit.scss +17 -7
  30. data/generators/foundation/public/stylesheets/foundation6/components/_pagination.scss +77 -45
  31. data/generators/foundation/public/stylesheets/foundation6/components/_progress-bar.scss +16 -35
  32. data/generators/foundation/public/stylesheets/foundation6/components/_responsive-embed.scss +70 -0
  33. data/generators/foundation/public/stylesheets/foundation6/components/_reveal.scss +59 -34
  34. data/generators/foundation/public/stylesheets/foundation6/components/_slider.scss +17 -38
  35. data/generators/foundation/public/stylesheets/foundation6/components/_sticky.scss +5 -4
  36. data/generators/foundation/public/stylesheets/foundation6/components/_switch.scss +52 -36
  37. data/generators/foundation/public/stylesheets/foundation6/components/_table.scss +197 -79
  38. data/generators/foundation/public/stylesheets/foundation6/components/_tabs.scss +126 -67
  39. data/generators/foundation/public/stylesheets/foundation6/components/_thumbnail.scss +17 -4
  40. data/generators/foundation/public/stylesheets/foundation6/components/_title-bar.scss +61 -21
  41. data/generators/foundation/public/stylesheets/foundation6/components/_tooltip.scss +74 -24
  42. data/generators/foundation/public/stylesheets/foundation6/components/_top-bar.scss +128 -10
  43. data/generators/foundation/public/stylesheets/foundation6/components/_visibility.scss +6 -5
  44. data/generators/foundation/public/stylesheets/foundation6/forms/_checkbox.scss +14 -9
  45. data/generators/foundation/public/stylesheets/foundation6/forms/_error.scss +12 -5
  46. data/generators/foundation/public/stylesheets/foundation6/forms/_fieldset.scss +6 -6
  47. data/generators/foundation/public/stylesheets/foundation6/forms/_forms.scss +11 -9
  48. data/generators/foundation/public/stylesheets/foundation6/forms/_help-text.scss +1 -1
  49. data/generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss +82 -10
  50. data/generators/foundation/public/stylesheets/foundation6/forms/_label.scss +2 -0
  51. data/generators/foundation/public/stylesheets/foundation6/forms/_meter.scss +116 -0
  52. data/generators/foundation/public/stylesheets/foundation6/forms/_progress.scss +94 -0
  53. data/generators/foundation/public/stylesheets/foundation6/forms/_range.scss +149 -0
  54. data/generators/foundation/public/stylesheets/foundation6/forms/_select.scss +36 -14
  55. data/generators/foundation/public/stylesheets/foundation6/forms/_text.scss +53 -27
  56. data/generators/foundation/public/stylesheets/foundation6/foundation.scss +59 -17
  57. data/generators/foundation/public/stylesheets/foundation6/grid/_classes.scss +100 -56
  58. data/generators/foundation/public/stylesheets/foundation6/grid/_column.scss +22 -22
  59. data/generators/foundation/public/stylesheets/foundation6/grid/_flex-grid.scss +164 -96
  60. data/generators/foundation/public/stylesheets/foundation6/grid/_grid.scss +19 -4
  61. data/generators/foundation/public/stylesheets/foundation6/grid/_gutter.scss +61 -10
  62. data/generators/foundation/public/stylesheets/foundation6/grid/_layout.scss +49 -5
  63. data/generators/foundation/public/stylesheets/foundation6/grid/_position.scss +14 -9
  64. data/generators/foundation/public/stylesheets/foundation6/grid/_row.scss +42 -15
  65. data/generators/foundation/public/stylesheets/foundation6/motion-ui/_classes.scss +11 -4
  66. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_fade.scss +4 -1
  67. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_zoom.scss +1 -1
  68. data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_slide.scss +1 -1
  69. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_transition.scss +1 -1
  70. data/generators/foundation/public/stylesheets/foundation6/prototype/_arrow.scss +36 -0
  71. data/generators/foundation/public/stylesheets/foundation6/prototype/_border-box.scss +35 -0
  72. data/generators/foundation/public/stylesheets/foundation6/prototype/_border-none.scss +35 -0
  73. data/generators/foundation/public/stylesheets/foundation6/prototype/_bordered.scss +54 -0
  74. data/generators/foundation/public/stylesheets/foundation6/prototype/_box.scss +23 -0
  75. data/generators/foundation/public/stylesheets/foundation6/prototype/_display.scss +50 -0
  76. data/generators/foundation/public/stylesheets/foundation6/prototype/_font-styling.scss +95 -0
  77. data/generators/foundation/public/stylesheets/foundation6/prototype/_list-style-type.scss +95 -0
  78. data/generators/foundation/public/stylesheets/foundation6/prototype/_overflow.scss +72 -0
  79. data/generators/foundation/public/stylesheets/foundation6/prototype/_position.scss +114 -0
  80. data/generators/foundation/public/stylesheets/foundation6/prototype/_prototype.scss +87 -0
  81. data/generators/foundation/public/stylesheets/foundation6/prototype/_relation.scss +157 -0
  82. data/generators/foundation/public/stylesheets/foundation6/prototype/_rotate.scss +31 -0
  83. data/generators/foundation/public/stylesheets/foundation6/prototype/_rounded.scss +54 -0
  84. data/generators/foundation/public/stylesheets/foundation6/prototype/_separator.scss +96 -0
  85. data/generators/foundation/public/stylesheets/foundation6/prototype/_shadow.scss +43 -0
  86. data/generators/foundation/public/stylesheets/foundation6/prototype/_sizing.scss +73 -0
  87. data/generators/foundation/public/stylesheets/foundation6/prototype/_spacing.scss +204 -0
  88. data/generators/foundation/public/stylesheets/foundation6/prototype/_text-decoration.scss +48 -0
  89. data/generators/foundation/public/stylesheets/foundation6/prototype/_text-transformation.scss +48 -0
  90. data/generators/foundation/public/stylesheets/foundation6/prototype/_text-utilities.scss +88 -0
  91. data/generators/foundation/public/stylesheets/foundation6/settings/_settings.scss +454 -116
  92. data/generators/foundation/public/stylesheets/foundation6/typography/_alignment.scss +9 -8
  93. data/generators/foundation/public/stylesheets/foundation6/typography/_base.scss +128 -55
  94. data/generators/foundation/public/stylesheets/foundation6/typography/_helpers.scss +7 -4
  95. data/generators/foundation/public/stylesheets/foundation6/typography/_print.scss +22 -9
  96. data/generators/foundation/public/stylesheets/foundation6/typography/_typography.scss +0 -2
  97. data/generators/foundation/public/stylesheets/foundation6/util/_breakpoint.scss +213 -47
  98. data/generators/foundation/public/stylesheets/foundation6/util/_color.scss +105 -17
  99. data/generators/foundation/public/stylesheets/foundation6/util/_direction.scss +31 -0
  100. data/generators/foundation/public/stylesheets/foundation6/util/_flex.scss +85 -0
  101. data/generators/foundation/public/stylesheets/foundation6/util/_math.scss +72 -0
  102. data/generators/foundation/public/stylesheets/foundation6/util/_mixins.scss +161 -38
  103. data/generators/foundation/public/stylesheets/foundation6/util/_selector.scss +5 -3
  104. data/generators/foundation/public/stylesheets/foundation6/util/_typography.scss +26 -0
  105. data/generators/foundation/public/stylesheets/foundation6/util/_unit.scss +100 -17
  106. data/generators/foundation/public/stylesheets/foundation6/util/_util.scss +4 -5
  107. data/generators/foundation/public/stylesheets/foundation6/util/_value.scss +68 -25
  108. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/_normalize.scss +3 -0
  109. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  110. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  111. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  112. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  113. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
  114. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  115. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  116. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  117. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  118. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  119. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  120. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_cell.scss +169 -0
  121. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_classes.scss +476 -0
  122. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_collapse.scss +74 -0
  123. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_frame.scss +85 -0
  124. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_grid.scss +35 -0
  125. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_gutters.scss +45 -0
  126. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_layout.scss +33 -0
  127. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_position.scss +28 -0
  128. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_xy-grid.scss +51 -0
  129. data/lib/locomotive/wagon/tools/styled_yaml.rb +1 -1
  130. data/lib/locomotive/wagon/version.rb +1 -1
  131. data/locomotivecms_wagon.gemspec +2 -2
  132. data/spec/fixtures/cassettes/authenticate.yml +102 -48
  133. data/spec/fixtures/cassettes/delete.yml +519 -259
  134. data/spec/fixtures/cassettes/push.yml +2724 -1486
  135. metadata +61 -10
  136. data/generators/foundation/public/stylesheets/foundation6/motion-ui.scss +0 -4
  137. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize.scss +0 -424
@@ -14,22 +14,26 @@ $tab-margin: 0 !default;
14
14
  /// @type Color
15
15
  $tab-background: $white !default;
16
16
 
17
- /// active background color of a tab bar.
17
+ /// Font color of tab item.
18
18
  /// @type Color
19
- $tab-background-active: $light-gray !default;
19
+ $tab-color: $primary-color !default;
20
20
 
21
- /// Default border color of tab content.
21
+ /// Active background color of a tab bar.
22
22
  /// @type Color
23
- $tab-border: $light-gray !default;
23
+ $tab-background-active: $light-gray !default;
24
24
 
25
- /// Default text color for items in a Menu.
25
+ /// Active font color of tab item.
26
26
  /// @type Color
27
- $tab-item-color: foreground($tab-background, $primary-color) !default;
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;
28
32
 
29
33
  /// Default background color on hover for items in a Menu.
30
34
  $tab-item-background-hover: $white !default;
31
35
 
32
- /// Default padding of a a tab item.
36
+ /// Default padding of a tab item.
33
37
  /// @type Number
34
38
  $tab-item-padding: 1.25rem 1.5rem !default;
35
39
 
@@ -47,91 +51,146 @@ $tab-content-border: $light-gray !default;
47
51
 
48
52
  /// Default text color of tab content.
49
53
  /// @type Color
50
- $tab-content-color: foreground($tab-background, $primary-color) !default;
54
+ $tab-content-color: $body-font-color !default;
51
55
 
52
56
  /// Default padding for tab content.
53
57
  /// @type Number | List
54
58
  $tab-content-padding: 1rem !default;
55
59
 
56
- @mixin foundation-tabs {
57
- .tabs {
58
- @include clearfix;
59
- margin: $tab-margin;
60
- list-style-type: none;
61
- background: $tab-background;
62
- border: 1px solid $tab-content-border;
63
-
64
- // Simple
65
- &.simple {
66
- > li > a {
67
- padding: 0;
68
-
69
- &:hover {
70
- background: transparent;
71
- }
72
- }
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%);
73
103
  }
74
104
 
75
- // Vertical
76
- &.vertical {
77
- > li {
78
- width: auto;
79
- float: none;
80
- display: block;
81
- }
105
+ &:focus,
106
+ &[aria-selected='true'] {
107
+ background: $background-active;
108
+ color: $color-active;
82
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
+ &.is-active {
142
+ display: block;
143
+ }
144
+ }
83
145
 
84
- // Primary color
85
- &.primary {
86
- background: $primary-color;
146
+ @mixin foundation-tabs {
147
+ .tabs {
148
+ @include tabs-container;
149
+ }
150
+
151
+ // Vertical
152
+ .tabs.vertical {
153
+ @include tabs-container-vertical;
154
+ }
87
155
 
88
- > li > a {
89
- color: foreground($primary-color);
156
+ // Simple
157
+ .tabs.simple {
158
+ > li > a {
159
+ padding: 0;
90
160
 
91
- &:hover,
92
- &:focus {
93
- background: smart-scale($primary-color);
94
- }
161
+ &:hover {
162
+ background: transparent;
95
163
  }
96
164
  }
97
165
  }
98
166
 
99
- .tabs-title {
100
- float: #{$global-left};
167
+ // Primary color
168
+ .tabs.primary {
169
+ background: $primary-color;
101
170
 
102
- > a {
103
- display: block;
104
- padding: $tab-item-padding;
105
- line-height: 1;
106
- font-size: 12px;
107
- color: $tab-item-color;
171
+ > li > a {
172
+ color: color-pick-contrast($primary-color);
108
173
 
109
174
  &:hover,
110
- &:focus,
111
- &[aria-selected="true"] {
112
- background: $tab-background-active;
175
+ &:focus {
176
+ background: smart-scale($primary-color);
113
177
  }
114
178
  }
115
179
  }
116
180
 
181
+ .tabs-title {
182
+ @include tabs-title;
183
+ }
184
+
117
185
  .tabs-content {
118
- background: $tab-content-background;
119
- transition: all 0.5s ease;
120
- border: 1px solid $tab-content-border;
121
- border-top: 0;
122
-
123
- &.vertical {
124
- border: 1px solid $tab-content-border;
125
- border-#{$global-left}: 0;
126
- }
186
+ @include tabs-content;
127
187
  }
128
188
 
129
- .tabs-panel {
130
- display: none;
131
- padding: $tab-content-padding;
189
+ .tabs-content.vertical {
190
+ @include tabs-content-vertical;
191
+ }
132
192
 
133
- &.is-active {
134
- display: block;
135
- }
193
+ .tabs-panel {
194
+ @include tabs-panel;
136
195
  }
137
196
  }
@@ -32,23 +32,36 @@ $thumbnail-radius: $global-radius !default;
32
32
 
33
33
  /// Adds thumbnail styles to an element.
34
34
  @mixin thumbnail {
35
+ display: inline-block;
36
+ max-width: 100%;
37
+ margin-bottom: $thumbnail-margin-bottom;
38
+
35
39
  border: $thumbnail-border;
40
+ border-radius: $thumbnail-radius;
36
41
  box-shadow: $thumbnail-shadow;
37
- display: inline-block;
42
+
38
43
  line-height: 0;
39
- max-width: 100%;
44
+ }
45
+
46
+ @mixin thumbnail-link {
40
47
  transition: $thumbnail-transition;
41
- border-radius: $thumbnail-radius;
42
- margin-bottom: $thumbnail-margin-bottom;
43
48
 
44
49
  &:hover,
45
50
  &:focus {
46
51
  box-shadow: $thumbnail-shadow-hover;
47
52
  }
53
+
54
+ image {
55
+ box-shadow: none;
56
+ }
48
57
  }
49
58
 
50
59
  @mixin foundation-thumbnail {
51
60
  .thumbnail {
52
61
  @include thumbnail;
53
62
  }
63
+
64
+ a.thumbnail {
65
+ @include thumbnail-link;
66
+ }
54
67
  }
@@ -6,39 +6,79 @@
6
6
  /// @group title-bar
7
7
  ////
8
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
+
9
37
  @mixin foundation-title-bar {
10
38
  .title-bar {
11
- @include clearfix;
12
- background: $black;
13
- color: $white;
14
- padding: 0.5rem;
39
+ padding: $titlebar-padding;
40
+ background: $titlebar-background;
41
+ color: $titlebar-color;
42
+
43
+ @if $global-flexbox {
44
+ display: flex;
45
+ justify-content: flex-start;
46
+ align-items: center;
47
+ }
48
+ @else {
49
+ @include clearfix;
50
+ }
15
51
 
16
52
  .menu-icon {
17
- margin-#{$global-left}: 0.25rem;
18
- margin-#{$global-right}: 0.5rem;
53
+ margin-#{$global-left}: $titlebar-icon-spacing;
54
+ margin-#{$global-right}: $titlebar-icon-spacing;
19
55
  }
20
56
  }
21
57
 
22
- .title-bar-left {
23
- float: left;
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
+ }
24
67
  }
68
+ @else {
69
+ .title-bar-left {
70
+ float: left;
71
+ }
25
72
 
26
- .title-bar-right {
27
- float: right;
28
- text-align: right;
73
+ .title-bar-right {
74
+ float: right;
75
+ text-align: right;
76
+ }
29
77
  }
30
78
 
31
79
  .title-bar-title {
32
- font-weight: bold;
33
- vertical-align: middle;
34
80
  display: inline-block;
35
- }
36
-
37
- .menu-icon {
38
- @include hamburger($color: white, $color-hover: $medium-gray);
39
- }
40
-
41
- .menu-icon.dark {
42
- @include hamburger;
81
+ vertical-align: middle;
82
+ font-weight: $titlebar-text-font-weight;
43
83
  }
44
84
  }
@@ -6,18 +6,34 @@
6
6
  /// @group tooltip
7
7
  ////
8
8
 
9
+ /// Default cursor of the defined term.
10
+ /// @type Keyword
11
+ $has-tip-cursor: help !default;
12
+
13
+ /// Default font weight of the defined term.
14
+ /// @type Keyword | Number
15
+ $has-tip-font-weight: $global-weight-bold !default;
16
+
17
+ /// Default border bottom of the defined term.
18
+ /// @type List
19
+ $has-tip-border-bottom: dotted 1px $dark-gray !default;
20
+
9
21
  /// Default color of the tooltip background.
10
22
  /// @type Color
11
23
  $tooltip-background-color: $black !default;
12
24
 
13
25
  /// Default color of the tooltip font.
14
26
  /// @type Color
15
- $tooltip-color: $white;
27
+ $tooltip-color: $white !default;
16
28
 
17
29
  /// Default padding of the tooltip background.
18
30
  /// @type Number
19
31
  $tooltip-padding: 0.75rem !default;
20
32
 
33
+ /// Default max width for tooltips.
34
+ /// @type Number
35
+ $tooltip-max-width: 10rem !default;
36
+
21
37
  /// Default font size of the tooltip text. By default, we recommend a smaller font size than the body copy.
22
38
  /// @type Number
23
39
  $tooltip-font-size: $small-font-size !default;
@@ -30,43 +46,46 @@ $tooltip-pip-width: 0.75rem !default;
30
46
  /// @type Number
31
47
  $tooltip-pip-height: $tooltip-pip-width * 0.866 !default;
32
48
 
33
- /// Default pip offset for tooltips. This controls how far the pip is indented from the left edge of the tooltip.
34
- /// @type Number
35
- $tooltip-pip-offset: 1.25rem !default;
36
-
37
49
  /// Default radius for tooltips.
38
50
  /// @type Number
39
51
  $tooltip-radius: $global-radius !default;
40
52
 
41
53
  @mixin has-tip {
42
- border-bottom: dotted 1px $dark-gray;
43
- font-weight: bold;
44
54
  position: relative;
45
55
  display: inline-block;
46
56
 
47
- &:hover {
48
- cursor: help;
49
- }
57
+ border-bottom: $has-tip-border-bottom;
58
+ font-weight: $has-tip-font-weight;
59
+ cursor: $has-tip-cursor;
50
60
  }
51
61
 
52
62
  @mixin tooltip {
53
- background-color: $tooltip-background-color;
54
- color: $tooltip-color;
55
- font-size: $tooltip-font-size;
56
- padding: $tooltip-padding;
57
63
  position: absolute;
58
- z-index: 10;
59
64
  top: calc(100% + #{$tooltip-pip-height});
60
- max-width: 10rem !important;
65
+ z-index: 1200;
66
+
67
+ max-width: $tooltip-max-width;
68
+ padding: $tooltip-padding;
69
+
61
70
  border-radius: $tooltip-radius;
62
- // visibility: hidden;
71
+ background-color: $tooltip-background-color;
72
+ font-size: $tooltip-font-size;
73
+ color: $tooltip-color;
63
74
 
64
75
  &::before {
65
- @include css-triangle($tooltip-pip-width, $tooltip-background-color, up);
66
- bottom: 100%;
67
76
  position: absolute;
68
- left: 50%;
69
- transform: translateX(-50%);
77
+ }
78
+
79
+ &.bottom {
80
+ &::before {
81
+ @include css-triangle($tooltip-pip-width, $tooltip-background-color, up);
82
+ bottom: 100%;
83
+ }
84
+
85
+ &.align-center::before {
86
+ left: 50%;
87
+ transform: translateX(-50%);
88
+ }
70
89
  }
71
90
 
72
91
  &.top {
@@ -75,13 +94,21 @@ $tooltip-radius: $global-radius !default;
75
94
  top: 100%;
76
95
  bottom: auto;
77
96
  }
97
+
98
+ &.align-center::before {
99
+ left: 50%;
100
+ transform: translateX(-50%);
101
+ }
78
102
  }
79
103
 
80
104
  &.left {
81
105
  &::before {
82
106
  @include css-triangle($tooltip-pip-width, $tooltip-background-color, right);
83
- bottom: auto;
84
107
  left: 100%;
108
+ }
109
+
110
+ &.align-center::before {
111
+ bottom: auto;
85
112
  top: 50%;
86
113
  transform: translateY(-50%);
87
114
  }
@@ -90,13 +117,36 @@ $tooltip-radius: $global-radius !default;
90
117
  &.right {
91
118
  &::before {
92
119
  @include css-triangle($tooltip-pip-width, $tooltip-background-color, left);
93
- bottom: auto;
94
- left: auto;
95
120
  right: 100%;
121
+ left: auto;
122
+ }
123
+
124
+ &.align-center::before {
125
+ bottom: auto;
96
126
  top: 50%;
97
127
  transform: translateY(-50%);
98
128
  }
99
129
  }
130
+
131
+ &.align-top::before {
132
+ bottom: auto;
133
+ top: 10%;
134
+ }
135
+
136
+ &.align-bottom::before {
137
+ bottom: 10%;
138
+ top: auto;
139
+ }
140
+
141
+ &.align-left::before {
142
+ left: 10%;
143
+ right: auto;
144
+ }
145
+
146
+ &.align-right::before {
147
+ left: auto;
148
+ right: 10%;
149
+ }
100
150
  }
101
151
 
102
152
  @mixin foundation-tooltip {