@cuby-ui/core 0.0.193 → 0.0.195

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 (189) hide show
  1. package/README.md +24 -24
  2. package/components/button/button.component.d.ts +1 -1
  3. package/components/context-menu/context-menu.component.d.ts +2 -2
  4. package/directives/tooltip/tooltip.component.d.ts +1 -1
  5. package/esm2022/animations/animations.mjs +1 -1
  6. package/esm2022/classes/accessors.mjs +1 -1
  7. package/esm2022/classes/driver.mjs +1 -1
  8. package/esm2022/classes/index.mjs +1 -1
  9. package/esm2022/classes/vehicle.mjs +1 -1
  10. package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +3 -3
  11. package/esm2022/components/accordion/accordion.component.mjs +3 -3
  12. package/esm2022/components/accordion/accordion.module.mjs +1 -1
  13. package/esm2022/components/accordion/index.mjs +1 -1
  14. package/esm2022/components/alert/alert.component.mjs +3 -3
  15. package/esm2022/components/alert/alert.interfaces.mjs +1 -1
  16. package/esm2022/components/alert/alert.module.mjs +1 -1
  17. package/esm2022/components/alert/alert.service.mjs +1 -1
  18. package/esm2022/components/alert/alert.tokens.mjs +1 -1
  19. package/esm2022/components/alert/alert.types.mjs +1 -1
  20. package/esm2022/components/alert/alerts.component.mjs +3 -3
  21. package/esm2022/components/alert/index.mjs +1 -1
  22. package/esm2022/components/badge/badge.component.mjs +3 -3
  23. package/esm2022/components/badge/badge.module.mjs +1 -1
  24. package/esm2022/components/badge/badge.options.mjs +1 -1
  25. package/esm2022/components/badge/index.mjs +1 -1
  26. package/esm2022/components/banner/banner.component.mjs +3 -3
  27. package/esm2022/components/banner/banner.module.mjs +1 -1
  28. package/esm2022/components/banner/banner.options.mjs +1 -1
  29. package/esm2022/components/banner/index.mjs +1 -1
  30. package/esm2022/components/breadcrumbs/breadcrumb/breadcrumb.component.mjs +3 -3
  31. package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +3 -3
  32. package/esm2022/components/breadcrumbs/breadcrumbs.module.mjs +1 -1
  33. package/esm2022/components/breadcrumbs/index.mjs +1 -1
  34. package/esm2022/components/button/button.component.mjs +3 -3
  35. package/esm2022/components/button/button.module.mjs +1 -1
  36. package/esm2022/components/button/button.options.mjs +1 -1
  37. package/esm2022/components/button/index.mjs +1 -1
  38. package/esm2022/components/button-group/button-group.component.mjs +3 -3
  39. package/esm2022/components/button-group/button-group.module.mjs +1 -1
  40. package/esm2022/components/button-group/index.mjs +1 -1
  41. package/esm2022/components/checkbox/checkbox.component.mjs +1 -1
  42. package/esm2022/components/checkbox/checkbox.module.mjs +1 -1
  43. package/esm2022/components/checkbox/index.mjs +1 -1
  44. package/esm2022/components/context-menu/context-menu.component.mjs +30 -28
  45. package/esm2022/components/context-menu/context-menu.module.mjs +3 -3
  46. package/esm2022/components/context-menu/index.mjs +1 -1
  47. package/esm2022/components/dialog/dialog-actions/dialog-actions.component.mjs +3 -3
  48. package/esm2022/components/dialog/dialog-header/dialog-header.component.mjs +3 -3
  49. package/esm2022/components/dialog/dialog.component.mjs +3 -3
  50. package/esm2022/components/dialog/dialog.interfaces.mjs +1 -1
  51. package/esm2022/components/dialog/dialog.module.mjs +1 -1
  52. package/esm2022/components/dialog/dialog.service.mjs +1 -1
  53. package/esm2022/components/dialog/dialog.tokens.mjs +1 -1
  54. package/esm2022/components/dialog/dialogs.component.mjs +3 -3
  55. package/esm2022/components/dialog/index.mjs +1 -1
  56. package/esm2022/components/form-field/form-field.component.mjs +3 -3
  57. package/esm2022/components/form-field/form-field.module.mjs +1 -1
  58. package/esm2022/components/form-field/index.mjs +1 -1
  59. package/esm2022/components/hint/hint.component.mjs +3 -3
  60. package/esm2022/components/hint/hint.module.mjs +1 -1
  61. package/esm2022/components/hint/index.mjs +1 -1
  62. package/esm2022/components/icon-button/icon-button.component.mjs +3 -3
  63. package/esm2022/components/icon-button/icon-button.module.mjs +1 -1
  64. package/esm2022/components/icon-button/index.mjs +1 -1
  65. package/esm2022/components/index.mjs +1 -1
  66. package/esm2022/components/input-number/index.mjs +1 -1
  67. package/esm2022/components/input-number/input-number.component.mjs +3 -3
  68. package/esm2022/components/input-number/input-number.module.mjs +1 -1
  69. package/esm2022/components/input-password/index.mjs +1 -1
  70. package/esm2022/components/input-password/input-password.component.mjs +3 -3
  71. package/esm2022/components/input-password/input-password.module.mjs +1 -1
  72. package/esm2022/components/input-text/index.mjs +1 -1
  73. package/esm2022/components/input-text/input-text.component.mjs +3 -3
  74. package/esm2022/components/input-text/input-text.module.mjs +1 -1
  75. package/esm2022/components/input-time/index.mjs +1 -1
  76. package/esm2022/components/input-time/input-time.component.mjs +3 -3
  77. package/esm2022/components/input-time/input-time.module.mjs +1 -1
  78. package/esm2022/components/input-time/input-time.options.mjs +1 -1
  79. package/esm2022/components/label/index.mjs +1 -1
  80. package/esm2022/components/label/label.component.mjs +3 -3
  81. package/esm2022/components/label/label.module.mjs +1 -1
  82. package/esm2022/components/notification/index.mjs +1 -1
  83. package/esm2022/components/notification/notification.component.mjs +3 -3
  84. package/esm2022/components/notification/notification.module.mjs +1 -1
  85. package/esm2022/components/notification/notification.options.mjs +1 -1
  86. package/esm2022/components/radio/index.mjs +1 -1
  87. package/esm2022/components/radio/radio.component.mjs +1 -1
  88. package/esm2022/components/radio/radio.module.mjs +1 -1
  89. package/esm2022/components/root/index.mjs +1 -1
  90. package/esm2022/components/root/root.component.mjs +3 -3
  91. package/esm2022/components/root/root.module.mjs +1 -1
  92. package/esm2022/components/select/index.mjs +1 -1
  93. package/esm2022/components/select/select.component.mjs +3 -3
  94. package/esm2022/components/select/select.module.mjs +1 -1
  95. package/esm2022/components/svg/index.mjs +1 -1
  96. package/esm2022/components/svg/svg.component.mjs +3 -3
  97. package/esm2022/components/svg/svg.module.mjs +1 -1
  98. package/esm2022/components/tabs/index.mjs +1 -1
  99. package/esm2022/components/tabs/tab/tab.component.mjs +3 -3
  100. package/esm2022/components/tabs/tabs.component.mjs +3 -3
  101. package/esm2022/components/tabs/tabs.module.mjs +1 -1
  102. package/esm2022/components/textarea/index.mjs +1 -1
  103. package/esm2022/components/textarea/textarea.component.mjs +1 -1
  104. package/esm2022/components/textarea/textarea.module.mjs +1 -1
  105. package/esm2022/components/toggle/index.mjs +1 -1
  106. package/esm2022/components/toggle/toggle.component.mjs +1 -1
  107. package/esm2022/components/toggle/toggle.module.mjs +1 -1
  108. package/esm2022/directives/index.mjs +1 -1
  109. package/esm2022/directives/text-field-controller/index.mjs +1 -1
  110. package/esm2022/directives/text-field-controller/text-field-controller.module.mjs +1 -1
  111. package/esm2022/directives/text-field-controller/text-field-controller.provider.mjs +1 -1
  112. package/esm2022/directives/text-field-controller/text-field-icon-left.directive.mjs +1 -1
  113. package/esm2022/directives/text-field-controller/text-field-id.directive.mjs +1 -1
  114. package/esm2022/directives/text-field-controller/text-field-is-error.directive.mjs +1 -1
  115. package/esm2022/directives/text-field-controller/text-field-placeholder.directive.mjs +1 -1
  116. package/esm2022/directives/text-field-controller/text-field-size.directive.mjs +1 -1
  117. package/esm2022/directives/text-field-controller/text-field.controller.mjs +1 -1
  118. package/esm2022/directives/tooltip/index.mjs +1 -1
  119. package/esm2022/directives/tooltip/tooltip-describe.directive.mjs +1 -1
  120. package/esm2022/directives/tooltip/tooltip-driver.directive.mjs +1 -1
  121. package/esm2022/directives/tooltip/tooltip-host.directive.mjs +1 -1
  122. package/esm2022/directives/tooltip/tooltip-hover.directive.mjs +1 -1
  123. package/esm2022/directives/tooltip/tooltip-manual.directive.mjs +1 -1
  124. package/esm2022/directives/tooltip/tooltip-options.directive.mjs +1 -1
  125. package/esm2022/directives/tooltip/tooltip-overflow.directive.mjs +1 -1
  126. package/esm2022/directives/tooltip/tooltip-pointer.directive.mjs +1 -1
  127. package/esm2022/directives/tooltip/tooltip-position.directive.mjs +1 -1
  128. package/esm2022/directives/tooltip/tooltip-unstyled.component.mjs +1 -1
  129. package/esm2022/directives/tooltip/tooltip.component.mjs +13 -13
  130. package/esm2022/directives/tooltip/tooltip.directive.mjs +1 -1
  131. package/esm2022/directives/tooltip/tooltip.mjs +1 -1
  132. package/esm2022/directives/tooltip/tooltip.providers.mjs +1 -1
  133. package/esm2022/directives/tooltip/tooltip.service.mjs +1 -1
  134. package/esm2022/directives/tooltip/tooltips.component.mjs +3 -3
  135. package/esm2022/index.mjs +2 -1
  136. package/esm2022/interceptors/index.mjs +2 -0
  137. package/esm2022/interceptors/x-ndjson.interceptor.mjs +48 -0
  138. package/esm2022/interfaces/context-menu-item.mjs +1 -1
  139. package/esm2022/interfaces/index.mjs +1 -1
  140. package/esm2022/interfaces/option.mjs +1 -1
  141. package/esm2022/services/index.mjs +1 -1
  142. package/esm2022/services/position.service.mjs +1 -1
  143. package/esm2022/services/theme.options.mjs +1 -1
  144. package/esm2022/services/theme.service.mjs +1 -1
  145. package/esm2022/services/visual-viewport.service.mjs +1 -1
  146. package/esm2022/tokens/animations-speed.mjs +1 -1
  147. package/esm2022/tokens/index.mjs +1 -1
  148. package/esm2022/tokens/reduced-motion.mjs +1 -1
  149. package/esm2022/tokens/viewport.mjs +1 -1
  150. package/esm2022/types/appearance.mjs +1 -1
  151. package/esm2022/types/hint-type.mjs +1 -1
  152. package/esm2022/types/index.mjs +1 -1
  153. package/esm2022/types/point.mjs +1 -1
  154. package/esm2022/types/portal-item.mjs +1 -1
  155. package/esm2022/types/position.mjs +1 -1
  156. package/esm2022/types/resizing.mjs +1 -1
  157. package/esm2022/types/shape.mjs +1 -1
  158. package/esm2022/types/size.mjs +1 -1
  159. package/esm2022/types/status.mjs +1 -1
  160. package/esm2022/utils/format/index.mjs +1 -1
  161. package/esm2022/utils/format/remove-spaces.mjs +1 -1
  162. package/esm2022/utils/format/replace.mjs +1 -1
  163. package/esm2022/utils/index.mjs +1 -1
  164. package/esm2022/utils/miscellaneous/index.mjs +1 -1
  165. package/esm2022/utils/miscellaneous/is-obscured.mjs +1 -1
  166. package/esm2022/utils/miscellaneous/override-options.mjs +1 -1
  167. package/esm2022/utils/miscellaneous/to-animation-options.mjs +1 -1
  168. package/fesm2022/cuby-ui-core.mjs +146 -97
  169. package/fesm2022/cuby-ui-core.mjs.map +1 -1
  170. package/fonts/Inter-Bold.svg +25443 -25443
  171. package/fonts/Inter-Medium.svg +25400 -25400
  172. package/fonts/Inter-Regular.svg +24341 -24341
  173. package/fonts/Inter-SemiBold.svg +25459 -25459
  174. package/index.d.ts +1 -0
  175. package/interceptors/index.d.ts +1 -0
  176. package/interceptors/x-ndjson.interceptor.d.ts +2 -0
  177. package/package.json +6 -6
  178. package/styles/fonts.scss +51 -51
  179. package/styles/global.scss +9 -9
  180. package/styles/mixins/buttons.scss +13 -13
  181. package/styles/mixins/headings.scss +115 -115
  182. package/styles/mixins/inputs.scss +91 -91
  183. package/styles/mixins/lists.scss +5 -5
  184. package/styles/mixins/paddings.scss +35 -35
  185. package/styles/mixins/shadows.scss +38 -38
  186. package/styles/mixins/texts.scss +225 -225
  187. package/styles/reset.scss +111 -0
  188. package/styles/theme.scss +385 -385
  189. package/styles/variables/colors.scss +253 -253
@@ -1,38 +1,38 @@
1
- @use '../variables/colors' as colors;
2
- // TODO: вынести все цвета в перемнные
3
-
4
- @mixin cui-shadow-10() {
5
- box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.04),
6
- 0 1px 4px 0 rgba(0, 0, 0, 0.04);
7
- }
8
-
9
- @mixin cui-shadow-15() {
10
- box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06),
11
- 0 1px 3px 0 rgba(0, 0, 0, 0.10);
12
- }
13
-
14
- @mixin cui-shadow-20() {
15
- box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06),
16
- 0 4px 6px -1px rgba(0, 0, 0, 0.10);
17
- }
18
-
19
- @mixin cui-shadow-25() {
20
- box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05),
21
- 0 10px 15px -3px rgba(0, 0, 0, 0.10);
22
- }
23
-
24
- @mixin cui-shadow-right() {
25
- box-shadow: 5px 0 4px 0 rgba(0, 0, 0, 0.05);
26
- }
27
-
28
- @mixin cui-shadow-left() {
29
- box-shadow: -5px 0 4px 0 rgba(0, 0, 0, 0.05);
30
- }
31
-
32
- @mixin cui-shadow-focused() {
33
- box-shadow: 0 0 0 2px colors.$cui-focus;
34
- }
35
-
36
- @mixin cui-shadow-error-focused() {
37
- box-shadow: 0 0 0 2px rgba(217, 45, 32, 0.25);
38
- }
1
+ @use '../variables/colors' as colors;
2
+ // TODO: вынести все цвета в перемнные
3
+
4
+ @mixin cui-shadow-10() {
5
+ box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.04),
6
+ 0 1px 4px 0 rgba(0, 0, 0, 0.04);
7
+ }
8
+
9
+ @mixin cui-shadow-15() {
10
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06),
11
+ 0 1px 3px 0 rgba(0, 0, 0, 0.10);
12
+ }
13
+
14
+ @mixin cui-shadow-20() {
15
+ box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06),
16
+ 0 4px 6px -1px rgba(0, 0, 0, 0.10);
17
+ }
18
+
19
+ @mixin cui-shadow-25() {
20
+ box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05),
21
+ 0 10px 15px -3px rgba(0, 0, 0, 0.10);
22
+ }
23
+
24
+ @mixin cui-shadow-right() {
25
+ box-shadow: 5px 0 4px 0 rgba(0, 0, 0, 0.05);
26
+ }
27
+
28
+ @mixin cui-shadow-left() {
29
+ box-shadow: -5px 0 4px 0 rgba(0, 0, 0, 0.05);
30
+ }
31
+
32
+ @mixin cui-shadow-focused() {
33
+ box-shadow: 0 0 0 2px colors.$cui-focus;
34
+ }
35
+
36
+ @mixin cui-shadow-error-focused() {
37
+ box-shadow: 0 0 0 2px rgba(217, 45, 32, 0.25);
38
+ }
@@ -1,225 +1,225 @@
1
- @mixin cui-text-regular() {
2
- font-weight: 400;
3
- }
4
-
5
- @mixin cui-text-medium() {
6
- font-weight: 500;
7
- }
8
-
9
- @mixin cui-text-semi-bold() {
10
- font-weight: 600;
11
- }
12
-
13
- @mixin cui-text-bold() {
14
- font-weight: 700;
15
- }
16
-
17
- @mixin cui-text-xxxs() {
18
- font-size: 10px;
19
- line-height: 12px;
20
- }
21
-
22
- @mixin cui-text-xxxs-regular() {
23
- font-weight: 400;
24
- font-size: 10px;
25
- line-height: 12px;
26
- }
27
-
28
- @mixin cui-text-xxxs-medium() {
29
- font-weight: 500;
30
- font-size: 10px;
31
- line-height: 12px;
32
- }
33
-
34
- @mixin cui-text-xxxs-semi-bold() {
35
- font-weight: 600;
36
- font-size: 10px;
37
- line-height: 12px;
38
- }
39
-
40
- @mixin cui-text-xxxs-bold() {
41
- font-weight: 700;
42
- font-size: 10px;
43
- line-height: 12px;
44
- }
45
-
46
-
47
- @mixin cui-text-xxs() {
48
- font-size: 12px;
49
- line-height: 14px;
50
- }
51
-
52
- @mixin cui-text-xxs-regular() {
53
- font-weight: 400;
54
- font-size: 12px;
55
- line-height: 14px;
56
- }
57
-
58
- @mixin cui-text-xxs-medium() {
59
- font-weight: 500;
60
- font-size: 12px;
61
- line-height: 14px;
62
- }
63
-
64
- @mixin cui-text-xxs-semi-bold() {
65
- font-weight: 600;
66
- font-size: 12px;
67
- line-height: 14px;
68
- }
69
-
70
- @mixin cui-text-xxs-bold() {
71
- font-weight: 700;
72
- font-size: 12px;
73
- line-height: 14px;
74
- }
75
-
76
- @mixin cui-text-xs() {
77
- font-size: 13px;
78
- line-height: 16px;
79
- }
80
-
81
- @mixin cui-text-xs-regular() {
82
- font-weight: 400;
83
- font-size: 13px;
84
- line-height: 16px;
85
- }
86
-
87
- @mixin cui-text-xs-medium() {
88
- font-weight: 500;
89
- font-size: 13px;
90
- line-height: 16px;
91
- }
92
-
93
- @mixin cui-text-xs-semi-bold() {
94
- font-weight: 600;
95
- font-size: 13px;
96
- line-height: 16px;
97
- }
98
-
99
- @mixin cui-text-xs-bold() {
100
- font-weight: 700;
101
- font-size: 13px;
102
- line-height: 16px;
103
- }
104
-
105
- @mixin cui-text-sm() {
106
- font-size: 14px;
107
- line-height: 20px;
108
- }
109
-
110
- @mixin cui-text-sm-regular() {
111
- font-weight: 400;
112
- font-size: 14px;
113
- line-height: 20px;
114
- }
115
-
116
- @mixin cui-text-sm-medium() {
117
- font-weight: 500;
118
- font-size: 14px;
119
- line-height: 20px;
120
- }
121
-
122
- @mixin cui-text-sm-semi-bold() {
123
- font-weight: 600;
124
- font-size: 14px;
125
- line-height: 20px;
126
- }
127
-
128
- @mixin cui-text-sm-bold() {
129
- font-weight: 700;
130
- font-size: 14px;
131
- line-height: 20px;
132
- }
133
-
134
- @mixin cui-text-md() {
135
- font-size: 16px;
136
- line-height: 24px;
137
- }
138
-
139
- @mixin cui-text-md-regular() {
140
- font-weight: 400;
141
- font-size: 16px;
142
- line-height: 24px;
143
- }
144
-
145
- @mixin cui-text-md-medium() {
146
- font-weight: 500;
147
- font-size: 16px;
148
- line-height: 24px;
149
- }
150
-
151
- @mixin cui-text-md-semi-bold() {
152
- font-weight: 600;
153
- font-size: 16px;
154
- line-height: 24px;
155
- }
156
-
157
- @mixin cui-text-md-bold() {
158
- font-weight: 700;
159
- font-size: 16px;
160
- line-height: 24px;
161
- }
162
-
163
- @mixin cui-text-lg() {
164
- font-size: 18px;
165
- line-height: 28px;
166
- }
167
-
168
- @mixin cui-text-lg-regular() {
169
- font-weight: 400;
170
- font-size: 18px;
171
- line-height: 28px;
172
- }
173
-
174
- @mixin cui-text-lg-medium() {
175
- font-weight: 500;
176
- font-size: 18px;
177
- line-height: 28px;
178
- }
179
-
180
- @mixin cui-text-lg-semi-bold() {
181
- font-weight: 600;
182
- font-size: 18px;
183
- line-height: 28px;
184
- }
185
-
186
- @mixin cui-text-lg-bold() {
187
- font-weight: 700;
188
- font-size: 18px;
189
- line-height: 28px;
190
- }
191
-
192
- @mixin cui-text-xl() {
193
- font-size: 20px;
194
- line-height: 30px;
195
- }
196
-
197
- @mixin cui-text-xl-regular() {
198
- font-weight: 400;
199
- font-size: 20px;
200
- line-height: 30px;
201
- }
202
-
203
- @mixin cui-text-xl-medium() {
204
- font-weight: 500;
205
- font-size: 20px;
206
- line-height: 30px;
207
- }
208
-
209
- @mixin cui-text-xl-semi-bold() {
210
- font-weight: 600;
211
- font-size: 20px;
212
- line-height: 30px;
213
- }
214
-
215
- @mixin cui-text-xl-bold() {
216
- font-weight: 700;
217
- font-size: 20px;
218
- line-height: 30px;
219
- }
220
-
221
- @mixin cui-text-overflow($wrap: nowrap) {
222
- white-space: $wrap;
223
- overflow: hidden;
224
- text-overflow: ellipsis;
225
- }
1
+ @mixin cui-text-regular() {
2
+ font-weight: 400;
3
+ }
4
+
5
+ @mixin cui-text-medium() {
6
+ font-weight: 500;
7
+ }
8
+
9
+ @mixin cui-text-semi-bold() {
10
+ font-weight: 600;
11
+ }
12
+
13
+ @mixin cui-text-bold() {
14
+ font-weight: 700;
15
+ }
16
+
17
+ @mixin cui-text-xxxs() {
18
+ font-size: 10px;
19
+ line-height: 12px;
20
+ }
21
+
22
+ @mixin cui-text-xxxs-regular() {
23
+ font-weight: 400;
24
+ font-size: 10px;
25
+ line-height: 12px;
26
+ }
27
+
28
+ @mixin cui-text-xxxs-medium() {
29
+ font-weight: 500;
30
+ font-size: 10px;
31
+ line-height: 12px;
32
+ }
33
+
34
+ @mixin cui-text-xxxs-semi-bold() {
35
+ font-weight: 600;
36
+ font-size: 10px;
37
+ line-height: 12px;
38
+ }
39
+
40
+ @mixin cui-text-xxxs-bold() {
41
+ font-weight: 700;
42
+ font-size: 10px;
43
+ line-height: 12px;
44
+ }
45
+
46
+
47
+ @mixin cui-text-xxs() {
48
+ font-size: 12px;
49
+ line-height: 14px;
50
+ }
51
+
52
+ @mixin cui-text-xxs-regular() {
53
+ font-weight: 400;
54
+ font-size: 12px;
55
+ line-height: 14px;
56
+ }
57
+
58
+ @mixin cui-text-xxs-medium() {
59
+ font-weight: 500;
60
+ font-size: 12px;
61
+ line-height: 14px;
62
+ }
63
+
64
+ @mixin cui-text-xxs-semi-bold() {
65
+ font-weight: 600;
66
+ font-size: 12px;
67
+ line-height: 14px;
68
+ }
69
+
70
+ @mixin cui-text-xxs-bold() {
71
+ font-weight: 700;
72
+ font-size: 12px;
73
+ line-height: 14px;
74
+ }
75
+
76
+ @mixin cui-text-xs() {
77
+ font-size: 13px;
78
+ line-height: 16px;
79
+ }
80
+
81
+ @mixin cui-text-xs-regular() {
82
+ font-weight: 400;
83
+ font-size: 13px;
84
+ line-height: 16px;
85
+ }
86
+
87
+ @mixin cui-text-xs-medium() {
88
+ font-weight: 500;
89
+ font-size: 13px;
90
+ line-height: 16px;
91
+ }
92
+
93
+ @mixin cui-text-xs-semi-bold() {
94
+ font-weight: 600;
95
+ font-size: 13px;
96
+ line-height: 16px;
97
+ }
98
+
99
+ @mixin cui-text-xs-bold() {
100
+ font-weight: 700;
101
+ font-size: 13px;
102
+ line-height: 16px;
103
+ }
104
+
105
+ @mixin cui-text-sm() {
106
+ font-size: 14px;
107
+ line-height: 20px;
108
+ }
109
+
110
+ @mixin cui-text-sm-regular() {
111
+ font-weight: 400;
112
+ font-size: 14px;
113
+ line-height: 20px;
114
+ }
115
+
116
+ @mixin cui-text-sm-medium() {
117
+ font-weight: 500;
118
+ font-size: 14px;
119
+ line-height: 20px;
120
+ }
121
+
122
+ @mixin cui-text-sm-semi-bold() {
123
+ font-weight: 600;
124
+ font-size: 14px;
125
+ line-height: 20px;
126
+ }
127
+
128
+ @mixin cui-text-sm-bold() {
129
+ font-weight: 700;
130
+ font-size: 14px;
131
+ line-height: 20px;
132
+ }
133
+
134
+ @mixin cui-text-md() {
135
+ font-size: 16px;
136
+ line-height: 24px;
137
+ }
138
+
139
+ @mixin cui-text-md-regular() {
140
+ font-weight: 400;
141
+ font-size: 16px;
142
+ line-height: 24px;
143
+ }
144
+
145
+ @mixin cui-text-md-medium() {
146
+ font-weight: 500;
147
+ font-size: 16px;
148
+ line-height: 24px;
149
+ }
150
+
151
+ @mixin cui-text-md-semi-bold() {
152
+ font-weight: 600;
153
+ font-size: 16px;
154
+ line-height: 24px;
155
+ }
156
+
157
+ @mixin cui-text-md-bold() {
158
+ font-weight: 700;
159
+ font-size: 16px;
160
+ line-height: 24px;
161
+ }
162
+
163
+ @mixin cui-text-lg() {
164
+ font-size: 18px;
165
+ line-height: 28px;
166
+ }
167
+
168
+ @mixin cui-text-lg-regular() {
169
+ font-weight: 400;
170
+ font-size: 18px;
171
+ line-height: 28px;
172
+ }
173
+
174
+ @mixin cui-text-lg-medium() {
175
+ font-weight: 500;
176
+ font-size: 18px;
177
+ line-height: 28px;
178
+ }
179
+
180
+ @mixin cui-text-lg-semi-bold() {
181
+ font-weight: 600;
182
+ font-size: 18px;
183
+ line-height: 28px;
184
+ }
185
+
186
+ @mixin cui-text-lg-bold() {
187
+ font-weight: 700;
188
+ font-size: 18px;
189
+ line-height: 28px;
190
+ }
191
+
192
+ @mixin cui-text-xl() {
193
+ font-size: 20px;
194
+ line-height: 30px;
195
+ }
196
+
197
+ @mixin cui-text-xl-regular() {
198
+ font-weight: 400;
199
+ font-size: 20px;
200
+ line-height: 30px;
201
+ }
202
+
203
+ @mixin cui-text-xl-medium() {
204
+ font-weight: 500;
205
+ font-size: 20px;
206
+ line-height: 30px;
207
+ }
208
+
209
+ @mixin cui-text-xl-semi-bold() {
210
+ font-weight: 600;
211
+ font-size: 20px;
212
+ line-height: 30px;
213
+ }
214
+
215
+ @mixin cui-text-xl-bold() {
216
+ font-weight: 700;
217
+ font-size: 20px;
218
+ line-height: 30px;
219
+ }
220
+
221
+ @mixin cui-text-overflow($wrap: nowrap) {
222
+ white-space: $wrap;
223
+ overflow: hidden;
224
+ text-overflow: ellipsis;
225
+ }
@@ -0,0 +1,111 @@
1
+ /**
2
+ Нормализация блочной модели
3
+ */
4
+ *,
5
+ *::before,
6
+ *::after {
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ /**
11
+ Убираем внутренние отступы слева тегам списков
12
+ */
13
+ :where(ul, ol) {
14
+ padding-left: 0;
15
+ }
16
+
17
+ /**
18
+ Убираем внешние отступы body и двум другим тегам
19
+ */
20
+ body,
21
+ :where(blockquote, figure) {
22
+ margin: 0;
23
+ }
24
+
25
+ /**
26
+ Убираем внешние отступы вертикали нужным тегам
27
+ */
28
+ :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, hr) {
29
+ margin-block: 0;
30
+ }
31
+
32
+ :where(dd) {
33
+ margin-left: 0;
34
+ }
35
+
36
+ :where(fieldset) {
37
+ margin-left: 0;
38
+ padding: 0;
39
+ border: none;
40
+ }
41
+
42
+ /**
43
+ Убираем стандартный маркер маркированному списку
44
+ */
45
+ :where(ul) {
46
+ list-style: none;
47
+ }
48
+
49
+ /**
50
+ Упрощаем работу с изображениями
51
+ */
52
+ img {
53
+ display: block;
54
+ max-width: 100%;
55
+ }
56
+
57
+ /**
58
+ Наследуем свойства шрифт для полей ввода
59
+ */
60
+ input,
61
+ textarea,
62
+ select,
63
+ button {
64
+ color: inherit;
65
+ font: inherit;
66
+ }
67
+
68
+ button {
69
+ cursor: pointer;
70
+ background: none;
71
+ border: none;
72
+ }
73
+
74
+ a {
75
+ cursor: pointer;
76
+ color: inherit;
77
+ text-decoration: none;
78
+ }
79
+
80
+ html {
81
+ /**
82
+ Пригодится в большинстве ситуаций
83
+ (когда, например, нужно будет "прижать" футер к низу сайта)
84
+ */
85
+ height: 100%;
86
+
87
+ /**
88
+ Плавный скролл
89
+ */
90
+ scroll-behavior: smooth;
91
+ }
92
+
93
+ /**
94
+ Чиним баг задержки смены цвета при взаимодействии с svg-элементами
95
+ */
96
+ svg * {
97
+ transition-property: fill, stroke;
98
+ }
99
+
100
+ /**
101
+ Удаляем все анимации и переходы для людей,
102
+ которые предпочитают их не использовать
103
+ */
104
+ @media (prefers-reduced-motion: reduce) {
105
+ * {
106
+ animation-duration: 0.01ms !important;
107
+ animation-iteration-count: 1 !important;
108
+ transition-duration: 0.01ms !important;
109
+ scroll-behavior: auto !important;
110
+ }
111
+ }