@volverjs/style 0.1.2-beta.3 → 0.1.2-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/README.md +40 -40
  2. package/dist/components/vv-accordion.css +1 -0
  3. package/dist/components/vv-alert.css +1 -0
  4. package/dist/components/vv-avatar.css +1 -0
  5. package/dist/components/vv-badge.css +1 -1
  6. package/dist/components/vv-breadcrumb.css +1 -0
  7. package/dist/components/vv-button-group.css +1 -1
  8. package/dist/components/vv-button.css +1 -1
  9. package/dist/components/vv-card.css +1 -1
  10. package/dist/components/vv-checkbox-group.css +1 -0
  11. package/dist/components/vv-checkbox.css +1 -0
  12. package/dist/components/vv-dialog.css +1 -1
  13. package/dist/components/vv-dropdown.css +1 -1
  14. package/dist/components/vv-input-text.css +1 -1
  15. package/dist/components/vv-nav.css +1 -0
  16. package/dist/components/vv-progress.css +1 -1
  17. package/dist/components/vv-radio-group.css +1 -0
  18. package/dist/components/vv-radio.css +1 -0
  19. package/dist/components/vv-select.css +1 -1
  20. package/dist/components/vv-skeleton.css +1 -0
  21. package/dist/components/vv-tab.css +1 -0
  22. package/dist/components/vv-table.css +1 -1
  23. package/dist/components/vv-text.css +1 -1
  24. package/dist/components/vv-textarea.css +1 -1
  25. package/dist/components/vv-toast.css +1 -0
  26. package/dist/components/vv-tooltip.css +1 -0
  27. package/dist/components.css +1 -1
  28. package/dist/export.css +1 -1
  29. package/dist/props/background.css +1 -1
  30. package/dist/props/colors.css +1 -1
  31. package/dist/props/filters.css +1 -1
  32. package/dist/props/input.css +1 -1
  33. package/dist/props/spacing.css +1 -1
  34. package/dist/props/transitions.css +1 -0
  35. package/dist/props.css +1 -1
  36. package/dist/reset.css +1 -1
  37. package/dist/themes/dark/components.css +1 -1
  38. package/dist/themes/dark/props.css +1 -1
  39. package/dist/themes/dark/volver.css +1 -0
  40. package/dist/utilities/backgrounds.css +1 -1
  41. package/dist/utilities/borders.css +1 -1
  42. package/dist/utilities/colors.css +1 -1
  43. package/dist/utilities/effects.css +1 -1
  44. package/dist/utilities/filters.css +1 -1
  45. package/dist/utilities/flexbox.css +1 -1
  46. package/dist/utilities/grid.css +1 -1
  47. package/dist/utilities/interactivity.css +1 -0
  48. package/dist/utilities/layout.css +1 -1
  49. package/dist/utilities/sizing.css +1 -1
  50. package/dist/utilities/spacing.css +1 -1
  51. package/dist/utilities/transitions.css +1 -0
  52. package/dist/utilities/typography.css +1 -1
  53. package/dist/utilities.css +1 -1
  54. package/dist/volver.css +1 -0
  55. package/package.json +163 -118
  56. package/src/_config.scss +19 -11
  57. package/src/_context.scss +3 -3
  58. package/src/_preflight.scss +412 -0
  59. package/src/components/index.scss +25 -17
  60. package/src/components/vv-accordion.scss +13 -0
  61. package/src/components/vv-alert.scss +13 -0
  62. package/src/components/vv-avatar.scss +13 -0
  63. package/src/components/vv-badge.scss +3 -2
  64. package/src/components/vv-breadcrumb.scss +13 -0
  65. package/src/components/vv-button-group.scss +15 -18
  66. package/src/components/vv-button.scss +5 -8
  67. package/src/components/vv-card.scss +3 -2
  68. package/src/components/vv-checkbox-group.scss +13 -0
  69. package/src/components/{vv-input-checkbox.scss → vv-checkbox.scss} +7 -6
  70. package/src/components/vv-dialog.scss +3 -2
  71. package/src/components/vv-dropdown.scss +3 -2
  72. package/src/components/vv-input-text.scss +6 -5
  73. package/src/components/vv-nav.scss +13 -0
  74. package/src/components/vv-progress.scss +3 -2
  75. package/src/components/vv-radio-group.scss +13 -0
  76. package/src/components/{vv-input-radio.scss → vv-radio.scss} +6 -5
  77. package/src/components/vv-select.scss +6 -5
  78. package/src/components/vv-skeleton.scss +14 -0
  79. package/src/components/vv-tab.scss +13 -0
  80. package/src/components/vv-table.scss +3 -2
  81. package/src/components/vv-text.scss +3 -2
  82. package/src/components/vv-textarea.scss +6 -5
  83. package/src/components/vv-toast.scss +13 -0
  84. package/src/components/vv-tooltip.scss +33 -0
  85. package/src/export.scss +62 -6
  86. package/src/props/background.scss +1 -1
  87. package/src/props/borders.scss +1 -1
  88. package/src/props/colors.scss +1 -1
  89. package/src/props/effects.scss +1 -1
  90. package/src/props/filters.scss +2 -1
  91. package/src/props/index.scss +12 -12
  92. package/src/props/input.scss +1 -1
  93. package/src/props/layout.scss +1 -1
  94. package/src/props/media.scss +1 -1
  95. package/src/props/sizing.scss +1 -1
  96. package/src/props/spacing.scss +2 -2
  97. package/src/props/{animation.scss → transitions.scss} +53 -2
  98. package/src/props/typography.scss +2 -2
  99. package/src/reset.scss +1 -1
  100. package/src/settings/_background.scss +6 -1
  101. package/src/settings/_breakpoints.scss +2 -0
  102. package/src/settings/_colors.scss +16 -2
  103. package/src/settings/_effects.scss +47 -2
  104. package/src/settings/_filters.scss +9 -0
  105. package/src/settings/_index.scss +40 -31
  106. package/src/settings/_input.scss +8 -6
  107. package/src/settings/_interactivity.scss +39 -0
  108. package/src/settings/_spacing.scss +1 -0
  109. package/src/settings/_transitions.scss +44 -0
  110. package/src/settings/components/_vv-accordion.scss +134 -0
  111. package/src/settings/components/_vv-alert.scss +161 -0
  112. package/src/settings/components/_vv-avatar.scss +55 -0
  113. package/src/settings/components/_vv-badge.scss +58 -18
  114. package/src/settings/components/_vv-breadcrumb.scss +95 -0
  115. package/src/settings/components/_vv-button-group.scss +4 -0
  116. package/src/settings/components/_vv-button.scss +121 -15
  117. package/src/settings/components/_vv-card.scss +4 -3
  118. package/src/settings/components/{_vv-input-checkbox-group.scss → _vv-checkbox-group.scss} +2 -1
  119. package/src/settings/components/{_vv-input-checkbox.scss → _vv-checkbox.scss} +46 -10
  120. package/src/settings/components/_vv-dialog.scss +71 -89
  121. package/src/settings/components/_vv-input-text.scss +83 -37
  122. package/src/settings/components/_vv-nav.scss +142 -0
  123. package/src/settings/components/_vv-progress.scss +1 -1
  124. package/src/settings/components/_vv-radio-group.scss +3 -0
  125. package/src/settings/components/{_vv-input-radio.scss → _vv-radio.scss} +34 -4
  126. package/src/settings/components/_vv-select.scss +77 -12
  127. package/src/settings/components/_vv-skeleton.scss +22 -0
  128. package/src/settings/components/_vv-tab.scss +16 -0
  129. package/src/settings/components/_vv-table.scss +22 -3
  130. package/src/settings/components/_vv-text.scss +20 -1
  131. package/src/settings/components/_vv-textarea.scss +49 -24
  132. package/src/settings/components/_vv-toast.scss +259 -0
  133. package/src/settings/components/_vv-tooltip.scss +74 -0
  134. package/src/themes/dark/_context.scss +7 -4
  135. package/src/themes/dark/components/_vv-button.scss +3 -5
  136. package/src/themes/dark/components/index.scss +1 -2
  137. package/src/themes/dark/props/_background.scss +2 -2
  138. package/src/themes/dark/props/_colors.scss +2 -2
  139. package/src/themes/dark/props/_input.scss +15 -0
  140. package/src/themes/dark/props/index.scss +3 -2
  141. package/src/themes/dark/settings/_background.scss +9 -4
  142. package/src/themes/dark/settings/_colors.scss +25 -10
  143. package/src/themes/dark/settings/_index.scss +4 -4
  144. package/src/themes/dark/settings/_input.scss +8 -0
  145. package/src/themes/dark/settings/components/_vv-button.scss +10 -10
  146. package/src/themes/dark/volver.scss +5 -0
  147. package/src/tools/_breakpoints.scss +7 -7
  148. package/src/tools/_index.scss +3 -3
  149. package/src/tools/_mixins.scss +200 -37
  150. package/src/utilities/backgrounds.scss +15 -8
  151. package/src/utilities/borders.scss +22 -9
  152. package/src/utilities/colors.scss +9 -5
  153. package/src/utilities/effects.scss +23 -5
  154. package/src/utilities/filters.scss +15 -4
  155. package/src/utilities/flexbox.scss +26 -8
  156. package/src/utilities/grid.scss +25 -9
  157. package/src/utilities/index.scss +13 -12
  158. package/src/utilities/interactivity.scss +10 -0
  159. package/src/utilities/layout.scss +27 -14
  160. package/src/utilities/sizing.scss +23 -26
  161. package/src/utilities/spacing.scss +1 -1
  162. package/src/utilities/transitions.scss +47 -0
  163. package/src/utilities/typography.scss +34 -17
  164. package/src/volver.scss +14 -0
  165. package/dist/components/vv-collapse.css +0 -1
  166. package/dist/components/vv-input-checkbox-group.css +0 -1
  167. package/dist/components/vv-input-checkbox.css +0 -1
  168. package/dist/components/vv-input-radio-group.css +0 -1
  169. package/dist/components/vv-input-radio.css +0 -1
  170. package/dist/preflight.css +0 -1
  171. package/dist/props/animation.css +0 -1
  172. package/dist/style.css +0 -1
  173. package/dist/themes/dark/style.css +0 -1
  174. package/dist/utilities/animation.css +0 -1
  175. package/src/assets/24consulting.svg +0 -63
  176. package/src/assets/volverjs.svg +0 -15
  177. package/src/components/vv-collapse.scss +0 -12
  178. package/src/components/vv-input-checkbox-group.scss +0 -12
  179. package/src/components/vv-input-radio-group.scss +0 -12
  180. package/src/preflight.scss +0 -281
  181. package/src/settings/_animation.scss +0 -9
  182. package/src/settings/components/_vv-collapse.scss +0 -111
  183. package/src/settings/components/_vv-input-radio-group.scss +0 -1
  184. package/src/style.scss +0 -14
  185. package/src/themes/dark/components/_vv-input-checkbox.scss +0 -24
  186. package/src/themes/dark/settings/components/_vv-input-checkbox.scss +0 -26
  187. package/src/themes/dark/style.scss +0 -5
  188. package/src/utilities/animation.scss +0 -8
@@ -0,0 +1,74 @@
1
+ $vv-tooltip: (
2
+ opacity: 0,
3
+ display: block,
4
+ position: absolute,
5
+ inset-inline: 100% auto,
6
+ top: 50%,
7
+ transform: translate(var(--spacing-10), -50%),
8
+ z-index: var(--z-tooltip),
9
+ inline-size: max-content,
10
+ max-inline-size: 25ch,
11
+ border-radius: var(--rounded-md),
12
+ padding: var(--spacing-4) var(--spacing-sm),
13
+ background: var(--color-gray-darken-4),
14
+ font-size: var(--text-12),
15
+ font-weight: var(--font-normal),
16
+ color: var(--color-gray-lighten-5),
17
+ text-align: center,
18
+ box-shadow: var(--shadow-md),
19
+ will-change: opacity,
20
+ transition: var(--transition-opacity),
21
+ pseudo: (
22
+ after: (
23
+ position: absolute,
24
+ z-index: -1,
25
+ inset-inline: 0 auto,
26
+ inset-block: 50% auto,
27
+ transform: translate(-100%, -50%),
28
+ border-width: var(--spacing-8),
29
+ border-style: solid,
30
+ border-color: transparent var(--color-gray-darken-4) transparent
31
+ transparent,
32
+ ),
33
+ ),
34
+ modifier: (
35
+ visible: (
36
+ opacity: 1,
37
+ ),
38
+ top: (
39
+ inset-inline: 50% 0,
40
+ inset-block: auto 100%,
41
+ transform: translate(-50%, calc(var(--spacing-10) * -1)),
42
+ pseudo: (
43
+ after: (
44
+ inset-inline: 50% auto,
45
+ inset-block: 100% auto,
46
+ transform: translate(-50%, 0) rotate(-90deg),
47
+ ),
48
+ ),
49
+ ),
50
+ bottom: (
51
+ inset-inline: 50% 0,
52
+ inset-block: 100% auto,
53
+ transform: translate(-50%, var(--spacing-10)),
54
+ pseudo: (
55
+ after: (
56
+ inset-inline: 50% auto,
57
+ inset-block: 0 auto,
58
+ transform: translate(-50%, -100%) rotate(90deg),
59
+ ),
60
+ ),
61
+ ),
62
+ left: (
63
+ inset-inline: auto 100%,
64
+ transform: translate(calc(var(--spacing-10) * -1), -50%),
65
+ pseudo: (
66
+ after: (
67
+ position: absolute,
68
+ inset-inline: auto 0,
69
+ transform: translate(100%, -50%) rotate(180deg),
70
+ ),
71
+ ),
72
+ ),
73
+ ),
74
+ ) !default;
@@ -1,8 +1,11 @@
1
1
  // configuration
2
- @import '../../config';
2
+ @forward '../../config';
3
3
 
4
4
  // tools (mixins, functions, recipes)
5
- @import '../../tools';
5
+ @forward '../../tools';
6
6
 
7
- // settings
8
- @import 'settings';
7
+ // main settings
8
+ @forward '../../settings';
9
+
10
+ // theme settings
11
+ @forward 'settings';
@@ -1,15 +1,13 @@
1
1
  @use 'sass:map';
2
- @import '../context';
2
+ @use '../context' as *;
3
3
 
4
4
  $component-name: map.get($components-names, vv-button);
5
- $component-map: $vv-button;
6
- $props: true;
5
+ $component-map: $dark-vv-button;
7
6
 
8
7
  @mixin theme-dark-vv-button {
9
8
  @include spread-map-into-props(
10
9
  $map: $component-map,
11
- $prefix: $component-name,
12
- $deep: $props
10
+ $prefix: $component-name
13
11
  );
14
12
  }
15
13
 
@@ -1,2 +1 @@
1
- @import 'vv-button';
2
- @import 'vv-input-checkbox';
1
+ @use 'vv-button';
@@ -1,7 +1,7 @@
1
- @import '../context';
1
+ @use '../context' as *;
2
2
 
3
3
  @mixin theme-dark-bg {
4
- @include spread-map-into-props($background-image, 'bg');
4
+ @include spread-map-into-props($dark-background-image, 'bg');
5
5
  }
6
6
 
7
7
  :where(:host, :root, .theme):not(.theme--light) {
@@ -1,7 +1,7 @@
1
- @import '../context';
1
+ @use '../context' as *;
2
2
 
3
3
  @mixin theme-dark-colors {
4
- @include spread-map-into-props($colors, 'color');
4
+ @include spread-map-into-props($dark-colors, 'color');
5
5
  }
6
6
 
7
7
  :where(:host, :root, .theme):not(.theme--light) {
@@ -0,0 +1,15 @@
1
+ @use '../context' as *;
2
+
3
+ @mixin theme-dark-input {
4
+ @include spread-map-into-props($dark-input, 'input');
5
+ }
6
+
7
+ :where(:host, :root, .theme):not(.theme--light) {
8
+ @media (prefers-color-scheme: dark) {
9
+ @include theme-dark-input;
10
+ }
11
+ }
12
+
13
+ :where(.theme.theme--dark) {
14
+ @include theme-dark-input;
15
+ }
@@ -1,2 +1,3 @@
1
- @import 'background';
2
- @import 'colors';
1
+ @use 'background';
2
+ @use 'colors';
3
+ @use 'input';
@@ -1,12 +1,17 @@
1
+ @use 'colors' as *;
2
+ @use '../../../tools/functions' as *;
3
+
1
4
  // background-image
2
- $background-image: (
5
+ $dark-background-image: (
3
6
  none: none,
4
7
  chevron:
5
- url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($color-word)})' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"),
8
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($dark-color-word)})' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"),
6
9
  grid:
7
10
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(51 65 85 / 0.25)'%3E%3Cpath d='M0 .5H31.5V32'/%3E%3C/svg%3E"),
8
11
  check:
9
- url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($color-word)})' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"),
12
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($dark-color-word)})' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"),
10
13
  minus:
11
- url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($color-word)})' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E"),
14
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($dark-color-word)})' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E"),
15
+ close:
16
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($dark-color-word)})' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20L4 4m16 0L4 20'/%3E%3C/svg%3E"),
12
17
  ) !default;
@@ -1,15 +1,30 @@
1
1
  @use 'sass:color';
2
+ @use 'sass:map';
3
+ @use '../../../tools/functions' as *;
4
+ @use '../../../settings/colors' as *;
2
5
 
3
- $color-scheme: dark !default;
4
- $color-brand: #1976d2 !default;
5
- $color-word: hsl(color.hue($color-brand) 15% 85%) !default;
6
- $color-surface: hsl(color.hue($color-brand) 10% 5%) !default;
7
- $color-alpha: hsla(0deg 0% 100% / 0%) !default;
6
+ $dark-color-scheme: dark !default;
7
+ $dark-color-brand: #1976d2 !default;
8
+ $dark-color-word: hsl(color.hue($dark-color-brand) 15% 85%) !default;
9
+ $dark-color-surface: hsl(color.hue($dark-color-brand) 10% 5%) !default;
10
+ $dark-color-alpha: hsla(0deg 0% 100% / 0%) !default;
11
+ $dark-color-surface-palette: (
12
+ brand: hsl(color.hue($color-brand) color.saturation($color-brand) 10%),
13
+ accent: hsl(color.hue($color-accent) color.saturation($color-accent) 10%),
14
+ success: hsl(color.hue($color-success) color.saturation($color-success) 10%),
15
+ danger: hsl(color.hue($color-danger) color.saturation($color-danger) 10%),
16
+ info: hsl(color.hue($color-info) color.saturation($color-info) 10%),
17
+ warning: hsl(color.hue($color-warning) color.saturation($color-warning) 10%),
18
+ ) !default;
8
19
 
9
20
  // color map
10
- $colors: (
11
- scheme: $color-scheme,
12
- word: color-darken-map($color-word, 'word', $scale: 15%),
13
- surface: color-lighten-map($color-surface, 'surface', $scale: 5%),
14
- alpha: color-alpha-map($color-alpha, 'alpha', $steps: 5, $scale: 5%),
21
+ $dark-colors: (
22
+ scheme: $dark-color-scheme,
23
+ word: color-darken-map($dark-color-word, 'word', $scale: 15%),
24
+ surface:
25
+ map.merge(
26
+ color-lighten-map($dark-color-surface, 'surface', $scale: 5%),
27
+ $dark-color-surface-palette
28
+ ),
29
+ alpha: color-alpha-map($dark-color-alpha, 'alpha', $steps: 5, $scale: 5%),
15
30
  ) !default;
@@ -1,5 +1,5 @@
1
- @import 'colors';
2
- @import 'background';
1
+ @forward 'colors';
2
+ @forward 'background';
3
+ @forward 'input';
3
4
 
4
- @import 'components/vv-button';
5
- @import 'components/vv-input-checkbox';
5
+ @forward 'components/vv-button';
@@ -0,0 +1,8 @@
1
+ $dark-input: (
2
+ invalid: (
3
+ color: var(--color-danger-lighten-2),
4
+ ),
5
+ valid: (
6
+ color: var(--color-success-lighten-2),
7
+ ),
8
+ ) !default;
@@ -1,20 +1,20 @@
1
- $vv-button: (
1
+ $dark-vv-button: (
2
2
  modifier: (
3
3
  primary: (
4
- border-color: var(--color-gray-lighten-3),
5
- background: var(--color-gray-lighten-3),
4
+ border-color: var(--color-gray-darken-1),
5
+ background: var(--color-gray-darken-1),
6
6
  state: (
7
7
  focus-visible: (
8
8
  outline: var(--spacing-px) solid var(--color-gray),
9
9
  ),
10
10
  hover: (
11
- background: var(--color-gray-lighten-2),
12
- border-color: var(--color-gray-lighten-2),
13
- ),
14
- active: (
15
11
  background: var(--color-gray-lighten-1),
16
12
  border-color: var(--color-gray-lighten-1),
17
13
  ),
14
+ active: (
15
+ background: var(--color-gray),
16
+ border-color: var(--color-gray),
17
+ ),
18
18
  ),
19
19
  ),
20
20
  secondary: (
@@ -41,7 +41,7 @@ $vv-button: (
41
41
  state: (
42
42
  focus-visible: (
43
43
  outline: var(--spacing-px) solid var(--color-gray),
44
- outline-offset: 0,
44
+ outline-offset: var(--spacing-0),
45
45
  ),
46
46
  hover: (
47
47
  background: var(--color-gray-darken-4),
@@ -51,8 +51,8 @@ $vv-button: (
51
51
  ),
52
52
  ),
53
53
  ),
54
- text: (
55
- text-shadow: 0 1px 0 var(--color-gray-darken-5),
54
+ link: (
55
+ color: var(--color-brand-lighten-1),
56
56
  ),
57
57
  ),
58
58
  ) !default;
@@ -0,0 +1,5 @@
1
+ // props
2
+ @use 'props';
3
+
4
+ // components
5
+ @use 'components';
@@ -28,7 +28,7 @@
28
28
  // Minimum breakpoint width. Null for the smallest (first) breakpoint.
29
29
  // >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
30
30
  // 576px
31
- @function breakpoint-min($name, $bps: $breakpoints) {
31
+ @function breakpoint-min($name, $bps) {
32
32
  $min: map.get($bps, $name);
33
33
  @return if($min != 0, $min, null);
34
34
  }
@@ -41,7 +41,7 @@
41
41
  // See https://bugs.webkit.org/show_bug.cgi?id=178261
42
42
  // >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
43
43
  // 767.98px
44
- @function breakpoint-max($name, $bps: $breakpoints) {
44
+ @function breakpoint-max($name, $bps) {
45
45
  $next: breakpoint-next($name, $bps);
46
46
  @return if($next, breakpoint-min($next, $bps) - 0.02, null);
47
47
  }
@@ -52,13 +52,13 @@
52
52
  // "" (Returns a blank string)
53
53
  // >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
54
54
  // "-sm"
55
- @function breakpoint-infix($name, $bps: $breakpoints) {
55
+ @function breakpoint-infix($name, $bps) {
56
56
  @return if(breakpoint-min($name, $bps) == null, '', '-#{$name}');
57
57
  }
58
58
 
59
59
  // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
60
60
  // Makes the @content apply to the given breakpoint and wider.
61
- @mixin media-breakpoint-up($name, $bps: $breakpoints) {
61
+ @mixin media-breakpoint-up($name, $bps) {
62
62
  $min: breakpoint-min($name, $bps);
63
63
  @if $min {
64
64
  @media (min-width: $min) {
@@ -71,7 +71,7 @@
71
71
 
72
72
  // Media of at most the maximum breakpoint width. No query for the largest breakpoint.
73
73
  // Makes the @content apply to the given breakpoint and narrower.
74
- @mixin media-breakpoint-down($name, $bps: $breakpoints) {
74
+ @mixin media-breakpoint-down($name, $bps) {
75
75
  $max: breakpoint-max($name, $bps);
76
76
  @if $max {
77
77
  @media (max-width: $max) {
@@ -84,7 +84,7 @@
84
84
 
85
85
  // Media that spans multiple breakpoint widths.
86
86
  // Makes the @content apply between the min and max breakpoints
87
- @mixin media-breakpoint-between($lower, $upper, $bps: $breakpoints) {
87
+ @mixin media-breakpoint-between($lower, $upper, $bps) {
88
88
  $min: breakpoint-min($lower, $bps);
89
89
  $max: breakpoint-max($upper, $bps);
90
90
 
@@ -106,7 +106,7 @@
106
106
  // Media between the breakpoint's minimum and maximum widths.
107
107
  // No minimum for the smallest breakpoint, and no maximum for the largest one.
108
108
  // Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
109
- @mixin media-breakpoint-only($name, $bps: $breakpoints) {
109
+ @mixin media-breakpoint-only($name, $bps) {
110
110
  $min: breakpoint-min($name, $bps);
111
111
  $max: breakpoint-max($name, $bps);
112
112
 
@@ -1,3 +1,3 @@
1
- @import 'functions';
2
- @import 'mixins';
3
- @import 'breakpoints';
1
+ @forward 'functions';
2
+ @forward 'mixins';
3
+ @forward 'breakpoints';