@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; &.small { height: 1.5em; & > div { padding: 0.6em; font-size: 0.8rem; } } &.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 .7em; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; & > vn-avatar { margin-left: -0.7em; margin-right: .3em; vertical-align: middle; height: 2em; 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%; }