Add Lotusdocs theme

This commit is contained in:
Abner Coimbre
2026-01-11 16:46:05 -08:00
parent d051d46d1f
commit 8a4d04db58
577 changed files with 40404 additions and 0 deletions

View File

@@ -0,0 +1,276 @@
// Docs main content
//
// _content.scss
//
:root {
--content-icon-color: var(--primary);
--content-icon-bg: var(--sidebar-icon-bg);
--content-icon-border: var(--sidebar-icon-bg);
--content-link-color: var(--primary);
--ordered-list-bg: var(--gray-300);
--ordered-list-color: var(--gray-800);
--blockquote-border-color: var(--gray-300);
--code-block-bg: #212d63;
--inline-code-bg: var(--gray-100);
--inline-code-border: 1px solid var(--gray-400);
}
[data-dark-mode] {
--content-icon-color: var(--primary-200);
--content-icon-bg: hsl(var(--primary-hsl), 0.15);
--content-icon-border: var(--primary-800);
--content-link-color: var(--primary-300);
--ordered-list-bg: var(--gray-700);
--ordered-list-color: var(--gray-200);
--blockquote-border-color: var(--primary-200);
--code-block-bg: var(--gray-900);
--inline-code-bg: var(--gray-800);
--inline-code-border: 1px solid var(--gray-600);
}
.docs-content {
order: 1;
}
// Links
.docs-content .main-content a {
font-weight: 600;
color: var(--content-link-color);
&:hover {
text-decoration: underline 2px var(--primary-200);
text-underline-offset: 2.5px !important;
transition: 0s !important;
}
// &.anchor i {
// transform: rotate(-45deg);
// }
code {
color: var(--content-link-color);
}
}
.docs-content .main-content {
#edit-this-page a,
#list-item a {
&:hover {
text-decoration: none !important;
}
}
}
.docs-content .main-content li {
color: var(--text-default);
}
.docs-content .main-content h1,
.docs-content .main-content h2,
.docs-content .main-content h3,
.docs-content .main-content h4,
.docs-content .main-content h5 {
font-weight: 700;
color: var(--body-color);
}
.docs-content .content-title {
font-weight: 700;
align-self: center;
}
i {
&.title-icon {
width: 44px;
height: 44px;
color: var(--content-icon-color);
background-color: var(--content-icon-bg);
display: inline-flex !important;
align-self: center;
align-items: center;
justify-content: center;
font-size: 24px;
// border: solid 1px var(--content-icon-border);
border-radius: 5px;
@media (max-width: 768px) {
align-self: auto;
}
}
}
.docs-content p {
&.lead {
color: var(--text-muted);
font-weight: 400;
}
}
@media (max-width: 1199px) {
.docs-content {
padding-left: calc(var(--bs-gutter-x) * 1.05);
padding-right: calc(var(--bs-gutter-x) * 1.05);
h2 {
margin-bottom: 1rem;
}
p {
&.lead {
font-size: 1rem;
}
}
}
}
// Images
.docs-content .main-content {
img,
svg {
max-width: 100%;
height: auto;
}
// External link icon
a svg {
vertical-align: middle;
padding-bottom: 0.25rem;
margin-left: 3px;
}
}
// Unordered List Styling
.docs-content .main-content ul {
padding-left: 0;
> li {
position: relative;
padding-left: 32px;
// margin-bottom: 5px;
}
> li::before {
content: "";
position: absolute;
width: 6px;
height: 6px;
left: 8px;
top: 10px;
border-radius: 30%;
background: var(--gray-500);
}
}
// Ordered List Styling
.docs-content .main-content ol {
counter-reset: listitem;
> li {
counter-increment: listitem;
position: relative;
padding-left: 32px;
}
> li::before {
content: counter(listitem);
background: var(--ordered-list-bg);
color: var(--ordered-list-color);
font-size: 12px;
font-weight: 500;
line-height: 10px;
text-align: center;
padding: 5px 0;
width: 20px;
height: 20px;
border-radius: 5px;
position: absolute;
left: 0;
top: 3px;
}
}
// Universal List Styling
.docs-content .main-content ol,
.docs-content .main-content ul {
list-style: none;
line-height: 26px;
}
// Blockquote
.docs-content .main-content blockquote {
margin-bottom: 1rem;
font-size: 1.25rem;
border-left: 3px solid var(--blockquote-border-color);
padding-left: 1rem;
}
// Code
.docs-content .main-content div.highlight {
margin: 16px 0;
padding: $code-block-padding-top;
background: var(--code-block-bg);
border-radius: 4px;
pre {
padding: 0;
}
}
.docs-content .main-content code {
font-size: inherit;
// color: var(--text-default);
font-weight: 400;
padding: 1px 2px;
background: var(--inline-code-bg);
border: var(--inline-code-border);
border-radius: 4px;
}
.docs-content .main-content pre {
margin: 0;
// background-color: var(--code-block-bg) !important;
border-radius: 4px;
padding: $code-block-padding-top;
code {
// color: #f5fbff;
font-size: 0.8rem;
display: block;
// background: var(--code-block-bg);
border: none;
overflow-x: auto;
line-height: 1.5;
padding: 0 2.5rem 1.25rem 2.5rem;
tab-size: 4;
scrollbar-width: thin;
//scrollbar-color: transparent transparent;
}
}
// bold code
.docs-content .main-content strong {
code {
font-weight: 700;
}
}
// Chroma Highlighter CSS
.docs-content .main-content td pre {
code {
overflow-x: unset !important;
}
}
.docs-content .main-content .alert ul {
font-size: var(--font-size-sm);
}
// <figcaption>
.docs-content figcaption {
font-size: small;
}

View File

@@ -0,0 +1,39 @@
//
// doc-nav.scss
//
:root {
--doc-nav-title-link-color: var(--primary);
}
[data-dark-mode] {
--doc-nav-title-link-color: var(--primary-300);
}
#doc-nav {
.card-title {
color: var(--doc-nav-title-link-color);
}
.card-text {
color: var(--text-muted);
}
}
@media (max-width: 425px) {
.doc-next {
order: 2;
}
.doc-prev {
order: 1;
}
}
.doc-hr {
border-top: 1px solid var(--gray-500);
margin-top: 2rem;
margin-bottom: 0px;
padding-top: 1rem;
}

View File

@@ -0,0 +1,32 @@
//
// _footer.scss
//
footer {
position: relative;
color: var(--text-muted);
background: var(--body-bg);
height: 58px;
.text-foot {
color: var(--gray-500);
}
.footer-head {
font-size: 18px !important;
letter-spacing: 1px;
font-weight: 500;
}
a {
color: var(--content-link-color);
}
a:hover {
color: var(--content-link-color);
text-decoration: underline 1.5px var(--primary-200);
text-underline-offset: 3px !important;
transition: 0s !important;
}
}
.footnote-backref {
font-size: 1.1rem;
vertical-align: middle;
margin-left: 0.25rem;
}

View File

@@ -0,0 +1,44 @@
html {
scroll-padding-top: 80px;
background-color: var(--body-bg);
}
body {
font-family: $font-family-secondary;
overflow-x: hidden !important;
font-size: $font-size-base;
color: var(--body-color);
background-color: var(--body-bg);
}
@media (max-width: 1199px) {
html {
scroll-padding-top: 120px;
}
body {
font-size: 0.9rem;
}
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
font-family: $font-family-base;
line-height: 1.4;
font-weight: 600;
}
::selection {
background: var(--primary);
color: var(--white);
opacity: 0.9;
}
a {
text-decoration: none;
transition: all 0.5s ease;
color: var(--primary);
&:hover {
color: var(--primary-800);
}
}
p {
line-height: 1.6;
}
img {
height: auto;
}

View File

@@ -0,0 +1,443 @@
//
// sidebar.scss
//
.page-wrapper {
height: 100vh;
.sidebar-wrapper {
// box-shadow: $shadow;
// border-right: 1px solid var(--sidebar-border-color);
transition: all 0.3s ease;
width: 300px;
height: 100%;
max-height: 100%;
position: fixed;
top: 0;
left: -300px;
z-index: 999;
@media (min-width: 1025px) {
z-index: 1000;
}
@media (max-width: 1024px) {
left: 0;
}
@media (max-width: 425px) {
width: 260px;
}
ul {
list-style-type: none;
padding: 0;
margin: 0;
}
a {
text-decoration: none;
}
.sidebar-content {
background: var(--sidebar-bg);
max-height: calc(100% - 30px);
height: calc(100% - 30px);
overflow: scroll;
overflow-x: hidden;
overflow-y: overlay;
position: relative;
&.desktop {
overflow-y: hidden;
}
border-right: 1px solid var(--sidebar-border-color);
scrollbar-width: thin;
scrollbar-color: var(--sidebar-bg) var(--sidebar-bg);
// &::-webkit-scrollbar {
// display: none;
// }
}
.sidebar-content:hover {
scrollbar-color: var(--sidebar-scrollbar-thumb-color) var(--sidebar-bg);
}
.sidebar-content::-webkit-scrollbar {
width: 5px;
height: 8px;
}
.sidebar-content::-webkit-scrollbar-track {
background: var(--sidebar-bg);
display: none;
}
.sidebar-content:hover::-webkit-scrollbar-thumb {
background: var(--sidebar-scrollbar-thumb-color);
}
.sidebar-brand {
background: var(--sidebar-bg);
padding: 10px 20px;
border-bottom: 1px solid var(--sidebar-border-color);
display: flex;
align-items: center;
height: 72px;
> a {
text-transform: uppercase;
font-weight: bold;
flex-grow: 1;
transition: all 0.3s ease;
&:focus {
outline: none;
}
svg {
height: 26px;
}
}
#close-sidebar {
cursor: pointer;
font-size: 24px;
transition: all 0.3s ease;
}
}
.sidebar-header {
padding: 20px;
overflow: hidden;
}
.sidebar-menu {
padding: 16px 0 16px 10px;
.header-menu {
span {
font-weight: bold;
font-size: 14px;
padding: 15px 20px 5px 20px;
display: inline-block;
}
}
li {
a,button {
display: inline-block;
color: var(--sidebar-text-color);
width: 100%;
text-decoration: none;
position: relative;
padding: 4px 35px 5px 10px;
margin: 4px 0 4px 0;
border: none;
letter-spacing: normal;
transition: all 0.3s ease;
display: flex;
align-items: center;
text-align: left;
@media (max-width: 1024px) {
padding: 6px 24px 6px 24px;
}
@media screen and (max-width: 425px) {
padding: 6px 26px 6px 12px;
}
&:hover > i::before {
display: inline-block;
}
&:focus {
outline: none;
}
i {
min-width: 36px;
height: 36px;
background-color: var(--sidebar-icon-bg);
display: inline-flex !important;
align-items: center;
justify-content: center;
font-size: 20px;
text-align: center;
border-radius: 4px;
transition: all 0.3s ease;
}
&.sidebar-nested-link {
align-items: normal;
}
}
a:hover,
&.sidebar-dropdown button:hover {
background-color: var(--sidebar-dropdown-hover-bg);
border-radius: 4px 0 0 4px;
margin: 4px 0 4px 0;
}
&:hover,
&.active {
i {
background-color: var(--sidebar-menu-active-bg);
}
}
&.no-icon {
> a:before {
// content: "\e931" !important;
content: none !important;
}
> button {
margin: 1px 0 1px 0;
&:hover {
margin: 1px 0 1px 0;
}
}
}
}
.sidebar-root-link {
font-size: 1rem;
}
.sidebar-dropdown {
&.no-icon {
> button:after {
top: inherit !important;
}
}
> button:after {
content: "\e5cc" !important;
color: var(--sidebar-text-color);
font-family: 'Material Symbols Outlined';
font-weight: 500;
font-size: 22px;
position: absolute;
right: 15px;
top: 7px;
transition: all 0.3s ease;
}
&.nested {
&.no-icon {
> button:after {
top: inherit !important;
}
> button:before {
// content: "\e5da" !important;
content: none !important;
}
}
button {
font-size: 14px;
&:before {
content: var(--sidebar-directory-icon);
color: var(--sidebar-text-color);
font-family: 'Material Symbols Outlined';
margin-right: 4px;
font-size: 14px;
transition: all 0.3s ease;
}
&:after {
top: inherit;
}
}
}
&.active {
> button:after {
transform: rotate(90deg);
right: 17px;
}
}
// &:hover,
&.current {
> button:after {
color: var(--sidebar-primary);
}
}
.sidebar-submenu {
display: none;
ul {
padding: 3px 0;
li {
padding-left: 15px;
font-size: 14px;
a {
font-weight: 400;
&:before {
content: var(--sidebar-file-icon);
color: var(--sidebar-text-color);
font-family: 'Material Symbols Outlined';
margin-right: 4px;
font-size: 14px;
transition: all 0.3s ease;
}
.badge,
.label {
float: right;
margin-top: 0px;
}
}
&.no-icon {
padding-left: 10px;
}
}
}
}
}
ul {
li {
a {
span {
&.label,
&.badge {
float: right;
margin-top: 8px;
margin-left: 5px;
}
}
}
}
}
}
.sidebar-header,
.sidebar-menu {
// border-top: 1px solid var(--sidebar-border-color);
// border-right: 1px solid var(--sidebar-border-color);
}
.sidebar-header .user-info .user-role,
.sidebar-header .user-info .user-status,
.sidebar-brand > a,
.sidebar-menu li a {
color: var(--sidebar-text-color);
font-weight: 600;
}
// .sidebar-menu li:hover > a,
.sidebar-menu li.current > a,
.sidebar-menu li:active > a,
.sidebar-menu li:active > a:before,
// .sidebar-menu li:hover > a:before,
.sidebar-menu li.current > a:before,
.sidebar-menu li.current > button:before,
// .sidebar-menu .sidebar-dropdown.active > a,
.sidebar-header .user-info,
.sidebar-brand > a:hover {
color: var(--sidebar-primary) !important;
}
.sidebar-menu li.current > a {
font-weight: 600 !important;
background-color: var(--sidebar-menu-active-bg);
border-right: 3px solid var(--primary);
border-radius: 4px 0 0 4px;
margin: 4px 0 4px 0;
}
// .sidebar-menu li:hover > button,
.sidebar-menu .sidebar-dropdown.current > button {
color: var(--sidebar-primary) !important;
}
.sidebar-brand {
.sidebar-colored {
display: none;
}
.logo-dark-mode {
display: none;
}
.logo-light-mode {
display: inline-block;
}
}
}
.page-content {
display: inline-block;
width: 100%;
padding-left: 0px;
// overflow-x: hidden;
transition: all 0.3s ease;
.top-header {
position: fixed;
right: 0;
top: 0;
z-index: 999;
max-height: 70px;
left: 0px;
transition: all 0.3s;
.header-bar {
background: var(--top-header-bg);
backdrop-filter: saturate(180%) blur(5px);
height: 72px;
// box-shadow: $shadow;
border-bottom: 1px solid var(--sidebar-border-color);
position: relative;
justify-content: space-between;
align-items: center;
padding: 24px;
@media (max-width: 425px) {
padding: 24px 12px;
}
.logo-icon {
display: none;
@media (max-width: 1024px) {
display: block;
}
.small {
display: none;
@media (max-width: 767px) {
display: block;
}
svg {
height: 22px;
}
}
.big {
display: none;
.logo-dark-mode {
display: none;
}
.logo-light-mode {
display: inline-block;
}
@media (min-width: 768px) and (max-width: 1024px) {
display: block;
}
}
}
}
}
.layout-spacing {
padding: 94px 14px 24px !important;
min-height: calc(100vh - 66px) !important;
position: relative;
@media (max-width: 425px) {
padding: 84px 0 24px !important;
}
}
}
&.toggled {
@media screen and (min-width: 1025px) {
.page-content {
padding-left: 300px;
}
}
.top-header {
left: 300px;
@media (max-width: 1024px) {
left: 0;
}
}
.sidebar-wrapper {
left: 0px;
@media (max-width: 1024px) {
left: -300px;
}
}
}
}
.sidebar-footer {
position: absolute;
background: var(--sidebar-bg);
width: 100%;
bottom: 0;
left: 0;
right: 0;
padding: 9px 24px 9px 20px !important;
border-right: 1px solid var(--sidebar-border-color);
height: 60px;
@media(max-width: 425px) {
padding: 9px 12px !important;
}
}

View File

@@ -0,0 +1,164 @@
//
// toc-layouts.scss
//
:root {
--toc-link-hover-bg-color: var(--gray-300);
--toc-mobile-btn-bg-color: var(--gray-100);
--toc-mobile-menu-bg-color: var(--white);
--toc-mobile-link-hover-color: var(--primary);
}
[data-dark-mode] {
--toc-link-hover-bg-color: var(--gray-700);
--toc-mobile-btn-bg-color: var(--gray-900);
--toc-mobile-menu-bg-color: var(--body-bg);
--toc-mobile-link-hover-color: var(--primary-300);
}
.docs-toc-mobile {
position: sticky;
// top: 71px; // important (must be set)
top: 85px; // important (must be set)
padding-left: calc(var(--bs-gutter-x) * 1.05);
padding-right: calc(var(--bs-gutter-x) * 1.05);
z-index: 20;
// &.toc-pinned {
// padding: 0;
// .dropdown-toggle {
// border-left: 0;
// border-right: 0;
// border-top: 0;
// border-radius: 0;
// }
// }
a {
color: var(--text-default);
}
a:hover {
color: var(--toc-mobile-link-hover-color);
}
.dropdown-toggle {
margin-bottom: 16px;
background: var(--toc-mobile-btn-bg-color);
color: var(--text-default);
padding: 4px;
border: 1px solid var(--alert-border-color);
border-radius: 4px;
width: calc(100% + 2px);
white-space: normal;
}
.dropdown-menu {
transform: translateY(-16.5px) !important;
background: var(--toc-mobile-menu-bg-color);
inset: -1px auto none (var(--bs-gutter-x)) !important;
border: 1px solid var(--alert-border-color);
border-top: none;
border-radius: 0 0 4px 4px;
width: calc(100% - (var(--bs-gutter-x)*2));
max-height: 40vh;
overflow-y: auto;
scrollbar-width: thin;
li {
list-style: none;
padding: 0 0 4px 0;
ul {
padding-left: 1rem;
}
}
}
}
.docs-toc {
position: -webkit-sticky;
position: sticky;
top: 6rem;
height: calc(100vh - 11.1rem);
overflow-y: auto;
order: 2;
scrollbar-width: thin;
scrollbar-color: var(--simplebar-color) rgba(var(--bs-light-rgb), var(--bs-bg-opacity));
// visually-hidden
@media (max-width: 1199px) {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;
}
}
.docs-toc::-webkit-scrollbar {
width: 4px;
height: 18px;
}
.docs-toc::-webkit-scrollbar-track {
background: transparent;
}
.docs-toc::-webkit-scrollbar-thumb {
background-color: var(--simplebar-color);
border-radius: 4px;
border: transparent;
}
#TableOfContents ul,
#toc ul {
padding-left: 0;
margin-bottom: 0;
list-style: none;
li {
padding-bottom: 5px;
ul {
li {
border-top: none;
padding-left: 1rem;
margin-top: 0.125rem;
padding-top: 0.125rem;
padding-bottom: 0;
}
}
}
}
#TableOfContents a,
#toc a {
display: block;
color: var(--text-default);
padding: 0 10px 0 10px;
padding-block: 0px 0.05rem;
margin: 0 0 0 -10px;
border-radius: 4px;
width: fit-content;
font-size: 15px;
letter-spacing: 0.02em;
transition: all 0.1s;
-webkit-transition: all 0.1s;
&:hover {
background-color: var(--toc-link-hover-bg-color);
transition: all 0.1s;
-webkit-transition: all 0.2s;
}
}
#toc a.active {
color: var(--white);
background-color: var(--primary);
// font-weight: 600;
opacity: 0.9;
}