urfu-ui-kit-vanilla 0.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.
@@ -0,0 +1,8 @@
1
+ // // плюс, минус
2
+ // @icon-plus-white: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_1140_9727)'%3E%3Cpath d='M6 1.19922V10.7992' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M1.19995 6H10.8' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_1140_9727'%3E%3Crect width='12' height='12' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
3
+ // @icon-plus-primary: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_575_7791)'%3E%3Cpath d='M6 1.20001V10.8' stroke='%231E4391' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M1.19995 6H10.8' stroke='%231E4391' stroke-width='2' stroke-linecap='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_575_7791'%3E%3Crect width='12' height='12' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
4
+ // @icon-plus-secondary-primary: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_575_7791)'%3E%3Cpath d='M6 1.20001V10.8' stroke='%230F2B5E' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M1.19995 6H10.8' stroke='%230F2B5E' stroke-width='2' stroke-linecap='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_575_7791'%3E%3Crect width='12' height='12' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
5
+ // //
6
+
7
+
8
+
@@ -0,0 +1,5 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');
2
+
3
+ * {
4
+ font-family: 'Montserrat';
5
+ }
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Global Reset of all HTML Elements
3
+ *
4
+ * Resetting all of our HTML Elements ensures a smoother
5
+ * visual transition between browsers. If you don't believe me,
6
+ * try temporarily commenting out this block of code, then go
7
+ * and look at Mozilla versus Safari, both good browsers with
8
+ * a good implementation of CSS. The thing is, all browser CSS
9
+ * defaults are different and at the end of the day if visual
10
+ * consistency is what we're shooting for, then we need to
11
+ * make sure we're resetting all spacing elements.
12
+ *
13
+ */
14
+ * {
15
+ box-sizing: border-box;
16
+ }
17
+
18
+ html, body {
19
+ border: 0;
20
+ line-height: 1.5;
21
+ margin: 0;
22
+ padding: 0;
23
+ }
24
+
25
+ div, span, object, iframe, img, table, caption, thead, tbody,
26
+ tfoot, tr, tr, td, article, aside, canvas, details, figure, hgroup, menu,
27
+ nav, footer, header, section, summary, mark, audio, video {
28
+ border: 0;
29
+ margin: 0;
30
+ padding: 0;
31
+ }
32
+
33
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, address, cit, code,
34
+ del, dfn, em, ins, q, samp, small, strong, sub, sup, b, i, hr, dl, dt, dd,
35
+ ol, ul, li, fieldset, legend, label {
36
+ border: 0;
37
+ font-size: 100%;
38
+ vertical-align: baseline;
39
+ margin: 0;
40
+ padding: 0;
41
+ }
42
+
43
+ article, aside, canvas, figure, figure img, figcaption, hgroup,
44
+ footer, header, nav, section, audio, video {
45
+ display: block;
46
+ }
47
+
48
+ table {
49
+ border-collapse: separate;
50
+ border-spacing: 0;
51
+ caption, th, td {
52
+ text-align: left;
53
+ vertical-align: middle;
54
+ }
55
+ }
56
+
57
+ a img {
58
+ border: 0;
59
+ }
60
+
61
+ :focus {
62
+ outline: 0;
63
+ }
@@ -0,0 +1,58 @@
1
+ @import "../const/colors.less";
2
+
3
+ //property: background
4
+ .bg {
5
+ &-gradient {
6
+ background: @gradient;
7
+ }
8
+ &-transparent {
9
+ background-color: transparent;
10
+ }
11
+ &-blue {
12
+ background-color: @clr-main-primary;
13
+ }
14
+ &-red {
15
+ background-color: @clr-main-danger;
16
+ }
17
+ &-dark {
18
+ &-blue {
19
+ background-color: @clr-secondary-primary;
20
+ }
21
+ &-red {
22
+ background-color: @clr-secondary-danger;
23
+ }
24
+ }
25
+ &-light {
26
+ &-blue {
27
+ background-color: @clr-secondary-chilly;
28
+ }
29
+ &-red {
30
+ background-color: @clr-secondary-focusing;
31
+ }
32
+ }
33
+
34
+ }
35
+ //property: color
36
+ .clr {
37
+ &-transparent {
38
+ color: transparent;
39
+ }
40
+ &-blue {
41
+ color: @clr-main-primary;
42
+ &-dark {
43
+ color: @clr-secondary-primary;
44
+ }
45
+ &-light {
46
+ color: @clr-secondary-chilly;
47
+ }
48
+ }
49
+ &-red {
50
+ color: @clr-main-danger;
51
+ &-dark {
52
+ color: @clr-secondary-danger;
53
+ }
54
+ &-light {
55
+ color: @clr-secondary-focusing;
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,11 @@
1
+ .fw {
2
+ &-400 {
3
+ font-weight: 400;
4
+ }
5
+ &-500 {
6
+ font-weight: 500;
7
+ }
8
+ &-600 {
9
+ font-weight: 600;
10
+ }
11
+ }
@@ -0,0 +1,44 @@
1
+ @import "../const/fonts.less";
2
+ h1 {
3
+ .h1;
4
+ }
5
+ h2 {
6
+ .h2;
7
+ }
8
+ h3 {
9
+ .h3;
10
+ }
11
+ h4 {
12
+ .h4;
13
+ }
14
+ h5 {
15
+ .h5
16
+ }
17
+ .st {
18
+ .st;
19
+ }
20
+ .ds {
21
+ .ds;
22
+ }
23
+ .th {
24
+ .th;
25
+ }
26
+ .tt {
27
+ .tt;
28
+ }
29
+ .bt {
30
+ .bt;
31
+ }
32
+ .required {
33
+ &::after {
34
+ content: '*';
35
+ color: @clr-main-danger;
36
+ padding-left: 3px;
37
+ }
38
+ }
39
+ .benefit {
40
+ .h2;
41
+ color: @clr-main-primary;
42
+ padding-bottom: 4px;
43
+ border-bottom: 8px solid @clr-main-primary;
44
+ }
@@ -0,0 +1,356 @@
1
+ @font-face {
2
+ font-family: 'urfu-ui-icons-fonts';
3
+ src: url('fonts/urfu-ui-icons-fonts.eot?84ld82');
4
+ src: url('fonts/urfu-ui-icons-fonts.eot?84ld82#iefix') format('embedded-opentype'),
5
+ url('fonts/urfu-ui-icons-fonts.ttf?84ld82') format('truetype'),
6
+ url('fonts/urfu-ui-icons-fonts.woff?84ld82') format('woff'),
7
+ url('fonts/urfu-ui-icons-fonts.svg?84ld82#urfu-ui-icons-fonts') format('svg');
8
+ font-weight: normal;
9
+ font-style: normal;
10
+ font-display: block;
11
+ }
12
+
13
+ .u-icon {
14
+ /* use !important to prevent issues with browser extensions that change fonts */
15
+ font-family: 'urfu-ui-icons-fonts' !important;
16
+ speak: never;
17
+ font-style: normal;
18
+ font-weight: normal;
19
+ font-variant: normal;
20
+ text-transform: none;
21
+ line-height: 1;
22
+
23
+ /* Better Font Rendering =========== */
24
+ -webkit-font-smoothing: antialiased;
25
+ -moz-osx-font-smoothing: grayscale;
26
+ }
27
+
28
+ .icon-active:before {
29
+ content: "\e900";
30
+ color: #1e4391;
31
+ }
32
+ .icon-application:before {
33
+ content: "\e901";
34
+ color: #1e4391;
35
+ }
36
+ .icon-attention:before {
37
+ content: "\e902";
38
+ color: #ef302b;
39
+ }
40
+ .icon-basket:before {
41
+ content: "\e903";
42
+ color: #1e4391;
43
+ }
44
+ .icon-block:before {
45
+ content: "\e904";
46
+ color: #1e4391;
47
+ }
48
+ .icon-briefcase:before {
49
+ content: "\e905";
50
+ color: #1e4391;
51
+ }
52
+ .icon-calculator:before {
53
+ content: "\e906";
54
+ color: #1e4391;
55
+ }
56
+ .icon-calendar:before {
57
+ content: "\e907";
58
+ color: #1e4391;
59
+ }
60
+ .icon-catalog:before {
61
+ content: "\e908";
62
+ color: #1e4391;
63
+ }
64
+ .icon-chat:before {
65
+ content: "\e909";
66
+ color: #1e4391;
67
+ }
68
+ .icon-check:before {
69
+ content: "\e90a";
70
+ color: #3ba68c;
71
+ }
72
+ .icon-clock:before {
73
+ content: "\e90b";
74
+ color: #1e4391;
75
+ }
76
+ .icon-cloud:before {
77
+ content: "\e90c";
78
+ color: #1e4391;
79
+ }
80
+ .icon-correct:before {
81
+ content: "\e90d";
82
+ color: #1e4391;
83
+ }
84
+ .icon-cross:before {
85
+ content: "\e90e";
86
+ color: #ef302b;
87
+ }
88
+ .icon-cup:before {
89
+ content: "\e90f";
90
+ color: #1e4391;
91
+ }
92
+ .icon-directory:before {
93
+ content: "\e910";
94
+ color: #1e4391;
95
+ }
96
+ .icon-doc:before {
97
+ content: "\e911";
98
+ color: #1e4391;
99
+ }
100
+ .icon-document:before {
101
+ content: "\e912";
102
+ color: #1e4391;
103
+ }
104
+ .icon-documents:before {
105
+ content: "\e913";
106
+ color: #1e4391;
107
+ }
108
+ .icon-down:before {
109
+ content: "\e914";
110
+ color: #1e4391;
111
+ }
112
+ .icon-down-arrow:before {
113
+ content: "\e915";
114
+ color: #1e4391;
115
+ }
116
+ .icon-download:before {
117
+ content: "\e916";
118
+ color: #1e4391;
119
+ }
120
+ .icon-download-line:before {
121
+ content: "\e917";
122
+ color: #1e4391;
123
+ }
124
+ .icon-dropdown:before {
125
+ content: "\e918";
126
+ color: #1e4391;
127
+ }
128
+ .icon-dropdown-horisontal:before {
129
+ content: "\e919";
130
+ color: #1e4391;
131
+ }
132
+ .icon-entrance:before {
133
+ content: "\e91a";
134
+ color: #1e4391;
135
+ }
136
+ .icon-extracurricular-activities:before {
137
+ content: "\e91b";
138
+ color: #1e4391;
139
+ }
140
+ .icon-filter:before {
141
+ content: "\e91c";
142
+ color: #1e4391;
143
+ }
144
+ .icon-filter-mobile .path1:before {
145
+ content: "\e91d";
146
+ color: rgb(30, 67, 145);
147
+ }
148
+ .icon-filter-mobile .path2:before {
149
+ content: "\e91e";
150
+ margin-left: -1em;
151
+ color: rgb(30, 67, 145);
152
+ }
153
+ .icon-filter-mobile .path3:before {
154
+ content: "\e91f";
155
+ margin-left: -1em;
156
+ color: rgb(246, 246, 246);
157
+ }
158
+ .icon-filter-mobile .path4:before {
159
+ content: "\e920";
160
+ margin-left: -1em;
161
+ color: rgb(30, 67, 145);
162
+ }
163
+ .icon-filter-mobile .path5:before {
164
+ content: "\e921";
165
+ margin-left: -1em;
166
+ color: rgb(246, 246, 246);
167
+ }
168
+ .icon-filter-mobile .path6:before {
169
+ content: "\e922";
170
+ margin-left: -1em;
171
+ color: rgb(30, 67, 145);
172
+ }
173
+ .icon-folder:before {
174
+ content: "\e923";
175
+ color: #e98446;
176
+ }
177
+ .icon-full-screen:before {
178
+ content: "\e924";
179
+ color: #1e4391;
180
+ }
181
+ .icon-hidden:before {
182
+ content: "\e925";
183
+ color: #1e4391;
184
+ }
185
+ .icon-home:before {
186
+ content: "\e926";
187
+ color: #1e4391;
188
+ }
189
+ .icon-img:before {
190
+ content: "\e927";
191
+ color: #467be3;
192
+ }
193
+ .icon-information:before {
194
+ content: "\e928";
195
+ color: #1e4391;
196
+ }
197
+ .icon-left:before {
198
+ content: "\e929";
199
+ color: #1e4391;
200
+ }
201
+ .icon-left-arrow:before {
202
+ content: "\e92a";
203
+ color: #1e4391;
204
+ }
205
+ .icon-letter:before {
206
+ content: "\e92b";
207
+ color: #1e4391;
208
+ }
209
+ .icon-like:before {
210
+ content: "\e92c";
211
+ color: #1e4391;
212
+ }
213
+ .icon-link:before {
214
+ content: "\e92d";
215
+ color: #1e4391;
216
+ }
217
+ .icon-lk-role:before {
218
+ content: "\e92e";
219
+ color: #1e4391;
220
+ }
221
+ .icon-minus:before {
222
+ content: "\e92f";
223
+ color: #1e4391;
224
+ }
225
+ .icon-moderation:before {
226
+ content: "\e930";
227
+ color: #1e4391;
228
+ }
229
+ .icon-news:before {
230
+ content: "\e931";
231
+ color: #1e4391;
232
+ }
233
+ .icon-notify:before {
234
+ content: "\e932";
235
+ color: #1e4391;
236
+ }
237
+ .icon-ok:before {
238
+ content: "\e933";
239
+ color: #1e4391;
240
+ }
241
+ .icon-pdf:before {
242
+ content: "\e934";
243
+ color: #ef302b;
244
+ }
245
+ .icon-pencil:before {
246
+ content: "\e935";
247
+ color: #1e4391;
248
+ }
249
+ .icon-plus:before {
250
+ content: "\e936";
251
+ color: #1e4391;
252
+ }
253
+ .icon-question:before {
254
+ content: "\e937";
255
+ color: #1e4391;
256
+ }
257
+ .icon-rating:before {
258
+ content: "\e938";
259
+ color: #1e4391;
260
+ }
261
+ .icon-right:before {
262
+ content: "\e939";
263
+ color: #1e4391;
264
+ }
265
+ .icon-right-arrow:before {
266
+ content: "\e93a";
267
+ color: #1e4391;
268
+ }
269
+ .icon-role:before {
270
+ content: "\e93b";
271
+ color: #1e4391;
272
+ }
273
+ .icon-search:before {
274
+ content: "\e93c";
275
+ color: #1e4391;
276
+ }
277
+ .icon-setting:before {
278
+ content: "\e93d";
279
+ color: #1e4391;
280
+ }
281
+ .icon-settlement:before {
282
+ content: "\e93e";
283
+ color: #1e4391;
284
+ }
285
+ .icon-sorting:before {
286
+ content: "\e93f";
287
+ color: #1e4391;
288
+ }
289
+ .icon-star:before {
290
+ content: "\e940";
291
+ color: #1e4391;
292
+ }
293
+ .icon-star-top20:before {
294
+ content: "\e941";
295
+ color: #147246;
296
+ }
297
+ .icon-star-top50:before {
298
+ content: "\e942";
299
+ color: #1e4391;
300
+ }
301
+ .icon-submenu:before {
302
+ content: "\e943";
303
+ color: #ef302b;
304
+ }
305
+ .icon-telephone:before {
306
+ content: "\e944";
307
+ color: #1e4391;
308
+ }
309
+ .icon-test-tube:before {
310
+ content: "\e945";
311
+ color: #1e4391;
312
+ }
313
+ .icon-top20:before {
314
+ content: "\e946";
315
+ color: #147246;
316
+ }
317
+ .icon-top50:before {
318
+ content: "\e947";
319
+ color: #1e4391;
320
+ }
321
+ .icon-top100:before {
322
+ content: "\e948";
323
+ color: #ef302b;
324
+ }
325
+ .icon-union:before {
326
+ content: "\e949";
327
+ color: #1e4391;
328
+ }
329
+ .icon-university:before {
330
+ content: "\e94a";
331
+ color: #1e4391;
332
+ }
333
+ .icon-up:before {
334
+ content: "\e94b";
335
+ color: #1e4391;
336
+ }
337
+ .icon-up-arrow:before {
338
+ content: "\e94c";
339
+ color: #1e4391;
340
+ }
341
+ .icon-upload:before {
342
+ content: "\e94d";
343
+ color: #1e4391;
344
+ }
345
+ .icon-user:before {
346
+ content: "\e94e";
347
+ color: #1e4391;
348
+ }
349
+ .icon-warning:before {
350
+ content: "\e94f";
351
+ color: #ef302b;
352
+ }
353
+ .icon-xls:before {
354
+ content: "\e950";
355
+ color: #3ba68c;
356
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "useDefineForClassFields": true,
5
+ "module": "ESNext",
6
+ "lib": ["ESNext", "DOM"],
7
+ "moduleResolution": "Node",
8
+ "strict": true,
9
+ "resolveJsonModule": true,
10
+ "isolatedModules": true,
11
+ "esModuleInterop": true,
12
+ "noEmit": true,
13
+ "noUnusedLocals": true,
14
+ "noUnusedParameters": true,
15
+ "noImplicitReturns": true,
16
+ "skipLibCheck": true
17
+ },
18
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { defineConfig } from "vite";
2
+ import path from "path";
3
+
4
+ export default defineConfig({
5
+ build: {
6
+ lib: {
7
+ entry: path.resolve(__dirname, "src/main.less"),
8
+ name: "UrFU UI-Kit Vanilla",
9
+ fileName: 'main',
10
+ },
11
+ },
12
+ });