cinny/src/app/organisms/room/RoomViewCmdBar.scss

63 lines
1.2 KiB
SCSS
Raw Normal View History

@use '../../partials/flex';
@use '../../partials/text';
@use '../../partials/dir';
2021-08-08 16:26:34 +00:00
.cmd-bar {
2021-08-04 09:52:59 +00:00
--cmd-bar-height: 28px;
min-height: var(--cmd-bar-height);
2021-08-08 16:26:34 +00:00
display: flex;
&__info {
display: flex;
width: 40px;
@include dir.side(margin, 10px, 14px);
2021-08-08 16:26:34 +00:00
& > * {
margin: auto;
}
}
&__content {
@extend .cp-fx__item-one;
2021-08-08 16:26:34 +00:00
display: flex;
&-suggestions {
2021-08-08 16:26:34 +00:00
height: 100%;
white-space: nowrap;
display: flex;
align-items: center;
2021-08-04 09:52:59 +00:00
& > .text {
@extend .cp-txt__ellipsis;
2021-08-04 09:52:59 +00:00
}
}
}
2021-08-08 16:26:34 +00:00
}
.cmd-item {
--cmd-item-bar: inset 0 -2px 0 0 var(--bg-caution);
display: inline-flex;
align-items: center;
@include dir.side(margin, 0, var(--sp-extra-tight));
2021-08-08 16:26:34 +00:00
padding: 0 var(--sp-extra-tight);
height: 100%;
border-radius: var(--bo-radius) var(--bo-radius) 0 0;
cursor: pointer;
2021-08-09 09:13:43 +00:00
& .emoji {
width: 20px;
height: 20px;
@include dir.side(margin, 0, var(--sp-ultra-tight));
2021-08-09 09:13:43 +00:00
}
2021-08-08 16:26:34 +00:00
&:hover {
background-color: var(--bg-caution-hover);
}
&:focus {
2021-08-09 09:13:43 +00:00
background-color: var(--bg-caution-active);
2021-08-08 16:26:34 +00:00
box-shadow: var(--cmd-item-bar);
border-bottom: 2px solid transparent;
outline: none;
}
2021-08-04 09:52:59 +00:00
}