-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathballbadminton.css
90 lines (89 loc) · 1.48 KB
/
ballbadminton.css
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
* {
box-sizing: border-box;
}
html {
font-size: 16px;
}
body {
background-color: lavender;
border: 2px solid black;
}
header {
display: flex;
align-items: center;
background-color: lightskyblue;
font-size: 1.2rem;
margin: 2rem;
}
nav ul {
display: flex;
gap: 20px;
list-style: none;
}
button {
background-color: gray;
color: white;
font-size: 1.25rem;
margin: 2rem;
padding: 0.5rem;
border-radius: 1rem;
float: center;
width: 7rem;
}
section {
font-size: 1.2rem;
line-height: 1.2;
margin: 2rem;
}
p {
line-height: 1.4;
}
.history {
display: flex;
gap: 10px;
justify-content: center;
}
.history img {
object-fit: cover;
border: 1px solid #ddd;
width: 100%;
height: 100%;
gap: 20px;
}
.tournaments {
display: flex;
gap: 20px;
width: 100%;
justify-content: center;
}
.tournaments img {
object-fit: cover;
border: 1px solid #ddd;
width: 100%;
height: 100%;
}
@media only screen and (max-width: 600px){
header h2 {
font-size: 1.5rem;
}
nav ul {
display: flex;
flex-wrap: wrap;
}
p {
font-size: 1.2rem;
}
.tournaments, .history {
flex: 1;
flex-wrap: wrap;
justify-content: center;
max-width: 60%;
}
.tournaments img, .history img {
object-fit: cover;
border: 1px solid #ddd;
width: 100%;
height: 100%;
flex: 1;
}
}