Spaces:
Sleeping
Sleeping
File size: 1,122 Bytes
20d0e47 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | /* ============================================
MODE BAR COMPONENT
============================================ */
.mode-bar {
display: flex;
gap: 16px;
margin-bottom: 32px;
padding: 8px;
background: var(--code-bg);
border-radius: 60px;
border: 1px solid var(--border);
width: fit-content;
margin-left: auto;
margin-right: auto;
}
.mode-btn {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 28px;
border-radius: 40px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
border: none;
background: transparent;
color: var(--text);
}
.mode-btn .mode-icon {
font-size: 20px;
}
.mode-btn.active {
background: var(--cardinal);
color: white;
box-shadow: var(--shadow);
}
.mode-btn:hover:not(.active) {
background: var(--accent-bg);
color: var(--cardinal);
}
[dir="rtl"] .mode-btn {
flex-direction: row-reverse;
}
@media (max-width: 768px) {
.mode-bar {
flex-direction: column;
width: 100%;
border-radius: 32px;
gap: 8px;
}
.mode-btn {
justify-content: center;
padding: 10px 20px;
}
} |