121 lines
2.4 KiB
SCSS
121 lines
2.4 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;
|
|
}
|
|
&.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%;
|
|
} |