modmapper-web/styles/Sidebar.module.css
Tyler Hallada e7e392a7b7 Replace unicode sidebar icons with svgs
Unicode characters weren't rendering reliably on all platforms.
2022-03-14 21:28:08 -04:00

150 lines
2.4 KiB
CSS

.sidebar {
position: fixed;
top: 0;
left: 0;
z-index: 3;
height: 100%;
background-color: #fbefd5;
overflow-x: hidden;
width: 300px;
padding: 12px;
padding-top: 24px;
font-size: 0.875rem;
border: 1px solid #222222;
}
@media only screen and (max-width: 600px) {
.sidebar {
top: initial;
bottom: 0;
left: 0;
height: 45%;
width: 100%;
border-right: none;
border-top: 1px solid #222222;
}
}
.sidebar-header {
position: sticky;
top: 0px;
width: 100%;
display: flex;
justify-content: right;
}
.close {
display: block;
font-size: 24px;
border: none;
background: none;
cursor: pointer;
margin-top: -16px;
}
.close:hover {
color: #888888;
}
.hide {
position: fixed;
display: block;
font-size: 0px;
border: none;
cursor: pointer;
top: 46%;
left: 299px;
z-index: 4;
background-color: #fbefd5;
padding: 12px 2px;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
border-top: 2px solid #222222;
border-bottom: 2px solid #222222;
border-right: 2px solid #222222;
}
.hide span {
transform: rotate(180deg);
}
@media only screen and (max-width: 600px) {
.hide {
top: calc(55% - 21px);
left: 47%;
padding: 2px 12px;
border-top-right-radius: 8px;
border-bottom-right-radius: 0px;
border-top-left-radius: 8px;
border-bottom: none;
border-left: 2px solid #222222;
}
.hide span {
transform: rotate(90deg);
}
}
.hide:hover {
color: #888888;
}
.open {
position: fixed;
display: block;
font-size: 0px;
border: none;
cursor: pointer;
top: 46%;
left: -1px;
z-index: 3;
background-color: #fbefd5;
padding: 12px 2px;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
border-top: 2px solid #222222;
border-bottom: 2px solid #222222;
border-right: 2px solid #222222;
}
.open span {
transform: rotate(0deg);
}
@media only screen and (max-width: 600px) {
.open {
top: initial;
bottom: -1px;
left: 47%;
padding: 2px 12px;
border-top-right-radius: 8px;
border-bottom-right-radius: 0px;
border-top-left-radius: 8px;
border-bottom: none;
border-left: 2px solid #222222;
}
.open span {
transform: rotate(270deg);
}
}
.cell-name-header {
line-height: 1.75rem;
word-wrap: break-word;
}
.default-sidebar {
display: flex;
flex-direction: column;
height: 100%;
}
.sidebar-modified-date {
margin-top: auto;
}
.subheader {
margin-top: 0;
}