mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
documentation structure
This commit is contained in:
@@ -8,10 +8,23 @@
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #0e0e0e;
|
||||
background-color: #0b0b0b;
|
||||
font-family: 'Figtree', sans-serif !important;
|
||||
font-size: 16px;
|
||||
color: #fff;
|
||||
min-height: 100vh;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.app-container {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
padding: 0 2em;
|
||||
}
|
||||
|
||||
.back-to-top {
|
||||
background: #0b0b0b !important;
|
||||
border: 1px solid #142216;
|
||||
}
|
||||
479
src/css/category.css
Normal file
479
src/css/category.css
Normal file
@@ -0,0 +1,479 @@
|
||||
.category-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 1440px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.main-nav {
|
||||
background: linear-gradient(to bottom, #0b0b0b, transparent);
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
padding: 0 2em;
|
||||
height: 85px;
|
||||
background: #0b0b0b;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.main-nav .nav-items {
|
||||
position: relative;
|
||||
height: 85px;
|
||||
padding: 0;
|
||||
max-width: 1440px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.main-nav .nav-items::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: linear-gradient(to right, transparent, #1e3726, transparent);
|
||||
}
|
||||
|
||||
.main-nav .nav-items::after {
|
||||
pointer-events: none;
|
||||
content: '';
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 70px;
|
||||
z-index: -1;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background: linear-gradient(to bottom, #0b0b0b, transparent);
|
||||
}
|
||||
|
||||
.main-nav .nav-items .logo {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.main-nav .nav-items .logo img {
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.category-name {
|
||||
color: white;
|
||||
font-weight: 900;
|
||||
letter-spacing: -1px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.category-page {
|
||||
width: calc(100% - 200px);
|
||||
position: absolute;
|
||||
right: 0;
|
||||
padding: 8em 0 6em 1em;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.category-page .main-category {
|
||||
text-transform: uppercase;
|
||||
opacity: 0.5;
|
||||
letter-spacing: -0.5px;
|
||||
font-size: 1rem;
|
||||
font-weight: 300;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.category-page .sub-category {
|
||||
margin-bottom: 0.5em;
|
||||
line-height: 1em;
|
||||
font-size: 4.5rem;
|
||||
color: #fff;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.demo-container {
|
||||
min-height: 500px;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
background: #0b0b0b;
|
||||
border: 1px solid #142216;
|
||||
padding: 1em;
|
||||
margin-top: 1.4rem;
|
||||
border-radius: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
div:has(> .props-table) {
|
||||
border: 1px solid #142216;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.split-text-demo,
|
||||
.blur-text-demo {
|
||||
font-size: 6rem;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
.scrambled-text-demo {
|
||||
max-width: 600px;
|
||||
font-size: 1rem;
|
||||
font-weight: bolder;
|
||||
color: #27FF64;
|
||||
}
|
||||
|
||||
.star-border-demo .inner-content {
|
||||
padding: 1em 3em;
|
||||
background-color: #0b0b0b !important;
|
||||
border: 1px solid #142216 !important
|
||||
}
|
||||
|
||||
.custom-bounceCards {
|
||||
position: relative;
|
||||
top: 2em;
|
||||
}
|
||||
|
||||
.custom-folder {
|
||||
margin-top: 4em;
|
||||
}
|
||||
|
||||
.rotating-text-demo-container {
|
||||
white-space: pre;
|
||||
font-size: clamp(2rem, 6vw, 6rem);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.rotating-text-demo-container .rotating-text-demo {
|
||||
display: inline-block;
|
||||
color: #0b0b0b;
|
||||
background-color: #27FF64;
|
||||
padding: 0 0.4em;
|
||||
border-radius: 15px;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.ballpit-demo {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tilted-card-demo-text {
|
||||
font-family: "Figtree", sans-serif;
|
||||
font-weight: 900;
|
||||
text-transform: capitalize;
|
||||
box-shadow: 0 5px 30px #0b0b0b59;
|
||||
border-radius: 15px;
|
||||
color: #fff;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
padding: 0.5rem 1em;
|
||||
letter-spacing: -0.5px;
|
||||
margin: 2em;
|
||||
}
|
||||
|
||||
.shapeblur-demo {
|
||||
position: relative;
|
||||
mix-blend-mode: difference;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.decrypted-text {
|
||||
font-size: 2rem;
|
||||
display: inline-block;
|
||||
font-weight: 400;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.variable-proximity-demo {
|
||||
max-width: 20ch;
|
||||
line-height: 100%;
|
||||
font-size: 4rem !important;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.shiny-text-demo {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.shiny-button {
|
||||
cursor: pointer;
|
||||
border: 1px solid #353535;
|
||||
background-color: #111;
|
||||
padding: 0.4em 1.2em;
|
||||
border-radius: 50px;
|
||||
transition: 0.3s ease;
|
||||
}
|
||||
|
||||
.shiny-button:hover {
|
||||
background-color: #222;
|
||||
}
|
||||
|
||||
.demo-title {
|
||||
font-weight: 900;
|
||||
font-size: 1.6rem;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: .4rem;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.demo-title span {
|
||||
font-size: 0.8rem;
|
||||
color: #a1a1aa;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.demo-title::first-letter {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.demo-title-contribute {
|
||||
margin: 0;
|
||||
font-size: 1.4rem;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.demo-title-contribute {
|
||||
letter-spacing: -0.5px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 1em;
|
||||
text-align: center;
|
||||
font-size: 1.65rem;
|
||||
color: #A7EF9E;
|
||||
}
|
||||
|
||||
.contribute-buttons {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.contribute-button {
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
background: #333333;
|
||||
border-radius: 10px;
|
||||
border: 1px solid #142216;
|
||||
color: #fff;
|
||||
height: 2.5rem;
|
||||
padding: 0 1rem;
|
||||
text-decoration: none;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.contribute-button:hover {
|
||||
background: #142216;
|
||||
}
|
||||
|
||||
.contribute-separator {
|
||||
margin: 0 0.5rem;
|
||||
font-size: 16px;
|
||||
color: #a1a1aa;
|
||||
}
|
||||
|
||||
.contribute-container {
|
||||
background: #0b0b0b;
|
||||
border: 1px solid #142216;
|
||||
border-radius: 20px;
|
||||
padding: 46px;
|
||||
margin-top: 1.4rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.contribute-button {
|
||||
background-color: #0b0b0b !important;
|
||||
border: 1px solid #142216;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.contribute-button span {
|
||||
color: #a1a1aa;
|
||||
}
|
||||
|
||||
.contribute-button:hover {
|
||||
background-color: #142216 !important;
|
||||
}
|
||||
|
||||
.demo-details {
|
||||
font-size: 1.6rem;
|
||||
margin: 0 0 1em;
|
||||
display: flex;
|
||||
gap: 0.3em;
|
||||
}
|
||||
|
||||
.demo-details span {
|
||||
background-color: #111;
|
||||
border: 1px solid #142216;
|
||||
white-space: nowrap;
|
||||
color: #A7EF9E;
|
||||
border-radius: 10px;
|
||||
font-size: 0.8rem;
|
||||
padding: 0.5em 1em;
|
||||
transition: 0.3s ease;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.demo-extra-info {
|
||||
margin: 1em 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5em;
|
||||
color: #a1a1aa;
|
||||
}
|
||||
|
||||
.jsrepo-info a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.cli-divider {
|
||||
position: relative;
|
||||
margin: 2em auto 2em;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: linear-gradient(to right, transparent, #142216, transparent);
|
||||
}
|
||||
|
||||
.cli-divider::before {
|
||||
content: "Or";
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background-color: #0b0b0b;
|
||||
padding: 0 1em;
|
||||
color: #a1a1aa;
|
||||
}
|
||||
|
||||
.coming-soon a {
|
||||
color: #27FF64;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 767px) {
|
||||
.main-nav {
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
.category-wrapper {
|
||||
position: static;
|
||||
}
|
||||
|
||||
.category-page {
|
||||
width: 100%;
|
||||
padding: 6em 1em 0;
|
||||
}
|
||||
|
||||
.category-page .main-category {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.category-page .sub-category {
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
.split-text-demo,
|
||||
.blur-text-demo {
|
||||
font-size: 2rem;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
.decrypted-text {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.variable-proximity-demo {
|
||||
font-size: 1.6rem !important;
|
||||
}
|
||||
|
||||
.contribute-buttons {
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.contribute-button {
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
.contribute-separator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.demo-title-contribute {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.custom-gradient-class {
|
||||
padding: 1em 2em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.count-up-text {
|
||||
font-size: 4rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.custom-spotlight-card {
|
||||
user-select: none;
|
||||
background-color: #333333 !important;
|
||||
border: 1px solid #142216 !important;
|
||||
width: 350px;
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
/* Contribution Section Responsive Styles */
|
||||
.contribute-buttons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.contribute-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.75rem 1.5rem;
|
||||
text-decoration: none;
|
||||
border-radius: 8px;
|
||||
transition: all 0.3s ease;
|
||||
white-space: nowrap;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.contribute-button i {
|
||||
font-size: 1rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.contribute-button span {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.contribute-separator {
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.contribute-buttons {
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.contribute-button {
|
||||
width: 100%;
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.contribute-separator {
|
||||
order: 2;
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@
|
||||
left: 0;
|
||||
width: 300px;
|
||||
height: 100vh;
|
||||
background: linear-gradient(to right, #0e0e0e, transparent);
|
||||
background: linear-gradient(to right, #0b0b0b, transparent);
|
||||
z-index: 2;
|
||||
pointer-events: none;
|
||||
}
|
||||
@@ -23,7 +23,7 @@
|
||||
right: 0;
|
||||
width: 300px;
|
||||
height: 100vh;
|
||||
background: linear-gradient(to left, #0e0e0e, transparent);
|
||||
background: linear-gradient(to left, #0b0b0b, transparent);
|
||||
z-index: 2;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
@import './base.css';
|
||||
@import './sidebar.css';
|
||||
@import './category.css';
|
||||
@import './landing.css';
|
||||
|
||||
|
||||
643
src/css/sidebar.css
Normal file
643
src/css/sidebar.css
Normal file
@@ -0,0 +1,643 @@
|
||||
.sidebar,
|
||||
.sidebar-mobile {
|
||||
background-color: #0b0b0b !important;
|
||||
}
|
||||
|
||||
.sidebar::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
pointer-events: none;
|
||||
background: linear-gradient(to top, #0b0b0b, transparent);
|
||||
z-index: 4;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.sidebar.sidebar-no-fade::before {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
padding: 4.75rem 0 6em 0 !important;
|
||||
position: fixed;
|
||||
top: 57px;
|
||||
height: 100vh;
|
||||
width: 0;
|
||||
padding: 1.25rem;
|
||||
overflow-y: auto;
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.sidebar {
|
||||
display: block;
|
||||
width: 200px;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-content {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.sidebar::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
.sidebar::-webkit-scrollbar-track {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar::-webkit-scrollbar-thumb {
|
||||
background: #0b0b0b;
|
||||
border-radius: 50px;
|
||||
}
|
||||
|
||||
.sidebar::-webkit-scrollbar-thumb:hover {
|
||||
background: #142216;
|
||||
}
|
||||
|
||||
.sidebar-logo {
|
||||
padding: 2em calc(1em + 2px) !important;
|
||||
border-bottom: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sidebar-logo img {
|
||||
position: relative;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.sidebar-item {
|
||||
position: relative;
|
||||
font-size: 0.9rem;
|
||||
color: #a1a1aa;
|
||||
padding: 0.25em 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
transition: color 0.3s ease;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.sidebar-item:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.active-sidebar-item {
|
||||
width: fit-content;
|
||||
padding: 0.25em 0.25em 0.25em 0;
|
||||
color: #fff;
|
||||
position: relative;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.active-sidebar-item::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: -1.15rem;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 2px;
|
||||
height: 16px;
|
||||
background-color: #fff;
|
||||
border-radius: 1px;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.active-sidebar-item:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.sidebar-item .new-tag,
|
||||
.sidebar-item .updated-tag {
|
||||
margin-left: 0.6em;
|
||||
font-size: 10px;
|
||||
border-radius: 6px;
|
||||
font-weight: 500;
|
||||
padding: 0.2em 0.4em;
|
||||
opacity: 1;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.sidebar-item .new-tag {
|
||||
color: #fff;
|
||||
border: 1px solid #5227ff;
|
||||
background-color: rgba(82, 39, 255, 0.3);
|
||||
}
|
||||
|
||||
.sidebar-item .updated-tag {
|
||||
color: #fff;
|
||||
border: 1px solid #ffffff77;
|
||||
background-color: #ffffff26;
|
||||
}
|
||||
|
||||
.github-button {
|
||||
border: 1px solid transparent;
|
||||
transition: 0.3s ease;
|
||||
}
|
||||
|
||||
.github-button img {
|
||||
transition: filter 0.3s ease;
|
||||
}
|
||||
|
||||
.github-button:hover {
|
||||
border-color: #ffffff1c;
|
||||
background-color: #0b0b0b !important;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.github-button:hover img {
|
||||
filter: invert(100%);
|
||||
}
|
||||
|
||||
.cta-button-docs {
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
padding: 0 0 0 1rem;
|
||||
height: 40px;
|
||||
background: linear-gradient(135deg,
|
||||
rgb(30, 160, 63),
|
||||
rgba(24, 47, 255, 0.6));
|
||||
background-size: 200% 200%;
|
||||
backdrop-filter: blur(25px);
|
||||
-webkit-backdrop-filter: blur(25px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.07);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 50px;
|
||||
cursor: pointer;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
justify-content: space-between;
|
||||
transition: .3s ease;
|
||||
}
|
||||
|
||||
.cta-button-docs span {
|
||||
background-color: #0b0b0b;
|
||||
margin-left: 1em;
|
||||
margin-right: calc(1em - 6px);
|
||||
padding-top: .1em;
|
||||
height: 30px;
|
||||
border-radius: 50px;
|
||||
width: 75px;
|
||||
font-weight: 600;
|
||||
font-size: 12px;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.cta-button-docs span img {
|
||||
margin-right: 4px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
transition: .3s ease;
|
||||
}
|
||||
|
||||
/* Active and Hover Line Indicators */
|
||||
.active-line {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: 2px;
|
||||
height: 16px;
|
||||
background-color: #fff;
|
||||
border-radius: 1px;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.hover-line {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: 2px;
|
||||
height: 16px;
|
||||
background-color: #ffffff66;
|
||||
border-radius: 1px;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Categories Structure */
|
||||
.categories-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.category {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.category-name {
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 900;
|
||||
letter-spacing: -1px;
|
||||
color: #fff;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.category-items {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.125rem;
|
||||
padding-left: 1rem;
|
||||
border-left: 2px solid #ffffff33;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.mobile-logo {
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.mobile-buttons {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.icon-button {
|
||||
border-radius: 10px;
|
||||
border: 1px solid #ffffff1c;
|
||||
background: #0b0b0b;
|
||||
color: #fff;
|
||||
padding: 0.5rem;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: 0.3s ease;
|
||||
}
|
||||
|
||||
.icon-button:hover {
|
||||
border-color: #ffffff33;
|
||||
background-color: #0a0a0a;
|
||||
}
|
||||
|
||||
/* Header Component Styles */
|
||||
.main-nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 100;
|
||||
background-color: #0b0b0b;
|
||||
}
|
||||
|
||||
.nav-items {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 80px;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
.logo img {
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.mobile-menu-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.5rem;
|
||||
background: #0b0b0b;
|
||||
border: 1px solid #ffffff1c;
|
||||
border-radius: 8px;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.mobile-menu-button:hover {
|
||||
border-color: #ffffff33;
|
||||
background-color: #0a0a0a;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.mobile-menu-button {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.desktop-nav {
|
||||
display: none;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.desktop-nav {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
.search-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
height: 40px;
|
||||
padding: 0 0.5rem 0 0.75rem;
|
||||
border-radius: 50px;
|
||||
background: #0b0b0b;
|
||||
border: 1px solid #142216;
|
||||
font-weight: 600;
|
||||
cursor: text;
|
||||
user-select: none;
|
||||
transition: transform 0.3s ease;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.search-button:hover {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
color: #142216;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.search-text {
|
||||
color: #a6a6a6;
|
||||
margin-right: 2rem;
|
||||
}
|
||||
|
||||
.search-kbd {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
font-size: 10px;
|
||||
padding: 0 0.5rem;
|
||||
border-radius: 50px;
|
||||
background: #1a1a1a;
|
||||
color: #a6a6a6;
|
||||
border: 1px solid #333;
|
||||
}
|
||||
|
||||
.cta-button-docs {
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
padding: 0 0 0 1rem;
|
||||
height: 40px;
|
||||
background: linear-gradient(135deg,
|
||||
rgb(30, 160, 63),
|
||||
rgba(24, 47, 255, 0.6));
|
||||
background-size: 200% 200%;
|
||||
backdrop-filter: blur(25px);
|
||||
-webkit-backdrop-filter: blur(25px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.07);
|
||||
color: #fff;
|
||||
border-radius: 50px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
justify-content: space-between;
|
||||
transition: 0.3s ease;
|
||||
}
|
||||
|
||||
.cta-button-docs:hover {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.star-count {
|
||||
background-color: #0b0b0b;
|
||||
margin-left: 1em;
|
||||
margin-right: calc(1em - 6px);
|
||||
padding-top: 0.1em;
|
||||
height: 30px;
|
||||
border-radius: 50px;
|
||||
width: 75px;
|
||||
font-weight: 600;
|
||||
font-size: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.star-count img {
|
||||
margin-right: 4px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
transition: 0.3s ease;
|
||||
}
|
||||
|
||||
/* Mobile Drawer Styles */
|
||||
.drawer-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
z-index: 1500;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.drawer-content {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #0b0b0b;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.drawer-header {
|
||||
display: flex;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 85px;
|
||||
padding: 0 2rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.drawer-header::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: linear-gradient(to right, transparent, #1e3726, transparent);
|
||||
}
|
||||
|
||||
.drawer-logo {
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.close-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.5rem;
|
||||
background: #0b0b0b;
|
||||
border: 1px solid #ffffff1c;
|
||||
border-radius: 8px;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.close-button:hover {
|
||||
border-color: #ffffff33;
|
||||
background-color: #0a0a0a;
|
||||
}
|
||||
|
||||
.drawer-body {
|
||||
padding: 0 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.drawer-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.drawer-link {
|
||||
color: #a1a1aa;
|
||||
text-decoration: none;
|
||||
padding: 0.25rem 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.drawer-link:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.arrow-icon {
|
||||
transform: rotate(-45deg);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.drawer-separator {
|
||||
height: 1px;
|
||||
background-color: #ffffff1c;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
/* Drawer Navigation Styles */
|
||||
.drawer-navigation {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.drawer-navigation .categories-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.drawer-navigation .category {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.drawer-navigation .category-name {
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 900;
|
||||
letter-spacing: -1px;
|
||||
color: #fff;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.drawer-navigation .category-items {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.125rem;
|
||||
padding-left: 1rem;
|
||||
border-left: 2px solid #ffffff33;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.drawer-navigation .sidebar-item {
|
||||
position: relative;
|
||||
font-size: 0.9rem;
|
||||
color: #a1a1aa;
|
||||
padding: 0.25em 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
transition: color 0.3s ease;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.drawer-navigation .sidebar-item:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.drawer-navigation .active-sidebar-item {
|
||||
width: fit-content;
|
||||
padding: 0.25em 0.25em 0.25em 0;
|
||||
color: #fff;
|
||||
position: relative;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.drawer-navigation .active-sidebar-item::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: -1.15rem;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 2px;
|
||||
height: 16px;
|
||||
background-color: #fff;
|
||||
border-radius: 1px;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.drawer-navigation .active-sidebar-item:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.drawer-navigation .sidebar-item .new-tag,
|
||||
.drawer-navigation .sidebar-item .updated-tag {
|
||||
margin-left: 0.6em;
|
||||
font-size: 10px;
|
||||
border-radius: 6px;
|
||||
font-weight: 500;
|
||||
padding: 0.2em 0.4em;
|
||||
opacity: 1;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.drawer-navigation .sidebar-item .new-tag {
|
||||
color: #fff;
|
||||
border: 1px solid #5227ff;
|
||||
background-color: rgba(82, 39, 255, 0.3);
|
||||
}
|
||||
|
||||
.drawer-navigation .sidebar-item .updated-tag {
|
||||
color: #fff;
|
||||
border: 1px solid #ffffff77;
|
||||
background-color: #ffffff26;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.drawer-overlay {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 767px) {
|
||||
.drawer-header {
|
||||
padding: 0 1em;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user