69 lines
1.4 KiB
CSS
69 lines
1.4 KiB
CSS
/*
|
|
Copyright 2022 New Vector Ltd
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
.menu {
|
|
width: 100%;
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.menuItem {
|
|
cursor: pointer;
|
|
height: 48px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 12px;
|
|
color: var(--primary-content);
|
|
font-size: var(--font-size-body);
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.menuItem > * {
|
|
margin: 0 10px 0 0;
|
|
}
|
|
|
|
.menuItem > :last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.menuItem.focused,
|
|
.menuItem:hover {
|
|
background-color: var(--quinary-content);
|
|
}
|
|
|
|
.menuItem.focused:first-child,
|
|
.menuItem:hover:first-child {
|
|
border-top-left-radius: 8px;
|
|
border-top-right-radius: 8px;
|
|
}
|
|
|
|
.menuItem.focused:last-child,
|
|
.menuItem:hover:last-child {
|
|
border-bottom-left-radius: 8px;
|
|
border-bottom-right-radius: 8px;
|
|
}
|
|
|
|
.checkIcon {
|
|
position: absolute;
|
|
right: 16px;
|
|
}
|
|
|
|
.checkIcon * {
|
|
stroke: var(--primary-content);
|
|
}
|