urfu-ui-kit-vanilla 1.0.0 → 1.0.2
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 +1 -1
- package/playground/index.html +1 -2
- package/src/main.css +22 -132
- package/src/main.less +4 -1
- package/src/styles/components/button.less +0 -2
- package/src/styles/components/input.less +3 -0
- package/src/styles/components/tab.less +1 -1
- package/src/styles/special-classes/selectors.less +3 -0
- package/src/styles/reset.less +0 -63
package/package.json
CHANGED
package/playground/index.html
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
</section>
|
|
64
64
|
<h2>Tabs, Breadcrumbs</h2>
|
|
65
65
|
<section class="container">
|
|
66
|
-
<button class="u-tab all-danger">Tab</button>
|
|
66
|
+
<button class="u-tab u-tab-all-danger">Tab</button>
|
|
67
67
|
<button class="u-tab u-tab-active">Tab</button>
|
|
68
68
|
<button class="u-tab">Tab</button>
|
|
69
69
|
<button class="u-tab">Tab</button>
|
|
@@ -184,7 +184,6 @@
|
|
|
184
184
|
<h3>Заголовок</h3>
|
|
185
185
|
<h4>Заголовок</h4>
|
|
186
186
|
<h5>Заголовок</h5>
|
|
187
|
-
<h6>Заголовок</h6>
|
|
188
187
|
<div class="st">Заголовок</div>
|
|
189
188
|
<div class="ds">Заголовок</div>
|
|
190
189
|
<div class="th">Заголовок</div>
|
package/src/main.css
CHANGED
|
@@ -1,133 +1,5 @@
|
|
|
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
1
|
@import "ui-icons.css";
|
|
15
2
|
@import "ui-icons.css";
|
|
16
|
-
* {
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
}
|
|
19
|
-
html,
|
|
20
|
-
body {
|
|
21
|
-
border: 0;
|
|
22
|
-
line-height: 1.5;
|
|
23
|
-
margin: 0;
|
|
24
|
-
padding: 0;
|
|
25
|
-
}
|
|
26
|
-
div,
|
|
27
|
-
span,
|
|
28
|
-
object,
|
|
29
|
-
iframe,
|
|
30
|
-
img,
|
|
31
|
-
table,
|
|
32
|
-
caption,
|
|
33
|
-
thead,
|
|
34
|
-
tbody,
|
|
35
|
-
tfoot,
|
|
36
|
-
tr,
|
|
37
|
-
tr,
|
|
38
|
-
td,
|
|
39
|
-
article,
|
|
40
|
-
aside,
|
|
41
|
-
canvas,
|
|
42
|
-
details,
|
|
43
|
-
figure,
|
|
44
|
-
hgroup,
|
|
45
|
-
menu,
|
|
46
|
-
nav,
|
|
47
|
-
footer,
|
|
48
|
-
header,
|
|
49
|
-
section,
|
|
50
|
-
summary,
|
|
51
|
-
mark,
|
|
52
|
-
audio,
|
|
53
|
-
video {
|
|
54
|
-
border: 0;
|
|
55
|
-
margin: 0;
|
|
56
|
-
padding: 0;
|
|
57
|
-
}
|
|
58
|
-
h1,
|
|
59
|
-
h2,
|
|
60
|
-
h3,
|
|
61
|
-
h4,
|
|
62
|
-
h5,
|
|
63
|
-
h6,
|
|
64
|
-
p,
|
|
65
|
-
blockquote,
|
|
66
|
-
pre,
|
|
67
|
-
a,
|
|
68
|
-
abbr,
|
|
69
|
-
address,
|
|
70
|
-
cit,
|
|
71
|
-
code,
|
|
72
|
-
del,
|
|
73
|
-
dfn,
|
|
74
|
-
em,
|
|
75
|
-
ins,
|
|
76
|
-
q,
|
|
77
|
-
samp,
|
|
78
|
-
small,
|
|
79
|
-
strong,
|
|
80
|
-
sub,
|
|
81
|
-
sup,
|
|
82
|
-
b,
|
|
83
|
-
i,
|
|
84
|
-
hr,
|
|
85
|
-
dl,
|
|
86
|
-
dt,
|
|
87
|
-
dd,
|
|
88
|
-
ol,
|
|
89
|
-
ul,
|
|
90
|
-
li,
|
|
91
|
-
fieldset,
|
|
92
|
-
legend,
|
|
93
|
-
label {
|
|
94
|
-
border: 0;
|
|
95
|
-
font-size: 100%;
|
|
96
|
-
vertical-align: baseline;
|
|
97
|
-
margin: 0;
|
|
98
|
-
padding: 0;
|
|
99
|
-
}
|
|
100
|
-
article,
|
|
101
|
-
aside,
|
|
102
|
-
canvas,
|
|
103
|
-
figure,
|
|
104
|
-
figure img,
|
|
105
|
-
figcaption,
|
|
106
|
-
hgroup,
|
|
107
|
-
footer,
|
|
108
|
-
header,
|
|
109
|
-
nav,
|
|
110
|
-
section,
|
|
111
|
-
audio,
|
|
112
|
-
video {
|
|
113
|
-
display: block;
|
|
114
|
-
}
|
|
115
|
-
table {
|
|
116
|
-
border-collapse: separate;
|
|
117
|
-
border-spacing: 0;
|
|
118
|
-
}
|
|
119
|
-
table caption,
|
|
120
|
-
table th,
|
|
121
|
-
table td {
|
|
122
|
-
text-align: left;
|
|
123
|
-
vertical-align: middle;
|
|
124
|
-
}
|
|
125
|
-
a img {
|
|
126
|
-
border: 0;
|
|
127
|
-
}
|
|
128
|
-
:focus {
|
|
129
|
-
outline: 0;
|
|
130
|
-
}
|
|
131
3
|
@font-face {
|
|
132
4
|
font-family: 'Open Sans';
|
|
133
5
|
font-style: normal;
|
|
@@ -155,6 +27,9 @@ a img {
|
|
|
155
27
|
* {
|
|
156
28
|
font-family: 'Montserrat';
|
|
157
29
|
}
|
|
30
|
+
* {
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
}
|
|
158
33
|
/* полоса прокрутки (скроллбар) */
|
|
159
34
|
::-webkit-scrollbar {
|
|
160
35
|
background-color: transparent;
|
|
@@ -345,7 +220,6 @@ h2 {
|
|
|
345
220
|
.u-button-text {
|
|
346
221
|
display: flex;
|
|
347
222
|
text-align: center;
|
|
348
|
-
line-height: 20px;
|
|
349
223
|
border: none;
|
|
350
224
|
padding: 0;
|
|
351
225
|
font-weight: 600;
|
|
@@ -412,6 +286,9 @@ h2 {
|
|
|
412
286
|
.u-input.active {
|
|
413
287
|
border: 1px solid #748AB9;
|
|
414
288
|
}
|
|
289
|
+
.u-input:focus {
|
|
290
|
+
outline: 0;
|
|
291
|
+
}
|
|
415
292
|
.u-input::placeholder {
|
|
416
293
|
color: #A7A7A7;
|
|
417
294
|
}
|
|
@@ -566,6 +443,9 @@ h2 {
|
|
|
566
443
|
.u-selectbox-select.active {
|
|
567
444
|
border: 1px solid #748AB9;
|
|
568
445
|
}
|
|
446
|
+
.u-selectbox-select:focus {
|
|
447
|
+
outline: 0;
|
|
448
|
+
}
|
|
569
449
|
.u-selectbox-select::placeholder {
|
|
570
450
|
color: #A7A7A7;
|
|
571
451
|
}
|
|
@@ -861,13 +741,13 @@ h2 {
|
|
|
861
741
|
background-color: #1E4391;
|
|
862
742
|
border: 2px solid #1E4391;
|
|
863
743
|
}
|
|
864
|
-
.u-tab
|
|
865
|
-
.u-tab
|
|
744
|
+
.u-tab-all-danger:focus,
|
|
745
|
+
.u-tab-all-danger.u-tab-active {
|
|
866
746
|
color: #EF302B;
|
|
867
747
|
background-color: #FFFFFF;
|
|
868
748
|
border: 2px solid #EF302B;
|
|
869
749
|
}
|
|
870
|
-
.u-tab
|
|
750
|
+
.u-tab-all-danger:hover {
|
|
871
751
|
color: #FFFFFF;
|
|
872
752
|
background-color: #EF302B;
|
|
873
753
|
border: 2px solid #EF302B;
|
|
@@ -1191,6 +1071,13 @@ h2 {
|
|
|
1191
1071
|
.fw-600 {
|
|
1192
1072
|
font-weight: 600;
|
|
1193
1073
|
}
|
|
1074
|
+
h1,
|
|
1075
|
+
h2,
|
|
1076
|
+
h3,
|
|
1077
|
+
h4,
|
|
1078
|
+
h5 {
|
|
1079
|
+
margin: 0;
|
|
1080
|
+
}
|
|
1194
1081
|
h1 {
|
|
1195
1082
|
font-weight: 600;
|
|
1196
1083
|
font-size: 52px;
|
|
@@ -1259,6 +1146,9 @@ h5 {
|
|
|
1259
1146
|
padding-bottom: 4px;
|
|
1260
1147
|
border-bottom: 8px solid #1E4391;
|
|
1261
1148
|
}
|
|
1149
|
+
* {
|
|
1150
|
+
box-sizing: border-box;
|
|
1151
|
+
}
|
|
1262
1152
|
/* полоса прокрутки (скроллбар) */
|
|
1263
1153
|
::-webkit-scrollbar {
|
|
1264
1154
|
background-color: transparent;
|
package/src/main.less
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@import "styles/reset";
|
|
2
1
|
@import "styles/fonts";
|
|
3
2
|
@import "styles/const/base";
|
|
4
3
|
@import "styles/const/fonts";
|
|
@@ -18,6 +17,10 @@
|
|
|
18
17
|
@import "styles/special-classes/selectors";
|
|
19
18
|
@import "ui-icons.css";
|
|
20
19
|
|
|
20
|
+
* {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
}
|
|
23
|
+
|
|
21
24
|
/* полоса прокрутки (скроллбар) */
|
|
22
25
|
::-webkit-scrollbar {
|
|
23
26
|
background-color: transparent;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
height: @height-main;
|
|
5
5
|
padding: 0 50px;
|
|
6
6
|
text-align: center;
|
|
7
|
-
// line-height: 120%;
|
|
8
7
|
border-radius: @radius;
|
|
9
8
|
border: none;
|
|
10
9
|
font-weight: 500;
|
|
@@ -16,7 +15,6 @@
|
|
|
16
15
|
.button-text() {
|
|
17
16
|
display: flex;
|
|
18
17
|
text-align: center;
|
|
19
|
-
line-height: 20px;
|
|
20
18
|
border: none;
|
|
21
19
|
padding: 0;
|
|
22
20
|
font-weight: 600;
|
package/src/styles/reset.less
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
}
|