Sql_Basics / styles-sql.css
alexdatamed's picture
Rename style.css to styles-sql.css
8beaf62 verified
/* ============================================
SQL для новачків - Стилі дашборду
============================================ */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-color: #2563eb;
--secondary-color: #1e40af;
--accent-color: #8b5cf6;
--bg-light: #f8f9fa;
--bg-white: #ffffff;
--text-dark: #2d3748;
--text-light: #718096;
--border-color: #e2e8f0;
--success-color: #10b981;
--warning-color: #f59e0b;
--info-color: #3b82f6;
--danger-color: #ef4444;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f0f2f5;
color: var(--text-dark);
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* ============================================
HEADER
============================================ */
.header {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
color: white;
padding: 60px 20px;
text-align: center;
margin-bottom: 40px;
border-radius: 0 0 10px 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.header h1 {
font-size: 2.5rem;
margin-bottom: 10px;
font-weight: 700;
}
.header .subtitle {
font-size: 1.1rem;
opacity: 0.9;
}
/* ============================================
TABS NAVIGATION
============================================ */
.tabs {
display: flex;
gap: 10px;
margin-bottom: 40px;
background: white;
padding: 15px 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
flex-wrap: wrap;
}
.tab-button {
padding: 10px 20px;
border: 2px solid transparent;
background: var(--bg-light);
color: var(--text-dark);
cursor: pointer;
border-radius: 6px;
font-size: 0.95rem;
font-weight: 600;
transition: all 0.3s ease;
}
.tab-button:hover {
background: var(--bg-light);
transform: translateY(-2px);
}
.tab-button.active {
background: var(--primary-color);
color: white;
border-color: var(--primary-color);
}
/* ============================================
CONTENT SECTIONS
============================================ */
.tab-content {
display: none;
animation: fadeIn 0.3s ease;
}
.tab-content.active {
display: block;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.tab-content h2 {
font-size: 2rem;
margin-bottom: 30px;
color: var(--primary-color);
border-bottom: 3px solid var(--primary-color);
padding-bottom: 10px;
}
/* ============================================
COMMAND CARDS
============================================ */
.commands-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
.command-card {
background: white;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
border-left: 4px solid var(--primary-color);
}
.command-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}
.command-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
gap: 10px;
}
.command-name {
font-size: 1.2rem;
font-weight: 700;
color: var(--primary-color);
background: var(--bg-light);
padding: 5px 10px;
border-radius: 4px;
font-family: 'Courier New', monospace;
}
.badge {
display: inline-block;
padding: 4px 10px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
white-space: nowrap;
}
.badge.basic {
background: #dbeafe;
color: #0c4a6e;
}
.badge.join {
background: #dcfce7;
color: #166534;
}
.badge.aggr {
background: #fae8ff;
color: #6b21a8;
}
.badge.adv {
background: #fef3c7;
color: #92400e;
}
.badge.danger {
background: #fee2e2;
color: #991b1b;
}
.description {
font-size: 0.95rem;
color: var(--text-light);
margin-bottom: 12px;
}
.usage {
background: var(--bg-light);
padding: 12px;
border-radius: 6px;
margin-bottom: 12px;
border-left: 3px solid var(--accent-color);
}
.usage strong {
display: block;
margin-bottom: 8px;
color: var(--text-dark);
}
.usage pre {
font-size: 0.85rem;
overflow-x: auto;
}
.usage code {
font-family: 'Courier New', monospace;
color: #2563eb;
background: white;
padding: 8px;
display: block;
border-radius: 4px;
line-height: 1.4;
}
.explanation {
background: #f0fdf4;
padding: 12px;
border-radius: 6px;
border-left: 3px solid var(--success-color);
}
.explanation strong {
color: var(--text-dark);
display: block;
margin-bottom: 6px;
}
.explanation p {
font-size: 0.9rem;
color: var(--text-dark);
}
.explanation code {
background: white;
padding: 2px 6px;
border-radius: 3px;
font-family: 'Courier New', monospace;
color: #2563eb;
}
/* ============================================
EXAMPLE CARDS
============================================ */
.example-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
gap: 20px;
}
.example-card {
background: white;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
border-top: 4px solid var(--accent-color);
}
.example-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}
.example-card h3 {
font-size: 1.1rem;
margin-bottom: 15px;
color: var(--primary-color);
}
.example-card pre {
background: var(--bg-light);
padding: 15px;
border-radius: 6px;
overflow-x: auto;
margin-bottom: 12px;
border-left: 3px solid var(--info-color);
}
.example-card code {
font-family: 'Courier New', monospace;
font-size: 0.85rem;
color: #2563eb;
line-height: 1.5;
}
.example-card p {
font-size: 0.9rem;
color: var(--text-light);
background: #fffacd;
padding: 10px;
border-radius: 4px;
border-left: 3px solid var(--warning-color);
}
/* ============================================
FOOTER
============================================ */
.footer {
background: var(--secondary-color);
color: white;
text-align: center;
padding: 30px 20px;
margin-top: 60px;
border-radius: 8px 8px 0 0;
}
.footer p {
font-size: 1rem;
}
/* ============================================
RESPONSIVE DESIGN
============================================ */
@media (max-width: 768px) {
.header h1 {
font-size: 2rem;
}
.commands-grid {
grid-template-columns: 1fr;
}
.example-cards {
grid-template-columns: 1fr;
}
.tabs {
flex-direction: column;
}
.tab-button {
width: 100%;
text-align: left;
}
}
/* ============================================
UTILITY CLASSES
============================================ */
.highlight {
background: #fffacd;
padding: 20px;
border-radius: 6px;
border-left: 4px solid var(--warning-color);
margin-bottom: 20px;
}