-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
103 lines (88 loc) · 1.92 KB
/
style.css
File metadata and controls
103 lines (88 loc) · 1.92 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
/* styles.css */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: black;
}
nav {
text-align: center;
background-color: black;
color: #fff;
padding: 20px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
border-bottom: 4px solid #fff;
}
nav .left {
display: flex;
flex-direction: column; /* Adjusted for smaller screens */
align-items: center; /* Centered vertically for smaller screens */
gap: 10px;
}
nav .right {
padding-right: 50px;
}
.right a {
background-color: orangered;
padding: 15px 30px;
color: #fff;
border-radius: 6px;
text-decoration: none;
}
nav img {
width: 160px;
height: 160px;
border-radius: 6px;
margin-top: 10px;
}
main {
margin: 70px auto;
padding: 10px;
border: 4px solid #ccc;
width: 700px;
border-radius: 6px;
}
h2 {
font-size: 18px;
color: orangered;
}
p {
font-size: 16px;
color: #efefefb2;
}
/* Media Query for Smaller Screens */
@media screen and (max-width: 768px) {
nav {
flex-direction: column;
padding-bottom: 20px; /* Adjusted for smaller screens */
}
nav .left {
text-align: center; /* Centered horizontally for smaller screens */
}
nav img {
width: 100px; /* Adjusted for smaller screens */
height: 100px; /* Adjusted for smaller screens */
margin-top: 0; /* Adjusted for smaller screens */
}
nav h1 {
font-size: 18px;
text-align: center; /* Centered horizontally for smaller screens */
}
nav .right {
padding-right: 0;
padding-left: 0;
margin-top: 10px; /* Adjusted for smaller screens */
}
.right a {
font-size: 14px;
width: 100%;
text-align: center; /* Centered horizontally for smaller screens */
}
main {
width: 90%;
margin: 20px auto; /* Adjusted for smaller screens */
}
}