254 lines
4.1 KiB
CSS
Executable File
254 lines
4.1 KiB
CSS
Executable File
body {
|
|
margin: 0;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--accent-color: #0053b8;
|
|
--lightest-gray: rgb(244, 244, 244);
|
|
--light-gray: rgb(144, 144, 144);
|
|
--medium-gray: rgb(96, 96, 96);
|
|
--dark-gray: rgb(13, 13, 13);
|
|
--header-height: 40px;
|
|
--animation-duration: 200ms;
|
|
--animation-timing-curve: ease-in-out;
|
|
--blue-joplin-color: #0053b8;
|
|
--light-blue-joplin-color: rgb(237, 241, 243);
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
position: sticky;
|
|
top: 0;
|
|
background-color: white;
|
|
box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.4);
|
|
padding: 0 0.5rem;
|
|
height: var(--header-height);
|
|
}
|
|
|
|
.login {
|
|
font-size: large;
|
|
fill: var(--blue-joplin-color);
|
|
max-width: fit-content;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
|
|
}
|
|
|
|
.menu-icon-btn {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.menu-icon {
|
|
width: 25px;
|
|
height: 25px;
|
|
fill: var(--medium-gray);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.menu-icon:hover {
|
|
fill: var(--dark-gray);
|
|
}
|
|
|
|
.sidebar {
|
|
flex-shrink: 0;
|
|
overflow: hidden;
|
|
width: 75px;
|
|
border-right: 1px solid var(--light-gray);
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: calc(100vh - var(--header-height));
|
|
padding-top: 1rem;
|
|
align-items: center;
|
|
justify-content: stretch;
|
|
transition: width var(--animation-duration) var(--animation-timing-curve);
|
|
position: sticky;
|
|
left: 0;
|
|
top: var(--header-height);
|
|
}
|
|
|
|
.sidebar .hidden-sidebar {
|
|
opacity: 0;
|
|
width: 0;
|
|
transition: opacity var(--animation-duration) var(--animation-timing-curve);
|
|
}
|
|
|
|
.sidebar.open .hidden-sidebar {
|
|
width: 100%;
|
|
height: auto;
|
|
opacity: 1;
|
|
}
|
|
|
|
.sidebar .top-sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.sidebar .channel-logo {
|
|
display: block;
|
|
width: 30px;
|
|
height: 30px;
|
|
transition: var(--animation-duration) var(--animation-timing-curve);
|
|
}
|
|
|
|
.sidebar.open .channel-logo {
|
|
width: 90px;
|
|
height: 90px;
|
|
}
|
|
|
|
.sidebar .channel-logo > img {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.middle-sidebar {
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
flex-grow: 1;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
.middle-sidebar,
|
|
.bottom-sidebar {
|
|
width: 100%;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
}
|
|
|
|
.vertical-center {
|
|
margin: 0;
|
|
position: absolute;
|
|
top: 50%;
|
|
-ms-transform: translateY(-50%);
|
|
transform: translateY(-50%);
|
|
/* border: 5px solid #FFFF00; */
|
|
text-align: center;
|
|
}
|
|
|
|
.content {
|
|
margin: 1rem;
|
|
}
|
|
|
|
.sidebar-list {
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
list-style: none;
|
|
}
|
|
|
|
.sidebar.open .sidebar-link {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.sidebar-icon {
|
|
width: 25px;
|
|
height: 25px;
|
|
flex-shrink: 0;
|
|
fill: var(--blue-joplin-color);
|
|
}
|
|
|
|
.sidebar-list .hidden-sidebar {
|
|
margin-left: 1.5rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.sidebar-link {
|
|
display: flex;
|
|
width: 100%;
|
|
padding: 0.7rem 0;
|
|
color: var(--light-gray);
|
|
text-decoration: none;
|
|
align-items: center;
|
|
padding-left: 25px;
|
|
}
|
|
|
|
.sidebar-list-item {
|
|
position: relative;
|
|
width: 100%;
|
|
fill: var(--light-gray);
|
|
}
|
|
|
|
.sidebar-list-item.active {
|
|
fill: var(--accent-color);
|
|
background-color: var(--light-blue-joplin-color);
|
|
}
|
|
|
|
.sidebar-list-item:hover {
|
|
background-color: var(--light-blue-joplin-color);
|
|
}
|
|
|
|
.sidebar-list-item.active::before {
|
|
content: "";
|
|
background-color: var(--accent-color);
|
|
height: 100%;
|
|
left: 0;
|
|
width: 3px;
|
|
position: absolute;
|
|
}
|
|
|
|
.sidebar.open {
|
|
width: 200px;
|
|
}
|
|
|
|
.your-channel {
|
|
color: var(--dark-gray);
|
|
font-size: 0.75rem;
|
|
font-weight: bold;
|
|
margin-bottom: 0.15rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.channel-name {
|
|
color: var(--medium-gray);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.sidebar .top-sidebar {
|
|
height: 30px;
|
|
transition: height var(--animation-duration) var(--animation-timing-curve);
|
|
}
|
|
|
|
.sidebar.open .top-sidebar {
|
|
height: 125px;
|
|
}
|
|
|
|
.sidebar .top-sidebar .hidden-sidebar {
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
|
|
/* .svg-icon {
|
|
width: 2em;
|
|
height: 2em;
|
|
}
|
|
|
|
.svg-icon:hover {
|
|
fill: var(--animation-duration);
|
|
}
|
|
|
|
.svg-icon path,
|
|
.svg-icon polygon,
|
|
.svg-icon rect {
|
|
fill: #4691f6;
|
|
}
|
|
|
|
.svg-icon circle {
|
|
stroke: #4691f6;
|
|
stroke-width: 1;
|
|
} */
|