GitBasics / styles.css
alexdatamed's picture
Rename style.css to styles.css
c8234cf verified
/* ============================================
Git для новачків - Стилі дашборду
============================================ */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-color: #f05033;
--secondary-color: #244c5a;
--accent-color: #6366f1;
--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: 1rem;
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.setup {
background: #fef3c7;
color: #92400e;
}
.badge.staging {
background: #dbeafe;
color: #0c4a6e;
}
.badge.commit {
background: #dcfce7;
color: #166534;
}
.badge.remote {
background: #fae8ff;
color: #6b21a8;
}
.badge.info {
background: #e0f2fe;
color: #164e63;
}
.badge.branch {
background: #fed7aa;
color: #92400e;
}
.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: #d63031;
background: white;
padding: 8px;
display: block;
border-radius: 4px;
}
.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: #d63031;
}
/* ============================================
WORKFLOW STEPS
============================================ */
.workflow-steps {
display: flex;
flex-direction: column;
gap: 20px;
}
.step {
display: flex;
gap: 20px;
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
}
.step:hover {
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
transform: translateX(5px);
}
.step-number {
flex-shrink: 0;
width: 60px;
height: 60px;
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: 700;
}
.step-content h3 {
font-size: 1.2rem;
margin-bottom: 10px;
color: var(--primary-color);
}
.step-content p {
color: var(--text-light);
margin-bottom: 10px;
}
.step-content pre {
background: var(--bg-light);
padding: 12px;
border-radius: 6px;
overflow-x: auto;
border-left: 3px solid var(--accent-color);
}
.step-content code {
font-family: 'Courier New', monospace;
color: #d63031;
font-size: 0.9rem;
}
/* ============================================
TIPS GRID
============================================ */
.tips-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
}
.tip-card {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
border-top: 3px solid var(--accent-color);
}
.tip-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}
.tip-icon {
font-size: 2.5rem;
margin-bottom: 10px;
}
.tip-card h3 {
font-size: 1.1rem;
margin-bottom: 10px;
color: var(--primary-color);
}
.tip-card p {
font-size: 0.9rem;
color: var(--text-light);
line-height: 1.6;
}
.tip-card code {
background: var(--bg-light);
padding: 2px 6px;
border-radius: 3px;
font-family: 'Courier New', monospace;
color: #d63031;
}
/* ============================================
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;
}
.tabs {
flex-direction: column;
}
.tab-button {
width: 100%;
text-align: left;
}
.step {
flex-direction: column;
}
.step-number {
width: 50px;
height: 50px;
font-size: 1.2rem;
}
.tips-grid {
grid-template-columns: 1fr;
}
}
/* ============================================
UTILITY CLASSES
============================================ */
.highlight {
background: #fffacd;
padding: 20px;
border-radius: 6px;
border-left: 4px solid var(--warning-color);
margin-bottom: 20px;
}
.success-box {
background: #f0fdf4;
border-left: 4px solid var(--success-color);
}
.warning-box {
background: #fef3c7;
border-left: 4px solid var(--warning-color);
}
.error-box {
background: #fef2f2;
border-left: 4px solid var(--danger-color);
}
.success-box,
.warning-box,
.error-box {
padding: 15px;
border-radius: 6px;
margin-bottom: 15px;
}