maverick-wave 3.0.0

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 (141) hide show
  1. package/.claude/commands/mw.md +580 -0
  2. package/.claude/settings.local.json +11 -0
  3. package/.idea/codeStyles/Project.xml +59 -0
  4. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  5. package/.idea/maverick-wave.iml +12 -0
  6. package/.idea/modules.xml +8 -0
  7. package/.idea/prettier.xml +6 -0
  8. package/.idea/vcs.xml +6 -0
  9. package/.prettierignore +6 -0
  10. package/.prettierrc.json +7 -0
  11. package/CHANGELOG.md +420 -0
  12. package/CLAUDE.md +53 -0
  13. package/LICENSE +21 -0
  14. package/README.md +191 -0
  15. package/gulpfile.js +158 -0
  16. package/index.html +472 -0
  17. package/maverick-wave.min.css +1 -0
  18. package/maverick-wave.min.js +1 -0
  19. package/package.json +52 -0
  20. package/release.sh +17 -0
  21. package/src/assets/favicon/android-chrome-192x192.png +0 -0
  22. package/src/assets/favicon/android-chrome-512x512.png +0 -0
  23. package/src/assets/favicon/apple-touch-icon.png +0 -0
  24. package/src/assets/favicon/favicon-16x16.png +0 -0
  25. package/src/assets/favicon/favicon-32x32.png +0 -0
  26. package/src/assets/favicon/site.webmanifest +1 -0
  27. package/src/assets/favicon.ico +0 -0
  28. package/src/assets/header-logo.svg +24 -0
  29. package/src/js/main.js +587 -0
  30. package/src/partials/accordions-container.html +163 -0
  31. package/src/partials/alerts-container.html +120 -0
  32. package/src/partials/avatars-container.html +84 -0
  33. package/src/partials/blog-posts-container.html +157 -0
  34. package/src/partials/breadcrumbs-container.html +126 -0
  35. package/src/partials/button-bar-container.html +168 -0
  36. package/src/partials/buttons-container.html +133 -0
  37. package/src/partials/cards-container.html +508 -0
  38. package/src/partials/code-container.html +194 -0
  39. package/src/partials/colors-container.html +125 -0
  40. package/src/partials/coming-soon-container.html +6 -0
  41. package/src/partials/content-slider-container.html +47 -0
  42. package/src/partials/divider-container.html +52 -0
  43. package/src/partials/documentation-container.html +161 -0
  44. package/src/partials/empty-state-container.html +74 -0
  45. package/src/partials/footer-container.html +113 -0
  46. package/src/partials/form-container.html +257 -0
  47. package/src/partials/form-elements-container.html +595 -0
  48. package/src/partials/form-field-container.html +141 -0
  49. package/src/partials/gallery-container.html +49 -0
  50. package/src/partials/get-started-container.html +294 -0
  51. package/src/partials/grid-container.html +171 -0
  52. package/src/partials/header-container.html +49 -0
  53. package/src/partials/header-utilities-container.html +80 -0
  54. package/src/partials/home-container.html +48 -0
  55. package/src/partials/html-lists-container.html +58 -0
  56. package/src/partials/info-container.html +87 -0
  57. package/src/partials/input-group-container.html +285 -0
  58. package/src/partials/item-lists-container.html +413 -0
  59. package/src/partials/login-container.html +61 -0
  60. package/src/partials/meta-info-container.html +16 -0
  61. package/src/partials/modals-container.html +136 -0
  62. package/src/partials/pagination-container.html +27 -0
  63. package/src/partials/panels-container.html +196 -0
  64. package/src/partials/progress-container.html +226 -0
  65. package/src/partials/ratings-container.html +104 -0
  66. package/src/partials/skeleton-container.html +82 -0
  67. package/src/partials/spinners-container.html +92 -0
  68. package/src/partials/stepper-container.html +107 -0
  69. package/src/partials/tables-container.html +120 -0
  70. package/src/partials/tabs-container.html +263 -0
  71. package/src/partials/tags-container.html +168 -0
  72. package/src/partials/techstack-bucket-container.html +174 -0
  73. package/src/partials/tiles-container.html +245 -0
  74. package/src/partials/timelines-container.html +196 -0
  75. package/src/partials/typography-container.html +66 -0
  76. package/src/partials/utilities-container.html +85 -0
  77. package/src/scss/abstracts/_functions.scss +37 -0
  78. package/src/scss/abstracts/_index.scss +3 -0
  79. package/src/scss/abstracts/_mixins.scss +45 -0
  80. package/src/scss/abstracts/_variables.scss +222 -0
  81. package/src/scss/base/_base.scss +165 -0
  82. package/src/scss/base/_index.scss +3 -0
  83. package/src/scss/base/_reset.scss +75 -0
  84. package/src/scss/base/_typography.scss +230 -0
  85. package/src/scss/components/_accordions.scss +91 -0
  86. package/src/scss/components/_alerts.scss +105 -0
  87. package/src/scss/components/_avatars.scss +123 -0
  88. package/src/scss/components/_blog-post.scss +268 -0
  89. package/src/scss/components/_breadcrumbs.scss +108 -0
  90. package/src/scss/components/_button-bar.scss +139 -0
  91. package/src/scss/components/_buttons.scss +164 -0
  92. package/src/scss/components/_cards.scss +316 -0
  93. package/src/scss/components/_code.scss +252 -0
  94. package/src/scss/components/_coming-soon.scss +92 -0
  95. package/src/scss/components/_content-slider.scss +119 -0
  96. package/src/scss/components/_divider.scss +70 -0
  97. package/src/scss/components/_empty-state.scss +73 -0
  98. package/src/scss/components/_gallery.scss +158 -0
  99. package/src/scss/components/_index.scss +33 -0
  100. package/src/scss/components/_info.scss +143 -0
  101. package/src/scss/components/_lists.scss +653 -0
  102. package/src/scss/components/_localhost-indicator.scss +29 -0
  103. package/src/scss/components/_meta-info.scss +34 -0
  104. package/src/scss/components/_modals.scss +118 -0
  105. package/src/scss/components/_pagination.scss +99 -0
  106. package/src/scss/components/_panels.scss +112 -0
  107. package/src/scss/components/_progress.scss +107 -0
  108. package/src/scss/components/_ratings.scss +47 -0
  109. package/src/scss/components/_skeleton.scss +90 -0
  110. package/src/scss/components/_spinners.scss +208 -0
  111. package/src/scss/components/_stepper.scss +145 -0
  112. package/src/scss/components/_tables.scss +127 -0
  113. package/src/scss/components/_tabs.scss +146 -0
  114. package/src/scss/components/_tags.scss +93 -0
  115. package/src/scss/components/_techstack-bucket.scss +145 -0
  116. package/src/scss/components/_theme-toggle.scss +50 -0
  117. package/src/scss/components/_tiles.scss +217 -0
  118. package/src/scss/components/_timelines.scss +339 -0
  119. package/src/scss/form-elements/_checkbox.scss +174 -0
  120. package/src/scss/form-elements/_form.scss +122 -0
  121. package/src/scss/form-elements/_index.scss +10 -0
  122. package/src/scss/form-elements/_input-group.scss +103 -0
  123. package/src/scss/form-elements/_input.scss +72 -0
  124. package/src/scss/form-elements/_login.scss +62 -0
  125. package/src/scss/form-elements/_radio.scss +144 -0
  126. package/src/scss/form-elements/_select.scss +56 -0
  127. package/src/scss/form-elements/_slider.scss +174 -0
  128. package/src/scss/form-elements/_textarea.scss +74 -0
  129. package/src/scss/form-elements/_toggle.scss +174 -0
  130. package/src/scss/layout/_footer.scss +214 -0
  131. package/src/scss/layout/_grid.scss +287 -0
  132. package/src/scss/layout/_header.scss +441 -0
  133. package/src/scss/layout/_home.scss +40 -0
  134. package/src/scss/layout/_index.scss +6 -0
  135. package/src/scss/layout/_main.scss +116 -0
  136. package/src/scss/layout/_section.scss +89 -0
  137. package/src/scss/main.scss +5 -0
  138. package/src/scss/utilities/_display.scss +35 -0
  139. package/src/scss/utilities/_flex.scss +66 -0
  140. package/src/scss/utilities/_index.scss +3 -0
  141. package/src/scss/utilities/_spacing.scss +78 -0
@@ -0,0 +1,92 @@
1
+ @use '../abstracts' as *;
2
+
3
+ .mw-coming-soon {
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ background: var(--mw-card-background);
8
+ border-radius: radius('md');
9
+ border: 3px dashed var(--mw-primary-color-hover);
10
+ overflow: hidden;
11
+ position: relative;
12
+ transition: var(--mw-transition);
13
+ padding: spacing('10') spacing('0');
14
+ margin: spacing('1');
15
+
16
+ &-icon {
17
+ margin-right: spacing('5');
18
+ font-size: font-size('3xl');
19
+ transition: var(--mw-transition);
20
+ position: relative;
21
+ z-index: z-index('lift');
22
+ color: var(--mw-text-muted-color);
23
+ }
24
+
25
+ &-text {
26
+ font-size: font-size('3xl');
27
+ font-weight: font-weight('bold');
28
+ color: var(--mw-text-muted-color);
29
+ text-transform: uppercase;
30
+ letter-spacing: spacing('3');
31
+ position: relative;
32
+ z-index: z-index('lift');
33
+ transition: var(--mw-transition);
34
+ text-align: center;
35
+ }
36
+
37
+ &::before {
38
+ content: '';
39
+ position: absolute;
40
+ top: spacing('0');
41
+ left: spacing('0');
42
+ width: 100%;
43
+ height: 100%;
44
+ background: linear-gradient(
45
+ 125deg,
46
+ var(--mw-primary-color) 40%,
47
+ var(--mw-secondary-color) 100%
48
+ );
49
+ opacity: 0;
50
+ z-index: z-index('lift');
51
+ transition: opacity 0.9s ease;
52
+ }
53
+
54
+ &:hover {
55
+ transform: translateY(-5px);
56
+ border-style: solid;
57
+
58
+ .mw-coming-soon-icon {
59
+ color: var(--mw-primary-text-color);
60
+ transform: rotate(23deg);
61
+ }
62
+
63
+ .mw-coming-soon-text {
64
+ color: var(--mw-primary-text-color);
65
+ transform: scale(1.05);
66
+ }
67
+
68
+ &::before {
69
+ opacity: 0.9;
70
+ }
71
+ }
72
+
73
+ // Add responsive adjustments
74
+ @include media-down('md') {
75
+ min-height: 150px;
76
+
77
+ &-text,
78
+ &-icon {
79
+ font-size: font-size('xl');
80
+ }
81
+ }
82
+
83
+ @include media-down('sm') {
84
+ min-height: 120px;
85
+
86
+ &-text,
87
+ &-icon {
88
+ letter-spacing: spacing('2');
89
+ font-size: font-size('lg');
90
+ }
91
+ }
92
+ }
@@ -0,0 +1,119 @@
1
+ @use '../abstracts' as *;
2
+
3
+ .mw-image-slider {
4
+ position: relative;
5
+ width: 100%;
6
+ max-width: 600px;
7
+ margin: spacing('1') auto;
8
+ border-radius: radius('md');
9
+ overflow: hidden;
10
+
11
+ // Heights variables for consistency
12
+ $height-lg: 370px;
13
+ $height-md: 320px;
14
+ $height-sm: 250px;
15
+
16
+ &-base {
17
+ position: relative;
18
+ width: 100%;
19
+ height: $height-lg;
20
+
21
+ @include media-down('md') {
22
+ height: $height-md;
23
+ }
24
+
25
+ @include media-down('sm') {
26
+ height: $height-sm;
27
+ }
28
+ }
29
+
30
+ &-base-image {
31
+ width: 100%;
32
+ height: 100%;
33
+ object-fit: cover;
34
+ display: block;
35
+ }
36
+
37
+ &-overlay {
38
+ position: absolute;
39
+ top: 0;
40
+ left: 0;
41
+ width: 100%;
42
+ height: $height-lg;
43
+ pointer-events: none;
44
+
45
+ @include media-down('md') {
46
+ height: $height-md;
47
+ }
48
+
49
+ @include media-down('sm') {
50
+ height: $height-sm;
51
+ }
52
+ }
53
+
54
+ &-overlay-image {
55
+ position: absolute;
56
+ top: 0;
57
+ left: 0;
58
+ width: 100%;
59
+ height: 100%;
60
+ transform: translateX(100%);
61
+ transition: transform 0.9s cubic-bezier(0.2, 0, 0.7, 1);
62
+ z-index: z-index('card');
63
+ pointer-events: auto;
64
+
65
+ img {
66
+ width: 100%;
67
+ height: 100%;
68
+ object-fit: cover;
69
+ display: block;
70
+ }
71
+
72
+ &.active {
73
+ transform: translateX(0);
74
+ }
75
+ }
76
+
77
+ // Fixed: Direct selectors for grid classes
78
+ &-controls-grid-3 {
79
+ position: relative;
80
+ display: grid;
81
+ grid-template-columns: repeat(3, 1fr);
82
+ gap: spacing('3');
83
+ padding: spacing('2') spacing('3');
84
+ background: var(--mw-card-background);
85
+ z-index: z-index('menu');
86
+ width: 100%;
87
+
88
+ @include media-down('md') {
89
+ gap: spacing('2');
90
+ padding: spacing('2');
91
+ }
92
+
93
+ @include media-down('sm') {
94
+ padding: spacing('2');
95
+ grid-template-columns: repeat(2, 1fr);
96
+ }
97
+ }
98
+
99
+ &-controls-grid-2 {
100
+ position: relative;
101
+ display: grid;
102
+ grid-template-columns: repeat(2, 1fr);
103
+ gap: spacing('3');
104
+ padding: spacing('2') spacing('3');
105
+ background: var(--mw-card-background);
106
+ z-index: z-index('menu');
107
+ width: 100%;
108
+
109
+ @include media-down('md') {
110
+ gap: spacing('2');
111
+ padding: spacing('2');
112
+ }
113
+
114
+ @include media-down('sm') {
115
+ padding: spacing('2');
116
+ grid-template-columns: 1fr;
117
+ }
118
+ }
119
+ }
@@ -0,0 +1,70 @@
1
+ @use '../abstracts' as *;
2
+
3
+ // Base horizontal divider
4
+ .mw-divider {
5
+ border: none;
6
+ border-top: 1px solid var(--mw-border);
7
+ margin: spacing('5') spacing('0');
8
+
9
+ &-thick {
10
+ border-top-width: 3px;
11
+ }
12
+
13
+ &-dashed {
14
+ border-top-style: dashed;
15
+ }
16
+
17
+ &-primary {
18
+ border-top-color: var(--mw-primary-color);
19
+ }
20
+
21
+ &-secondary {
22
+ border-top-color: var(--mw-secondary-color);
23
+ }
24
+ }
25
+
26
+ // Vertical divider (use inside a flex row)
27
+ .mw-divider-vertical {
28
+ display: inline-block;
29
+ width: 1px;
30
+ background: var(--mw-border);
31
+ margin: spacing('0') spacing('3');
32
+ align-self: stretch;
33
+ border: none;
34
+ flex-shrink: 0;
35
+ }
36
+
37
+ // Divider with centered label text
38
+ .mw-divider-text {
39
+ display: flex;
40
+ align-items: center;
41
+ gap: spacing('3');
42
+ margin: spacing('5') spacing('0');
43
+ border: none;
44
+
45
+ &::before,
46
+ &::after {
47
+ content: '';
48
+ flex: 1;
49
+ height: 1px;
50
+ background: var(--mw-border);
51
+ }
52
+
53
+ span {
54
+ color: var(--mw-text-muted-color);
55
+ font-size: font-size('sm');
56
+ white-space: nowrap;
57
+ user-select: none;
58
+ }
59
+
60
+ &.mw-divider-primary {
61
+ &::before,
62
+ &::after {
63
+ background: var(--mw-primary-color);
64
+ }
65
+
66
+ span {
67
+ color: var(--mw-primary-color);
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,73 @@
1
+ @use '../abstracts' as *;
2
+
3
+ .mw-empty-state {
4
+ display: flex;
5
+ flex-direction: column;
6
+ align-items: center;
7
+ justify-content: center;
8
+ text-align: center;
9
+ padding: spacing('9') spacing('5');
10
+
11
+ &-icon {
12
+ font-size: font-size('6xl');
13
+ color: var(--mw-text-muted-color);
14
+ opacity: 0.45;
15
+ margin-bottom: spacing('4');
16
+ line-height: 1;
17
+ }
18
+
19
+ &-title {
20
+ font-size: font-size('xl');
21
+ font-weight: font-weight('medium');
22
+ color: var(--mw-text-color);
23
+ margin-bottom: spacing('2');
24
+ }
25
+
26
+ &-desc {
27
+ font-size: font-size('base');
28
+ color: var(--mw-text-muted-color);
29
+ max-width: 380px;
30
+ line-height: 1.6;
31
+ margin-bottom: spacing('5');
32
+ }
33
+
34
+ // Small variant
35
+ &-sm {
36
+ padding: spacing('6') spacing('4');
37
+
38
+ .mw-empty-state-icon {
39
+ font-size: font-size('4xl');
40
+ margin-bottom: spacing('3');
41
+ }
42
+
43
+ .mw-empty-state-title {
44
+ font-size: font-size('lg');
45
+ }
46
+
47
+ .mw-empty-state-desc {
48
+ font-size: font-size('sm');
49
+ margin-bottom: spacing('4');
50
+ }
51
+ }
52
+
53
+ // Color variants (change icon color)
54
+ &-primary .mw-empty-state-icon {
55
+ color: var(--mw-primary-color);
56
+ opacity: 0.6;
57
+ }
58
+
59
+ &-success .mw-empty-state-icon {
60
+ color: var(--mw-success-color);
61
+ opacity: 0.6;
62
+ }
63
+
64
+ &-warning .mw-empty-state-icon {
65
+ color: var(--mw-warning-color);
66
+ opacity: 0.6;
67
+ }
68
+
69
+ &-danger .mw-empty-state-icon {
70
+ color: var(--mw-danger-color);
71
+ opacity: 0.6;
72
+ }
73
+ }
@@ -0,0 +1,158 @@
1
+ @use '../abstracts' as *;
2
+
3
+ .mw-gallery-container {
4
+ max-width: 1100px;
5
+ border-radius: radius('md');
6
+ margin: spacing('1') auto;
7
+ }
8
+
9
+ .mw-gallery {
10
+ position: relative;
11
+ overflow: hidden;
12
+ width: 100%;
13
+ border-radius: radius('md');
14
+ margin: spacing('1');
15
+
16
+ &-track {
17
+ display: flex;
18
+ transition: transform 0.3s ease;
19
+ height: 100%;
20
+ }
21
+
22
+ &-slide {
23
+ width: 100%;
24
+ flex-shrink: 0;
25
+ height: 100%;
26
+
27
+ img {
28
+ width: 100%;
29
+ height: 580px;
30
+ object-fit: cover;
31
+ display: block;
32
+ }
33
+ }
34
+
35
+ &-navi {
36
+ position: absolute;
37
+ top: 50%;
38
+ transform: translateY(-50%);
39
+ color: rgba(23, 23, 23, 0.8); // fixed color
40
+ background: rgba(240, 240, 240, 0.2); // fixed color
41
+ border: none;
42
+ padding: spacing('5') spacing('2');
43
+ font-size: font-size('5xl');
44
+ cursor: pointer;
45
+ z-index: z-index('menu');
46
+ user-select: none;
47
+ border-radius: radius('md');
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: center;
51
+ height: calc(580px * 0.9);
52
+ width: 8%;
53
+
54
+ &:hover {
55
+ background: rgba(223, 223, 223, 0.4); // fixed color
56
+ }
57
+
58
+ &-prev {
59
+ left: 3px;
60
+ z-index: z-index('menu');
61
+ }
62
+
63
+ &-next {
64
+ right: 3px;
65
+ z-index: z-index('menu');
66
+ }
67
+ }
68
+
69
+ &-desc {
70
+ text-align: left;
71
+ padding: spacing('2') spacing('3');
72
+ margin-top: spacing('1');
73
+ background: var(--mw-card-background);
74
+ border-radius: radius('md');
75
+ border: 1px solid var(--mw-primary-color-hover);
76
+ }
77
+
78
+ &-dots {
79
+ text-align: center;
80
+ margin-top: spacing('4');
81
+ display: flex;
82
+ align-items: center;
83
+ justify-content: center;
84
+ gap: spacing('3');
85
+ }
86
+
87
+ &-dot {
88
+ display: inline-block;
89
+ width: 10px;
90
+ height: 10px;
91
+ border-radius: 50%;
92
+ background: var(--mw-gray-background);
93
+ cursor: pointer;
94
+ transition: transform 0.4s ease;
95
+
96
+ &.mw-active {
97
+ transform: scale(1.5);
98
+ background: var(--mw-primary-color);
99
+ }
100
+ }
101
+ }
102
+
103
+ @include media-down('lg') {
104
+ .mw-gallery {
105
+ &-slide img {
106
+ height: 470px;
107
+ }
108
+ &-navi {
109
+ padding: spacing('4') spacing('2');
110
+ font-size: font-size('3xl');
111
+ height: calc(470px * 0.9);
112
+ }
113
+ }
114
+ }
115
+
116
+ @include media-down('md') {
117
+ .mw-gallery {
118
+ &-slide img {
119
+ height: 380px;
120
+ }
121
+ &-navi {
122
+ height: calc(380px * 0.9);
123
+ }
124
+ &-desc {
125
+ font-size: font-size('sm');
126
+ }
127
+ }
128
+ }
129
+
130
+ @include media-down('sm') {
131
+ .mw-gallery {
132
+ &-slide img {
133
+ height: 270px;
134
+ }
135
+ &-navi {
136
+ padding: spacing('3') spacing('1');
137
+ font-size: font-size('2xl');
138
+ height: calc(270px * 0.9);
139
+ border-radius: radius('sm');
140
+ width: 12%;
141
+ }
142
+ &-desc {
143
+ font-size: font-size('xs');
144
+ }
145
+ &-dots {
146
+ gap: spacing('2');
147
+ margin-top: spacing('3');
148
+ }
149
+ &-dot {
150
+ width: 9px;
151
+ height: 9px;
152
+
153
+ &.mw-active {
154
+ transform: scale(1.3);
155
+ }
156
+ }
157
+ }
158
+ }
@@ -0,0 +1,33 @@
1
+ @forward 'accordions';
2
+ @forward 'alerts';
3
+ @forward 'avatars';
4
+ @forward 'blog-post';
5
+ @forward 'buttons';
6
+ @forward 'button-bar';
7
+ @forward 'breadcrumbs';
8
+ @forward 'cards';
9
+ @forward 'code';
10
+ @forward 'coming-soon';
11
+ @forward 'content-slider';
12
+ @forward 'divider';
13
+ @forward 'empty-state';
14
+ @forward 'gallery';
15
+ @forward 'info';
16
+ @forward 'lists';
17
+ @forward 'localhost-indicator';
18
+ @forward 'meta-info';
19
+ @forward 'modals';
20
+ @forward 'pagination';
21
+ @forward 'panels';
22
+ @forward 'progress';
23
+ @forward 'ratings';
24
+ @forward 'skeleton';
25
+ @forward 'spinners';
26
+ @forward 'stepper';
27
+ @forward 'tables';
28
+ @forward 'tabs';
29
+ @forward 'tags';
30
+ @forward 'techstack-bucket';
31
+ @forward 'theme-toggle';
32
+ @forward 'tiles';
33
+ @forward 'timelines';
@@ -0,0 +1,143 @@
1
+ @use '../abstracts' as *;
2
+
3
+ $_mw-info-colors: (
4
+ primary: var(--mw-primary-color),
5
+ secondary: var(--mw-secondary-color),
6
+ info: var(--mw-info-color),
7
+ success: var(--mw-success-color),
8
+ warning: var(--mw-warning-color),
9
+ danger: var(--mw-danger-color),
10
+ );
11
+
12
+ .mw-info {
13
+ display: inline-flex;
14
+ flex-direction: column;
15
+ align-items: center;
16
+ justify-content: center;
17
+ padding: spacing('2') spacing('4');
18
+ margin: spacing('1');
19
+ font-size: font-size('base');
20
+ font-weight: font-weight('medium');
21
+ color: var(--mw-text-color);
22
+ background: var(--mw-card-background);
23
+ border: 1px solid var(--mw-border);
24
+ border-radius: radius('md');
25
+ transition:
26
+ transform 0.3s ease,
27
+ box-shadow 0.3s ease;
28
+ cursor: default;
29
+
30
+ &:hover {
31
+ transform: translateY(-2px);
32
+ box-shadow: -1px 6px 9px var(--mw-shadow);
33
+ }
34
+
35
+ // size variants
36
+ &-sm {
37
+ padding: spacing('1') spacing('3');
38
+ font-size: font-size('sm');
39
+ font-weight: font-weight('normal');
40
+ }
41
+ &-lg {
42
+ padding: spacing('3') spacing('5');
43
+ font-size: font-size('lg');
44
+ font-weight: font-weight('medium');
45
+ }
46
+ &-xl {
47
+ padding: spacing('4') spacing('6');
48
+ font-size: font-size('xl');
49
+ font-weight: font-weight('medium');
50
+ }
51
+
52
+ // counter variant: big number + small label
53
+ &-counter {
54
+ .mw-info-value {
55
+ font-size: font-size('4xl');
56
+ font-weight: font-weight('bold');
57
+ line-height: 1.4;
58
+ }
59
+ .mw-info-label {
60
+ font-size: font-size('sm');
61
+ font-weight: font-weight('medium');
62
+ opacity: 0.8;
63
+ min-width: 5rem;
64
+ text-align: center;
65
+ }
66
+ }
67
+ }
68
+
69
+ // Info like mini-buttons
70
+ .mw-info-mini {
71
+ display: inline-flex;
72
+ align-items: center;
73
+ justify-content: center;
74
+ width: 20px;
75
+ height: 20px;
76
+ border-radius: radius('full');
77
+ background: var(--mw-gray-color);
78
+ color: var(--mw-white-color);
79
+ border: none;
80
+ padding: 0;
81
+ line-height: 1;
82
+ font-weight: bold;
83
+ cursor: default;
84
+ box-sizing: border-box;
85
+
86
+ i,
87
+ fa-icon,
88
+ svg,
89
+ [class*='fa-'],
90
+ [class*='fas-'] {
91
+ font-size: 0.7rem;
92
+ }
93
+
94
+ &-sm {
95
+ width: 16px;
96
+ height: 16px;
97
+ i,
98
+ fa-icon,
99
+ svg,
100
+ [class*='fa-'],
101
+ [class*='fas-'] {
102
+ font-size: 0.6rem;
103
+ }
104
+ }
105
+
106
+ &-lg {
107
+ width: 24px;
108
+ height: 24px;
109
+ i,
110
+ fa-icon,
111
+ svg,
112
+ [class*='fa-'],
113
+ [class*='fas-'] {
114
+ font-size: 0.8rem;
115
+ }
116
+ }
117
+
118
+ &-xl {
119
+ width: 32px;
120
+ height: 32px;
121
+ i,
122
+ fa-icon,
123
+ svg,
124
+ [class*='fa-'],
125
+ [class*='fas-'] {
126
+ font-size: 1rem;
127
+ }
128
+ }
129
+ }
130
+
131
+ // Generate color modifiers
132
+ @each $name, $col in $_mw-info-colors {
133
+ .mw-info-#{$name} {
134
+ background: var(--mw-#{$name}-info-background);
135
+ border-color: #{$col};
136
+ border-left: 6px solid #{$col};
137
+ }
138
+
139
+ .mw-info-mini-#{$name} {
140
+ background: #{$col};
141
+ color: var(--mw-primary-text-color, #fff);
142
+ }
143
+ }