@zerrodevs/discord-bot-utils
Version:
A comprehensive utility package for Discord.js bots providing moderation, interaction, logging, and tax calculation features
509 lines (431 loc) • 8.95 kB
CSS
:root[data-theme="light"] {
--primary-color: #5865F2;
--secondary-color: #f5f5f5;
--text-color: #2C2F33;
--background-color: #ffffff;
--code-background: #f8f9fa;
--border-color: #e1e4e8;
}
:root[data-theme="dark"] {
--primary-color: #5865F2;
--secondary-color: #2C2F33;
--text-color: #FFFFFF;
--background-color: #23272A;
--code-background: #2F3136;
--border-color: #40444b;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--background-color);
transition: background-color 0.3s, color 0.3s;
}
nav {
background-color: var(--secondary-color);
padding: 1rem;
position: fixed;
width: 100%;
top: 0;
z-index: 100;
}
.nav-content {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1400px;
margin: 0 auto;
}
.nav-left {
display: flex;
align-items: center;
gap: 1rem;
}
.nav-right {
display: flex;
align-items: center;
gap: 2rem;
}
.nav-brand {
font-size: 1.5rem;
font-weight: bold;
color: var(--primary-color);
}
.nav-links {
display: flex;
gap: 2rem;
}
.nav-links a {
color: var(--text-color);
text-decoration: none;
transition: color 0.3s;
position: relative;
}
.nav-links a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -5px;
left: 0;
background-color: var(--primary-color);
transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after {
width: 100%;
}
.nav-links a:hover {
color: var(--primary-color);
}
.sidebar {
position: fixed;
left: 0;
top: 60px;
width: 250px;
height: calc(100vh - 60px);
background-color: var(--secondary-color);
padding: 2rem;
overflow-y: auto;
}
.sidebar-item a {
display: block;
color: var(--text-color);
text-decoration: none;
padding: 0.8rem 0;
transition: color 0.3s;
border-left: 3px solid transparent;
padding-left: 1rem;
}
.sidebar-item a:hover,
.sidebar-item a.active {
color: var(--primary-color);
border-left-color: var(--primary-color);
background-color: rgba(88, 101, 242, 0.1);
}
main {
margin-left: 250px;
margin-top: 60px;
padding: 2rem;
}
/* Smooth scroll behavior */
html {
scroll-behavior: smooth;
scroll-padding-top: 70px; /* Account for fixed header */
}
section {
margin-bottom: 4rem;
padding-top: 60px; /* Account for fixed nav */
margin-top: -60px; /* Offset padding for smooth scroll */
}
h1 {
color: var(--primary-color);
margin-bottom: 1rem;
}
h2 {
color: var(--primary-color);
margin-bottom: 1.5rem;
}
.installation-box {
background-color: var(--code-background);
padding: 1rem;
border-radius: 5px;
margin: 1rem 0;
display: flex;
justify-content: space-between;
align-items: center;
}
.copy-btn {
background-color: var(--primary-color);
color: var(--text-color);
border: none;
padding: 0.5rem 1rem;
border-radius: 3px;
cursor: pointer;
transition: opacity 0.3s;
}
.copy-btn:hover {
opacity: 0.9;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.feature-card {
background-color: var(--secondary-color);
padding: 1.5rem;
border-radius: 5px;
border: 1px solid var(--border-color);
}
.feature-card h3 {
color: var(--primary-color);
margin-bottom: 1rem;
}
.feature-card ul {
list-style-position: inside;
}
.code-block {
background-color: var(--code-background);
padding: 1rem;
border-radius: 5px;
margin: 1rem 0;
position: relative;
}
.code-copy-btn {
position: absolute;
top: 0.5rem;
right: 0.5rem;
background: transparent;
border: none;
color: var(--text-color);
cursor: pointer;
opacity: 0;
transition: opacity 0.3s;
padding: 0.5rem;
border-radius: 4px;
}
.code-block:hover .code-copy-btn {
opacity: 1;
}
.code-copy-btn:hover {
background-color: rgba(255, 255, 255, 0.1);
}
/* Notification styles */
.notification {
position: fixed;
bottom: 20px;
right: 20px;
padding: 1rem 2rem;
background-color: var(--primary-color);
color: white;
border-radius: 4px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
transform: translateY(100px);
opacity: 0;
transition: all 0.3s ease;
}
.notification.show {
transform: translateY(0);
opacity: 1;
}
.code-block h3 {
color: var(--primary-color);
margin-bottom: 1rem;
}
pre {
margin: 0;
}
code {
font-family: 'Fira Code', monospace;
color: var(--text-color);
}
footer {
margin-left: 250px;
padding: 2rem;
text-align: center;
background-color: var(--secondary-color);
}
footer a {
color: var(--primary-color);
text-decoration: none;
}
/* API and Examples page styles */
.api-method {
background-color: var(--secondary-color);
padding: 1.5rem;
border-radius: 5px;
margin-bottom: 2rem;
}
.api-method h3 {
color: var(--primary-color);
font-family: 'Fira Code', monospace;
margin-bottom: 1rem;
}
.params {
margin: 1rem 0;
padding: 1rem;
background-color: var(--code-background);
border-radius: 3px;
}
.params h4 {
color: var(--primary-color);
margin-bottom: 0.5rem;
}
.params ul {
list-style-type: none;
}
.params li {
margin: 0.5rem 0;
}
.params code {
background-color: var(--background-color);
padding: 0.2rem 0.4rem;
border-radius: 3px;
}
.example-block {
background-color: var(--secondary-color);
padding: 1.5rem;
border-radius: 5px;
margin-bottom: 2rem;
}
.example-block h3 {
color: var(--primary-color);
margin-bottom: 1rem;
}
/* Theme switch styles */
.theme-switch {
margin: 0;
padding-left: 1rem;
border-left: 1px solid var(--border-color);
position: relative;
display: flex;
align-items: center;
}
.theme-switch input {
opacity: 0;
width: 0;
height: 0;
}
.theme-switch label {
cursor: pointer;
padding: 0.5rem;
border-radius: 50%;
transition: background-color 0.3s;
}
.theme-switch label:hover {
background-color: rgba(88, 101, 242, 0.1);
}
.theme-switch .icon {
font-size: 1.2rem;
}
/* Search bar improvements */
.search-container {
position: relative;
width: 250px;
}
.search-input {
width: 100%;
padding: 0.5rem 0.5rem 0.5rem 2rem;
border: 1px solid var(--border-color);
border-radius: 3px;
background-color: var(--code-background);
color: var(--text-color);
transition: all 0.3s;
}
.search-icon {
position: absolute;
left: 0.5rem;
top: 50%;
transform: translateY(-50%);
color: var(--text-color);
opacity: 0.7;
}
.search-input:focus {
border-color: var(--primary-color);
outline: none;
width: 300px;
}
.search-input::placeholder {
color: #888;
}
/* Parameter page styles */
.param-block {
background-color: var(--secondary-color);
padding: 1.5rem;
border-radius: 5px;
margin-bottom: 2rem;
}
.param-block h3 {
color: var(--primary-color);
font-family: 'Fira Code', monospace;
margin-bottom: 1rem;
}
.param-table {
overflow-x: auto;
}
.param-table table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
}
.param-table th {
background-color: var(--code-background);
color: var(--primary-color);
text-align: left;
padding: 0.75rem;
font-weight: bold;
}
.param-table td {
padding: 0.75rem;
border-bottom: 1px solid var(--border-color);
}
.param-table tr:last-child td {
border-bottom: none;
}
.param-table td:first-child {
color: var(--primary-color);
font-family: 'Fira Code', monospace;
}
.param-table td:nth-child(2) {
color: #888;
}
.param-table td:nth-child(3) {
color: var(--text-color);
font-weight: bold;
}
/* Responsive table */
@media (max-width: 768px) {
.param-table {
margin: 0 -1rem;
}
.param-table table {
display: block;
overflow-x: auto;
white-space: nowrap;
}
}
@media (max-width: 768px) {
.nav-content {
flex-direction: column;
gap: 1rem;
}
.nav-right {
flex-direction: column;
width: 100%;
}
.search-container {
width: 100%;
}
.nav-links {
flex-direction: column;
gap: 1rem;
width: 100%;
text-align: center;
}
}
.mobile-menu-btn {
display: none;
background: none;
border: none;
color: var(--text-color);
font-size: 1.5rem;
cursor: pointer;
}
.active {
color: var(--primary-color) ;
font-weight: bold;
}
@media (max-width: 768px) {
.sidebar {
display: none;
}
main, footer {
margin-left: 0;
}
}