@ardium-ui/ui 3.5.5 → 4.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 (129) hide show
  1. package/esm2022/lib/buttons/_button-base.defaults.mjs +2 -1
  2. package/esm2022/lib/buttons/_button-base.mjs +3 -2
  3. package/esm2022/lib/buttons/button/button.component.mjs +5 -3
  4. package/esm2022/lib/buttons/fab/fab.component.mjs +5 -3
  5. package/esm2022/lib/buttons/icon-button/icon-button.component.mjs +8 -3
  6. package/esm2022/lib/calendar/views/days-view/days-view.component.mjs +1 -1
  7. package/esm2022/lib/calendar/views/months-view/months-view.component.mjs +1 -1
  8. package/esm2022/lib/calendar/views/years-view/years-view.component.mjs +1 -1
  9. package/esm2022/lib/checkbox/checkbox.component.mjs +3 -3
  10. package/esm2022/lib/checkbox/checkbox.module.mjs +1 -1
  11. package/esm2022/lib/checkbox/checkbox.types.mjs +1 -1
  12. package/esm2022/lib/dialog/dialog.component.mjs +26 -9
  13. package/esm2022/lib/dialog/dialog.defaults.mjs +3 -1
  14. package/esm2022/lib/dialog/dialog.directives.mjs +12 -1
  15. package/esm2022/lib/dialog/dialog.module.mjs +7 -7
  16. package/esm2022/lib/dialog/dialog.types.mjs +6 -2
  17. package/esm2022/lib/inputs/date-input/date-input.component.mjs +1 -1
  18. package/esm2022/lib/modal/index.mjs +2 -1
  19. package/esm2022/lib/modal/modal.component.mjs +18 -5
  20. package/esm2022/lib/modal/modal.defaults.mjs +1 -1
  21. package/esm2022/lib/modal/modal.directives.mjs +14 -0
  22. package/esm2022/lib/modal/modal.module.mjs +8 -7
  23. package/esm2022/lib/star/index.mjs +2 -1
  24. package/esm2022/lib/star/rating-display/index.mjs +6 -0
  25. package/esm2022/lib/star/rating-display/rating-display.component.mjs +71 -0
  26. package/esm2022/lib/star/rating-display/rating-display.defaults.mjs +16 -0
  27. package/esm2022/lib/star/rating-display/rating-display.directives.mjs +16 -0
  28. package/esm2022/lib/star/rating-display/rating-display.module.mjs +20 -0
  29. package/esm2022/lib/star/rating-display/rating-display.types.mjs +2 -0
  30. package/esm2022/lib/star/rating-input/index.mjs +6 -0
  31. package/esm2022/lib/star/rating-input/rating-input.component.mjs +191 -0
  32. package/esm2022/lib/star/rating-input/rating-input.defaults.mjs +17 -0
  33. package/esm2022/lib/star/rating-input/rating-input.directives.mjs +16 -0
  34. package/esm2022/lib/star/rating-input/rating-input.module.mjs +20 -0
  35. package/esm2022/lib/star/rating-input/rating-input.types.mjs +2 -0
  36. package/esm2022/lib/star/star-button/index.mjs +3 -1
  37. package/esm2022/lib/star/star-button/star-button.component.mjs +13 -5
  38. package/esm2022/lib/star/star-button/star-button.defaults.mjs +2 -2
  39. package/esm2022/lib/star/star-button/star-button.directives.mjs +16 -0
  40. package/esm2022/lib/star/star-button/star-button.module.mjs +7 -6
  41. package/esm2022/lib/star/star-button/star-button.types.mjs +2 -0
  42. package/esm2022/lib/star/star.component.mjs +14 -5
  43. package/esm2022/lib/star/star.defaults.mjs +2 -2
  44. package/esm2022/lib/star/star.directives.mjs +16 -0
  45. package/esm2022/lib/star/star.module.mjs +9 -7
  46. package/esm2022/lib/star/star.types.mjs +3 -3
  47. package/esm2022/lib/table-pagination/table-pagination.component.mjs +1 -1
  48. package/esm2022/public-api.mjs +3 -3
  49. package/fesm2022/ardium-ui-ui.mjs +299 -152
  50. package/fesm2022/ardium-ui-ui.mjs.map +1 -1
  51. package/lib/buttons/_button-base.d.ts +2 -1
  52. package/lib/buttons/_button-base.defaults.d.ts +1 -0
  53. package/lib/buttons/icon-button/icon-button.component.d.ts +2 -1
  54. package/lib/dialog/dialog.component.d.ts +9 -4
  55. package/lib/dialog/dialog.defaults.d.ts +2 -0
  56. package/lib/dialog/dialog.directives.d.ts +6 -0
  57. package/lib/dialog/dialog.module.d.ts +1 -1
  58. package/lib/dialog/dialog.types.d.ts +8 -2
  59. package/lib/modal/index.d.ts +1 -0
  60. package/lib/modal/modal.component.d.ts +7 -1
  61. package/lib/modal/modal.directives.d.ts +8 -0
  62. package/lib/modal/modal.module.d.ts +6 -5
  63. package/lib/star/index.d.ts +1 -0
  64. package/lib/star/rating-display/index.d.ts +5 -0
  65. package/lib/star/rating-display/rating-display.component.d.ts +17 -0
  66. package/lib/star/rating-display/rating-display.defaults.d.ts +9 -0
  67. package/lib/star/rating-display/rating-display.directives.d.ts +9 -0
  68. package/lib/star/rating-display/rating-display.module.d.ts +10 -0
  69. package/lib/star/rating-display/rating-display.types.d.ts +8 -0
  70. package/lib/star/rating-input/index.d.ts +5 -0
  71. package/lib/star/rating-input/rating-input.component.d.ts +46 -0
  72. package/lib/star/rating-input/rating-input.defaults.d.ts +9 -0
  73. package/lib/star/rating-input/rating-input.directives.d.ts +9 -0
  74. package/lib/star/rating-input/rating-input.module.d.ts +10 -0
  75. package/lib/star/rating-input/rating-input.types.d.ts +12 -0
  76. package/lib/star/star-button/index.d.ts +2 -0
  77. package/lib/star/star-button/star-button.component.d.ts +5 -1
  78. package/lib/star/star-button/star-button.directives.d.ts +9 -0
  79. package/lib/star/star-button/star-button.module.d.ts +4 -3
  80. package/lib/star/star-button/star-button.types.d.ts +6 -0
  81. package/lib/star/star.component.d.ts +6 -3
  82. package/lib/star/star.directives.d.ts +9 -0
  83. package/lib/star/star.module.d.ts +4 -2
  84. package/lib/star/star.types.d.ts +5 -2
  85. package/package.json +1 -1
  86. package/prebuilt-themes/default/buttons/button.css +9 -2
  87. package/prebuilt-themes/default/buttons/button.css.map +1 -1
  88. package/prebuilt-themes/default/buttons/fab.css +9 -2
  89. package/prebuilt-themes/default/buttons/fab.css.map +1 -1
  90. package/prebuilt-themes/default/buttons/icon-button.css +9 -2
  91. package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
  92. package/prebuilt-themes/default/card.css +5 -0
  93. package/prebuilt-themes/default/card.css.map +1 -1
  94. package/prebuilt-themes/default/core.css +1 -1
  95. package/prebuilt-themes/default/kbd.css +1 -0
  96. package/prebuilt-themes/default/kbd.css.map +1 -1
  97. package/prebuilt-themes/default/modal.css +3 -2
  98. package/prebuilt-themes/default/modal.css.map +1 -1
  99. package/prebuilt-themes/default/spinner.css +1 -1
  100. package/prebuilt-themes/default/stars.css +31 -73
  101. package/prebuilt-themes/default/stars.css.map +1 -1
  102. package/public-api.d.ts +2 -2
  103. package/themes/_variables.scss +121 -121
  104. package/themes/default/buttons/_button-mixins.scss +137 -137
  105. package/themes/default/buttons/button.scss +79 -72
  106. package/themes/default/buttons/fab.scss +81 -74
  107. package/themes/default/buttons/icon-button.scss +62 -55
  108. package/themes/default/card.scss +135 -129
  109. package/themes/default/core.scss +1 -1
  110. package/themes/default/kbd.scss +21 -20
  111. package/themes/default/modal.scss +94 -93
  112. package/themes/default/spinner.scss +21 -21
  113. package/themes/default/stars.scss +85 -122
  114. package/esm2022/lib/star/star-display/index.mjs +0 -4
  115. package/esm2022/lib/star/star-display/star-display.component.mjs +0 -61
  116. package/esm2022/lib/star/star-display/star-display.defaults.mjs +0 -16
  117. package/esm2022/lib/star/star-display/star-display.module.mjs +0 -19
  118. package/esm2022/lib/star/star-input/index.mjs +0 -4
  119. package/esm2022/lib/star/star-input/star-input.component.mjs +0 -188
  120. package/esm2022/lib/star/star-input/star-input.defaults.mjs +0 -17
  121. package/esm2022/lib/star/star-input/star-input.module.mjs +0 -19
  122. package/lib/star/star-display/index.d.ts +0 -3
  123. package/lib/star/star-display/star-display.component.d.ts +0 -13
  124. package/lib/star/star-display/star-display.defaults.d.ts +0 -9
  125. package/lib/star/star-display/star-display.module.d.ts +0 -9
  126. package/lib/star/star-input/index.d.ts +0 -3
  127. package/lib/star/star-input/star-input.component.d.ts +0 -48
  128. package/lib/star/star-input/star-input.defaults.d.ts +0 -9
  129. package/lib/star/star-input/star-input.module.d.ts +0 -9
@@ -1,55 +1,62 @@
1
- @use './button-mixins' as shared;
2
-
3
- ard-icon-button {
4
- height: max-content;
5
- width: max-content;
6
- border-radius: 9999px;
7
- aspect-ratio: 1;
8
- display: inline-block;
9
- font-size: 1rem;
10
- }
11
-
12
- .ard-icon-button {
13
- @include shared.button;
14
- background: transparent;
15
- height: 2.1875em;
16
- aspect-ratio: 1;
17
- border-radius: 9999px;
18
- align-items: center;
19
- justify-content: center;
20
- padding: 0;
21
- overflow: hidden;
22
- font-weight: 600;
23
- font-size: inherit;
24
- color: var(--ard-cmpcl--bg-colored);
25
-
26
- .ard-button-content {
27
- display: flex;
28
- align-items: center;
29
-
30
- > ard-icon {
31
- font-weight: 500;
32
- font-size: 1.5em;
33
- }
34
- }
35
-
36
- //! compact
37
- &.ard-compact {
38
- height: 2.25em;
39
- font-size: 0.75em;
40
- }
41
- //! light coloring
42
- &.ard-light-coloring {
43
- color: var(--ard-cmpcl--bg-colored-light);
44
- }
45
- }
46
-
47
- ard-icon-button.ard-disabled {
48
- > .ard-icon-button {
49
- @include shared.button-disabled;
50
-
51
- .ard-focus-overlay {
52
- opacity: 0;
53
- }
54
- }
55
- }
1
+ @use './button-mixins' as shared;
2
+
3
+ ard-icon-button {
4
+ height: max-content;
5
+ width: max-content;
6
+ border-radius: 9999px;
7
+ aspect-ratio: 1;
8
+ display: inline-block;
9
+ font-size: 1rem;
10
+ }
11
+
12
+ .ard-icon-button {
13
+ @include shared.button;
14
+ background: transparent;
15
+ height: 2.1875em;
16
+ aspect-ratio: 1;
17
+ border-radius: 9999px;
18
+ align-items: center;
19
+ justify-content: center;
20
+ padding: 0;
21
+ overflow: hidden;
22
+ font-weight: 600;
23
+ font-size: inherit;
24
+ color: var(--ard-cmpcl--bg-colored);
25
+
26
+ .ard-button-content {
27
+ display: flex;
28
+ align-items: center;
29
+
30
+ > ard-icon {
31
+ font-weight: 500;
32
+ font-size: 1.5em;
33
+ }
34
+ }
35
+
36
+ //! compact
37
+ &.ard-compact {
38
+ height: 2.25em;
39
+ font-size: 0.75em;
40
+ }
41
+ //! light coloring
42
+ &.ard-light-coloring {
43
+ color: var(--ard-cmpcl--bg-colored-light);
44
+ }
45
+ }
46
+
47
+ ard-icon-button.ard-disabled {
48
+ > .ard-icon-button {
49
+ @include shared.button-disabled;
50
+
51
+ .ard-focus-overlay {
52
+ opacity: 0;
53
+ }
54
+ }
55
+ &.ard-button-with-pointer-events-when-disabled {
56
+ pointer-events: all;
57
+
58
+ > .ard-button {
59
+ pointer-events: all;
60
+ }
61
+ }
62
+ }
@@ -1,129 +1,135 @@
1
- @use '../variables' as ARD;
2
-
3
- ard-card,
4
- .ard-card {
5
- position: relative;
6
- background: ARD.$bg;
7
- box-sizing: border-box;
8
- width: 100%;
9
- height: max-content;
10
- display: block;
11
-
12
- //! appearances
13
- &.ard-appearance-outlined {
14
- border: 1px solid ARD.$border-light;
15
- }
16
- &.ard-appearance-raised {
17
- box-shadow: ARD.$card-shadow;
18
- }
19
- //! variants
20
- &.ard-variant-sharp {
21
- border-radius: 0;
22
- }
23
- &.ard-variant-rounded {
24
- border-radius: 8px;
25
- }
26
- }
27
- //! header
28
- ard-card-header {
29
- padding: 0.5em 1em 0 1em;
30
- display: flex;
31
- align-items: center;
32
- margin-bottom: 1em;
33
- max-width: 100%;
34
-
35
- .ard-card-header-title-container {
36
- display: flex;
37
- flex-direction: column;
38
- justify-content: center;
39
- }
40
-
41
- &:first-child {
42
- padding-top: 1em;
43
- }
44
- }
45
- .ard-card-title,
46
- .ard-card-subtitle {
47
- line-height: normal;
48
- display: block;
49
- margin: 0;
50
- font-weight: 500;
51
- }
52
- .ard-card-title {
53
- font-size: 1.375em;
54
- letter-spacing: 0.0125em;
55
- color: ARD.$text;
56
- }
57
- .ard-card-subtitle {
58
- font-size: 1em;
59
- letter-spacing: 0.0078125em;
60
- color: ARD.$text3;
61
- margin-top: 0.125rem;
62
- }
63
- .ard-card-avatar {
64
- display: block;
65
- width: 3em;
66
- height: 3em;
67
- border-radius: 9999px;
68
- flex-shrink: 0;
69
- object-fit: cover;
70
-
71
- ~ .ard-card-header-title-container {
72
- padding: 0 1em;
73
- }
74
- }
75
- //! image
76
- .ard-card-image {
77
- position: relative;
78
- box-sizing: border-box;
79
- background-repeat: no-repeat;
80
- background-position: center;
81
- background-size: cover;
82
- max-width: 100%;
83
-
84
- &:first-child {
85
- border-top-left-radius: inherit;
86
- border-top-right-radius: inherit;
87
- }
88
- &:last-child {
89
- border-bottom-left-radius: inherit;
90
- border-bottom-right-radius: inherit;
91
- }
92
- }
93
- //! content
94
- .ard-card-content {
95
- padding: 0 1em;
96
- display: block;
97
- max-width: 100%;
98
-
99
- &:first-child {
100
- padding-top: 1em;
101
- }
102
- &:last-child {
103
- padding-bottom: 1em;
104
- }
105
-
106
- > :last-child {
107
- margin-bottom: 0;
108
- }
109
- }
110
- //! action buttons
111
- .ard-card-action-buttons {
112
- padding: 0.5em;
113
- display: flex;
114
- flex-direction: row;
115
- align-items: center;
116
- max-width: 100%;
117
-
118
- &.ard-align-left {
119
- justify-content: flex-start;
120
- }
121
- &.ard-align-middle {
122
- justify-content: center;
123
- }
124
- &.ard-align-right {
125
- justify-content: flex-end;
126
- }
127
- }
128
- //! footer
129
- //no styling needed
1
+ @use '../variables' as ARD;
2
+
3
+ ard-card,
4
+ .ard-card {
5
+ position: relative;
6
+ background: ARD.$bg;
7
+ box-sizing: border-box;
8
+ width: 100%;
9
+ height: max-content;
10
+ display: block;
11
+
12
+ //! appearances
13
+ &.ard-appearance-outlined {
14
+ border: 1px solid ARD.$border-light;
15
+ }
16
+ &.ard-appearance-raised {
17
+ box-shadow: ARD.$card-shadow;
18
+ }
19
+ //! variants
20
+ &.ard-variant-sharp {
21
+ border-radius: 0;
22
+ }
23
+ &.ard-variant-rounded {
24
+ border-radius: 8px;
25
+ }
26
+ }
27
+ //! header
28
+ ard-card-header {
29
+ padding: 0.5em 1em 0 1em;
30
+ display: flex;
31
+ align-items: center;
32
+ margin-bottom: 1em;
33
+ max-width: 100%;
34
+
35
+ .ard-card-header-title-container {
36
+ display: flex;
37
+ flex-direction: column;
38
+ justify-content: center;
39
+ }
40
+
41
+ &:first-child {
42
+ padding-top: 1em;
43
+ }
44
+ }
45
+ .ard-card-title,
46
+ .ard-card-subtitle {
47
+ line-height: normal;
48
+ display: block;
49
+ margin: 0;
50
+ font-weight: 500;
51
+ }
52
+ .ard-card-title {
53
+ font-size: 1.375em;
54
+ letter-spacing: 0.0125em;
55
+ color: ARD.$text;
56
+ }
57
+ .ard-card-subtitle {
58
+ font-size: 1em;
59
+ letter-spacing: 0.0078125em;
60
+ color: ARD.$text3;
61
+ margin-top: 0.125rem;
62
+ }
63
+ .ard-card-avatar {
64
+ display: block;
65
+ width: 3em;
66
+ height: 3em;
67
+ border-radius: 9999px;
68
+ flex-shrink: 0;
69
+ object-fit: cover;
70
+
71
+ ~ .ard-card-header-title-container {
72
+ padding: 0 1em;
73
+ }
74
+ }
75
+ //! image
76
+ .ard-card-image {
77
+ position: relative;
78
+ box-sizing: border-box;
79
+ background-repeat: no-repeat;
80
+ background-position: center;
81
+ background-size: cover;
82
+ max-width: 100%;
83
+
84
+ &:first-child {
85
+ border-top-left-radius: inherit;
86
+ border-top-right-radius: inherit;
87
+ }
88
+ &:last-child {
89
+ border-bottom-left-radius: inherit;
90
+ border-bottom-right-radius: inherit;
91
+ }
92
+ }
93
+ ard-card,
94
+ .ard-card {
95
+ .ard-appearance-outlined .ard-image {
96
+ border-bottom: 1px solid ARD.$border-light;
97
+ }
98
+ }
99
+ //! content
100
+ .ard-card-content {
101
+ padding: 0 1em;
102
+ display: block;
103
+ max-width: 100%;
104
+
105
+ &:first-child {
106
+ padding-top: 1em;
107
+ }
108
+ &:last-child {
109
+ padding-bottom: 1em;
110
+ }
111
+
112
+ > :last-child {
113
+ margin-bottom: 0;
114
+ }
115
+ }
116
+ //! action buttons
117
+ .ard-card-action-buttons {
118
+ padding: 0.5em;
119
+ display: flex;
120
+ flex-direction: row;
121
+ align-items: center;
122
+ max-width: 100%;
123
+
124
+ &.ard-align-left {
125
+ justify-content: flex-start;
126
+ }
127
+ &.ard-align-middle {
128
+ justify-content: center;
129
+ }
130
+ &.ard-align-right {
131
+ justify-content: flex-end;
132
+ }
133
+ }
134
+ //! footer
135
+ //no styling needed
@@ -34,7 +34,7 @@
34
34
  --ard-darken-overlay-light: rgba(0, 0, 0, 5%);
35
35
  --ard-darken-overlay-ultralight: rgba(0, 0, 0, 3%);
36
36
 
37
- --ard-star: #ffc107;
37
+ --ard-gold: #ffc107;
38
38
 
39
39
  --ard-clear-button-size: 0.9rem;
40
40
  --ard-dropdown-button-size: 0.4rem;
@@ -1,20 +1,21 @@
1
- @use '../variables' as ARD;
2
-
3
- .ard-kbd {
4
- border-radius: 0.2em;
5
- font-family: monospace;
6
- font-size: 0.9em;
7
- margin: 0 0.125em;
8
- color: ARD.$text2;
9
-
10
- //! appearance
11
- &.ard-appearance-outlined,
12
- &.ard-appearance-filled {
13
- border: 1px solid ARD.$detail-ultralight;
14
- box-shadow: inset 0 -1px 0 ARD.$darken-overlay;
15
- padding: 0.15em 0.35em;
16
- }
17
- &.ard-appearance-filled {
18
- background: ARD.$bg-d;
19
- }
20
- }
1
+ @use '../variables' as ARD;
2
+
3
+ .ard-kbd {
4
+ border-radius: 0.2em;
5
+ font-family: monospace;
6
+ font-size: 0.9em;
7
+ margin: 0 0.125em;
8
+ color: ARD.$text2;
9
+
10
+ //! appearance
11
+ &.ard-appearance-outlined,
12
+ &.ard-appearance-filled {
13
+ border: 1px solid ARD.$detail-ultralight;
14
+ box-shadow: inset 0 -1px 0 ARD.$darken-overlay;
15
+ padding: 0.15em 0.35em;
16
+ background-color: ARD.$bg;
17
+ }
18
+ &.ard-appearance-filled {
19
+ background: ARD.$bg-d;
20
+ }
21
+ }
@@ -1,93 +1,94 @@
1
- @use '../variables' as ARD;
2
-
3
- .ard-modal {
4
- position: fixed;
5
- top: 0;
6
- bottom: 0;
7
- left: 0;
8
- right: 0;
9
- display: grid;
10
- place-items: center;
11
-
12
- &.ard-modal-backdrop {
13
- background: ARD.$darken-overlay-strong;
14
- }
15
- .ard-modal-panel {
16
- padding: 1.25rem 3rem 1.5rem 3rem;
17
- background: ARD.$bg;
18
- max-width: calc(100vw - 4rem);
19
- position: relative;
20
- display: flex;
21
- flex-direction: column;
22
- align-items: flex-start;
23
- gap: 1.5rem;
24
-
25
- &.ard-modal-no-heading-text {
26
- gap: 0.25rem;
27
-
28
- .ard-modal-close-button {
29
- position: absolute;
30
- right: 0.5rem;
31
- top: 0.5rem;
32
- }
33
- }
34
- &.ard-modal-has-close-button {
35
- .ard-modal-heading {
36
- padding-right: 1rem;
37
- }
38
- }
39
- }
40
- .ard-modal-heading {
41
- display: flex;
42
- align-items: flex-start;
43
- justify-content: space-between;
44
-
45
- .ard-modal-heading-text {
46
- font-size: 1.25rem;
47
- color: ARD.$text;
48
- font-weight: 500;
49
- font-family: Roboto;
50
- }
51
- .ard-modal-close-button {
52
- position: absolute;
53
- right: 0.5rem;
54
- top: 0.5rem;
55
- }
56
- }
57
- //! appearances
58
- &.ard-appearance-raised {
59
- .ard-modal-panel {
60
- box-shadow: ARD.$simple-shadow2;
61
- }
62
- }
63
- //! variants
64
- &.ard-variant-rounded {
65
- .ard-modal-panel {
66
- border-radius: 8px;
67
- }
68
- }
69
- &.ard-variant-sharp {
70
- .ard-modal-panel {
71
- border-radius: 0;
72
- }
73
- }
74
-
75
- //! compact
76
- &.ard-compact {
77
- .ard-modal-panel {
78
- font-size: 90%;
79
- padding: 0.75rem 2rem 1rem 2rem;
80
- gap: 1rem;
81
-
82
- &.ard-modal-no-heading-text {
83
- gap: 0.25rem;
84
-
85
- .ard-modal-close-button {
86
- position: absolute;
87
- right: 0.25rem;
88
- top: 0.25rem;
89
- }
90
- }
91
- }
92
- }
93
- }
1
+ @use '../variables' as ARD;
2
+
3
+ .ard-modal {
4
+ position: fixed;
5
+ top: 0;
6
+ bottom: 0;
7
+ left: 0;
8
+ right: 0;
9
+ display: grid;
10
+ place-items: center;
11
+
12
+ &.ard-modal-backdrop {
13
+ background: ARD.$darken-overlay-strong;
14
+ }
15
+ .ard-modal-panel {
16
+ padding: 1.25rem;
17
+ padding-top: 1rem;
18
+ background: ARD.$bg;
19
+ max-width: calc(100vw - 4rem);
20
+ position: relative;
21
+ display: flex;
22
+ flex-direction: column;
23
+ align-items: flex-start;
24
+ gap: 1.5rem;
25
+
26
+ &.ard-modal-no-heading-text {
27
+ gap: 0.25rem;
28
+
29
+ .ard-modal-close-button {
30
+ position: absolute;
31
+ right: 0.5rem;
32
+ top: 0.5rem;
33
+ }
34
+ }
35
+ &.ard-modal-has-close-button {
36
+ .ard-modal-heading {
37
+ padding-right: 2rem;
38
+ }
39
+ }
40
+ }
41
+ .ard-modal-heading {
42
+ display: flex;
43
+ align-items: flex-start;
44
+ justify-content: space-between;
45
+
46
+ .ard-modal-heading-text {
47
+ font-size: 1.25rem;
48
+ color: ARD.$text;
49
+ font-weight: 500;
50
+ font-family: Roboto;
51
+ }
52
+ .ard-modal-close-button {
53
+ position: absolute;
54
+ right: 0.5rem;
55
+ top: 0.5rem;
56
+ }
57
+ }
58
+ //! appearances
59
+ &.ard-appearance-raised {
60
+ .ard-modal-panel {
61
+ box-shadow: ARD.$simple-shadow2;
62
+ }
63
+ }
64
+ //! variants
65
+ &.ard-variant-rounded {
66
+ .ard-modal-panel {
67
+ border-radius: 8px;
68
+ }
69
+ }
70
+ &.ard-variant-sharp {
71
+ .ard-modal-panel {
72
+ border-radius: 0;
73
+ }
74
+ }
75
+
76
+ //! compact
77
+ &.ard-compact {
78
+ .ard-modal-panel {
79
+ font-size: 90%;
80
+ padding: 0.75rem 2rem 1rem 2rem;
81
+ gap: 1rem;
82
+
83
+ &.ard-modal-no-heading-text {
84
+ gap: 0.25rem;
85
+
86
+ .ard-modal-close-button {
87
+ position: absolute;
88
+ right: 0.25rem;
89
+ top: 0.25rem;
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
@@ -1,21 +1,21 @@
1
- @use './coloring' as CM;
2
-
3
- ard-spinner {
4
- display: inline-block;
5
- height: 2rem;
6
- width: 2rem;
7
- position: relative;
8
- margin: 0.25rem;
9
- }
10
-
11
- .ard-spinner {
12
- @include CM.typeColors();
13
- --ard-_spinner-duration: 1.4s;
14
- position: absolute;
15
-
16
- scale: 2.3; //magic number
17
-
18
- > circle {
19
- stroke: var(--ard-cmpcl--content);
20
- }
21
- }
1
+ @use './coloring' as CM;
2
+
3
+ ard-spinner {
4
+ display: inline-block;
5
+ width: 2rem;
6
+ aspect-ratio: 1;
7
+ position: relative;
8
+ margin: 0.25rem;
9
+ }
10
+
11
+ .ard-spinner {
12
+ @include CM.typeColors();
13
+ --ard-_spinner-duration: 1.4s;
14
+ position: absolute;
15
+
16
+ scale: 2.3; //magic number
17
+
18
+ > circle {
19
+ stroke: var(--ard-cmpcl--content);
20
+ }
21
+ }