@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.
- package/README.md +40 -40
- package/dist/components/vv-accordion.css +1 -0
- package/dist/components/vv-alert.css +1 -0
- package/dist/components/vv-avatar.css +1 -0
- package/dist/components/vv-badge.css +1 -1
- package/dist/components/vv-breadcrumb.css +1 -0
- package/dist/components/vv-button-group.css +1 -1
- package/dist/components/vv-button.css +1 -1
- package/dist/components/vv-card.css +1 -1
- package/dist/components/vv-checkbox-group.css +1 -0
- package/dist/components/vv-checkbox.css +1 -0
- package/dist/components/vv-dialog.css +1 -1
- package/dist/components/vv-dropdown.css +1 -1
- package/dist/components/vv-input-text.css +1 -1
- package/dist/components/vv-nav.css +1 -0
- package/dist/components/vv-progress.css +1 -1
- package/dist/components/vv-radio-group.css +1 -0
- package/dist/components/vv-radio.css +1 -0
- package/dist/components/vv-select.css +1 -1
- package/dist/components/vv-skeleton.css +1 -0
- package/dist/components/vv-tab.css +1 -0
- package/dist/components/vv-table.css +1 -1
- package/dist/components/vv-text.css +1 -1
- package/dist/components/vv-textarea.css +1 -1
- package/dist/components/vv-toast.css +1 -0
- package/dist/components/vv-tooltip.css +1 -0
- package/dist/components.css +1 -1
- package/dist/export.css +1 -1
- package/dist/props/background.css +1 -1
- package/dist/props/colors.css +1 -1
- package/dist/props/filters.css +1 -1
- package/dist/props/input.css +1 -1
- package/dist/props/spacing.css +1 -1
- package/dist/props/transitions.css +1 -0
- package/dist/props.css +1 -1
- package/dist/reset.css +1 -1
- package/dist/themes/dark/components.css +1 -1
- package/dist/themes/dark/props.css +1 -1
- package/dist/themes/dark/volver.css +1 -0
- package/dist/utilities/backgrounds.css +1 -1
- package/dist/utilities/borders.css +1 -1
- package/dist/utilities/colors.css +1 -1
- package/dist/utilities/effects.css +1 -1
- package/dist/utilities/filters.css +1 -1
- package/dist/utilities/flexbox.css +1 -1
- package/dist/utilities/grid.css +1 -1
- package/dist/utilities/interactivity.css +1 -0
- package/dist/utilities/layout.css +1 -1
- package/dist/utilities/sizing.css +1 -1
- package/dist/utilities/spacing.css +1 -1
- package/dist/utilities/transitions.css +1 -0
- package/dist/utilities/typography.css +1 -1
- package/dist/utilities.css +1 -1
- package/dist/volver.css +1 -0
- package/package.json +163 -118
- package/src/_config.scss +19 -11
- package/src/_context.scss +3 -3
- package/src/_preflight.scss +412 -0
- package/src/components/index.scss +25 -17
- package/src/components/vv-accordion.scss +13 -0
- package/src/components/vv-alert.scss +13 -0
- package/src/components/vv-avatar.scss +13 -0
- package/src/components/vv-badge.scss +3 -2
- package/src/components/vv-breadcrumb.scss +13 -0
- package/src/components/vv-button-group.scss +15 -18
- package/src/components/vv-button.scss +5 -8
- package/src/components/vv-card.scss +3 -2
- package/src/components/vv-checkbox-group.scss +13 -0
- package/src/components/{vv-input-checkbox.scss → vv-checkbox.scss} +7 -6
- package/src/components/vv-dialog.scss +3 -2
- package/src/components/vv-dropdown.scss +3 -2
- package/src/components/vv-input-text.scss +6 -5
- package/src/components/vv-nav.scss +13 -0
- package/src/components/vv-progress.scss +3 -2
- package/src/components/vv-radio-group.scss +13 -0
- package/src/components/{vv-input-radio.scss → vv-radio.scss} +6 -5
- package/src/components/vv-select.scss +6 -5
- package/src/components/vv-skeleton.scss +14 -0
- package/src/components/vv-tab.scss +13 -0
- package/src/components/vv-table.scss +3 -2
- package/src/components/vv-text.scss +3 -2
- package/src/components/vv-textarea.scss +6 -5
- package/src/components/vv-toast.scss +13 -0
- package/src/components/vv-tooltip.scss +33 -0
- package/src/export.scss +62 -6
- package/src/props/background.scss +1 -1
- package/src/props/borders.scss +1 -1
- package/src/props/colors.scss +1 -1
- package/src/props/effects.scss +1 -1
- package/src/props/filters.scss +2 -1
- package/src/props/index.scss +12 -12
- package/src/props/input.scss +1 -1
- package/src/props/layout.scss +1 -1
- package/src/props/media.scss +1 -1
- package/src/props/sizing.scss +1 -1
- package/src/props/spacing.scss +2 -2
- package/src/props/{animation.scss → transitions.scss} +53 -2
- package/src/props/typography.scss +2 -2
- package/src/reset.scss +1 -1
- package/src/settings/_background.scss +6 -1
- package/src/settings/_breakpoints.scss +2 -0
- package/src/settings/_colors.scss +16 -2
- package/src/settings/_effects.scss +47 -2
- package/src/settings/_filters.scss +9 -0
- package/src/settings/_index.scss +40 -31
- package/src/settings/_input.scss +8 -6
- package/src/settings/_interactivity.scss +39 -0
- package/src/settings/_spacing.scss +1 -0
- package/src/settings/_transitions.scss +44 -0
- package/src/settings/components/_vv-accordion.scss +134 -0
- package/src/settings/components/_vv-alert.scss +161 -0
- package/src/settings/components/_vv-avatar.scss +55 -0
- package/src/settings/components/_vv-badge.scss +58 -18
- package/src/settings/components/_vv-breadcrumb.scss +95 -0
- package/src/settings/components/_vv-button-group.scss +4 -0
- package/src/settings/components/_vv-button.scss +121 -15
- package/src/settings/components/_vv-card.scss +4 -3
- package/src/settings/components/{_vv-input-checkbox-group.scss → _vv-checkbox-group.scss} +2 -1
- package/src/settings/components/{_vv-input-checkbox.scss → _vv-checkbox.scss} +46 -10
- package/src/settings/components/_vv-dialog.scss +71 -89
- package/src/settings/components/_vv-input-text.scss +83 -37
- package/src/settings/components/_vv-nav.scss +142 -0
- package/src/settings/components/_vv-progress.scss +1 -1
- package/src/settings/components/_vv-radio-group.scss +3 -0
- package/src/settings/components/{_vv-input-radio.scss → _vv-radio.scss} +34 -4
- package/src/settings/components/_vv-select.scss +77 -12
- package/src/settings/components/_vv-skeleton.scss +22 -0
- package/src/settings/components/_vv-tab.scss +16 -0
- package/src/settings/components/_vv-table.scss +22 -3
- package/src/settings/components/_vv-text.scss +20 -1
- package/src/settings/components/_vv-textarea.scss +49 -24
- package/src/settings/components/_vv-toast.scss +259 -0
- package/src/settings/components/_vv-tooltip.scss +74 -0
- package/src/themes/dark/_context.scss +7 -4
- package/src/themes/dark/components/_vv-button.scss +3 -5
- package/src/themes/dark/components/index.scss +1 -2
- package/src/themes/dark/props/_background.scss +2 -2
- package/src/themes/dark/props/_colors.scss +2 -2
- package/src/themes/dark/props/_input.scss +15 -0
- package/src/themes/dark/props/index.scss +3 -2
- package/src/themes/dark/settings/_background.scss +9 -4
- package/src/themes/dark/settings/_colors.scss +25 -10
- package/src/themes/dark/settings/_index.scss +4 -4
- package/src/themes/dark/settings/_input.scss +8 -0
- package/src/themes/dark/settings/components/_vv-button.scss +10 -10
- package/src/themes/dark/volver.scss +5 -0
- package/src/tools/_breakpoints.scss +7 -7
- package/src/tools/_index.scss +3 -3
- package/src/tools/_mixins.scss +200 -37
- package/src/utilities/backgrounds.scss +15 -8
- package/src/utilities/borders.scss +22 -9
- package/src/utilities/colors.scss +9 -5
- package/src/utilities/effects.scss +23 -5
- package/src/utilities/filters.scss +15 -4
- package/src/utilities/flexbox.scss +26 -8
- package/src/utilities/grid.scss +25 -9
- package/src/utilities/index.scss +13 -12
- package/src/utilities/interactivity.scss +10 -0
- package/src/utilities/layout.scss +27 -14
- package/src/utilities/sizing.scss +23 -26
- package/src/utilities/spacing.scss +1 -1
- package/src/utilities/transitions.scss +47 -0
- package/src/utilities/typography.scss +34 -17
- package/src/volver.scss +14 -0
- package/dist/components/vv-collapse.css +0 -1
- package/dist/components/vv-input-checkbox-group.css +0 -1
- package/dist/components/vv-input-checkbox.css +0 -1
- package/dist/components/vv-input-radio-group.css +0 -1
- package/dist/components/vv-input-radio.css +0 -1
- package/dist/preflight.css +0 -1
- package/dist/props/animation.css +0 -1
- package/dist/style.css +0 -1
- package/dist/themes/dark/style.css +0 -1
- package/dist/utilities/animation.css +0 -1
- package/src/assets/24consulting.svg +0 -63
- package/src/assets/volverjs.svg +0 -15
- package/src/components/vv-collapse.scss +0 -12
- package/src/components/vv-input-checkbox-group.scss +0 -12
- package/src/components/vv-input-radio-group.scss +0 -12
- package/src/preflight.scss +0 -281
- package/src/settings/_animation.scss +0 -9
- package/src/settings/components/_vv-collapse.scss +0 -111
- package/src/settings/components/_vv-input-radio-group.scss +0 -1
- package/src/style.scss +0 -14
- package/src/themes/dark/components/_vv-input-checkbox.scss +0 -24
- package/src/themes/dark/settings/components/_vv-input-checkbox.scss +0 -26
- package/src/themes/dark/style.scss +0 -5
- 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
|
-
@
|
|
2
|
+
@forward '../../config';
|
|
3
3
|
|
|
4
4
|
// tools (mixins, functions, recipes)
|
|
5
|
-
@
|
|
5
|
+
@forward '../../tools';
|
|
6
6
|
|
|
7
|
-
// settings
|
|
8
|
-
@
|
|
7
|
+
// main settings
|
|
8
|
+
@forward '../../settings';
|
|
9
|
+
|
|
10
|
+
// theme settings
|
|
11
|
+
@forward 'settings';
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
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
|
-
@
|
|
2
|
-
@import 'vv-input-checkbox';
|
|
1
|
+
@use 'vv-button';
|
|
@@ -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
|
-
@
|
|
2
|
-
@
|
|
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:
|
|
14
|
-
|
|
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,20 +1,20 @@
|
|
|
1
|
-
$vv-button: (
|
|
1
|
+
$dark-vv-button: (
|
|
2
2
|
modifier: (
|
|
3
3
|
primary: (
|
|
4
|
-
border-color: var(--color-gray-
|
|
5
|
-
background: var(--color-gray-
|
|
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
|
-
|
|
55
|
-
|
|
54
|
+
link: (
|
|
55
|
+
color: var(--color-brand-lighten-1),
|
|
56
56
|
),
|
|
57
57
|
),
|
|
58
58
|
) !default;
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
109
|
+
@mixin media-breakpoint-only($name, $bps) {
|
|
110
110
|
$min: breakpoint-min($name, $bps);
|
|
111
111
|
$max: breakpoint-max($name, $bps);
|
|
112
112
|
|
package/src/tools/_index.scss
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
1
|
+
@forward 'functions';
|
|
2
|
+
@forward 'mixins';
|
|
3
|
+
@forward 'breakpoints';
|