urfu-ui-kit-vanilla 1.0.18 → 1.0.19

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.18",
6
+ "version": "1.0.19",
7
7
  "type": "module",
8
8
  "repository": {
9
9
  "type": "git",
@@ -8,6 +8,36 @@
8
8
  </head>
9
9
  <body>
10
10
  <div id="app">
11
+ <div class="u-bc"><a class="u-bc-link">Главная</a><a class="u-bc-text">Не главная</a><a class="u-bc-last">Последняя</a></div>
12
+ <a class="u-link">Кркурс</a>
13
+ <br>
14
+ <br>
15
+ <br>
16
+ <br>
17
+ <br>
18
+ <br>
19
+ <br>
20
+ <br>
21
+ <br>
22
+ <br>
23
+ <br>
24
+ <br>
25
+ <br>
26
+ <br>
27
+ <br>
28
+ <br>
29
+ <br>
30
+ <br>
31
+ <br>
32
+ <br>
33
+ <div id="u-help">
34
+ <div id="u-help-tooltip">Дополнительная предметная область, которую может выбрать данный эксперт как олнительная предметная область, которую может выбрать данный эксперт как олнительная предметная область, которую может выбрать данный эксперт как олнительная предметная область, которую может выбрать данный эксперт как олнительная предметная область, которую может выбрать данный эксперт как олнительная предметная область, которую может выбрать данный эксперт как олнительная предметная область, которую может выбрать данный эксперт как область своей профессиональной экспертизы</div>
35
+ <div>aaa</div>
36
+ </div>
37
+ <div class="u-notification">Уведомление<button class="u-notification-hide"></button></div>
38
+ <div class="u-notification-fail">Уведомление<button class="u-notification-hide"></button></div>
39
+ <div class="u-notification-success">Уведомление<button class="u-notification-hide"></button></div>
40
+ <div class="u-notification-warning">Уведомление<button class="u-notification-hide"></button></div>
11
41
  <label id="fileinput" class="u-file">
12
42
  <input type="file" id="fileinput">
13
43
  <i class="u-file-icon"></i>
package/src/main.less CHANGED
@@ -8,9 +8,12 @@
8
8
  @import "styles/components/radio";
9
9
  @import "styles/components/checkbox";
10
10
  @import "styles/components/tab";
11
+ @import "styles/components/breadcrumbs";
11
12
  @import "styles/components/icon";
12
13
  @import "styles/components/status";
13
14
  @import "styles/components/message";
15
+ @import "styles/components/help";
16
+ @import "styles/components/notification";
14
17
  @import "styles/components/preloader";
15
18
  @import "styles/components/table";
16
19
  @import "styles/special-classes/colors";
@@ -0,0 +1,52 @@
1
+ @import "../../main.less";
2
+
3
+ .u-bc-item() {
4
+
5
+ }
6
+
7
+ .u-bc {
8
+ display: flex;
9
+ &-link {
10
+ position: relative;
11
+ margin-right: 0.7em;
12
+ .h5;
13
+ cursor: pointer;
14
+ color: @clr-main-primary;
15
+ &:hover {
16
+ text-decoration-line: underline;
17
+ text-underline-offset: 2.3px;
18
+ }
19
+ &::after {
20
+ content: "/";
21
+ position: absolute;
22
+ right: -0.5em;
23
+ top: 0.1em;
24
+ }
25
+ }
26
+ &-text {
27
+ position: relative;
28
+ margin-right: 0.7em;
29
+ .h5;
30
+ cursor: default;
31
+ color: @clr-main-dark;
32
+ &:hover {
33
+ text-decoration: none;
34
+ }
35
+ &::after {
36
+ content: "/";
37
+ position: absolute;
38
+ right: -0.5em;
39
+ top: 0.1em;
40
+ }
41
+ }
42
+ &-last {
43
+ position: relative;
44
+ margin-right: 0.7em;
45
+ .h5;
46
+ cursor: default;
47
+ color: @clr-main-dark;
48
+ &:hover {
49
+ text-decoration: none;
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,39 @@
1
+ @import "../../main.less";
2
+
3
+ #u-help {
4
+ position: relative;
5
+ cursor: pointer;
6
+ &-tooltip {
7
+ position: absolute;
8
+ color: white;
9
+ background-color: @clr-secondary-supportive;
10
+ .h5;
11
+ transform: translateX(-50%);
12
+ left: 50%;
13
+ max-width: 500px;
14
+ width: max-content;
15
+ opacity: 0;
16
+ pointer-events: none;
17
+ transition: 0.3s;
18
+ padding: 10px 13px;
19
+ border-radius: 10px;
20
+ visibility: hidden;
21
+ bottom: calc(100% + 6px);
22
+ &::before {
23
+ position: absolute;
24
+ transition: 0.3s;
25
+ content: "";
26
+ background-image: url("data:image/svg+xml,%3Csvg width='12' height='6' viewBox='0 0 12 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6L0 0H12L6 6Z' fill='%237A7A7A'/%3E%3C/svg%3E%0A");
27
+ background-repeat: no-repeat;
28
+ width: 12px;
29
+ height: 6px;
30
+ right: calc(50% - 6px);
31
+ bottom: -6px;
32
+
33
+ }
34
+ }
35
+ &:hover #u-help-tooltip {
36
+ opacity: 1;
37
+ visibility: visible;
38
+ }
39
+ }
@@ -0,0 +1,61 @@
1
+ @import "../../main.less";
2
+
3
+ .notification() {
4
+ width: fit-content;
5
+ display: flex;
6
+ justify-content: space-between;
7
+ padding: 18px 16px 18px 52px;
8
+ border-radius: @radius;
9
+ font-weight: 400;
10
+ font-size: 16px;
11
+ color: @clr-main-dark;
12
+ background-repeat: no-repeat;
13
+ background-position: top calc(50% - 1px) left 16px;
14
+ }
15
+
16
+ .notification-hide() {
17
+ cursor: pointer;
18
+ display: block;
19
+ border: none;
20
+ width: 12px;
21
+ height: 12px;
22
+ margin: auto 0 auto 16px;
23
+ background-repeat: no-repeat
24
+ }
25
+
26
+ .u-notification {
27
+ .notification;
28
+ background-color: #E7F2FF;
29
+ background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%231E4391' stroke-width='2'%3E%3C/circle%3E%3Crect x='9' y='8' width='2' height='8' rx='1' fill='%231E4391'%3E%3C/rect%3E%3Ccircle cx='10' cy='6' r='1' fill='%231E4391'%3E%3C/circle%3E%3C/svg%3E");
30
+ .u-notification-hide {
31
+ .notification-hide;
32
+ background-image: 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_5301_23915)'%3E%3Cpath d='M1 1L10.5833 11M11 1L1 11' stroke='%231E4391' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_5301_23915'%3E%3Crect width='12' height='12' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E ");
33
+ }
34
+ &-fail {
35
+ .notification;
36
+ background-color: #FDEAEA;
37
+ background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23EF302B' stroke-width='2'%3E%3C/circle%3E%3Ccircle cx='10' cy='15' r='1' fill='%23EF302B'%3E%3C/circle%3E%3Cpath d='M8.59357 6.49708C8.54286 5.68582 9.18716 5 10 5C10.8128 5 11.4571 5.68582 11.4064 6.49708L11.0624 12.0019C11.0273 12.563 10.5621 13 10 13C9.4379 13 8.97268 12.563 8.93762 12.0019L8.59357 6.49708Z' fill='%23EF302B'%3E%3C/path%3E%3C/svg%3E");
38
+ .u-notification-hide {
39
+ .notification-hide;
40
+ background-image: 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_5301_23930)'%3E%3Cpath d='M1 1L10.5833 11M11 1L1 11' stroke='%23EF302B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_5301_23930'%3E%3Crect width='12' height='12' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E ");
41
+ }
42
+ }
43
+ &-success {
44
+ .notification;
45
+ background-color: #EDF7EB;
46
+ background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23147246' stroke-width='2'%3E%3C/circle%3E%3Cpath d='M6 10.5L9.10148 13.6015C9.31345 13.8134 9.663 13.7925 9.8482 13.5568L15 7' stroke='%23147246' stroke-width='2' stroke-linecap='round'%3E%3C/path%3E%3C/svg%3E");
47
+ .u-notification-hide {
48
+ .notification-hide;
49
+ background-image: 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_5301_23920)'%3E%3Cpath d='M1 1L10.5833 11M11 1L1 11' stroke='%23147246' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_5301_23920'%3E%3Crect width='12' height='12' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E ");
50
+ }
51
+ }
52
+ &-warning {
53
+ .notification;
54
+ background-color: #FCF4E6;
55
+ background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23E98446' stroke-width='2'%3E%3C/circle%3E%3Cpath d='M9.24233 13C9.03869 13 8.87361 12.8349 8.87361 12.6313C8.87361 12.229 8.92092 11.8715 9.01552 11.5587C9.11013 11.2458 9.25795 10.9665 9.45898 10.7207C9.67184 10.4749 9.84922 10.2905 9.99113 10.1676C10.1449 10.0335 10.3696 9.86034 10.6652 9.64805C10.9017 9.48045 11.0791 9.34637 11.1973 9.24581C11.3274 9.13408 11.4693 8.99441 11.6231 8.82682C11.7886 8.64804 11.9069 8.4581 11.9778 8.25698C12.0488 8.05587 12.0843 7.82681 12.0843 7.56983C12.0843 7.20112 11.9897 6.8771 11.8004 6.59777C11.6231 6.30727 11.3747 6.08939 11.0554 5.94413C10.748 5.78771 10.3991 5.7095 10.0089 5.7095C9.42942 5.7095 8.92683 5.87709 8.50111 6.21229C8.33022 6.34607 8.19259 6.4989 8.08823 6.67078C7.82922 7.09735 7.45131 7.51955 6.95227 7.51955C6.4297 7.51955 5.99284 7.08288 6.12856 6.57825C6.30589 5.91891 6.6651 5.37233 7.20621 4.93855C7.99852 4.31285 8.93275 4 10.0089 4C11.1323 4 12.0783 4.32402 12.847 4.97207C13.6157 5.62012 14 6.48603 14 7.56983C14 7.97207 13.9527 8.32961 13.8581 8.64246C13.7635 8.95531 13.6157 9.24023 13.4146 9.49721C13.2136 9.74302 13.0362 9.93296 12.8825 10.067C12.7288 10.2011 12.51 10.3743 12.2262 10.5866C11.9778 10.7765 11.7945 10.9218 11.6763 11.0223C11.5698 11.1117 11.4339 11.2458 11.2683 11.4246C11.1146 11.6034 11.0022 11.7933 10.9313 11.9944C10.8721 12.1844 10.8426 12.3966 10.8426 12.6313C10.8426 12.8349 10.6775 13 10.4739 13H9.24233Z' fill='%23E98446'%3E%3C/path%3E%3Ccircle cx='10' cy='15' r='1' fill='%23E98446'%3E%3C/circle%3E%3C/svg%3E");
56
+ .u-notification-hide {
57
+ .notification-hide;
58
+ background-image: 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_5301_23925)'%3E%3Cpath d='M1 1L10.5833 11M11 1L1 11' stroke='%23E98446' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_5301_23925'%3E%3Crect width='12' height='12' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E ");
59
+ }
60
+ }
61
+ }
@@ -29,16 +29,23 @@ h5 {
29
29
  .bt {
30
30
  .bt;
31
31
  }
32
- .required {
32
+ .u-required {
33
33
  &::after {
34
34
  content: '*';
35
35
  color: @clr-main-danger;
36
36
  padding-left: 3px;
37
37
  }
38
38
  }
39
- .benefit {
39
+ .u-benefit {
40
40
  .h2;
41
41
  color: @clr-main-primary;
42
42
  padding-bottom: 4px;
43
43
  border-bottom: 8px solid @clr-main-primary;
44
+ }
45
+ .u-link {
46
+ color: @clr-main-primary;
47
+ cursor: pointer;
48
+ &:hover {
49
+ text-decoration: underline;
50
+ }
44
51
  }