Cadence Ember
338ac54918
All checks were successful
continuous-integration/drone/push Build is passing
74 lines
1.4 KiB
Sass
74 lines
1.4 KiB
Sass
@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
|
|
|
|
.c-groups
|
|
position: relative
|
|
width: $base-width
|
|
flex-shrink: 0
|
|
font-size: 22px
|
|
font-weight: 500
|
|
|
|
&__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
|
|
|
|
&:not(&--closed):hover
|
|
width: $out-width
|
|
overflow-y: auto
|
|
|
|
&__container
|
|
width: $out-width
|
|
padding: $icon-padding
|
|
box-sizing: border-box
|
|
|
|
.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
|
|
border-radius: 50%
|
|
margin-right: $icon-padding * 2
|
|
flex-shrink: 0
|
|
transition: border-radius ease-out 0.12s
|
|
|
|
&--active &__icon
|
|
border-radius: 28%
|
|
|
|
&__name
|
|
white-space: nowrap
|
|
overflow: hidden
|
|
text-overflow: ellipsis
|
|
|
|
.c-group-marker
|
|
position: absolute
|
|
top: 5px
|
|
opacity: 0
|
|
transform: translateY(8px)
|
|
transition: transform ease 0.12s, opacity ease-out 0.12s
|
|
height: $icon-size - 2px
|
|
width: 6px
|
|
background-color: #ccc
|
|
border-radius: 0px 6px 6px 0px
|