urfu-ui-kit-vanilla 1.0.6 → 1.0.8

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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "UrFU UI-Kit for Vanilla Web",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
- "version": "1.0.6",
6
+ "version": "1.0.8",
7
7
  "type": "module",
8
8
  "repository": {
9
9
  "type": "git",
@@ -8,6 +8,287 @@
8
8
  </head>
9
9
  <body>
10
10
  <div id="app">
11
+ <div class="u-table">
12
+ <table class="table">
13
+ <thead>
14
+ <tr>
15
+ <th>
16
+ <p>№</p>
17
+ </th>
18
+ <th>
19
+ <p>Тип отчета</p>
20
+ </th>
21
+ <th>
22
+ <p>Тип поездки</p>
23
+ </th>
24
+ <th>
25
+ <p>Страна командирования</p>
26
+ </th>
27
+ <th>
28
+ <p>Источник финансирования</p>
29
+ </th>
30
+ <th class="sort">
31
+ <p>Сроки</p>
32
+ </th>
33
+ <th>
34
+ <p>ФИО</p>
35
+ </th>
36
+ <th>
37
+ <p>Статус заявки</p>
38
+ </th>
39
+ <th>
40
+ <p>Статус заявки</p>
41
+ </th>
42
+ <th>
43
+ <p>Статус отчета</p>
44
+ </th>
45
+ </tr>
46
+ </thead>
47
+ <tbody>
48
+ <tr>
49
+ <td>
50
+ <a>111</a>
51
+ </td>
52
+ <td>
53
+ <div>222 <br>435 <br>435 <br>435 <br>435</div>
54
+ </td>
55
+ <td>
56
+ <div>333</div>
57
+ </td>
58
+ <td>
59
+ <div>444</div>
60
+ </td>
61
+ <td>
62
+ <div>555</div>
63
+ </td>
64
+ <td>
65
+ <div>666</div>
66
+ </td>
67
+ <td>
68
+ <div>777</div>
69
+ </td>
70
+ <td>
71
+ <div>888</div>
72
+ </td>
73
+ <td>
74
+ <div><span>999</span></div>
75
+ </td>
76
+ <td>
77
+ <div><span>000</span></div>
78
+ </td>
79
+ </tr>
80
+ <tr>
81
+ <td>
82
+ <a>111</a>
83
+ </td>
84
+ <td>
85
+ <div>222 <br>435 <br>435 <br>435 <br>435</div>
86
+ </td>
87
+ <td>
88
+ <div>333</div>
89
+ </td>
90
+ <td>
91
+ <div>444</div>
92
+ </td>
93
+ <td>
94
+ <div>555</div>
95
+ </td>
96
+ <td>
97
+ <div>666</div>
98
+ </td>
99
+ <td>
100
+ <div>777</div>
101
+ </td>
102
+ <td>
103
+ <div>888</div>
104
+ </td>
105
+ <td>
106
+ <div><span>999</span></div>
107
+ </td>
108
+ <td>
109
+ <div><span>000</span></div>
110
+ </td>
111
+ </tr>
112
+ <tr>
113
+ <td>
114
+ <a>111</a>
115
+ </td>
116
+ <td>
117
+ <div>222 <br>435 <br>435 <br>435 <br>435</div>
118
+ </td>
119
+ <td>
120
+ <div>333</div>
121
+ </td>
122
+ <td>
123
+ <div>444</div>
124
+ </td>
125
+ <td>
126
+ <div>555</div>
127
+ </td>
128
+ <td>
129
+ <div>666</div>
130
+ </td>
131
+ <td>
132
+ <div>777</div>
133
+ </td>
134
+ <td>
135
+ <div>888</div>
136
+ </td>
137
+ <td>
138
+ <div><span>999</span></div>
139
+ </td>
140
+ <td>
141
+ <div><span>000</span></div>
142
+ </td>
143
+ </tr>
144
+ </tbody>
145
+ </table>
146
+ </div>
147
+
148
+ <div style="margin-top: 40px;" class="u-table">
149
+ <table class="table">
150
+ <thead>
151
+ <tr>
152
+ <th class="sticky">
153
+ <p>№</p>
154
+ </th>
155
+ <th>
156
+ <p>Тип отчета</p>
157
+ <p>dsdsd</p>
158
+ </th>
159
+ <th>
160
+ <p>Тип поездки</p>
161
+ <p>dsdsd</p>
162
+ </th>
163
+ <th>
164
+ <p>Страна командирования</p>
165
+ <p>dsdsd</p>
166
+ </th>
167
+ <th>
168
+ <p>Источник финансирования</p>
169
+ <p>dsdsd</p>
170
+ </th>
171
+ <th class="sort">
172
+ <p>Сроки</p>
173
+ </th>
174
+ <th>
175
+ <p>ФИО</p>
176
+ <p>ФИО</p>
177
+ </th>
178
+ <th>
179
+ <p>Статус заявки</p>
180
+ <p>ФИО</p>
181
+ </th>
182
+ <th>
183
+ <p>Статус заявки</p>
184
+ <p>ФИО</p>
185
+ </th>
186
+ <th>
187
+ <p>Статус отчета</p>
188
+ </th>
189
+ </tr>
190
+ </thead>
191
+ <tbody>
192
+ <tr>
193
+ <td class="sticky">
194
+ <a>111</a>
195
+ </td>
196
+ <td>
197
+ <div>222 <br>435 <br>435 <br>435 <br>435</div>
198
+ </td>
199
+ <td>
200
+ <div>333</div>
201
+ </td>
202
+ <td>
203
+ <div>444</div>
204
+ </td>
205
+ <td>
206
+ <div>555</div>
207
+ </td>
208
+ <td>
209
+ <div>666</div>
210
+ </td>
211
+ <td>
212
+ <div>777</div>
213
+ </td>
214
+ <td>
215
+ <div>888</div>
216
+ </td>
217
+ <td>
218
+ <div><span>999</span></div>
219
+ </td>
220
+ <td>
221
+ <div><span>000</span></div>
222
+ </td>
223
+ </tr>
224
+ <tr>
225
+ <td class="sticky">
226
+ <a>111</a>
227
+ </td>
228
+ <td>
229
+ <div>222 <br>435 <br>435 <br>435 <br>435</div>
230
+ </td>
231
+ <td>
232
+ <div>333</div>
233
+ </td>
234
+ <td>
235
+ <div>444</div>
236
+ </td>
237
+ <td>
238
+ <div>555</div>
239
+ </td>
240
+ <td>
241
+ <div>666</div>
242
+ </td>
243
+ <td>
244
+ <div>777</div>
245
+ </td>
246
+ <td>
247
+ <div>888</div>
248
+ </td>
249
+ <td>
250
+ <div><span>999</span></div>
251
+ </td>
252
+ <td>
253
+ <div><span>000</span></div>
254
+ </td>
255
+ </tr>
256
+ <tr>
257
+ <td class="sticky">
258
+ <a>111</a>
259
+ </td>
260
+ <td>
261
+ <div>222 <br>435 <br>435 <br>435 <br>435</div>
262
+ </td>
263
+ <td>
264
+ <div>333</div>
265
+ </td>
266
+ <td>
267
+ <div>444</div>
268
+ </td>
269
+ <td>
270
+ <div>555</div>
271
+ </td>
272
+ <td>
273
+ <div>666</div>
274
+ </td>
275
+ <td>
276
+ <div>777</div>
277
+ </td>
278
+ <td>
279
+ <div>888</div>
280
+ </td>
281
+ <td>
282
+ <div><span>999</span></div>
283
+ </td>
284
+ <td>
285
+ <div><span>000</span></div>
286
+ </td>
287
+ </tr>
288
+ </tbody>
289
+ </table>
290
+ </div>
291
+
11
292
  <h2>Button</h2>
12
293
  <section class="container">
13
294
  <button class="u-button">Click me</button>
package/src/main.css CHANGED
@@ -228,6 +228,7 @@
228
228
  margin-right: 8px;
229
229
  }
230
230
  .u-button-text-danger {
231
+ font-weight: 400;
231
232
  color: #E54B6A;
232
233
  }
233
234
  .u-button-text-danger:hover,
@@ -1015,6 +1016,108 @@
1015
1016
  transform: rotate(-360deg);
1016
1017
  }
1017
1018
  }
1019
+ body {
1020
+ background-color: #F6F6F6;
1021
+ padding: 50px 300px;
1022
+ }
1023
+ p {
1024
+ margin: 0;
1025
+ padding: 0;
1026
+ }
1027
+ .u-table {
1028
+ border-radius: 10px;
1029
+ background: #FFFFFF;
1030
+ overflow-x: auto;
1031
+ }
1032
+ .u-table table {
1033
+ border-radius: 10px;
1034
+ width: 100%;
1035
+ border-collapse: separate;
1036
+ border-spacing: 0;
1037
+ }
1038
+ .u-table table caption,
1039
+ .u-table table th,
1040
+ .u-table table td {
1041
+ text-align: left;
1042
+ vertical-align: middle;
1043
+ }
1044
+ .u-table table thead tr th {
1045
+ color: #1E4391;
1046
+ border-bottom: 2px solid #1E4391;
1047
+ padding: 12px;
1048
+ width: 100%;
1049
+ }
1050
+ .u-table table thead tr th.sort div {
1051
+ position: relative;
1052
+ display: flex;
1053
+ width: 100%;
1054
+ }
1055
+ .u-table table thead tr th.sort div:after {
1056
+ cursor: pointer;
1057
+ position: absolute;
1058
+ content: "";
1059
+ top: 4px;
1060
+ right: 0;
1061
+ width: 10px;
1062
+ height: 16px;
1063
+ background-repeat: no-repeat;
1064
+ }
1065
+ .u-table table thead tr th.sort div span {
1066
+ display: none;
1067
+ }
1068
+ .u-table table thead tr th.sticky {
1069
+ position: sticky;
1070
+ left: 0;
1071
+ background-color: white;
1072
+ z-index: 1;
1073
+ text-align: center;
1074
+ }
1075
+ .u-table table thead tr th.sticky::after {
1076
+ content: "";
1077
+ position: absolute;
1078
+ right: -4px;
1079
+ top: 0;
1080
+ width: 4px;
1081
+ height: 100%;
1082
+ background: linear-gradient(269.98deg, rgba(211, 211, 211, 0.8) -24.97%, rgba(211, 211, 211, 0) 112.48%);
1083
+ transform: matrix(-1, 0, 0, 1, 0, 0);
1084
+ }
1085
+ .u-table table tbody tr {
1086
+ cursor: pointer;
1087
+ background-color: white;
1088
+ }
1089
+ .u-table table tbody tr td {
1090
+ border-bottom: 1px solid #CAD1E1;
1091
+ width: 200px;
1092
+ padding: 12px;
1093
+ }
1094
+ .u-table table tbody tr td.sticky {
1095
+ position: sticky;
1096
+ left: 0;
1097
+ background-color: inherit;
1098
+ font-size: 14px;
1099
+ font-weight: 600;
1100
+ text-align: center;
1101
+ }
1102
+ .u-table table tbody tr td.sticky a {
1103
+ color: #1E4391 !important;
1104
+ }
1105
+ .u-table table tbody tr td.sticky::after {
1106
+ content: "";
1107
+ position: absolute;
1108
+ right: -4px;
1109
+ top: 0;
1110
+ width: 4px;
1111
+ height: 100%;
1112
+ background: linear-gradient(269.98deg, rgba(211, 211, 211, 0.8) -24.97%, rgba(211, 211, 211, 0) 112.48%);
1113
+ transform: matrix(-1, 0, 0, 1, 0, 0);
1114
+ }
1115
+ .u-table table tbody tr:last-child td {
1116
+ border: none;
1117
+ }
1118
+ .u-table table tbody tr:hover {
1119
+ background-color: #E9ECF1;
1120
+ }
1018
1121
  .bg-gradient {
1019
1122
  background: linear-gradient(270deg, #FF2D7F -0.71%, #FB3727 47.63%, #FEEA0F 100%);
1020
1123
  }
package/src/main.less CHANGED
@@ -12,6 +12,7 @@
12
12
  @import "styles/components/status";
13
13
  @import "styles/components/message";
14
14
  @import "styles/components/preloader";
15
+ @import "styles/components/table";
15
16
  @import "styles/special-classes/colors";
16
17
  @import "styles/special-classes/font-weight";
17
18
  @import "styles/special-classes/selectors";
@@ -151,6 +151,7 @@
151
151
  }
152
152
  }
153
153
  &-danger {
154
+ font-weight: 400;
154
155
  color: @clr-additional-danger;
155
156
  &:hover, &:focus {
156
157
  color: #B62C48;
@@ -0,0 +1,116 @@
1
+ @import "../../main.less";
2
+
3
+ body {
4
+ background-color: #F6F6F6;
5
+ padding: 50px 300px;
6
+ }
7
+
8
+ p {
9
+ margin: 0;
10
+ padding: 0;
11
+ }
12
+
13
+ .u-table {
14
+ border-radius: 10px;
15
+ background: @clr-secondary-empty;
16
+ overflow-x: auto;
17
+ table {
18
+ border-radius: 10px;
19
+ width: 100%;
20
+ border-collapse: separate;
21
+ border-spacing: 0;
22
+ caption, th, td {
23
+ text-align: left;
24
+ vertical-align: middle;
25
+ }
26
+ thead {
27
+ tr {
28
+ th {
29
+ color: @clr-main-primary;
30
+ border-bottom: 2px solid @clr-main-primary;
31
+ padding: 12px;
32
+ width: 100%;
33
+ &.sort {
34
+ div {
35
+ position: relative;
36
+ display: flex;
37
+ width: 100%;
38
+ &:after {
39
+ cursor: pointer;
40
+ position: absolute;
41
+ content: "";
42
+ top: 4px;
43
+ right: 0;
44
+ width: 10px;
45
+ height: 16px;
46
+ // background-image: @sort;
47
+ background-repeat: no-repeat;
48
+ }
49
+ span {
50
+ display: none;
51
+ }
52
+ }
53
+
54
+ }
55
+ &.sticky {
56
+ position: sticky;
57
+ left: 0;
58
+ background-color: white;
59
+ z-index: 1;
60
+ text-align: center;
61
+ &::after {
62
+ content: "";
63
+ position: absolute;
64
+ right: -4px;
65
+ top: 0;
66
+ width: 4px;
67
+ height: 100%;
68
+ background: linear-gradient(269.98deg, rgba(211, 211, 211, 0.8) -24.97%, rgba(211, 211, 211, 0) 112.48%);
69
+ transform: matrix(-1, 0, 0, 1, 0, 0);
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ tbody {
76
+ tr {
77
+ cursor: pointer;
78
+ background-color: white;
79
+ td {
80
+ border-bottom: 1px solid @clr-secondary-quiet;
81
+ width: 200px;
82
+ padding: 12px;
83
+ &.sticky {
84
+ position: sticky;
85
+ left: 0;
86
+ background-color: inherit;
87
+ font-size: 14px;
88
+ font-weight: 600;
89
+ text-align: center;
90
+ a {
91
+ color: @clr-main-primary !important;
92
+ }
93
+ &::after {
94
+ content: "";
95
+ position: absolute;
96
+ right: -4px;
97
+ top: 0;
98
+ width: 4px;
99
+ height: 100%;
100
+ background: linear-gradient(269.98deg, rgba(211, 211, 211, 0.8) -24.97%, rgba(211, 211, 211, 0) 112.48%);
101
+ transform: matrix(-1, 0, 0, 1, 0, 0);
102
+ }
103
+ }
104
+ }
105
+ &:last-child {
106
+ td {
107
+ border: none;
108
+ }
109
+ }
110
+ &:hover {
111
+ background-color: #E9ECF1;
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }