Files
vue-bits/src/css/category.css
2025-07-14 21:09:53 +03:00

568 lines
8.8 KiB
CSS

.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;
}
.demo-title-extra {
font-size: 1.125rem;
font-weight: 900;
margin: 2rem 0 0 0;
color: #e5e7eb;
}
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;
}
.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;
}
.tabbed-layout {
width: 100%;
}
.tab-header {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
border: 1px solid #142216;
border-radius: 10px;
font-size: 14px;
height: 36px;
color: #ffffff;
background: transparent;
transition: all 0.3s ease;
}
.tab-header:hover {
background: #142216;
}
.code-example {
margin: 1.2rem 0;
}
.code-section {
margin-bottom: 2rem;
}
.code-container {
position: relative;
margin-bottom: 1.2rem;
}
.code-wrapper {
position: relative;
overflow: hidden;
border: 1px solid #142216;
border-radius: 15px;
}
.code-wrapper.collapsed {
max-height: 600px;
}
.code-block {
overflow: hidden;
border: none;
border-radius: 15px;
}
.fade-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 60%;
background: linear-gradient(to bottom, transparent, #0b0b0b);
pointer-events: none;
z-index: 1;
}
.expand-button {
position: absolute;
bottom: 0.75rem;
right: 0.75rem;
padding: 0.5rem 1rem;
border-radius: 12px;
height: 2.5rem;
font-size: 14px;
font-weight: 500;
background-color: #0b0b0b;
border: 1px solid #142216;
color: white;
cursor: pointer;
z-index: 2;
transition: background-color 0.3s ease;
}
.expand-button:hover {
background-color: #111;
}
.expand-button:active {
background-color: #111;
}
.no-code {
display: flex;
align-items: center;
gap: 0.5rem;
color: #a1a1aa;
font-style: italic;
padding: 2rem;
background: #0b0b0b;
border: 1px solid #142216;
border-radius: 15px;
}
.demo-title {
font-weight: 900;
font-size: 1.6rem;
margin-top: 1rem;
margin-bottom: 0.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;
border: 1px solid #142216 !important;
width: 350px;
height: 300px;
}
.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;
}
}