| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413 |
- @supports(padding: max(0px)) {
- .post {
- padding-left: max(12px, env(safe-area-inset-left));
- padding-right: max(12px, env(safe-area-inset-right));
- }
- }
- #app-container {
- background-color: var(--ls-primary-background-color, #fff);
- position: relative;
- }
- #root {
- > div {
- color: var(--ls-primary-text-color, #24292e);
- font-size: var(--ls-page-text-size);
- }
- }
- .is-electron.is-mac .cp__sidebar-left-layout {
- }
- #app-container {
- flex: 0 0 100%;
- }
- #main-container {
- position: relative;
- height: 100%;
- }
- #main-content {
- &.is-left-sidebar-open {
- padding-left: var(--ls-left-sidebar-width);
- }
- &-container {
- @apply p-4 sm:px-8;
- font-size: 1em;
- }
- }
- html.is-mobile {
- #main-content.is-left-sidebar-open {
- padding-left: 0;
- }
- }
- #left-sidebar {
- width: 240px;
- height: 100%;
- top: 0;
- left: -240px;
- position: absolute;
- z-index: 11;
- opacity: 0;
- background-color: #002b36;
- .enter {
- opacity: 1;
- left: 0;
- }
- }
- #left-bar {
- background-color: var(--ls-primary-background-color);
- width: 75vw;
- max-width: 300px;
- > .head-wrap {
- background-color: var(--ls-search-background-color);
- }
- .close-panel-btn {
- color: var(--ls-active-primary-color);
- }
- nav > a {
- color: var(--ls-icon-color);
- }
- a {
- color: var(--ls-primary-text-color);
- }
- }
- .ls-mobile-left-sidebar {
- position: relative;
- z-index: -1;
- &.is-left-sidebar-open {
- z-index: var(--ls-z-index-level-3);
- }
- }
- .left-sidebar-inner {
- position: relative;
- height: 100%;
- z-index: 1;
- overflow: auto;
- > .wrap {
- padding-top: 60px;
- }
- .dropdown-wrapper {
- min-width: 180px;
- }
- a.item {
- user-select: none;
- > span {
- margin-top: 3px;
- }
- }
- .nav-content-item {
- padding: 32px 0 0 0;
- > .header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- user-select: none;
- cursor: pointer;
- padding: 4px 18px;
- > span {
- > a {
- opacity: .4;
- padding-left: 12px;
- display: none;
- transition: none;
- &:hover {
- opacity: 1 !important;
- }
- &:last-child {
- transform: translateY(-6px) translateX(2px) rotate(90deg);
- transform-origin: center center;
- transition: .15s transform;
- }
- }
- }
- &:hover {
- background-color: var(--ls-tertiary-background-color);
- * {
- opacity: 1 !important;
- }
- > span {
- > a {
- display: block;
- &:last-child {
- display: block;
- opacity: .6;
- }
- }
- }
- }
- &:active {
- opacity: .8;
- }
- }
- > .bd {
- display: none;
- ul {
- list-style: none;
- padding: 0;
- margin: 0;
- a {
- width: 100%;
- padding: 2px 20px;
- display: block;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- color: var(--ls-primary-text-color);
- &:hover {
- background-color: var(--ls-quaternary-background-color);
- }
- &:active {
- opacity: .7;
- }
- }
- }
- }
- &.is-expand {
- > .header > span > a {
- &:last-child {
- transform: translateY(2px) translateX(-3px);
- }
- }
- > .bd {
- display: block;
- }
- }
- }
- a.item:hover {
- background-color: var(--ls-quaternary-background-color);
- }
- }
- .white-theme .left-sidebar-inner a, .white-theme .left-bar a {
- color: var(--ls-primary-text-color);
- }
- .cp__sidebar-left-layout {
- @apply flex-col sm:block;
- background-color: var(--ls-secondary-background-color);
- width: var(--ls-left-sidebar-width);
- height: 100vh;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 9;
- transition: transform .25s;
- transform: translateX(-100%);
- overflow: hidden;
- &:before {
- content: " ";
- height: 3rem;
- width: calc(var(--ls-left-sidebar-width) - var(--ls-scrollbar-width));
- background-color: var(--ls-secondary-background-color);
- position: fixed;
- left: 0;
- top: 0;
- z-index: 2;
- }
- &.is-open {
- transform: translateX(0);
- }
- }
- .settings-modal {
- margin: -15px;
- }
- .cp__sidebar-main-layout {
- background-color: var(--ls-primary-background-color);
- }
- .cp__sidebar-main-content {
- width: 100%;
- max-width: var(--ls-main-content-max-width);
- flex: 1;
- h1.title {
- padding-right: 15px;
- }
- }
- .cp__sidebar-help {
- &-docs {
- @apply ml-2 mt-1;
- td {
- word-break: break-all;
- }
- th {
- width: 80%;
- }
- }
- &-btn {
- @apply font-bold fixed bottom-4
- rounded-full h-8 w-8 flex items-center justify-center font-bold
- opacity-70 hover:opacity-100;
- user-select: none;
- cursor: help;
- right: 24px;
- background-color: var(--ls-secondary-background-color);
- }
- }
- .cp__right-sidebar {
- z-index: var(--ls-z-index-level-1);
- transition: width 0.3s;
- background-color: var(--ls-secondary-background-color, #d8e1e8);
- &.closed {
- width: 0 !important;
- }
- &.open {
- width: var(--ls-right-sidebar-width);
- }
- &-scollable {
- min-height: 100%;
- overflow-y: scroll;
- }
- &-inner {
- padding-top: 0;
- position: relative;
- .resizer {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- width: 4px;
- user-select: none;
- cursor: col-resize !important;
- }
- }
- &-settings {
- @apply flex flex-row;
- margin: -15px;
- margin-bottom: 0;
- margin-top: 0;
- overflow: auto;
- &-btn {
- display: block;
- white-space: nowrap;
- }
- }
- &-topbar {
- position: sticky;
- position: -webkit-sticky;
- top: 0;
- left: 0;
- right: 0;
- background-color: var(--ls-secondary-background-color, #d8e1e8);
- z-index: 999;
- user-select: none;
- -webkit-app-region: drag;
- a, svg {
- -webkit-app-region: no-drag;
- }
- }
- .page {
- margin-top: 0;
- }
- .non-block-editor textarea,
- pre,
- pre.code {
- margin: 0;
- padding: 0;
- font-size: 90%;
- background: none;
- }
- .references {
- margin-left: 12px;
- }
- .sidebar-item {
- padding-top: 24px;
- padding-bottom: 24px;
- margin-bottom: 8px;
- .close {
- transform: scale(0.8);
- transition: transform 0.1s;
- &:hover {
- transform: scale(1);
- }
- }
- }
- }
- .cp__sidebar-main-content[data-is-full-width='true'] {
- max-width: 100vw;
- }
- .cp__sidebar-main-content[data-is-global-graph-pages='true'] {
- padding: 0;
- }
- @supports not (overflow-y: overlay) {
- .scrollbar-spacing {
- overflow-y: auto;
- }
- }
- @supports (overflow-y: overlay) {
- .scrollbar-spacing {
- overflow-y: overlay;
- }
- }
- .favorites li.dragging-target {
- border-left: 5px solid green;
- }
|