better_ui 0.4.0 → 0.5.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.
- checksums.yaml +4 -4
- data/README.md +165 -105
- data/app/components/better_ui/application/alert_component.html.erb +1 -1
- data/app/components/better_ui/application/alert_component.rb +95 -89
- data/app/components/better_ui/application/card_component.html.erb +24 -0
- data/app/components/better_ui/application/card_component.rb +53 -0
- data/app/components/better_ui/application/card_container_component.html.erb +8 -0
- data/app/components/better_ui/application/card_container_component.rb +14 -0
- data/app/components/better_ui/application/toast_component.rb +92 -57
- data/app/components/better_ui/general/avatar_component.html.erb +19 -0
- data/app/components/better_ui/general/avatar_component.rb +171 -0
- data/app/components/better_ui/general/badge_component.html.erb +19 -0
- data/app/components/better_ui/general/badge_component.rb +123 -0
- data/app/components/better_ui/general/breadcrumb_component.html.erb +7 -31
- data/app/components/better_ui/general/breadcrumb_component.rb +64 -66
- data/app/components/better_ui/general/button_component.html.erb +4 -4
- data/app/components/better_ui/general/button_component.rb +64 -95
- data/app/components/better_ui/general/heading_component.html.erb +3 -3
- data/app/components/better_ui/general/heading_component.rb +76 -70
- data/app/components/better_ui/general/icon_component.html.erb +1 -1
- data/app/components/better_ui/general/icon_component.rb +22 -23
- data/app/components/better_ui/general/link_component.html.erb +17 -0
- data/app/components/better_ui/general/link_component.rb +132 -0
- data/app/components/better_ui/general/panel_component.rb +62 -56
- data/app/components/better_ui/general/spinner_component.html.erb +15 -0
- data/app/components/better_ui/general/spinner_component.rb +79 -0
- data/app/components/better_ui/general/table_component.html.erb +56 -20
- data/app/components/better_ui/general/table_component.rb +106 -80
- data/app/components/better_ui/theme_helper.rb +77 -75
- data/app/views/components/better_ui/general/table/_custom_body_row.html.erb +17 -0
- data/app/views/components/better_ui/general/table/_custom_footer_rows.html.erb +17 -0
- data/app/views/components/better_ui/general/table/_custom_header_rows.html.erb +12 -0
- data/lib/better_ui/engine.rb +4 -10
- data/lib/better_ui/version.rb +1 -1
- data/lib/better_ui.rb +4 -0
- data/lib/generators/better_ui/stylesheet_generator.rb +96 -0
- data/lib/generators/better_ui/templates/README +56 -0
- data/lib/generators/better_ui/templates/components/_avatar.scss +151 -0
- data/lib/generators/better_ui/templates/components/_badge.scss +142 -0
- data/lib/generators/better_ui/templates/components/_breadcrumb.scss +107 -0
- data/lib/generators/better_ui/templates/components/_button.scss +106 -0
- data/lib/generators/better_ui/templates/components/_card.scss +69 -0
- data/lib/generators/better_ui/templates/components/_heading.scss +180 -0
- data/lib/generators/better_ui/templates/components/_icon.scss +90 -0
- data/lib/generators/better_ui/templates/components/_link.scss +130 -0
- data/lib/generators/better_ui/templates/components/_panel.scss +144 -0
- data/lib/generators/better_ui/templates/components/_spinner.scss +132 -0
- data/lib/generators/better_ui/templates/components/_table.scss +105 -0
- data/lib/generators/better_ui/templates/components/_variables.scss +33 -0
- data/lib/generators/better_ui/templates/components_stylesheet.scss +66 -0
- metadata +51 -22
- data/app/helpers/better_ui_application_helper.rb +0 -99
@@ -0,0 +1,180 @@
|
|
1
|
+
/* ==============================
|
2
|
+
* Heading Component
|
3
|
+
* ============================== */
|
4
|
+
|
5
|
+
/* Varianti di colore per le intestazioni */
|
6
|
+
.bui-header-default-heading {
|
7
|
+
@apply text-gray-900;
|
8
|
+
}
|
9
|
+
|
10
|
+
.bui-header-default-subtitle {
|
11
|
+
@apply text-gray-600;
|
12
|
+
}
|
13
|
+
|
14
|
+
.bui-header-default-divider {
|
15
|
+
@apply border-gray-200;
|
16
|
+
}
|
17
|
+
|
18
|
+
.bui-header-white-heading {
|
19
|
+
@apply text-gray-100;
|
20
|
+
}
|
21
|
+
|
22
|
+
.bui-header-white-subtitle {
|
23
|
+
@apply text-gray-300;
|
24
|
+
}
|
25
|
+
|
26
|
+
.bui-header-white-divider {
|
27
|
+
@apply border-gray-200;
|
28
|
+
}
|
29
|
+
|
30
|
+
.bui-header-red-heading {
|
31
|
+
@apply text-red-700;
|
32
|
+
}
|
33
|
+
|
34
|
+
.bui-header-red-subtitle {
|
35
|
+
@apply text-red-500;
|
36
|
+
}
|
37
|
+
|
38
|
+
.bui-header-red-divider {
|
39
|
+
@apply border-red-300;
|
40
|
+
}
|
41
|
+
|
42
|
+
.bui-header-rose-heading {
|
43
|
+
@apply text-rose-700;
|
44
|
+
}
|
45
|
+
|
46
|
+
.bui-header-rose-subtitle {
|
47
|
+
@apply text-rose-500;
|
48
|
+
}
|
49
|
+
|
50
|
+
.bui-header-rose-divider {
|
51
|
+
@apply border-rose-300;
|
52
|
+
}
|
53
|
+
|
54
|
+
.bui-header-orange-heading {
|
55
|
+
@apply text-orange-700;
|
56
|
+
}
|
57
|
+
|
58
|
+
.bui-header-orange-subtitle {
|
59
|
+
@apply text-orange-500;
|
60
|
+
}
|
61
|
+
|
62
|
+
.bui-header-orange-divider {
|
63
|
+
@apply border-orange-300;
|
64
|
+
}
|
65
|
+
|
66
|
+
.bui-header-green-heading {
|
67
|
+
@apply text-green-700;
|
68
|
+
}
|
69
|
+
|
70
|
+
.bui-header-green-subtitle {
|
71
|
+
@apply text-green-500;
|
72
|
+
}
|
73
|
+
|
74
|
+
.bui-header-green-divider {
|
75
|
+
@apply border-green-300;
|
76
|
+
}
|
77
|
+
|
78
|
+
.bui-header-blue-heading {
|
79
|
+
@apply text-blue-700;
|
80
|
+
}
|
81
|
+
|
82
|
+
.bui-header-blue-subtitle {
|
83
|
+
@apply text-blue-500;
|
84
|
+
}
|
85
|
+
|
86
|
+
.bui-header-blue-divider {
|
87
|
+
@apply border-blue-300;
|
88
|
+
}
|
89
|
+
|
90
|
+
.bui-header-yellow-heading {
|
91
|
+
@apply text-yellow-700;
|
92
|
+
}
|
93
|
+
|
94
|
+
.bui-header-yellow-subtitle {
|
95
|
+
@apply text-yellow-500;
|
96
|
+
}
|
97
|
+
|
98
|
+
.bui-header-yellow-divider {
|
99
|
+
@apply border-yellow-300;
|
100
|
+
}
|
101
|
+
|
102
|
+
.bui-header-violet-heading {
|
103
|
+
@apply text-violet-700;
|
104
|
+
}
|
105
|
+
|
106
|
+
.bui-header-violet-subtitle {
|
107
|
+
@apply text-violet-500;
|
108
|
+
}
|
109
|
+
|
110
|
+
.bui-header-violet-divider {
|
111
|
+
@apply border-violet-300;
|
112
|
+
}
|
113
|
+
|
114
|
+
/* Classi per le dimensioni dell'intestazione */
|
115
|
+
.bui-header-small-heading {
|
116
|
+
@apply text-xl;
|
117
|
+
}
|
118
|
+
|
119
|
+
.bui-header-small-subtitle {
|
120
|
+
@apply text-base;
|
121
|
+
}
|
122
|
+
|
123
|
+
.bui-header-medium-heading {
|
124
|
+
@apply text-2xl;
|
125
|
+
}
|
126
|
+
|
127
|
+
.bui-header-medium-subtitle {
|
128
|
+
@apply text-lg;
|
129
|
+
}
|
130
|
+
|
131
|
+
.bui-header-large-heading {
|
132
|
+
@apply text-3xl;
|
133
|
+
}
|
134
|
+
|
135
|
+
.bui-header-large-subtitle {
|
136
|
+
@apply text-xl;
|
137
|
+
}
|
138
|
+
|
139
|
+
/* Classi per l'allineamento dell'intestazione */
|
140
|
+
.bui-header-left {
|
141
|
+
@apply text-left;
|
142
|
+
}
|
143
|
+
|
144
|
+
.bui-header-center {
|
145
|
+
@apply text-center;
|
146
|
+
}
|
147
|
+
|
148
|
+
.bui-header-right {
|
149
|
+
@apply text-right;
|
150
|
+
}
|
151
|
+
|
152
|
+
/* Stili comuni */
|
153
|
+
.bui-header-heading-base {
|
154
|
+
@apply font-bold;
|
155
|
+
}
|
156
|
+
|
157
|
+
.bui-header-subtitle-base {
|
158
|
+
@apply mt-1;
|
159
|
+
}
|
160
|
+
|
161
|
+
.bui-header-divider-base {
|
162
|
+
@apply border-t mt-2;
|
163
|
+
}
|
164
|
+
|
165
|
+
.bui-header-container-base {
|
166
|
+
@apply mb-4;
|
167
|
+
}
|
168
|
+
|
169
|
+
.bui-header-container-with-divider {
|
170
|
+
@apply mb-4 pb-2;
|
171
|
+
}
|
172
|
+
|
173
|
+
/* Stili per le icone */
|
174
|
+
.bui-header-icon-container {
|
175
|
+
@apply inline-flex items-center;
|
176
|
+
}
|
177
|
+
|
178
|
+
.bui-header-icon-wrapper {
|
179
|
+
@apply mr-2;
|
180
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
/* ==============================
|
2
|
+
* Icon Component
|
3
|
+
* ============================== */
|
4
|
+
|
5
|
+
/* Stili di base e presentazione */
|
6
|
+
.bui-icon-base {
|
7
|
+
@apply inline-block;
|
8
|
+
}
|
9
|
+
|
10
|
+
/* Varianti di stile */
|
11
|
+
.bui-icon-solid {
|
12
|
+
@apply fas;
|
13
|
+
}
|
14
|
+
|
15
|
+
.bui-icon-regular {
|
16
|
+
@apply far;
|
17
|
+
}
|
18
|
+
|
19
|
+
.bui-icon-light {
|
20
|
+
@apply fal;
|
21
|
+
}
|
22
|
+
|
23
|
+
.bui-icon-brands {
|
24
|
+
@apply fab;
|
25
|
+
}
|
26
|
+
|
27
|
+
.bui-icon-duotone {
|
28
|
+
@apply fad;
|
29
|
+
}
|
30
|
+
|
31
|
+
/* Dimensioni */
|
32
|
+
.bui-icon-xsmall {
|
33
|
+
@apply fa-xs;
|
34
|
+
}
|
35
|
+
|
36
|
+
.bui-icon-small {
|
37
|
+
@apply fa-sm;
|
38
|
+
}
|
39
|
+
|
40
|
+
.bui-icon-medium {
|
41
|
+
/* Default di Font Awesome, non richiede classi aggiuntive */
|
42
|
+
}
|
43
|
+
|
44
|
+
.bui-icon-large {
|
45
|
+
@apply fa-lg;
|
46
|
+
}
|
47
|
+
|
48
|
+
.bui-icon-xlarge {
|
49
|
+
@apply fa-xl;
|
50
|
+
}
|
51
|
+
|
52
|
+
/* Rotazioni */
|
53
|
+
.bui-icon-rotate-90 {
|
54
|
+
@apply fa-rotate-90;
|
55
|
+
}
|
56
|
+
|
57
|
+
.bui-icon-rotate-180 {
|
58
|
+
@apply fa-rotate-180;
|
59
|
+
}
|
60
|
+
|
61
|
+
.bui-icon-rotate-270 {
|
62
|
+
@apply fa-rotate-270;
|
63
|
+
}
|
64
|
+
|
65
|
+
/* Flip */
|
66
|
+
.bui-icon-flip-horizontal {
|
67
|
+
@apply fa-flip-horizontal;
|
68
|
+
}
|
69
|
+
|
70
|
+
.bui-icon-flip-vertical {
|
71
|
+
@apply fa-flip-vertical;
|
72
|
+
}
|
73
|
+
|
74
|
+
/* Animazioni */
|
75
|
+
.bui-icon-spin {
|
76
|
+
@apply fa-spin;
|
77
|
+
}
|
78
|
+
|
79
|
+
.bui-icon-pulse {
|
80
|
+
@apply fa-pulse;
|
81
|
+
}
|
82
|
+
|
83
|
+
/* Altre opzioni */
|
84
|
+
.bui-icon-fw {
|
85
|
+
@apply fa-fw;
|
86
|
+
}
|
87
|
+
|
88
|
+
.bui-icon-border {
|
89
|
+
@apply fa-border;
|
90
|
+
}
|
@@ -0,0 +1,130 @@
|
|
1
|
+
/* ==============================
|
2
|
+
* Link Component
|
3
|
+
* ============================== */
|
4
|
+
|
5
|
+
/* Classe base per i link */
|
6
|
+
.bui-link-base {
|
7
|
+
@apply flex items-center;
|
8
|
+
}
|
9
|
+
|
10
|
+
/* Contenitore icona */
|
11
|
+
.bui-link-icon-wrapper {
|
12
|
+
@apply mr-1.5;
|
13
|
+
}
|
14
|
+
|
15
|
+
/* Temi di colore - Default */
|
16
|
+
.bui-link-default-link {
|
17
|
+
@apply text-gray-300 hover:text-white;
|
18
|
+
}
|
19
|
+
|
20
|
+
.bui-link-default-active {
|
21
|
+
@apply text-white font-medium;
|
22
|
+
}
|
23
|
+
|
24
|
+
.bui-link-default-text {
|
25
|
+
@apply text-white;
|
26
|
+
}
|
27
|
+
|
28
|
+
/* Temi di colore - White */
|
29
|
+
.bui-link-white-link {
|
30
|
+
@apply text-gray-600 hover:text-gray-900;
|
31
|
+
}
|
32
|
+
|
33
|
+
.bui-link-white-active {
|
34
|
+
@apply text-black font-medium;
|
35
|
+
}
|
36
|
+
|
37
|
+
.bui-link-white-text {
|
38
|
+
@apply text-black;
|
39
|
+
}
|
40
|
+
|
41
|
+
/* Temi di colore - Red */
|
42
|
+
.bui-link-red-link {
|
43
|
+
@apply text-red-200 hover:text-white;
|
44
|
+
}
|
45
|
+
|
46
|
+
.bui-link-red-active {
|
47
|
+
@apply text-white font-medium;
|
48
|
+
}
|
49
|
+
|
50
|
+
.bui-link-red-text {
|
51
|
+
@apply text-white;
|
52
|
+
}
|
53
|
+
|
54
|
+
/* Temi di colore - Rose */
|
55
|
+
.bui-link-rose-link {
|
56
|
+
@apply text-rose-200 hover:text-white;
|
57
|
+
}
|
58
|
+
|
59
|
+
.bui-link-rose-active {
|
60
|
+
@apply text-white font-medium;
|
61
|
+
}
|
62
|
+
|
63
|
+
.bui-link-rose-text {
|
64
|
+
@apply text-white;
|
65
|
+
}
|
66
|
+
|
67
|
+
/* Temi di colore - Orange */
|
68
|
+
.bui-link-orange-link {
|
69
|
+
@apply text-orange-200 hover:text-white;
|
70
|
+
}
|
71
|
+
|
72
|
+
.bui-link-orange-active {
|
73
|
+
@apply text-white font-medium;
|
74
|
+
}
|
75
|
+
|
76
|
+
.bui-link-orange-text {
|
77
|
+
@apply text-white;
|
78
|
+
}
|
79
|
+
|
80
|
+
/* Temi di colore - Green */
|
81
|
+
.bui-link-green-link {
|
82
|
+
@apply text-green-200 hover:text-white;
|
83
|
+
}
|
84
|
+
|
85
|
+
.bui-link-green-active {
|
86
|
+
@apply text-white font-medium;
|
87
|
+
}
|
88
|
+
|
89
|
+
.bui-link-green-text {
|
90
|
+
@apply text-white;
|
91
|
+
}
|
92
|
+
|
93
|
+
/* Temi di colore - Blue */
|
94
|
+
.bui-link-blue-link {
|
95
|
+
@apply text-blue-200 hover:text-white;
|
96
|
+
}
|
97
|
+
|
98
|
+
.bui-link-blue-active {
|
99
|
+
@apply text-white font-medium;
|
100
|
+
}
|
101
|
+
|
102
|
+
.bui-link-blue-text {
|
103
|
+
@apply text-white;
|
104
|
+
}
|
105
|
+
|
106
|
+
/* Temi di colore - Yellow */
|
107
|
+
.bui-link-yellow-link {
|
108
|
+
@apply text-yellow-700 hover:text-black;
|
109
|
+
}
|
110
|
+
|
111
|
+
.bui-link-yellow-active {
|
112
|
+
@apply text-black font-medium;
|
113
|
+
}
|
114
|
+
|
115
|
+
.bui-link-yellow-text {
|
116
|
+
@apply text-black;
|
117
|
+
}
|
118
|
+
|
119
|
+
/* Temi di colore - Violet */
|
120
|
+
.bui-link-violet-link {
|
121
|
+
@apply text-violet-200 hover:text-white;
|
122
|
+
}
|
123
|
+
|
124
|
+
.bui-link-violet-active {
|
125
|
+
@apply text-white font-medium;
|
126
|
+
}
|
127
|
+
|
128
|
+
.bui-link-violet-text {
|
129
|
+
@apply text-white;
|
130
|
+
}
|
@@ -0,0 +1,144 @@
|
|
1
|
+
/* ==============================
|
2
|
+
* Panel Component
|
3
|
+
* ============================== */
|
4
|
+
|
5
|
+
/* Struttura di base */
|
6
|
+
.bui-panel-base {
|
7
|
+
@apply border shadow-sm;
|
8
|
+
}
|
9
|
+
|
10
|
+
/* Intestazione */
|
11
|
+
.bui-panel-header {
|
12
|
+
@apply px-4 py-3 border-b;
|
13
|
+
}
|
14
|
+
|
15
|
+
/* Corpo */
|
16
|
+
.bui-panel-body {
|
17
|
+
@apply p-4;
|
18
|
+
}
|
19
|
+
|
20
|
+
.bui-panel-body-content {
|
21
|
+
@apply overflow-x-auto break-words;
|
22
|
+
}
|
23
|
+
|
24
|
+
/* Piè di pagina */
|
25
|
+
.bui-panel-footer {
|
26
|
+
@apply px-4 py-3 border-t;
|
27
|
+
}
|
28
|
+
|
29
|
+
/* Titolo */
|
30
|
+
.bui-panel-title {
|
31
|
+
@apply text-lg font-medium;
|
32
|
+
}
|
33
|
+
|
34
|
+
/* Opzioni di padding */
|
35
|
+
.bui-panel-padding-none {
|
36
|
+
@apply p-0;
|
37
|
+
}
|
38
|
+
|
39
|
+
.bui-panel-padding-small {
|
40
|
+
@apply p-2;
|
41
|
+
}
|
42
|
+
|
43
|
+
.bui-panel-padding-medium {
|
44
|
+
@apply p-4;
|
45
|
+
}
|
46
|
+
|
47
|
+
.bui-panel-padding-large {
|
48
|
+
@apply p-6;
|
49
|
+
}
|
50
|
+
|
51
|
+
/* Opzioni di border-radius */
|
52
|
+
.bui-panel-radius-none {
|
53
|
+
@apply rounded-none;
|
54
|
+
}
|
55
|
+
|
56
|
+
.bui-panel-radius-small {
|
57
|
+
@apply rounded-md;
|
58
|
+
}
|
59
|
+
|
60
|
+
.bui-panel-radius-medium {
|
61
|
+
@apply rounded-lg;
|
62
|
+
}
|
63
|
+
|
64
|
+
.bui-panel-radius-large {
|
65
|
+
@apply rounded-xl;
|
66
|
+
}
|
67
|
+
|
68
|
+
.bui-panel-radius-full {
|
69
|
+
@apply rounded-full;
|
70
|
+
}
|
71
|
+
|
72
|
+
/* Temi di colore per header */
|
73
|
+
.bui-panel-default-header {
|
74
|
+
@apply bg-black text-white;
|
75
|
+
}
|
76
|
+
|
77
|
+
.bui-panel-white-header {
|
78
|
+
@apply bg-white text-black;
|
79
|
+
}
|
80
|
+
|
81
|
+
.bui-panel-red-header {
|
82
|
+
@apply bg-red-500 text-white;
|
83
|
+
}
|
84
|
+
|
85
|
+
.bui-panel-rose-header {
|
86
|
+
@apply bg-rose-500 text-white;
|
87
|
+
}
|
88
|
+
|
89
|
+
.bui-panel-orange-header {
|
90
|
+
@apply bg-orange-500 text-white;
|
91
|
+
}
|
92
|
+
|
93
|
+
.bui-panel-green-header {
|
94
|
+
@apply bg-green-500 text-white;
|
95
|
+
}
|
96
|
+
|
97
|
+
.bui-panel-blue-header {
|
98
|
+
@apply bg-blue-500 text-white;
|
99
|
+
}
|
100
|
+
|
101
|
+
.bui-panel-yellow-header {
|
102
|
+
@apply bg-yellow-500 text-black;
|
103
|
+
}
|
104
|
+
|
105
|
+
.bui-panel-violet-header {
|
106
|
+
@apply bg-violet-500 text-white;
|
107
|
+
}
|
108
|
+
|
109
|
+
/* Temi di colore per footer */
|
110
|
+
.bui-panel-default-footer {
|
111
|
+
@apply bg-black text-white;
|
112
|
+
}
|
113
|
+
|
114
|
+
.bui-panel-white-footer {
|
115
|
+
@apply bg-white text-black;
|
116
|
+
}
|
117
|
+
|
118
|
+
.bui-panel-red-footer {
|
119
|
+
@apply bg-red-500 text-white;
|
120
|
+
}
|
121
|
+
|
122
|
+
.bui-panel-rose-footer {
|
123
|
+
@apply bg-rose-500 text-white;
|
124
|
+
}
|
125
|
+
|
126
|
+
.bui-panel-orange-footer {
|
127
|
+
@apply bg-orange-500 text-white;
|
128
|
+
}
|
129
|
+
|
130
|
+
.bui-panel-green-footer {
|
131
|
+
@apply bg-green-500 text-white;
|
132
|
+
}
|
133
|
+
|
134
|
+
.bui-panel-blue-footer {
|
135
|
+
@apply bg-blue-500 text-white;
|
136
|
+
}
|
137
|
+
|
138
|
+
.bui-panel-yellow-footer {
|
139
|
+
@apply bg-yellow-500 text-black;
|
140
|
+
}
|
141
|
+
|
142
|
+
.bui-panel-violet-footer {
|
143
|
+
@apply bg-violet-500 text-white;
|
144
|
+
}
|
@@ -0,0 +1,132 @@
|
|
1
|
+
/* ==============================
|
2
|
+
* Spinner Component
|
3
|
+
* ============================== */
|
4
|
+
|
5
|
+
/* Stile base */
|
6
|
+
.bui-spinner {
|
7
|
+
@apply inline-flex flex-col items-center justify-center;
|
8
|
+
}
|
9
|
+
|
10
|
+
/* Animazione dello spinner */
|
11
|
+
.bui-spinner-animation {
|
12
|
+
@apply inline-block rounded-full animate-spin;
|
13
|
+
border-top-color: transparent;
|
14
|
+
}
|
15
|
+
|
16
|
+
/* Base per il contenuto */
|
17
|
+
.bui-spinner-label {
|
18
|
+
@apply mt-2 text-center;
|
19
|
+
}
|
20
|
+
|
21
|
+
.bui-spinner-content {
|
22
|
+
@apply mt-4;
|
23
|
+
}
|
24
|
+
|
25
|
+
/* Modalità fullscreen */
|
26
|
+
.bui-spinner-fullscreen {
|
27
|
+
@apply fixed inset-0 flex items-center justify-center z-50 bg-black bg-opacity-50;
|
28
|
+
}
|
29
|
+
|
30
|
+
/* Varianti di dimensione */
|
31
|
+
.bui-spinner-small .bui-spinner-animation {
|
32
|
+
@apply w-5 h-5 border-2;
|
33
|
+
}
|
34
|
+
|
35
|
+
.bui-spinner-medium .bui-spinner-animation {
|
36
|
+
@apply w-8 h-8 border-3;
|
37
|
+
}
|
38
|
+
|
39
|
+
.bui-spinner-large .bui-spinner-animation {
|
40
|
+
@apply w-12 h-12 border-4;
|
41
|
+
}
|
42
|
+
|
43
|
+
/* Varianti di colore */
|
44
|
+
.bui-spinner-default {
|
45
|
+
.bui-spinner-animation {
|
46
|
+
@apply border-gray-200 border-t-gray-800;
|
47
|
+
}
|
48
|
+
|
49
|
+
.bui-spinner-label {
|
50
|
+
@apply text-gray-800;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
.bui-spinner-white {
|
55
|
+
.bui-spinner-animation {
|
56
|
+
@apply border-gray-100 border-t-white;
|
57
|
+
}
|
58
|
+
|
59
|
+
.bui-spinner-label {
|
60
|
+
@apply text-white;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
.bui-spinner-red {
|
65
|
+
.bui-spinner-animation {
|
66
|
+
@apply border-red-100 border-t-red-600;
|
67
|
+
}
|
68
|
+
|
69
|
+
.bui-spinner-label {
|
70
|
+
@apply text-red-600;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
.bui-spinner-rose {
|
75
|
+
.bui-spinner-animation {
|
76
|
+
@apply border-rose-100 border-t-rose-600;
|
77
|
+
}
|
78
|
+
|
79
|
+
.bui-spinner-label {
|
80
|
+
@apply text-rose-600;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
.bui-spinner-orange {
|
85
|
+
.bui-spinner-animation {
|
86
|
+
@apply border-orange-100 border-t-orange-500;
|
87
|
+
}
|
88
|
+
|
89
|
+
.bui-spinner-label {
|
90
|
+
@apply text-orange-500;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
.bui-spinner-green {
|
95
|
+
.bui-spinner-animation {
|
96
|
+
@apply border-green-100 border-t-green-600;
|
97
|
+
}
|
98
|
+
|
99
|
+
.bui-spinner-label {
|
100
|
+
@apply text-green-600;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
.bui-spinner-blue {
|
105
|
+
.bui-spinner-animation {
|
106
|
+
@apply border-blue-100 border-t-blue-600;
|
107
|
+
}
|
108
|
+
|
109
|
+
.bui-spinner-label {
|
110
|
+
@apply text-blue-600;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
.bui-spinner-yellow {
|
115
|
+
.bui-spinner-animation {
|
116
|
+
@apply border-yellow-100 border-t-yellow-500;
|
117
|
+
}
|
118
|
+
|
119
|
+
.bui-spinner-label {
|
120
|
+
@apply text-yellow-500;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
.bui-spinner-violet {
|
125
|
+
.bui-spinner-animation {
|
126
|
+
@apply border-violet-100 border-t-violet-600;
|
127
|
+
}
|
128
|
+
|
129
|
+
.bui-spinner-label {
|
130
|
+
@apply text-violet-600;
|
131
|
+
}
|
132
|
+
}
|