focalboard/webapp/src/components/sidebar.scss

213 lines
4.1 KiB
SCSS
Raw Normal View History

2020-10-25 22:25:55 +01:00
.Sidebar {
2021-01-22 13:24:08 +01:00
flex: 0 0 240px;
2020-10-25 22:25:55 +01:00
2021-01-22 13:24:08 +01:00
display: flex;
flex-direction: column;
2020-10-25 22:25:55 +01:00
2021-01-22 13:24:08 +01:00
min-height: 100%;
color: rgb(var(--sidebar-fg));
background-color: rgb(var(--sidebar-bg));
padding: 12px 0;
2020-10-25 22:25:55 +01:00
&.hidden {
position: absolute;
top: 0;
left: 0;
z-index: 5;
2020-10-25 22:25:55 +01:00
min-height: 0;
height: 50px;
width: 50px;
background: none;
padding: 0;
2021-01-22 13:24:08 +01:00
>div {
2020-10-25 22:25:55 +01:00
padding: 0;
margin: auto;
}
}
2020-11-13 00:52:54 +01:00
>* {
flex: 0 0 auto;
2020-11-13 00:52:54 +01:00
}
2021-02-17 23:51:39 +01:00
.logo {
display: flex;
flex-direction: row;
align-items: center;
.LogoWithNameIcon, .LogoWithNameWhiteIcon {
max-height: 24px;
width: auto;
}
.version {
font-size: 11px;
font-weight: 500;
color: rgba(var(--sidebar-fg), 0.8);
}
2021-01-28 22:51:45 +01:00
}
2021-01-15 03:14:03 +01:00
.octo-sidebar-list {
flex: 1 1 auto;
overflow-y: auto;
max-width: 250px;
2021-01-22 13:24:08 +01:00
>div {
margin-bottom: 16px;
}
}
2020-10-25 22:25:55 +01:00
.octo-sidebar-header {
display: flex;
flex-direction: row;
font-weight: 600;
padding: 3px 20px;
2021-01-22 13:24:08 +01:00
margin-bottom: 16px;
height: 48px;
align-items: center;
2021-01-28 23:10:04 +01:00
&:hover {
background-color: rgba(var(--sidebar-fg), 0.08);
}
2021-01-22 13:24:08 +01:00
button {
font-size: 16px;
font-weight: 600;
}
2021-01-15 03:14:03 +01:00
2021-01-21 19:42:05 +01:00
>.heading {
2021-01-15 03:14:03 +01:00
line-height: 30px;
2021-01-21 19:42:05 +01:00
cursor: default;
2021-02-17 23:51:39 +01:00
flex-grow: 1;
2021-01-15 03:14:03 +01:00
}
2020-11-17 23:11:04 +01:00
>.IconButton {
background-color: var(--sidebar-bg);
2021-01-22 13:24:08 +01:00
&:hover {
background-color: rgba(var(--sidebar-fg), 0.1);
}
}
2021-01-15 03:14:03 +01:00
&.show-button {
.hamburger-icon {
display: block;
}
2021-01-22 13:24:08 +01:00
.show-icon {
display: none;
}
2021-01-22 13:24:08 +01:00
&:hover {
.hamburger-icon {
display: none;
}
2021-01-22 13:24:08 +01:00
.show-icon {
display: block;
}
}
}
2020-10-25 22:25:55 +01:00
}
.octo-sidebar-item {
display: flex;
flex-direction: row;
font-weight: 500;
2021-01-22 13:24:08 +01:00
padding: 0 16px 0 8px;
height: 36px;
align-items: center;
2020-10-28 08:50:22 +01:00
&:hover {
2021-01-22 13:24:08 +01:00
background-color: rgba(var(--sidebar-fg), 0.08);
2020-10-28 08:50:22 +01:00
}
2021-01-22 13:24:08 +01:00
2020-10-25 22:25:55 +01:00
&.subitem {
2021-01-22 13:24:08 +01:00
padding-left: 20px;
color: rgba(var(--sidebar-fg), 0.64);
2020-10-25 22:25:55 +01:00
font-weight: 400;
}
2021-01-22 13:24:08 +01:00
2020-10-28 08:50:22 +01:00
&.no-views {
color: rgba(var(--sidebar-fg), 0.4);
2021-01-22 13:24:08 +01:00
2020-10-28 08:50:22 +01:00
&:hover {
background-color: rgba(var(--sidebar-bg));
}
2020-10-25 22:25:55 +01:00
}
2021-02-01 18:29:54 +01:00
>.Icon {
stroke: rgba(var(--sidebar-fg), 0.3);
height: 14px;
width: 14px;
margin-right: 8px;
flex-shrink: 0;
}
2020-11-17 23:11:04 +01:00
>.IconButton {
background-color: var(--sidebar-bg);
2021-01-22 13:24:08 +01:00
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
}
}
2021-01-22 13:24:08 +01:00
.MenuWrapper {
display: none;
}
2021-01-22 13:24:08 +01:00
2021-03-24 10:21:41 +01:00
.Menu.left {
right: -32px;
}
&:hover {
display: flex;
2021-01-22 13:24:08 +01:00
.MenuWrapper {
display: block;
2020-10-28 08:50:22 +01:00
}
}
&.expanded {
2020-11-16 21:29:25 +01:00
.DisclosureTriangleIcon {
transform: rotate(90deg);
2020-10-28 08:50:22 +01:00
}
2020-10-25 22:25:55 +01:00
}
2021-01-22 13:24:08 +01:00
2020-11-16 21:29:25 +01:00
.DisclosureTriangleIcon {
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 {
2021-01-22 13:24:08 +01:00
font-weight: 600;
2020-10-28 08:50:22 +01:00
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
}
2021-01-22 13:24:08 +01:00
.OptionsIcon,
.DisclosureTriangleIcon,
.DotIcon {
fill: rgba(var(--sidebar-fg), 0.5);
flex-shrink: 0;
}
2020-11-17 23:11:04 +01:00
.Menu .OptionsIcon {
fill: unset;
}
2020-10-29 18:48:51 +01:00
.HideSidebarIcon {
stroke: rgba(var(--sidebar-fg), 0.5);
stroke-width: 6px;
}
.Button {
min-height: 30px;
}
2020-10-25 22:25:55 +01:00
}