-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
104 lines (89 loc) · 1.59 KB
/
style.css
File metadata and controls
104 lines (89 loc) · 1.59 KB
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
/* This is for phones (we start small) */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
body {
padding: 20px;
background-color: purple;
}
h1 {
font-size: 24px;
margin-bottom: 20px;
color: black;
}
nav {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 30px;
}
nav a {
text-decoration: none;
color: black;
font-size: 18px;
}
.card {
background-color: plum;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
h2 {
font-size: 20px;
margin-bottom: 10px;
}
p {
margin-bottom: 15px;
color: #666;
}
button {
background-color: #4caf50;
color: white;
border: none;
padding: 10px 15px;
border-radius: 4px;
cursor: pointer;
}
.actions {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 30px;
}
.actions button {
background-color: gray;
color: black;
border: 1px solid #ddd;
font-weight: bolder;
}
/* This is for laptops (big screens) */
@media (min-width: 768px) {
body {
padding: 40px;
max-width: 1200px;
margin: 0 auto;
}
h1 {
font-size: 32px;
}
nav {
flex-direction: row;
gap: 30px;
}
.cards {
display: flex;
gap: 20px;
}
.card {
flex: 1;
margin-bottom: 0;
}
.actions {
flex-direction: row;
justify-content: center;
gap: 20px;
}