@magmonium/one 0.0.4 → 0.0.5
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/package.json +2 -1
- package/sass/_date-picker.sass +147 -0
- package/sass/_index.sass +34 -0
- package/sass/_input-date.sass +25 -0
- package/sass/_m-components.sass +110 -0
- package/sass/_menu.sass +132 -0
- package/sass/_reset.sass +186 -0
- package/sass/animations/_index.sass +13 -0
- package/sass/animations/_registry.sass +51 -0
- package/sass/animations/background/_energy.sass +91 -0
- package/sass/animations/background/_gradient.sass +104 -0
- package/sass/animations/background/_index.sass +9 -0
- package/sass/animations/background/_nature.sass +110 -0
- package/sass/animations/background/_new-effects.sass +292 -0
- package/sass/animations/background/_particle.sass +122 -0
- package/sass/animations/background/_tech.sass +124 -0
- package/sass/functions/_functions.sass +107 -0
- package/sass/mixins/_backdrops.sass +230 -0
- package/sass/mixins/_backgrounds.sass +214 -0
- package/sass/mixins/_borders.sass +93 -0
- package/sass/mixins/_breakpoints.sass +68 -0
- package/sass/mixins/_button.sass +46 -0
- package/sass/mixins/_checkbox.sass +128 -0
- package/sass/mixins/_colors.sass +121 -0
- package/sass/mixins/_control.sass +13 -0
- package/sass/mixins/_device.sass +22 -0
- package/sass/mixins/_display.sass +210 -0
- package/sass/mixins/_flex.sass +104 -0
- package/sass/mixins/_form.sass +68 -0
- package/sass/mixins/_grid.sass +273 -0
- package/sass/mixins/_header.sass +71 -0
- package/sass/mixins/_index.sass +29 -0
- package/sass/mixins/_input.sass +132 -0
- package/sass/mixins/_interactive.sass +19 -0
- package/sass/mixins/_label.sass +25 -0
- package/sass/mixins/_layout.sass +251 -0
- package/sass/mixins/_links.sass +85 -0
- package/sass/mixins/_lists.sass +377 -0
- package/sass/mixins/_overflow.sass +121 -0
- package/sass/mixins/_position.sass +181 -0
- package/sass/mixins/_radio.sass +205 -0
- package/sass/mixins/_sizing.sass +181 -0
- package/sass/mixins/_spacing.sass +59 -0
- package/sass/mixins/_text.sass +159 -0
- package/sass/mixins/_toggle.sass +240 -0
- package/sass/mixins/_typography.sass +6 -0
- package/sass/mixins/_utilities.sass +70 -0
- package/sass/utilities/_backdrops.sass +228 -0
- package/sass/utilities/_backgrounds.sass +285 -0
- package/sass/utilities/_borders.sass +138 -0
- package/sass/utilities/_colors.sass +166 -0
- package/sass/utilities/_display.sass +308 -0
- package/sass/utilities/_flex.sass +91 -0
- package/sass/utilities/_grid.sass +502 -0
- package/sass/utilities/_index.sass +17 -0
- package/sass/utilities/_input.sass +14 -0
- package/sass/utilities/_links.sass +136 -0
- package/sass/utilities/_lists.sass +4 -0
- package/sass/utilities/_popup.sass +73 -0
- package/sass/utilities/_position.sass +88 -0
- package/sass/utilities/_sizing.sass +277 -0
- package/sass/utilities/_spacing.sass +121 -0
- package/sass/utilities/_text.sass +207 -0
- package/sass/variables/_animations.sass +5 -0
- package/sass/variables/_borders.sass +25 -0
- package/sass/variables/_colors.sass +93 -0
- package/sass/variables/_index.sass +6 -0
- package/sass/variables/_number.sass +1 -0
- package/sass/variables/_spacing.sass +28 -0
- package/sass/variables/_typography.sass +40 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magmonium/one",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Magmonium One — Angular design-system primitives for mm Apps",
|
|
5
5
|
"author": "magmonium",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"fesm2022",
|
|
17
17
|
"types",
|
|
18
18
|
"assets",
|
|
19
|
+
"sass",
|
|
19
20
|
"README.md"
|
|
20
21
|
],
|
|
21
22
|
"peerDependencies": {
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
// Date Picker Component Styles
|
|
2
|
+
@use 'mixins/flex' as flex
|
|
3
|
+
@use 'mixins/sizing' as size
|
|
4
|
+
@use 'mixins/spacing' as space
|
|
5
|
+
@use 'mixins/grid' as grid
|
|
6
|
+
@use 'mixins/text' as text
|
|
7
|
+
|
|
8
|
+
// Main Container
|
|
9
|
+
.date-picker
|
|
10
|
+
@include size.width-full
|
|
11
|
+
@include size.height-full
|
|
12
|
+
@include size.min-width(280px)
|
|
13
|
+
@include flex.flex-column
|
|
14
|
+
padding: 16px
|
|
15
|
+
// Scale down all buttons inside the picker to stay compact
|
|
16
|
+
--m-button-size: 0.75rem
|
|
17
|
+
|
|
18
|
+
// Day buttons are formatted as circular, compact buttons
|
|
19
|
+
.date-view__calendar__week__day
|
|
20
|
+
m-button
|
|
21
|
+
width: 28px
|
|
22
|
+
height: 28px
|
|
23
|
+
display: inline-flex
|
|
24
|
+
align-items: center
|
|
25
|
+
justify-content: center
|
|
26
|
+
|
|
27
|
+
button
|
|
28
|
+
padding: 0 !important
|
|
29
|
+
width: 100% !important
|
|
30
|
+
height: 100% !important
|
|
31
|
+
border-radius: 50% !important
|
|
32
|
+
display: flex
|
|
33
|
+
align-items: center
|
|
34
|
+
justify-content: center
|
|
35
|
+
|
|
36
|
+
// Month & Year grid buttons are compact rounded rectangles
|
|
37
|
+
.date-picker-month-view__grid, .date-picker-year-view__grid
|
|
38
|
+
m-button
|
|
39
|
+
width: 100%
|
|
40
|
+
button
|
|
41
|
+
padding: 0 4px !important
|
|
42
|
+
width: 100% !important
|
|
43
|
+
|
|
44
|
+
// All non-primary buttons in the picker are borderless
|
|
45
|
+
m-button button:not(.primary)
|
|
46
|
+
border-color: transparent !important
|
|
47
|
+
|
|
48
|
+
m-date-picker-month-view, m-date-picker-year-view, m-date-picker-date-view
|
|
49
|
+
display: flex
|
|
50
|
+
width: 100%
|
|
51
|
+
justify-content: center
|
|
52
|
+
|
|
53
|
+
&__content
|
|
54
|
+
padding: 8px 0 0 0
|
|
55
|
+
@include flex.flex-1
|
|
56
|
+
@include flex.flex
|
|
57
|
+
@include size.width-full
|
|
58
|
+
+flex.flex-center
|
|
59
|
+
|
|
60
|
+
// Header — section-style flex row with space between nav and title
|
|
61
|
+
.date-picker-header
|
|
62
|
+
display: flex
|
|
63
|
+
justify-content: center
|
|
64
|
+
align-items: center
|
|
65
|
+
padding: 0 0 8px 0
|
|
66
|
+
@include size.width-full
|
|
67
|
+
|
|
68
|
+
m-one-button-group, m-button-group, .button-group
|
|
69
|
+
display: flex
|
|
70
|
+
width: 100%
|
|
71
|
+
justify-content: space-between
|
|
72
|
+
align-items: center
|
|
73
|
+
|
|
74
|
+
m-button:nth-child(2)
|
|
75
|
+
margin-left: auto
|
|
76
|
+
margin-right: auto
|
|
77
|
+
|
|
78
|
+
// Date View
|
|
79
|
+
.date-view
|
|
80
|
+
@include size.size-full
|
|
81
|
+
@include flex.flex-column
|
|
82
|
+
@include flex.gap(8px)
|
|
83
|
+
|
|
84
|
+
&__weekdays
|
|
85
|
+
@include grid.grid-layout
|
|
86
|
+
@include grid.grid-template-columns(repeat(7, 1fr))
|
|
87
|
+
@include grid.grid-gap(4px)
|
|
88
|
+
@include grid.place-items(center)
|
|
89
|
+
@include size.width-full
|
|
90
|
+
margin-bottom: 4px
|
|
91
|
+
|
|
92
|
+
&__day
|
|
93
|
+
@include size.min-height(24px)
|
|
94
|
+
@include text.text-uppercase
|
|
95
|
+
@include flex.flex-center
|
|
96
|
+
font-size: 10px
|
|
97
|
+
font-weight: 800
|
|
98
|
+
letter-spacing: 0.05em
|
|
99
|
+
opacity: 0.6
|
|
100
|
+
|
|
101
|
+
&__calendar
|
|
102
|
+
@include flex.flex-column
|
|
103
|
+
@include flex.gap(4px)
|
|
104
|
+
@include flex.flex-1
|
|
105
|
+
@include size.width-full
|
|
106
|
+
|
|
107
|
+
&__week
|
|
108
|
+
@include grid.grid-layout
|
|
109
|
+
@include grid.grid-template-columns(repeat(7, 1fr))
|
|
110
|
+
@include grid.grid-gap(4px)
|
|
111
|
+
@include grid.place-items(center)
|
|
112
|
+
@include size.width-full
|
|
113
|
+
|
|
114
|
+
&__day
|
|
115
|
+
@include flex.flex-center
|
|
116
|
+
@include size.width-full
|
|
117
|
+
@include size.min-height(28px)
|
|
118
|
+
|
|
119
|
+
// Month View
|
|
120
|
+
.date-picker-month-view
|
|
121
|
+
@include size.size-full
|
|
122
|
+
@include flex.flex-column
|
|
123
|
+
|
|
124
|
+
&__grid
|
|
125
|
+
@include grid.grid-layout
|
|
126
|
+
@include grid.grid-template-columns(repeat(3, 1fr))
|
|
127
|
+
@include grid.grid-template-rows(repeat(3, 1fr))
|
|
128
|
+
@include grid.grid-gap(8px)
|
|
129
|
+
@include grid.place-items(center)
|
|
130
|
+
justify-items: center
|
|
131
|
+
@include size.width-full
|
|
132
|
+
@include flex.flex-1
|
|
133
|
+
|
|
134
|
+
// Year View
|
|
135
|
+
.date-picker-year-view
|
|
136
|
+
@include size.size-full
|
|
137
|
+
@include flex.flex-column
|
|
138
|
+
|
|
139
|
+
&__grid
|
|
140
|
+
@include grid.grid-layout
|
|
141
|
+
@include grid.grid-template-columns(repeat(3, 1fr))
|
|
142
|
+
@include grid.grid-template-rows(repeat(3, 1fr))
|
|
143
|
+
@include grid.grid-gap(8px)
|
|
144
|
+
@include grid.place-items(center)
|
|
145
|
+
justify-items: center
|
|
146
|
+
@include size.width-full
|
|
147
|
+
@include flex.flex-1
|
package/sass/_index.sass
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// @magmonium/sass - Main entry point
|
|
2
|
+
|
|
3
|
+
// Variables
|
|
4
|
+
@forward 'variables'
|
|
5
|
+
|
|
6
|
+
// Functions
|
|
7
|
+
@forward 'functions/functions'
|
|
8
|
+
|
|
9
|
+
// Mixins
|
|
10
|
+
@forward 'mixins'
|
|
11
|
+
|
|
12
|
+
// Animations
|
|
13
|
+
@forward 'animations'
|
|
14
|
+
|
|
15
|
+
// M-components
|
|
16
|
+
@forward 'm-components'
|
|
17
|
+
|
|
18
|
+
// Export all as a single module
|
|
19
|
+
@forward 'variables/colors' as colors-*
|
|
20
|
+
@forward 'variables/spacing' as spacing-*
|
|
21
|
+
@forward 'variables/typography' as typography-*
|
|
22
|
+
@forward 'variables/borders' as borders-*
|
|
23
|
+
@forward 'functions/functions' as functions-*
|
|
24
|
+
@forward 'mixins/breakpoints' as breakpoints-*
|
|
25
|
+
@forward 'mixins/utilities' as utilities-*
|
|
26
|
+
@forward 'mixins/borders' as borders-*
|
|
27
|
+
@forward 'mixins/layout' as layout-*
|
|
28
|
+
@forward 'mixins/grid' as grid-*
|
|
29
|
+
@forward 'animations/background/gradient' as gradient-animations-*
|
|
30
|
+
@forward 'animations/background/particle' as particle-animations-*
|
|
31
|
+
@forward 'animations/background/tech' as tech-animations-*
|
|
32
|
+
@forward 'animations/background/nature' as nature-animations-*
|
|
33
|
+
@forward 'animations/background/energy' as energy-animations-*
|
|
34
|
+
@forward 'animations/background/new-effects' as effects-animations-*
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Date Input Component Styles
|
|
2
|
+
// Scoped to .m-date-input to prevent style bleeding
|
|
3
|
+
|
|
4
|
+
.m-date-input
|
|
5
|
+
.input-wrapper
|
|
6
|
+
position: relative
|
|
7
|
+
padding-right: 0 !important
|
|
8
|
+
$size: 1em
|
|
9
|
+
--m-text-input-padding-right: calc(#{$size} * 2.25)
|
|
10
|
+
|
|
11
|
+
input
|
|
12
|
+
width: 100%
|
|
13
|
+
padding-right: var(--m-text-input-padding-right) !important
|
|
14
|
+
box-sizing: border-box
|
|
15
|
+
|
|
16
|
+
&::placeholder
|
|
17
|
+
opacity: 0.5
|
|
18
|
+
font-style: italic
|
|
19
|
+
|
|
20
|
+
> .m-button, > .m-one-button
|
|
21
|
+
position: absolute
|
|
22
|
+
right: 0
|
|
23
|
+
top: 0
|
|
24
|
+
bottom: 0
|
|
25
|
+
--m-button-size: #{$size} !important
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// Global display: block for m- components to ensure they occupy space correctly
|
|
2
|
+
// Component-specific styles relocated from libs/sass
|
|
3
|
+
|
|
4
|
+
m-frame, m-carousel, m-one-carousel
|
|
5
|
+
display: block
|
|
6
|
+
|
|
7
|
+
// Scoped wizard stepper overrides to avoid app-specific lint restrictions
|
|
8
|
+
.wizard__stepper
|
|
9
|
+
.stepper
|
|
10
|
+
display: flex
|
|
11
|
+
flex-direction: row
|
|
12
|
+
gap: 0.5rem
|
|
13
|
+
|
|
14
|
+
@media (min-width: 992px) // desktop breakpoint
|
|
15
|
+
flex-direction: column
|
|
16
|
+
gap: 1.5rem
|
|
17
|
+
|
|
18
|
+
.stepper__step
|
|
19
|
+
display: flex
|
|
20
|
+
align-items: center
|
|
21
|
+
gap: 0.75rem
|
|
22
|
+
cursor: pointer
|
|
23
|
+
transition: all 0.3s ease
|
|
24
|
+
opacity: 0.5
|
|
25
|
+
|
|
26
|
+
&--selected
|
|
27
|
+
opacity: 1
|
|
28
|
+
|
|
29
|
+
.stepper__step-icon
|
|
30
|
+
background: linear-gradient(135deg, #a855f7, #14b8a6) !important
|
|
31
|
+
border-color: transparent !important
|
|
32
|
+
box-shadow: 0 0 15px rgba(168, 85, 247, 0.5) !important
|
|
33
|
+
color: #ffffff !important
|
|
34
|
+
|
|
35
|
+
.stepper__step-label
|
|
36
|
+
color: #ffffff !important
|
|
37
|
+
font-weight: 600 !important
|
|
38
|
+
|
|
39
|
+
&--completed
|
|
40
|
+
opacity: 0.8
|
|
41
|
+
|
|
42
|
+
.stepper__step-icon
|
|
43
|
+
background: rgba(20, 184, 166, 0.2) !important
|
|
44
|
+
border-color: #14b8a6 !important
|
|
45
|
+
color: #14b8a6 !important
|
|
46
|
+
|
|
47
|
+
.stepper__step-icon
|
|
48
|
+
width: 2.25rem !important
|
|
49
|
+
height: 2.25rem !important
|
|
50
|
+
border-radius: 50% !important
|
|
51
|
+
border: 2px solid rgba(255, 255, 255, 0.15) !important
|
|
52
|
+
background: rgba(15, 23, 42, 0.6) !important
|
|
53
|
+
color: #94a3b8 !important
|
|
54
|
+
display: flex !important
|
|
55
|
+
align-items: center !important
|
|
56
|
+
justify-content: center !important
|
|
57
|
+
font-weight: 700 !important
|
|
58
|
+
font-size: 0.875rem !important
|
|
59
|
+
transition: all 0.3s ease !important
|
|
60
|
+
|
|
61
|
+
.stepper__step-label
|
|
62
|
+
font-size: 0.875rem !important
|
|
63
|
+
color: #94a3b8 !important
|
|
64
|
+
font-weight: 500 !important
|
|
65
|
+
transition: all 0.3s ease !important
|
|
66
|
+
text-transform: capitalize !important
|
|
67
|
+
|
|
68
|
+
// Scoped wizard footer button group overrides
|
|
69
|
+
.wizard__footer
|
|
70
|
+
.m-button-group
|
|
71
|
+
display: flex
|
|
72
|
+
justify-content: space-between
|
|
73
|
+
gap: 1rem
|
|
74
|
+
|
|
75
|
+
button
|
|
76
|
+
font-weight: 600 !important
|
|
77
|
+
font-size: 0.9375rem !important
|
|
78
|
+
padding: 0.75rem 1.75rem !important
|
|
79
|
+
border-radius: 0.75rem !important
|
|
80
|
+
transition: all 0.3s ease !important
|
|
81
|
+
cursor: pointer
|
|
82
|
+
|
|
83
|
+
// Next / Submit Button
|
|
84
|
+
[name="next_step"] button, button:not([disabled]):not(.prev_step)
|
|
85
|
+
background: linear-gradient(135deg, #a855f7, #7c3aed) !important
|
|
86
|
+
color: #ffffff !important
|
|
87
|
+
border: none !important
|
|
88
|
+
box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3) !important
|
|
89
|
+
|
|
90
|
+
&:hover:not([disabled])
|
|
91
|
+
background: linear-gradient(135deg, #c084fc, #8b5cf6) !important
|
|
92
|
+
box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5) !important
|
|
93
|
+
transform: translateY(-2px)
|
|
94
|
+
|
|
95
|
+
// Prev Button
|
|
96
|
+
[name="prev_step"] button
|
|
97
|
+
background: rgba(255, 255, 255, 0.05) !important
|
|
98
|
+
color: #e2e8f0 !important
|
|
99
|
+
border: 1px solid rgba(255, 255, 255, 0.08) !important
|
|
100
|
+
|
|
101
|
+
&:hover:not([disabled])
|
|
102
|
+
background: rgba(255, 255, 255, 0.1) !important
|
|
103
|
+
transform: translateY(-2px)
|
|
104
|
+
|
|
105
|
+
button[disabled]
|
|
106
|
+
background: rgba(255, 255, 255, 0.03) !important
|
|
107
|
+
color: rgba(255, 255, 255, 0.15) !important
|
|
108
|
+
border: 1px solid rgba(255, 255, 255, 0.03) !important
|
|
109
|
+
box-shadow: none !important
|
|
110
|
+
cursor: not-allowed
|
package/sass/_menu.sass
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
@use 'variables/number' as n
|
|
2
|
+
@use 'variables/colors' as c
|
|
3
|
+
|
|
4
|
+
.m-selector-box
|
|
5
|
+
position: fixed
|
|
6
|
+
z-index: n.$base-z-index * 10000
|
|
7
|
+
|
|
8
|
+
.m-context-menu
|
|
9
|
+
position: fixed
|
|
10
|
+
|
|
11
|
+
.m-dropdown-input
|
|
12
|
+
position: fixed
|
|
13
|
+
|
|
14
|
+
.m-color-picker
|
|
15
|
+
position: fixed
|
|
16
|
+
|
|
17
|
+
.color-picker-box
|
|
18
|
+
background: c.$background-color
|
|
19
|
+
border: var(--m-input-border-width, 2px) solid var(--m-text-input-border, var(--m-input-color, var(--m-mm, #4169e1)))
|
|
20
|
+
border-radius: var(--m-input-radius, 4px)
|
|
21
|
+
box-shadow: none
|
|
22
|
+
|
|
23
|
+
.m-date-input
|
|
24
|
+
position: fixed
|
|
25
|
+
|
|
26
|
+
.date-picker
|
|
27
|
+
background: c.$background-color
|
|
28
|
+
border: var(--m-input-border-width, 2px) solid var(--m-text-input-border, var(--m-input-color, var(--m-mm, #4169e1)))
|
|
29
|
+
border-radius: var(--m-input-radius, 8px)
|
|
30
|
+
box-shadow: none
|
|
31
|
+
padding: 0.75rem
|
|
32
|
+
animation: date-picker-in 200ms ease-out
|
|
33
|
+
// Small, borderless buttons throughout the picker
|
|
34
|
+
--m-button-size: 0.75rem
|
|
35
|
+
|
|
36
|
+
// Day buttons are formatted as circular, compact buttons
|
|
37
|
+
.date-view__calendar__week__day
|
|
38
|
+
m-button
|
|
39
|
+
width: 28px
|
|
40
|
+
height: 28px
|
|
41
|
+
display: inline-flex
|
|
42
|
+
align-items: center
|
|
43
|
+
justify-content: center
|
|
44
|
+
|
|
45
|
+
button
|
|
46
|
+
padding: 0 !important
|
|
47
|
+
width: 100% !important
|
|
48
|
+
height: 100% !important
|
|
49
|
+
border-radius: 50% !important
|
|
50
|
+
display: flex
|
|
51
|
+
align-items: center
|
|
52
|
+
justify-content: center
|
|
53
|
+
|
|
54
|
+
// Month & Year grid buttons are compact rounded rectangles
|
|
55
|
+
.date-picker-month-view__grid, .date-picker-year-view__grid
|
|
56
|
+
m-button
|
|
57
|
+
width: 100%
|
|
58
|
+
button
|
|
59
|
+
padding: 0 4px !important
|
|
60
|
+
width: 100% !important
|
|
61
|
+
|
|
62
|
+
// All non-primary buttons in the picker are borderless
|
|
63
|
+
m-button button:not(.primary)
|
|
64
|
+
border-color: transparent !important
|
|
65
|
+
|
|
66
|
+
m-date-picker-month-view, m-date-picker-year-view, m-date-picker-date-view
|
|
67
|
+
display: flex
|
|
68
|
+
width: 100%
|
|
69
|
+
justify-content: center
|
|
70
|
+
|
|
71
|
+
.date-picker-header
|
|
72
|
+
display: flex
|
|
73
|
+
align-items: center
|
|
74
|
+
justify-content: center
|
|
75
|
+
padding: 0 0 0.5rem 0
|
|
76
|
+
|
|
77
|
+
m-one-button-group, m-button-group, .button-group
|
|
78
|
+
display: flex
|
|
79
|
+
width: 100%
|
|
80
|
+
justify-content: space-between
|
|
81
|
+
align-items: center
|
|
82
|
+
|
|
83
|
+
m-button:nth-child(2)
|
|
84
|
+
margin-left: auto
|
|
85
|
+
margin-right: auto
|
|
86
|
+
|
|
87
|
+
.date-view
|
|
88
|
+
&__weekdays
|
|
89
|
+
display: grid
|
|
90
|
+
grid-template-columns: repeat(7, 1fr)
|
|
91
|
+
text-align: center
|
|
92
|
+
font-size: 0.65rem
|
|
93
|
+
font-weight: 800
|
|
94
|
+
text-transform: uppercase
|
|
95
|
+
color: c.$text-tertiary
|
|
96
|
+
padding: 0.25rem 0
|
|
97
|
+
gap: 0.25rem
|
|
98
|
+
|
|
99
|
+
&__day
|
|
100
|
+
padding: 0.125rem
|
|
101
|
+
opacity: 0.6
|
|
102
|
+
|
|
103
|
+
&__calendar
|
|
104
|
+
&__week
|
|
105
|
+
display: grid
|
|
106
|
+
grid-template-columns: repeat(7, 1fr)
|
|
107
|
+
text-align: center
|
|
108
|
+
gap: 0.25rem
|
|
109
|
+
padding: 0.125rem 0
|
|
110
|
+
|
|
111
|
+
&__day
|
|
112
|
+
display: flex
|
|
113
|
+
align-items: center
|
|
114
|
+
justify-content: center
|
|
115
|
+
padding: 0.125rem 0
|
|
116
|
+
|
|
117
|
+
.date-picker-month-view,
|
|
118
|
+
.date-picker-year-view
|
|
119
|
+
&__grid
|
|
120
|
+
display: grid
|
|
121
|
+
grid-template-columns: repeat(3, 1fr)
|
|
122
|
+
place-items: center
|
|
123
|
+
gap: 0.125rem
|
|
124
|
+
padding: 0.125rem 0
|
|
125
|
+
|
|
126
|
+
@keyframes date-picker-in
|
|
127
|
+
from
|
|
128
|
+
opacity: 0
|
|
129
|
+
transform: scale(0.95) translateY(-4px)
|
|
130
|
+
to
|
|
131
|
+
opacity: 1
|
|
132
|
+
transform: scale(1) translateY(0)
|
package/sass/_reset.sass
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
@use 'index' as m
|
|
2
|
+
@use 'variables/number' as n
|
|
3
|
+
@use 'utilities/spacing'
|
|
4
|
+
@use 'utilities/borders'
|
|
5
|
+
@use 'utilities/flex'
|
|
6
|
+
@use 'utilities/position'
|
|
7
|
+
@use 'utilities/sizing'
|
|
8
|
+
@use 'utilities/display'
|
|
9
|
+
@use 'utilities/colors'
|
|
10
|
+
@use 'utilities/backgrounds'
|
|
11
|
+
@use 'utilities/backdrops'
|
|
12
|
+
@use 'utilities/links'
|
|
13
|
+
@use 'utilities/text'
|
|
14
|
+
@use 'utilities/lists'
|
|
15
|
+
@use 'utilities/input'
|
|
16
|
+
@use 'utilities/popup'
|
|
17
|
+
@use 'mixins/input' as input-mixins
|
|
18
|
+
@use 'mixins/label' as input-label
|
|
19
|
+
@use 'mixins/links' as link-mixins
|
|
20
|
+
@use 'mixins/text' as text-mixins
|
|
21
|
+
@use 'mixins/lists' as list-mixins
|
|
22
|
+
@use 'mixins/spacing' as spacing-mixins
|
|
23
|
+
@use 'mixins/toggle' as toggle-mixins
|
|
24
|
+
@use 'mixins/form' as forms-mixins
|
|
25
|
+
@use 'mixins/position' as forms-position
|
|
26
|
+
@use 'mixins/checkbox' as checkbox-mixin
|
|
27
|
+
@use 'mixins/radio' as radio-mixin
|
|
28
|
+
@use 'date-picker'
|
|
29
|
+
@use 'input-date'
|
|
30
|
+
@use 'menu'
|
|
31
|
+
|
|
32
|
+
*,
|
|
33
|
+
*::before,
|
|
34
|
+
*::after
|
|
35
|
+
box-sizing: border-box
|
|
36
|
+
margin: 0
|
|
37
|
+
padding: 0
|
|
38
|
+
|
|
39
|
+
&:focus
|
|
40
|
+
outline: none
|
|
41
|
+
|
|
42
|
+
html
|
|
43
|
+
@media (max-width: 768px)
|
|
44
|
+
font-size: 14px
|
|
45
|
+
|
|
46
|
+
body
|
|
47
|
+
overflow: hidden
|
|
48
|
+
overflow-y: auto
|
|
49
|
+
font-size: m.$font-size-base
|
|
50
|
+
font-family: m.$font-family-base
|
|
51
|
+
background-color: m.$background-color
|
|
52
|
+
-webkit-text-size-adjust: 100%
|
|
53
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0)
|
|
54
|
+
// root fallback container: cols with no m-section ancestor still resolve
|
|
55
|
+
// grid breakpoints against the viewport width (ADR 0001)
|
|
56
|
+
container-type: inline-size
|
|
57
|
+
container-name: mag-grid
|
|
58
|
+
|
|
59
|
+
button
|
|
60
|
+
+m.button-reset
|
|
61
|
+
|
|
62
|
+
h1, h2, h3, h4, h5, h6
|
|
63
|
+
margin: 0
|
|
64
|
+
padding: 0
|
|
65
|
+
font-weight: normal
|
|
66
|
+
font-size: inherit
|
|
67
|
+
line-height: inherit
|
|
68
|
+
|
|
69
|
+
h1
|
|
70
|
+
+m.header(1)
|
|
71
|
+
|
|
72
|
+
h2
|
|
73
|
+
+m.header(2)
|
|
74
|
+
|
|
75
|
+
h3
|
|
76
|
+
+m.header(3)
|
|
77
|
+
|
|
78
|
+
h4
|
|
79
|
+
+m.header(4)
|
|
80
|
+
|
|
81
|
+
h5
|
|
82
|
+
+m.header(5)
|
|
83
|
+
|
|
84
|
+
h6
|
|
85
|
+
+m.header(6)
|
|
86
|
+
|
|
87
|
+
// Link reset using mixins
|
|
88
|
+
a
|
|
89
|
+
@include link-mixins.link-base
|
|
90
|
+
@include link-mixins.link-states(m.$text, m.$mm, m.$mm-dark)
|
|
91
|
+
@include link-mixins.link-underline('hover')
|
|
92
|
+
|
|
93
|
+
// Paragraph reset using mixins
|
|
94
|
+
p
|
|
95
|
+
@include spacing-mixins.margin-y(1)
|
|
96
|
+
@include text-mixins.text-body
|
|
97
|
+
|
|
98
|
+
&:first-child
|
|
99
|
+
margin-top: 0
|
|
100
|
+
|
|
101
|
+
&:last-child
|
|
102
|
+
margin-bottom: 0
|
|
103
|
+
|
|
104
|
+
ul, ol
|
|
105
|
+
@include list-mixins.list-reset
|
|
106
|
+
|
|
107
|
+
li
|
|
108
|
+
@include list-mixins.list-item-reset
|
|
109
|
+
|
|
110
|
+
label
|
|
111
|
+
+input-label.input-label
|
|
112
|
+
|
|
113
|
+
input[type="text"],
|
|
114
|
+
input[type="email"],
|
|
115
|
+
input[type="password"],
|
|
116
|
+
input[type="search"],
|
|
117
|
+
input[type="url"],
|
|
118
|
+
input[type="tel"],
|
|
119
|
+
textarea
|
|
120
|
+
+input-mixins.input-text-base
|
|
121
|
+
|
|
122
|
+
.toggle
|
|
123
|
+
+toggle-mixins.toggle-container
|
|
124
|
+
|
|
125
|
+
.toggle--row
|
|
126
|
+
flex-direction: row-reverse
|
|
127
|
+
justify-content: space-between
|
|
128
|
+
width: 100%
|
|
129
|
+
|
|
130
|
+
.checkbox
|
|
131
|
+
+checkbox-mixin.checkbox-container-base
|
|
132
|
+
+checkbox-mixin.checkbox-container-states
|
|
133
|
+
|
|
134
|
+
.radio
|
|
135
|
+
+radio-mixin.radio-container
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
form
|
|
139
|
+
+forms-mixins.form-grid($gap: 1em)
|
|
140
|
+
|
|
141
|
+
+forms-position.generate-float-classes
|
|
142
|
+
|
|
143
|
+
.m-selector-box
|
|
144
|
+
position: fixed
|
|
145
|
+
top: 0
|
|
146
|
+
left: 0
|
|
147
|
+
right: 0
|
|
148
|
+
bottom: 0
|
|
149
|
+
z-index: n.$base-z-index * 10000
|
|
150
|
+
pointer-events: none
|
|
151
|
+
|
|
152
|
+
> *
|
|
153
|
+
pointer-events: auto
|
|
154
|
+
position: absolute
|
|
155
|
+
|
|
156
|
+
.modals
|
|
157
|
+
position: fixed
|
|
158
|
+
top: 0
|
|
159
|
+
left: 0
|
|
160
|
+
right: 0
|
|
161
|
+
bottom: 0
|
|
162
|
+
z-index: n.$base-z-index * 1000
|
|
163
|
+
|
|
164
|
+
.modal
|
|
165
|
+
position: absolute
|
|
166
|
+
top: 0
|
|
167
|
+
left: 0
|
|
168
|
+
right: 0
|
|
169
|
+
bottom: 0
|
|
170
|
+
overflow: auto
|
|
171
|
+
@include m.premium-backdrop
|
|
172
|
+
animation: backdropFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards
|
|
173
|
+
|
|
174
|
+
.m-context-menu-box
|
|
175
|
+
width: 100% !important
|
|
176
|
+
|
|
177
|
+
@keyframes backdropFadeIn
|
|
178
|
+
from
|
|
179
|
+
opacity: 0
|
|
180
|
+
backdrop-filter: blur(0px)
|
|
181
|
+
to
|
|
182
|
+
opacity: 1
|
|
183
|
+
backdrop-filter: blur(24px)
|
|
184
|
+
|
|
185
|
+
.input-wrapper
|
|
186
|
+
+input-mixins.input-wrapper
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @magmonium/sass - Animation System
|
|
2
|
+
// Main entry point for all animations
|
|
3
|
+
|
|
4
|
+
// Background animations
|
|
5
|
+
@forward 'background'
|
|
6
|
+
|
|
7
|
+
// Export animation mixins with namespace
|
|
8
|
+
@forward 'background/gradient' as gradient-*
|
|
9
|
+
@forward 'background/particle' as particle-*
|
|
10
|
+
@forward 'background/tech' as tech-*
|
|
11
|
+
@forward 'background/nature' as nature-*
|
|
12
|
+
@forward 'background/energy' as energy-*
|
|
13
|
+
@forward 'background/new-effects' as effects-*
|