urfu-ui-kit-vanilla 1.0.1 → 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 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.1",
6
+ "version": "1.0.2",
7
7
  "type": "module",
8
8
  "repository": {
9
9
  "type": "git",
@@ -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;
@@ -189,6 +64,36 @@ a img {
189
64
  scrollbar-width: 8px;
190
65
  /*Толщина скролла thin, auto*/
191
66
  }
67
+ body {
68
+ background-color: #F5F5F5;
69
+ }
70
+ #app {
71
+ padding: 15px 20px;
72
+ max-width: 920px;
73
+ margin: 30px auto 20px;
74
+ background-color: #FFFFFF;
75
+ height: 100%;
76
+ border-radius: 10px;
77
+ }
78
+ section {
79
+ margin-bottom: 20px;
80
+ }
81
+ .flex {
82
+ display: flex;
83
+ justify-content: space-between;
84
+ }
85
+ .container {
86
+ display: grid;
87
+ grid-template-columns: repeat(4, 1fr);
88
+ gap: 10px;
89
+ }
90
+ h2 {
91
+ font-weight: 600;
92
+ font-size: 40px;
93
+ line-height: 48px;
94
+ color: #1E4391;
95
+ margin-bottom: 10px;
96
+ }
192
97
  .u-button {
193
98
  height: 48px;
194
99
  padding: 0 50px;
@@ -315,7 +220,6 @@ a img {
315
220
  .u-button-text {
316
221
  display: flex;
317
222
  text-align: center;
318
- line-height: 20px;
319
223
  border: none;
320
224
  padding: 0;
321
225
  font-weight: 600;
@@ -382,6 +286,9 @@ a img {
382
286
  .u-input.active {
383
287
  border: 1px solid #748AB9;
384
288
  }
289
+ .u-input:focus {
290
+ outline: 0;
291
+ }
385
292
  .u-input::placeholder {
386
293
  color: #A7A7A7;
387
294
  }
@@ -536,6 +443,9 @@ a img {
536
443
  .u-selectbox-select.active {
537
444
  border: 1px solid #748AB9;
538
445
  }
446
+ .u-selectbox-select:focus {
447
+ outline: 0;
448
+ }
539
449
  .u-selectbox-select::placeholder {
540
450
  color: #A7A7A7;
541
451
  }
@@ -831,13 +741,13 @@ a img {
831
741
  background-color: #1E4391;
832
742
  border: 2px solid #1E4391;
833
743
  }
834
- .u-tab.all-danger:focus,
835
- .u-tab.all-danger.u-tab-active {
744
+ .u-tab-all-danger:focus,
745
+ .u-tab-all-danger.u-tab-active {
836
746
  color: #EF302B;
837
747
  background-color: #FFFFFF;
838
748
  border: 2px solid #EF302B;
839
749
  }
840
- .u-tab.all-danger:hover {
750
+ .u-tab-all-danger:hover {
841
751
  color: #FFFFFF;
842
752
  background-color: #EF302B;
843
753
  border: 2px solid #EF302B;
@@ -1161,6 +1071,13 @@ a img {
1161
1071
  .fw-600 {
1162
1072
  font-weight: 600;
1163
1073
  }
1074
+ h1,
1075
+ h2,
1076
+ h3,
1077
+ h4,
1078
+ h5 {
1079
+ margin: 0;
1080
+ }
1164
1081
  h1 {
1165
1082
  font-weight: 600;
1166
1083
  font-size: 52px;
@@ -1229,6 +1146,9 @@ h5 {
1229
1146
  padding-bottom: 4px;
1230
1147
  border-bottom: 8px solid #1E4391;
1231
1148
  }
1149
+ * {
1150
+ box-sizing: border-box;
1151
+ }
1232
1152
  /* полоса прокрутки (скроллбар) */
1233
1153
  ::-webkit-scrollbar {
1234
1154
  background-color: transparent;
@@ -1263,3 +1183,33 @@ h5 {
1263
1183
  scrollbar-width: 8px;
1264
1184
  /*Толщина скролла thin, auto*/
1265
1185
  }
1186
+ body {
1187
+ background-color: #F5F5F5;
1188
+ }
1189
+ #app {
1190
+ padding: 15px 20px;
1191
+ max-width: 920px;
1192
+ margin: 30px auto 20px;
1193
+ background-color: #FFFFFF;
1194
+ height: 100%;
1195
+ border-radius: 10px;
1196
+ }
1197
+ section {
1198
+ margin-bottom: 20px;
1199
+ }
1200
+ .flex {
1201
+ display: flex;
1202
+ justify-content: space-between;
1203
+ }
1204
+ .container {
1205
+ display: grid;
1206
+ grid-template-columns: repeat(4, 1fr);
1207
+ gap: 10px;
1208
+ }
1209
+ h2 {
1210
+ font-weight: 600;
1211
+ font-size: 40px;
1212
+ line-height: 48px;
1213
+ color: #1E4391;
1214
+ margin-bottom: 10px;
1215
+ }
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;
@@ -60,38 +63,38 @@
60
63
 
61
64
  // страница показа
62
65
 
63
- // body {
64
- // background-color: #F5F5F5;
65
- // }
66
-
67
- // #app {
68
- // padding: 15px 20px;
69
- // max-width: 920px;
70
- // margin: 30px auto 20px;
71
- // background-color: @clr-secondary-empty;
72
- // height: 100%;
73
- // border-radius: @radius;
74
- // }
75
-
76
- // section {
77
- // margin-bottom: 20px;
78
- // }
79
-
80
- // .flex {
81
- // display: flex;
82
- // justify-content: space-between;
83
- // }
84
-
85
- // .container {
86
- // display: grid;
87
- // grid-template-columns: repeat(4, 1fr);
88
- // gap: 10px;
89
- // }
90
-
91
- // h2 {
92
- // font-weight: 600;
93
- // font-size: 40px;
94
- // line-height: 48px;
95
- // color: #1E4391;
96
- // margin-bottom: 10px;
97
- // }
66
+ body {
67
+ background-color: #F5F5F5;
68
+ }
69
+
70
+ #app {
71
+ padding: 15px 20px;
72
+ max-width: 920px;
73
+ margin: 30px auto 20px;
74
+ background-color: @clr-secondary-empty;
75
+ height: 100%;
76
+ border-radius: @radius;
77
+ }
78
+
79
+ section {
80
+ margin-bottom: 20px;
81
+ }
82
+
83
+ .flex {
84
+ display: flex;
85
+ justify-content: space-between;
86
+ }
87
+
88
+ .container {
89
+ display: grid;
90
+ grid-template-columns: repeat(4, 1fr);
91
+ gap: 10px;
92
+ }
93
+
94
+ h2 {
95
+ font-weight: 600;
96
+ font-size: 40px;
97
+ line-height: 48px;
98
+ color: #1E4391;
99
+ margin-bottom: 10px;
100
+ }
@@ -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;
@@ -17,6 +17,9 @@
17
17
  &:hover, &:focus, &.active {
18
18
  border: 1px solid @clr-border-active;
19
19
  }
20
+ &:focus {
21
+ outline: 0;
22
+ }
20
23
  &::placeholder {
21
24
  color: @clr-secondary-subject;
22
25
  }
@@ -48,7 +48,7 @@
48
48
  background-color: @clr-main-primary;
49
49
  border: 2px solid @clr-main-primary;
50
50
  }
51
- &.all-danger {
51
+ &-all-danger {
52
52
  &:focus, &.u-tab-active {
53
53
  color: @clr-main-danger;
54
54
  background-color: @clr-secondary-empty;
@@ -1,4 +1,7 @@
1
1
  @import "../const/fonts.less";
2
+ h1, h2, h3, h4, h5 {
3
+ margin: 0;
4
+ }
2
5
  h1 {
3
6
  .h1;
4
7
  }
@@ -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
- }