focalboard/webapp/src/components/sidebar.scss

82 lines
1.6 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-10-25 22:25:55 +01:00
padding: 10px 0;
&.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;
}
}
.octo-sidebar-header {
display: flex;
flex-direction: row;
font-weight: 600;
padding: 3px 20px;
margin-bottom: 5px;
.show-button {
.HamburgerIcon {
display: block;
}
.ShowSidebarIcon {
display: none;
}
&:hover {
.HamburgerIcon {
display: none;
}
.ShowSidebarIcon {
display: block;
}
}
}
2020-10-25 22:25:55 +01:00
}
.octo-sidebar-item {
display: flex;
flex-direction: row;
font-weight: 500;
padding: 3px 20px;
&.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;
}
}
.octo-sidebar-title {
cursor: pointer;
flex-grow: 1;
}
.octo-sidebar-item {
&:hover {
2020-10-27 11:40:32 +01:00
background-color: rgba(var(--sidebar-fg), 0.05);
2020-10-25 22:25:55 +01:00
}
.octo-button {
&: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
}
}
}
}