focalboard/webapp/src/components/sidebar.scss

130 lines
2.8 KiB
SCSS
Raw Normal View History

2020-10-25 22:25:55 +01:00
.Sidebar {
flex: 0 0 230px;
display: flex;
flex-direction: column;
min-height: 100%;
2020-10-27 11:40:32 +01:00
color: rgb(var(--sidebar-fg));
background-color: rgb(var(--sidebar-bg));
2020-11-13 00:52:54 +01:00
padding: 10px 0;
overflow-y: scroll;
2020-10-25 22:25:55 +01:00
&.hidden {
position: absolute;
top: 0;
left: 0;
z-index: 15;
min-height: 0;
height: 50px;
width: 50px;
background: none;
padding: 0;
> div {
padding: 0;
margin: auto;
}
}
2020-11-13 00:52:54 +01:00
>* {
flex-shrink: 0;
}
2020-10-25 22:25:55 +01:00
.octo-sidebar-header {
display: flex;
flex-direction: row;
font-weight: 600;
padding: 3px 20px;
margin-bottom: 5px;
.IconButton {
background-color: var(--sidebar-bg);
&:hover {
background-color: rgba(var(--sidebar-fg), 0.1);
}
}
&.show-button {
.hamburger-icon {
display: block;
}
.show-icon {
display: none;
}
&:hover {
.hamburger-icon {
display: none;
}
.show-icon {
display: block;
}
}
}
2020-10-25 22:25:55 +01:00
}
.octo-sidebar-item {
display: flex;
flex-direction: row;
font-weight: 500;
padding: 3px 20px;
2020-10-28 08:50:22 +01:00
&:hover {
background-color: rgba(var(--sidebar-fg), 0.05);
}
2020-10-25 22:25:55 +01:00
&.subitem {
2020-10-27 11:40:32 +01:00
color: rgba(var(--sidebar-fg), 0.6);
2020-10-25 22:25:55 +01:00
font-weight: 400;
margin-left: 20px;
}
2020-10-28 08:50:22 +01:00
&.no-views {
color: rgba(var(--sidebar-fg), 0.4);
&:hover {
background-color: rgba(var(--sidebar-bg));
}
2020-10-25 22:25:55 +01:00
}
.IconButton {
background-color: var(--sidebar-bg);
2020-10-25 22:25:55 +01:00
&:hover {
2020-10-27 11:40:32 +01:00
background-color: rgba(var(--sidebar-fg), 0.1);
2020-10-25 22:25:55 +01:00
}
}
.MenuWrapper {
display: none;
}
&:hover {
display: flex;
.MenuWrapper {
display: block;
2020-10-28 08:50:22 +01:00
}
}
&.expanded {
2020-10-28 08:50:22 +01:00
.SubmenuTriangleIcon {
transform: rotate(90deg);
2020-10-28 08:50:22 +01:00
}
2020-10-25 22:25:55 +01:00
}
.SubmenuTriangleIcon {
transition: 200ms ease-in-out;
transform: rotate(0deg);
}
2020-10-25 22:25:55 +01:00
}
2020-10-28 08:50:22 +01:00
.octo-sidebar-title {
cursor: pointer;
flex-grow: 1;
2020-11-16 19:28:21 +01:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2020-10-28 08:50:22 +01:00
}
.OptionsIcon, .SubmenuTriangleIcon, .DotIcon {
fill: rgba(var(--sidebar-fg), 0.5);
flex-shrink: 0;
}
2020-10-29 18:48:51 +01:00
.HideSidebarIcon {
stroke: rgba(var(--sidebar-fg), 0.5);
stroke-width: 6px;
}
2020-10-25 22:25:55 +01:00
}