Spaces:
Paused
Paused
File size: 2,456 Bytes
93d826e | 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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | /* Global variables */
:root {
--primary-color: #3498db;
--secondary-color: #2ecc71;
--text-color: #2c3e50;
--spacing-unit: 1rem;
--border-radius: 4px;
}
/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
color: var(--text-color);
}
/* Layout containers */
.container {
max-width: 1200px;
margin: 0 auto;
padding: var(--spacing-unit);
}
/* Grid system */
.grid {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: var(--spacing-unit);
}
/* Flexbox components */
.flex-container {
display: flex;
justify-content: space-between;
align-items: center;
}
/* Component styles */
.button {
padding: calc(var(--spacing-unit) / 2) var(--spacing-unit);
border-radius: var(--border-radius);
border: none;
cursor: pointer;
transition: background-color 0.3s ease;
}
.button:hover {
opacity: 0.9;
}
.button--primary {
background-color: var(--primary-color);
color: white;
}
.button--secondary {
background-color: var(--secondary-color);
color: white;
}
/* Card component */
.card {
border-radius: var(--border-radius);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: var(--spacing-unit);
}
/* Media queries */
@media screen and (max-width: 768px) {
.grid {
grid-template-columns: repeat(6, 1fr);
}
}
@media screen and (max-width: 480px) {
.grid {
grid-template-columns: 1fr;
}
.flex-container {
flex-direction: column;
gap: var(--spacing-unit);
}
}
/* Animation keyframes */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.fade-in {
animation: fadeIn 0.3s ease-in;
}
/* Form styles */
.form-group {
margin-bottom: var(--spacing-unit);
}
.form-input {
width: 100%;
padding: calc(var(--spacing-unit) / 2);
border: 1px solid #ddd;
border-radius: var(--border-radius);
}
/* Navigation */
.nav {
background-color: var(--primary-color);
padding: var(--spacing-unit);
}
.nav__list {
list-style: none;
display: flex;
gap: var(--spacing-unit);
}
.nav__link {
color: white;
text-decoration: none;
}
/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: var(--spacing-unit); }
.mb-1 { margin-bottom: var(--spacing-unit); }
.ml-1 { margin-left: var(--spacing-unit); }
.mr-1 { margin-right: var(--spacing-unit); }
|