react-toolbox/components/chip/theme.scss

69 lines
1.3 KiB
SCSS
Raw Normal View History

2016-06-04 23:06:59 +03:00
@import "../colors";
@import "../globals";
@import "../mixins";
2016-04-02 14:37:21 +03:00
@import "./config";
.chip {
position: relative;
display: inline-block;
max-width: 100%;
2016-04-10 13:20:30 +03:00
padding: 0 $chip-padding;
margin-right: $chip-margin-right;
overflow: hidden;
font-size: $chip-font-size;
2016-04-02 14:37:21 +03:00
line-height: $chip-height;
2016-04-10 13:20:30 +03:00
color: $chip-color;
text-overflow: ellipsis;
white-space: nowrap;
2016-04-10 13:20:30 +03:00
background-color: $chip-background;
border-radius: $chip-height;
2016-04-02 14:37:21 +03:00
}
.avatar {
2016-04-02 14:37:21 +03:00
padding-left: 0;
> [data-react-toolbox="avatar"] {
2016-04-10 13:20:30 +03:00
width: $chip-height;
2016-04-02 14:37:21 +03:00
height: $chip-height;
margin-right: $chip-icon-margin-right;
vertical-align: middle;
2016-04-02 14:37:21 +03:00
> span {
font-size: $chip-icon-font-size;
line-height: $chip-height;
2016-04-02 14:37:21 +03:00
}
}
}
.deletable {
padding-right: $chip-remove-size + 2 * $chip-remove-margin;
2016-04-02 14:37:21 +03:00
}
.delete {
2016-04-10 13:20:30 +03:00
position: absolute;
right: 0;
2016-04-02 14:37:21 +03:00
display: inline-block;
2016-04-10 13:20:30 +03:00
width: $chip-remove-size;
height: $chip-remove-size;
padding: $chip-remove-margin;
2016-04-10 13:20:30 +03:00
margin: $chip-remove-margin;
vertical-align: middle;
2016-04-10 13:20:30 +03:00
cursor: pointer;
}
2016-04-02 14:37:21 +03:00
.delete:hover .deleteIcon {
background: $chip-remove-background-hover;
}
.deleteIcon {
2016-04-10 13:20:30 +03:00
vertical-align: top;
background: $chip-remove-background;
border-radius: $chip-remove-size;
2016-04-02 14:37:21 +03:00
.deleteX {
fill: transparent;
2016-04-05 12:28:56 +03:00
stroke-width: $chip-remove-stroke-width;
stroke: $chip-remove-color;
2016-04-02 14:37:21 +03:00
}
}