salix/front/core/components/chip/style.scss

84 lines
1.6 KiB
SCSS

@import "variables";
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 {
background-color: $color-main;
color: $color-font-bg;
}
&.notice {
background-color: $color-notice-medium
}
&.success {
background-color: $color-success-medium;
}
&.warning {
background-color: $color-main-medium;
}
&.alert {
background-color: $color-alert-medium;
}
&.message {
color: $color-font-dark;
background-color: $color-bg-dark
}
& > 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;
}
}
}
vn-avatar {
display: inline-block;
min-width: 28px;
border-radius: 50%;
}