Files
onspring-api-docs/src/app/components/SideBar.module.css
T

157 lines
2.2 KiB
CSS

.container {
display: flex;
flex-direction: column;
height: 100%;
border-right: 1px solid #848586;
padding: 0 1rem;
overflow: auto;
background-color: inherit;
width: 300px;
}
@media screen and (max-width: 1000px) {
.container {
display: none;
}
}
.link {
text-decoration: none;
cursor: pointer;
}
.titleContainer {
position: sticky;
top: 0;
display: flex;
align-items: center;
justify-content: space-between;
background-color: inherit;
padding-top: 1rem;
}
.title {
font-size: 1rem;
white-space: nowrap;
margin-bottom: 1rem;
}
.onspring {
font-weight: bold;
}
.api {
font-weight: bold;
color: #ee7203;
}
.list {
display: flex;
flex-direction: column;
gap: 0.25rem;
white-space: nowrap;
width: 100%;
}
.listItem {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.25rem;
cursor: pointer;
padding-left: 0.5rem;
margin-right: 1rem;
width: 100%;
}
.link,
.activeLink {
text-decoration: none;
}
.link:hover {
color: #64adac;
}
.activeLink {
background-color: #1e1e1e;
}
.expandable {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
gap: 3rem;
flex: 1 1 auto;
}
.chevronContainer {
display: flex;
justify-content: center;
}
.chevron {
margin-left: 0.5rem;
}
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 20px;
margin-bottom: 1rem;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
text-align: center;
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked+.slider {
background-color: #64adac;
}
input:focus+.slider {
box-shadow: 0 0 1px #64adac;
}
input:checked+.slider:before {
-webkit-transform: translateX(40px);
-ms-transform: translateX(40px);
transform: translateX(40px);
}
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}