Carbon/src/sass/components/groups.sass

59 lines
1.1 KiB
Sass
Raw Normal View History

2020-10-11 13:26:24 +00:00
@use "../colors" as c
@use "./rooms" as rooms
$icon-size: 48px
$icon-padding: 8px
$base-width: $icon-size + $icon_padding * 4
$out-width: $base-width + rooms.$list-width
2020-10-11 13:26:24 +00:00
.c-groups
position: relative
width: $base-width
flex-shrink: 0
font-size: 24px
font-weight: 500
2020-10-11 13:26:24 +00:00
&__display
background-color: c.$darkest
overflow: hidden
width: $base-width
position: absolute
left: 0
top: 0
bottom: 0
right: 0
transition: width ease-out 0.12s
scrollbar-width: thin
scrollbar-color: c.$milder c.$darkest
2020-10-11 13:26:24 +00:00
&:not(&--closed):hover
width: $out-width
overflow-y: auto
2020-10-11 13:26:24 +00:00
&__container
width: $out-width
padding: $icon-padding
.c-group
display: flex
align-items: center
padding: $icon-padding / 2 $icon-padding
cursor: pointer
border-radius: 8px
&:hover
background-color: c.$darker
&__icon
width: $icon-size
height: $icon-size
background-color: c.$mild
2020-10-11 13:26:24 +00:00
border-radius: 50%
margin-right: $icon-padding * 2
flex-shrink: 0
&__name
white-space: nowrap
overflow: hidden
text-overflow: ellipsis