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

77 lines
1.4 KiB
SCSS
Raw Normal View History

2021-08-08 16:26:34 +00:00
.overflow-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.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;
margin: 0 10px 0 14px;
2021-08-08 16:26:34 +00:00
[dir=rtl] & {
margin: 0 14px 0 10px;
2021-08-08 16:26:34 +00:00
}
& > * {
margin: auto;
}
}
&__content {
min-width: 0;
flex: 1;
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 {
2021-08-08 16:26:34 +00:00
@extend .overflow-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;
margin-right: var(--sp-extra-tight);
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;
margin-right: 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;
}
[dir=rtl] & {
margin-right: 0;
margin-left: var(--sp-extra-tight);
& .emoji {
margin-right: 0;
margin-left: var(--sp-ultra-tight);
}
}
2021-08-04 09:52:59 +00:00
}