openreplay/frontend/app/components/ui/SegmentSelection/segmentSelection.css
2022-03-04 11:32:09 +01:00

82 lines
No EOL
1.3 KiB
CSS

.wrapper {
display: flex;
align-items: center;
justify-content: space-around;
border: solid thin $gray-light;
border-radius: 3px;
overflow: hidden;
& .item {
color: $gray-medium;
font-weight: medium;
padding: 10px;
flex: 1;
text-align: center;
cursor: pointer;
background-color: $gray-lightest;
display: flex;
align-items: center;
justify-content: center;
white-space: nowrap;
border-right: solid thin $gray-light;
& span svg {
fill: $gray-medium;
}
&[data-active=true] {
background-color: white;
color: $teal;
& span svg {
fill: $teal;
}
}
&:last-child {
border: none;
}
&:hover {
background-color: white;
color: $teal;
& span svg {
fill: $teal;
}
}
}
}
.primary {
border: solid thin $teal;
& .item {
color: $teal;
background-color: white;
border-right: solid thin $teal;
& svg {
fill: $teal !important;
}
&[data-active=true] {
background-color: $teal;
color: white;
& svg {
fill: white !important;
}
}
}
}
.small .item {
padding: 4px 8px;
}
.extraSmall .item {
padding: 2px 4px !important;
font-size: 12px;
}
.icons .item {
padding: 4px !important;
font-size: 12px;
}