urfu-ui-kit-vanilla 1.0.1 → 1.0.3
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;
|
|
@@ -315,7 +190,6 @@ a img {
|
|
|
315
190
|
.u-button-text {
|
|
316
191
|
display: flex;
|
|
317
192
|
text-align: center;
|
|
318
|
-
line-height: 20px;
|
|
319
193
|
border: none;
|
|
320
194
|
padding: 0;
|
|
321
195
|
font-weight: 600;
|
|
@@ -382,6 +256,9 @@ a img {
|
|
|
382
256
|
.u-input.active {
|
|
383
257
|
border: 1px solid #748AB9;
|
|
384
258
|
}
|
|
259
|
+
.u-input:focus {
|
|
260
|
+
outline: 0;
|
|
261
|
+
}
|
|
385
262
|
.u-input::placeholder {
|
|
386
263
|
color: #A7A7A7;
|
|
387
264
|
}
|
|
@@ -536,6 +413,9 @@ a img {
|
|
|
536
413
|
.u-selectbox-select.active {
|
|
537
414
|
border: 1px solid #748AB9;
|
|
538
415
|
}
|
|
416
|
+
.u-selectbox-select:focus {
|
|
417
|
+
outline: 0;
|
|
418
|
+
}
|
|
539
419
|
.u-selectbox-select::placeholder {
|
|
540
420
|
color: #A7A7A7;
|
|
541
421
|
}
|
|
@@ -831,13 +711,13 @@ a img {
|
|
|
831
711
|
background-color: #1E4391;
|
|
832
712
|
border: 2px solid #1E4391;
|
|
833
713
|
}
|
|
834
|
-
.u-tab
|
|
835
|
-
.u-tab
|
|
714
|
+
.u-tab-all-danger:focus,
|
|
715
|
+
.u-tab-all-danger.u-tab-active {
|
|
836
716
|
color: #EF302B;
|
|
837
717
|
background-color: #FFFFFF;
|
|
838
718
|
border: 2px solid #EF302B;
|
|
839
719
|
}
|
|
840
|
-
.u-tab
|
|
720
|
+
.u-tab-all-danger:hover {
|
|
841
721
|
color: #FFFFFF;
|
|
842
722
|
background-color: #EF302B;
|
|
843
723
|
border: 2px solid #EF302B;
|
|
@@ -1161,6 +1041,13 @@ a img {
|
|
|
1161
1041
|
.fw-600 {
|
|
1162
1042
|
font-weight: 600;
|
|
1163
1043
|
}
|
|
1044
|
+
h1,
|
|
1045
|
+
h2,
|
|
1046
|
+
h3,
|
|
1047
|
+
h4,
|
|
1048
|
+
h5 {
|
|
1049
|
+
margin: 0;
|
|
1050
|
+
}
|
|
1164
1051
|
h1 {
|
|
1165
1052
|
font-weight: 600;
|
|
1166
1053
|
font-size: 52px;
|
|
@@ -1229,6 +1116,9 @@ h5 {
|
|
|
1229
1116
|
padding-bottom: 4px;
|
|
1230
1117
|
border-bottom: 8px solid #1E4391;
|
|
1231
1118
|
}
|
|
1119
|
+
* {
|
|
1120
|
+
box-sizing: border-box;
|
|
1121
|
+
}
|
|
1232
1122
|
/* полоса прокрутки (скроллбар) */
|
|
1233
1123
|
::-webkit-scrollbar {
|
|
1234
1124
|
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
|
-
}
|