2019-02-06 10:24:29 +00:00
|
|
|
@import "variables";
|
2021-06-17 13:09:04 +00:00
|
|
|
@import "effects";
|
2018-09-04 09:49:00 +00:00
|
|
|
|
|
|
|
vn-chip {
|
2020-04-02 12:20:57 +00:00
|
|
|
border-radius: 16px;
|
2019-10-18 19:36:30 +00:00
|
|
|
background-color: $color-bg;
|
|
|
|
color: $color-font;
|
2019-10-30 15:57:14 +00:00
|
|
|
font-size: .9rem;
|
2020-04-02 12:52:02 +00:00
|
|
|
margin: 4px;
|
2019-10-18 19:36:30 +00:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2020-04-02 15:06:07 +00:00
|
|
|
height: 28px;
|
2019-10-30 15:57:14 +00:00
|
|
|
max-width: 100%;
|
|
|
|
box-sizing: border-box;
|
2018-09-14 07:10:30 +00:00
|
|
|
|
2020-02-10 06:24:12 +00:00
|
|
|
&.small {
|
2020-04-02 12:52:02 +00:00
|
|
|
height: 24px;
|
2020-02-10 06:24:12 +00:00
|
|
|
|
|
|
|
& > div {
|
2020-04-02 12:20:57 +00:00
|
|
|
padding: 9px;
|
2020-04-02 09:39:39 +00:00
|
|
|
font-size: .8rem;
|
2020-02-10 06:24:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-28 09:15:02 +00:00
|
|
|
&.transparent {
|
|
|
|
background-color: transparent;
|
2021-04-28 08:32:24 +00:00
|
|
|
}
|
2021-06-17 13:09:04 +00:00
|
|
|
&.colored,
|
|
|
|
&.colored.clickable:hover,
|
|
|
|
&.colored.clickable:focus {
|
2019-10-18 19:36:30 +00:00
|
|
|
background-color: $color-main;
|
2019-12-23 07:05:58 +00:00
|
|
|
color: $color-font-bg;
|
|
|
|
}
|
2021-06-17 13:09:04 +00:00
|
|
|
|
|
|
|
&.notice,
|
|
|
|
&.notice.clickable:hover,
|
|
|
|
&.notice.clickable:focus {
|
|
|
|
background-color: $color-notice-medium;
|
2019-12-23 07:05:58 +00:00
|
|
|
}
|
2021-06-17 13:09:04 +00:00
|
|
|
&.success,
|
|
|
|
&.success.clickable:hover,
|
|
|
|
&.success.clickable:focus {
|
2019-12-23 07:05:58 +00:00
|
|
|
background-color: $color-success-medium;
|
|
|
|
}
|
2021-06-17 13:09:04 +00:00
|
|
|
&.warning,
|
|
|
|
&.warning.clickable:hover,
|
|
|
|
&.warning.clickable:focus {
|
2019-12-23 07:05:58 +00:00
|
|
|
background-color: $color-main-medium;
|
|
|
|
}
|
2021-06-17 13:09:04 +00:00
|
|
|
&.alert,
|
|
|
|
&.alert.clickable:hover,
|
|
|
|
&.alert.clickable:focus {
|
2021-11-18 13:00:45 +00:00
|
|
|
background-color: lighten($color-alert, 5%);
|
2019-12-23 07:05:58 +00:00
|
|
|
}
|
2021-06-17 13:09:04 +00:00
|
|
|
&.message,
|
|
|
|
&.message.clickable:hover,
|
|
|
|
&.message.clickable:focus {
|
2019-10-18 19:36:30 +00:00
|
|
|
color: $color-font-dark;
|
2021-06-17 13:09:04 +00:00
|
|
|
background-color: $color-bg-dark;
|
|
|
|
}
|
|
|
|
&.clickable {
|
|
|
|
@extend %clickable;
|
|
|
|
opacity: 0.8;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2018-09-07 10:20:57 +00:00
|
|
|
}
|
2019-12-23 07:05:58 +00:00
|
|
|
|
2019-10-18 19:36:30 +00:00
|
|
|
& > div {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
height: 100%;
|
2020-04-02 12:20:57 +00:00
|
|
|
padding: 0 11px;
|
2019-10-30 15:57:14 +00:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
2018-09-07 10:20:57 +00:00
|
|
|
|
2019-10-18 19:36:30 +00:00
|
|
|
& > vn-avatar {
|
2020-04-02 12:52:02 +00:00
|
|
|
margin-left: -11px;
|
2020-04-02 15:06:07 +00:00
|
|
|
margin-right: 6px;
|
2019-10-30 15:57:14 +00:00
|
|
|
vertical-align: middle;
|
2020-04-02 15:06:07 +00:00
|
|
|
height: 28px;
|
|
|
|
width: 28px;
|
2019-10-18 19:36:30 +00:00
|
|
|
}
|
2018-09-04 09:49:00 +00:00
|
|
|
}
|
2019-10-18 19:36:30 +00:00
|
|
|
& > vn-icon {
|
2020-04-02 15:06:07 +00:00
|
|
|
margin-right: 2px;
|
|
|
|
margin-left: -2px;
|
2019-10-18 19:36:30 +00:00
|
|
|
vertical-align: middle;
|
|
|
|
opacity: .6;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: opacity 250ms ease-out;
|
2018-09-14 07:10:30 +00:00
|
|
|
|
2019-10-18 19:36:30 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2018-09-14 07:10:30 +00:00
|
|
|
}
|
2021-06-17 13:09:04 +00:00
|
|
|
|
|
|
|
& > .prepend {
|
|
|
|
padding: 0 5px;
|
|
|
|
padding-right: 0;
|
|
|
|
|
|
|
|
&:empty {display:none;}
|
|
|
|
}
|
|
|
|
& > .append {
|
|
|
|
padding: 0 5px;
|
|
|
|
padding-left: 0;
|
|
|
|
|
|
|
|
&:empty {display:none;}
|
|
|
|
}
|
|
|
|
|
2019-10-18 19:36:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
vn-avatar {
|
|
|
|
display: inline-block;
|
2020-04-02 15:06:07 +00:00
|
|
|
min-width: 28px;
|
2019-10-18 19:36:30 +00:00
|
|
|
border-radius: 50%;
|
2018-09-04 09:49:00 +00:00
|
|
|
}
|