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

56 lines
1.1 KiB
SCSS

@import "variables";
vn-chip {
border-radius: 1em;
background-color: $color-bg;
color: $color-font;
font-size: .9rem;
margin: .25em;
display: inline-flex;
align-items: center;
height: 2em;
max-width: 100%;
box-sizing: border-box;
&.colored {
background-color: $color-main;
color: $color-font-dark;
}
& > div {
display: flex;
align-items: center;
height: 100%;
padding: 0 .7em;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
line-height: 2em;
& > vn-avatar {
margin-left: -0.7em;
margin-right: .3em;
vertical-align: middle;
height: 1.9em;
width: 2em;
}
}
& > vn-icon {
margin-right: .12em;
margin-left: -.12em;
vertical-align: middle;
opacity: .6;
cursor: pointer;
transition: opacity 250ms ease-out;
&:hover,
&:focus {
opacity: 1;
}
}
}
vn-avatar {
display: inline-block;
min-width: 2em;
border-radius: 50%;
}