2022-06-16 21:37:37 +08:00
|
|
|
.docs-sidebar {
|
|
|
|
width: 100vw;
|
2022-07-26 18:49:30 +03:00
|
|
|
|
2022-09-13 17:08:07 +03:00
|
|
|
/* Bottom and Left coord of the "Hide Sidebar" toggler */
|
|
|
|
--hide-sidebar-toggler-offset: 11px;
|
|
|
|
--hide-sidebar-toggler-size: 28px;
|
|
|
|
|
|
|
|
@media (--widest-desktop) {
|
|
|
|
--hide-sidebar-toggler-offset: var(--layout-padding-horizontal);
|
|
|
|
--hide-sidebar-toggler-size: 32px;
|
|
|
|
}
|
|
|
|
|
2022-08-27 15:21:50 +09:00
|
|
|
&--animated {
|
|
|
|
.docs-sidebar__content {
|
|
|
|
transition: transform 200ms ease-in-out;
|
|
|
|
will-change: transform;
|
|
|
|
}
|
|
|
|
|
|
|
|
.docs-sidebar__slider {
|
|
|
|
transition: transform 200ms ease-in-out;
|
|
|
|
will-change: transform;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--collapsed {
|
|
|
|
@media (--desktop) {
|
|
|
|
.docs-sidebar__content {
|
|
|
|
transform: translateX(-100%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.docs-sidebar__slider {
|
2022-09-13 17:08:07 +03:00
|
|
|
transform: translateX(var(--hide-sidebar-toggler-offset));
|
2022-08-27 15:21:50 +09:00
|
|
|
|
|
|
|
svg {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-16 21:37:37 +08:00
|
|
|
@media (--desktop) {
|
|
|
|
width: var(--layout-sidebar-width);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__content {
|
|
|
|
border-bottom: 1px solid var(--color-line-gray);
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: var(--layout-padding-vertical) var(--layout-padding-horizontal);
|
|
|
|
position: sticky;
|
|
|
|
top: var(--layout-height-header);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: auto;
|
2022-07-26 18:49:30 +03:00
|
|
|
|
2022-06-16 21:37:37 +08:00
|
|
|
@media (--desktop) {
|
|
|
|
height: calc(100vh - var(--layout-height-header));
|
|
|
|
border-right: 1px solid var(--color-line-gray);
|
|
|
|
border-bottom: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2022-09-15 20:12:57 +03:00
|
|
|
@media (--tablet) {
|
|
|
|
margin: 0 -8px;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-09-09 20:25:46 +09:00
|
|
|
@media (--mobile) {
|
2022-09-06 22:58:50 +03:00
|
|
|
margin: 0 -8px;
|
2022-09-09 20:25:46 +09:00
|
|
|
display: none;
|
2022-09-06 22:58:50 +03:00
|
|
|
}
|
|
|
|
|
2022-09-09 20:25:46 +09:00
|
|
|
&--visible {
|
|
|
|
display: block;
|
2022-06-16 21:37:37 +08:00
|
|
|
}
|
2022-06-27 20:06:56 +08:00
|
|
|
|
|
|
|
&--invisible {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2022-06-16 21:37:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&__section {
|
|
|
|
overflow: hidden;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
&--animated {
|
|
|
|
.docs-sidebar__section-list {
|
|
|
|
transition: max-height 200ms ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.docs-sidebar__section-toggler {
|
|
|
|
svg {
|
|
|
|
transition: transform 200ms ease-in;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--collapsed {
|
|
|
|
.docs-sidebar__section-list {
|
|
|
|
max-height: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.docs-sidebar__section-toggler {
|
|
|
|
svg {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__section:not(:first-child) {
|
2022-06-27 20:06:56 +08:00
|
|
|
margin-top: 19px;
|
2022-06-16 21:37:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&__section-title {
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 24px;
|
|
|
|
font-weight: 700;
|
|
|
|
z-index: 2;
|
|
|
|
position: relative;
|
|
|
|
height: 34px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__section-list-item {
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 21px;
|
|
|
|
height: 29px;
|
2022-09-06 22:58:50 +03:00
|
|
|
|
|
|
|
@media (--mobile){
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 21px;
|
|
|
|
}
|
2022-06-16 21:37:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&__section-title,
|
|
|
|
&__section-list-item {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 0 8px;
|
|
|
|
transition-property: background-color;
|
|
|
|
transition-duration: 0.1s;
|
2022-09-06 22:58:50 +03:00
|
|
|
|
2022-06-16 21:37:37 +08:00
|
|
|
@apply --squircle;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__section-title > span,
|
|
|
|
&__section-list-item > span {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__section-title-wrapper {
|
|
|
|
&:not(:last-child) {
|
|
|
|
padding-bottom: 1px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&__section-list-item-wrapper {
|
|
|
|
padding: 1px 0;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
li:last-child {
|
|
|
|
.docs-sidebar__section-list-item-wrapper {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&__section-title:not(&__section-title--active),
|
|
|
|
&__section-list-item:not(&__section-list-item--active) {
|
|
|
|
@media (--can-hover) {
|
|
|
|
&:hover {
|
|
|
|
background: var(--color-link-hover);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__section-title--active,
|
|
|
|
&__section-list-item--active {
|
|
|
|
background: linear-gradient(270deg, #129BFF 0%, #8A53FF 100%);
|
|
|
|
color: white;
|
|
|
|
|
|
|
|
@media (--can-hover) {
|
|
|
|
.docs-sidebar__section-toggler:hover {
|
|
|
|
background: rgba(0,0,0,0.3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__section-list {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
z-index: 1;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__section-toggler {
|
|
|
|
color: inherit;
|
|
|
|
background: transparent;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
transition-property: background-color;
|
|
|
|
transition-duration: 0.1s;
|
2022-07-26 18:49:30 +03:00
|
|
|
|
2022-06-16 21:37:37 +08:00
|
|
|
@apply --squircle;
|
|
|
|
|
|
|
|
@media (--can-hover) {
|
|
|
|
&:hover {
|
|
|
|
background: white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
svg {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&__toggler {
|
|
|
|
color: var(--color-text-second);
|
|
|
|
padding: 20px 15px;
|
|
|
|
border-bottom: 1px solid var(--color-line-gray);
|
2022-07-26 18:49:30 +03:00
|
|
|
|
2022-06-16 21:37:37 +08:00
|
|
|
@media (--desktop) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
svg {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-27 15:21:50 +09:00
|
|
|
&__slider {
|
|
|
|
display: none;
|
|
|
|
position: fixed;
|
2022-09-13 17:08:07 +03:00
|
|
|
transform: translateX(calc(var(--layout-sidebar-width) + var(--hide-sidebar-toggler-offset)));
|
|
|
|
bottom: var(--hide-sidebar-toggler-offset);
|
|
|
|
width: var(--hide-sidebar-toggler-size);
|
|
|
|
height: var(--hide-sidebar-toggler-size);
|
2022-08-27 15:21:50 +09:00
|
|
|
cursor: pointer;
|
|
|
|
background-color: var(--color-link-hover);
|
2022-09-09 22:54:53 +09:00
|
|
|
z-index: 10;
|
2022-08-27 15:21:50 +09:00
|
|
|
|
2022-09-13 17:08:07 +03:00
|
|
|
@apply --squircle;
|
|
|
|
|
2022-08-27 15:21:50 +09:00
|
|
|
@media (--desktop) {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-16 21:37:37 +08:00
|
|
|
&__logo {
|
|
|
|
display: none;
|
|
|
|
margin-top: auto;
|
|
|
|
background: white;
|
|
|
|
z-index: 2;
|
|
|
|
padding-bottom: 20px;
|
|
|
|
padding-top: 60px;
|
|
|
|
font-size: 14px;
|
2022-09-06 22:58:50 +03:00
|
|
|
color: var(--color-text-second);
|
2022-06-16 21:37:37 +08:00
|
|
|
|
|
|
|
@media (--desktop) {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-image{
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-caption {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-wrapper {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 18px;
|
|
|
|
padding: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-26 18:49:30 +03:00
|
|
|
}
|