145 lines
2.9 KiB
SCSS
145 lines
2.9 KiB
SCSS
@import "variables";
|
|
@import "effects";
|
|
|
|
vn-chip {
|
|
border-radius: 16px;
|
|
background-color: $color-bg;
|
|
color: $color-font;
|
|
font-size: .9rem;
|
|
margin: 4px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
height: 28px;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
|
|
&.small {
|
|
height: 24px;
|
|
|
|
& > div {
|
|
padding: 9px;
|
|
font-size: .8rem;
|
|
}
|
|
}
|
|
|
|
&.transparent {
|
|
background-color: transparent;
|
|
}
|
|
&.colored,
|
|
&.colored.clickable:hover,
|
|
&.colored.clickable:focus {
|
|
background-color: $color-main;
|
|
color: $color-font-bg;
|
|
}
|
|
|
|
&.notice,
|
|
&.notice.clickable:hover,
|
|
&.notice.clickable:focus {
|
|
background-color: $color-notice-medium;
|
|
}
|
|
&.success,
|
|
&.success.clickable:hover,
|
|
&.success.clickable:focus {
|
|
background-color: $color-success-medium;
|
|
}
|
|
&.warning,
|
|
&.warning.clickable:hover,
|
|
&.warning.clickable:focus {
|
|
background-color: $color-main-medium;
|
|
}
|
|
&.alert,
|
|
&.alert.clickable:hover,
|
|
&.alert.clickable:focus {
|
|
background-color: lighten($color-alert, 5%);
|
|
}
|
|
&.message,
|
|
&.message.clickable:hover,
|
|
&.message.clickable:focus {
|
|
background-color: $color-font-bg-dark;
|
|
color: $color-font-bg;
|
|
}
|
|
&.pink,
|
|
&.pink.clickable:hover,
|
|
&.pink.clickable:focus {
|
|
background-color: $color-pink;
|
|
}
|
|
&.dark-notice,
|
|
&.dark-notice.clickable:hover,
|
|
&.dark-notice.clickable:focus {
|
|
background-color: $color-notice;
|
|
}
|
|
&.yellow,
|
|
&.yellow.clickable:hover,
|
|
&.yellow.clickable:focus {
|
|
background-color: $color-yellow;
|
|
}
|
|
&.none,
|
|
&.none.clickable:hover,
|
|
&.none.clickable:focus {
|
|
background-color: $color-bg-panel;
|
|
border-radius: 50%;
|
|
border: 1px solid $color-font-link
|
|
|
|
}
|
|
&.clickable {
|
|
@extend %clickable;
|
|
opacity: 0.8;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
& > div {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 100%;
|
|
padding: 0 11px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
|
|
& > vn-avatar {
|
|
margin-left: -11px;
|
|
margin-right: 6px;
|
|
vertical-align: middle;
|
|
height: 28px;
|
|
width: 28px;
|
|
}
|
|
}
|
|
& > vn-icon {
|
|
margin-right: 2px;
|
|
margin-left: -2px;
|
|
vertical-align: middle;
|
|
opacity: .6;
|
|
cursor: pointer;
|
|
transition: opacity 250ms ease-out;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
& > .prepend {
|
|
padding: 0 5px;
|
|
padding-right: 0;
|
|
|
|
&:empty {display:none;}
|
|
}
|
|
& > .append {
|
|
padding: 0 5px;
|
|
padding-left: 0;
|
|
|
|
&:empty {display:none;}
|
|
}
|
|
|
|
}
|
|
|
|
vn-avatar {
|
|
display: inline-block;
|
|
min-width: 28px;
|
|
border-radius: 50%;
|
|
}
|