modmapper-web/styles/Sidebar.module.css

157 lines
2.5 KiB
CSS
Raw Normal View History

.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;
2022-01-24 00:39:36 +00:00
font-size: 0.875rem;
2022-02-27 06:17:52 +00:00
border: 1px solid #222222;
height: 100%;
}
@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%;
2022-02-27 06:17:52 +00:00
display: flex;
justify-content: right;
}
2022-03-15 04:47:31 +00:00
.title {
font-size: 1.75rem;
}
.close {
display: block;
font-size: 24px;
border: none;
background: none;
cursor: pointer;
margin-top: -16px;
}
.close:hover {
color: #888888;
}
2022-02-27 06:17:52 +00:00
.hide {
position: fixed;
display: block;
font-size: 0px;
2022-02-27 06:17:52 +00:00
border: none;
cursor: pointer;
top: 46%;
left: 299px;
z-index: 4;
background-color: #fbefd5;
padding: 12px 2px;
2022-02-27 06:17:52 +00:00
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);
2022-02-27 06:17:52 +00:00
}
@media only screen and (max-width: 600px) {
.hide {
top: calc(55% - 21px);
2022-02-27 06:17:52 +00:00
left: 47%;
padding: 2px 12px;
2022-02-27 06:17:52 +00:00
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);
2022-02-27 06:17:52 +00:00
}
}
.hide:hover {
color: #888888;
}
.open {
position: fixed;
display: block;
font-size: 0px;
2022-02-27 06:17:52 +00:00
border: none;
cursor: pointer;
top: 46%;
left: -1px;
z-index: 3;
background-color: #fbefd5;
padding: 12px 2px;
2022-02-27 06:17:52 +00:00
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);
2022-02-27 06:17:52 +00:00
}
@media only screen and (max-width: 600px) {
.open {
top: initial;
bottom: -1px;
2022-02-27 06:17:52 +00:00
left: 47%;
padding: 2px 12px;
2022-02-27 06:17:52 +00:00
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);
2022-02-27 06:17:52 +00:00
}
}
.cell-name-header {
line-height: 1.75rem;
word-wrap: break-word;
}
2022-02-27 06:17:52 +00:00
.sidebar-content {
2022-02-27 06:17:52 +00:00
display: flex;
flex-direction: column;
height: 100%;
}
.sidebar-modified-date {
margin-top: auto;
padding-top: 12px;
padding-bottom: 12px;
2022-02-27 06:17:52 +00:00
}
.subheader {
margin-top: 0;
}