summaryrefslogtreecommitdiff
path: root/css/04-external-css/styles.css
blob: 529645366e4f20ff73d73d8e70030a5451b5ef6b (plain)
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
/* 1. Global design tokens (Variables) */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --text-dark: #2c3e50;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --border-radius: 8px;
}

/* 2. Base Element Resets */
body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
  padding: 20px;
}

/* 3. Reusable Component Classes */
.card {
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

/* 4. Reusable Modifier Classes */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}