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

81 lines
1.6 KiB
SCSS
Raw Normal View History

2019-02-06 10:24:29 +00:00
@import "variables";
2018-09-04 09:49:00 +00:00
vn-chip {
2020-04-02 12:20:57 +00:00
border-radius: 16px;
2019-10-18 19:36:30 +00:00
background-color: $color-bg;
color: $color-font;
2019-10-30 15:57:14 +00:00
font-size: .9rem;
2020-04-02 12:52:02 +00:00
margin: 4px;
2019-10-18 19:36:30 +00:00
display: inline-flex;
align-items: center;
2020-04-02 12:20:57 +00:00
height: 32px;
2019-10-30 15:57:14 +00:00
max-width: 100%;
box-sizing: border-box;
2018-09-14 07:10:30 +00:00
2020-02-10 06:24:12 +00:00
&.small {
2020-04-02 12:52:02 +00:00
height: 24px;
2020-02-10 06:24:12 +00:00
& > div {
2020-04-02 12:20:57 +00:00
padding: 9px;
font-size: .8rem;
2020-02-10 06:24:12 +00:00
}
}
2019-10-18 19:36:30 +00:00
&.colored {
background-color: $color-main;
2019-12-23 07:05:58 +00:00
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 {
2019-10-18 19:36:30 +00:00
color: $color-font-dark;
2019-12-23 07:05:58 +00:00
background-color: $color-bg-dark
2018-09-07 10:20:57 +00:00
}
2019-12-23 07:05:58 +00:00
2019-10-18 19:36:30 +00:00
& > div {
display: flex;
align-items: center;
height: 100%;
2020-04-02 12:20:57 +00:00
padding: 0 11px;
2019-10-30 15:57:14 +00:00
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
2018-09-07 10:20:57 +00:00
2019-10-18 19:36:30 +00:00
& > vn-avatar {
2020-04-02 12:52:02 +00:00
margin-left: -11px;
2020-04-02 12:20:57 +00:00
margin-right: 4px;
2019-10-30 15:57:14 +00:00
vertical-align: middle;
2020-04-02 12:20:57 +00:00
height: 32px;
width: 32px;
2019-10-18 19:36:30 +00:00
}
2018-09-04 09:49:00 +00:00
}
2019-10-18 19:36:30 +00:00
& > vn-icon {
2020-04-02 12:52:02 +00:00
margin-right: 1px;
margin-left: -1px;
2019-10-18 19:36:30 +00:00
vertical-align: middle;
opacity: .6;
cursor: pointer;
transition: opacity 250ms ease-out;
2018-09-14 07:10:30 +00:00
2019-10-18 19:36:30 +00:00
&:hover,
&:focus {
opacity: 1;
}
2018-09-14 07:10:30 +00:00
}
2019-10-18 19:36:30 +00:00
}
vn-avatar {
display: inline-block;
2020-04-02 12:20:57 +00:00
min-width: 32px;
2019-10-18 19:36:30 +00:00
border-radius: 50%;
2018-09-04 09:49:00 +00:00
}