Files
vue-bits/src/css/sidebar.css

550 lines
9.0 KiB
CSS

.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;
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: #222;
}
.sidebar-logo {
padding: 2em calc(1em + 2px) !important;
border-bottom: none;
width: 100%;
}
.sidebar-logo img {
position: relative;
height: 30px;
}
.sidebar-item,
.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;
}
.sidebar-item:hover,
.drawer-navigation .sidebar-item:hover {
color: #fff;
cursor: pointer;
}
.active-sidebar-item,
.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;
}
.active-sidebar-item::before,
.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);
}
.active-sidebar-item:hover,
.drawer-navigation .active-sidebar-item:hover {
text-decoration: none;
}
.sidebar-item .new-tag,
.sidebar-item .updated-tag,
.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;
}
.sidebar-item .new-tag,
.drawer-navigation .sidebar-item .new-tag {
color: #fff;
border: 1px solid #27ff64;
background-color: rgba(39, 255, 100, 0.3);
}
.sidebar-item .updated-tag,
.drawer-navigation .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: none;
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 span {
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;
}
.cta-button-docs span img {
margin-right: 4px;
width: 12px;
height: 12px;
transition: 0.3s ease;
}
.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-list {
display: flex;
flex-direction: column;
}
.category {
margin-bottom: 1rem;
}
.category-name,
.drawer-navigation .category-name {
margin-bottom: 0.5rem;
font-weight: 900;
letter-spacing: -0.5px;
color: #fff;
font-size: 1.1rem;
}
.drawer-navigation .category-name {
font-size: 1rem;
letter-spacing: -1px;
}
.category-items,
.drawer-navigation .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;
}
.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 #333;
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: #333;
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;
}
.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;
}
.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 {
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 {
font-size: 1rem;
letter-spacing: -1px;
}
@media (min-width: 768px) {
.drawer-overlay {
display: none;
}
}
@media only screen and (max-width: 767px) {
.drawer-header {
padding: 0 1em;
}
}