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
|
2020-10-12 12:35:54 +00:00
|
|
|
$out-width: $base-width + rooms.$list-width
|
2020-10-11 13:26:24 +00:00
|
|
|
|
|
|
|
.c-groups
|
|
|
|
position: relative
|
|
|
|
width: $base-width
|
2020-10-12 11:19:10 +00:00
|
|
|
flex-shrink: 0
|
2020-10-19 07:20:08 +00:00
|
|
|
font-size: 22px
|
2020-10-12 11:19:10 +00:00
|
|
|
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
|
2020-10-12 11:19:10 +00:00
|
|
|
transition: width ease-out 0.12s
|
2020-10-12 12:35:54 +00:00
|
|
|
scrollbar-width: thin
|
|
|
|
scrollbar-color: c.$milder c.$darkest
|
2020-10-11 13:26:24 +00:00
|
|
|
|
|
|
|
&:not(&--closed):hover
|
|
|
|
width: $out-width
|
2020-10-12 12:35:54 +00:00
|
|
|
overflow-y: auto
|
2020-10-11 13:26:24 +00:00
|
|
|
|
|
|
|
&__container
|
|
|
|
width: $out-width
|
|
|
|
padding: $icon-padding
|
2020-10-21 05:17:01 +00:00
|
|
|
box-sizing: border-box
|
2020-10-11 13:26:24 +00:00
|
|
|
|
|
|
|
.c-group
|
2020-11-25 06:54:09 +00:00
|
|
|
position: relative
|
2020-10-11 13:26:24 +00:00
|
|
|
display: flex
|
|
|
|
align-items: center
|
|
|
|
padding: $icon-padding / 2 $icon-padding
|
|
|
|
cursor: pointer
|
|
|
|
border-radius: 8px
|
2020-11-25 06:54:09 +00:00
|
|
|
background-color: c.$darkest
|
2020-10-11 13:26:24 +00:00
|
|
|
|
|
|
|
&:hover
|
|
|
|
background-color: c.$darker
|
|
|
|
|
|
|
|
&__icon
|
|
|
|
width: $icon-size
|
|
|
|
height: $icon-size
|
2020-10-12 12:35:54 +00:00
|
|
|
background-color: c.$mild
|
2020-10-11 13:26:24 +00:00
|
|
|
border-radius: 50%
|
|
|
|
margin-right: $icon-padding * 2
|
|
|
|
flex-shrink: 0
|
2020-10-12 13:26:10 +00:00
|
|
|
transition: border-radius ease-out 0.12s
|
|
|
|
|
|
|
|
&--active &__icon
|
|
|
|
border-radius: 28%
|
2020-10-11 13:26:24 +00:00
|
|
|
|
|
|
|
&__name
|
|
|
|
white-space: nowrap
|
|
|
|
overflow: hidden
|
|
|
|
text-overflow: ellipsis
|
2020-10-12 13:26:10 +00:00
|
|
|
|
2020-11-25 06:54:09 +00:00
|
|
|
&__number
|
|
|
|
position: absolute
|
|
|
|
right: 240px
|
|
|
|
bottom: 0px
|
|
|
|
background: #ddd
|
|
|
|
color: #000
|
|
|
|
font-size: 14px
|
|
|
|
line-height: 1
|
|
|
|
padding: 3px 4px
|
|
|
|
border-radius: 7px
|
|
|
|
border: 3px solid c.$darkest
|
|
|
|
opacity: 0
|
|
|
|
transform: translate(6px, 6px)
|
|
|
|
transition: transform 0.15s ease-out, opacity 0.15s ease-out
|
|
|
|
pointer-events: none
|
|
|
|
|
|
|
|
@at-root .c-group:hover &
|
|
|
|
border-color: c.$darker
|
|
|
|
|
|
|
|
&--active
|
|
|
|
opacity: 1
|
|
|
|
transform: translate(0px, 0px)
|
|
|
|
|
2020-10-12 13:26:10 +00:00
|
|
|
.c-group-marker
|
|
|
|
position: absolute
|
|
|
|
top: 5px
|
2020-10-15 03:43:37 +00:00
|
|
|
opacity: 0
|
2020-10-12 13:26:10 +00:00
|
|
|
transform: translateY(8px)
|
2020-10-15 03:43:37 +00:00
|
|
|
transition: transform ease 0.12s, opacity ease-out 0.12s
|
2020-10-12 13:26:10 +00:00
|
|
|
height: $icon-size - 2px
|
|
|
|
width: 6px
|
|
|
|
background-color: #ccc
|
|
|
|
border-radius: 0px 6px 6px 0px
|