-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SwimClubMeet.css
114 lines (93 loc) · 2.06 KB
/
SwimClubMeet.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/* This is a comment that explains the purpose of this .css file */
.p1 {
font-family: "Times New Roman", Times, serif;
}
.p2 {
font-family: Arial, Helvetica, sans-serif;
}
.p3 {
font-family: "Fira Code", "Lucida Console", "Courier New", monospace;
}
p {
font-family: class="p3";
}
/* Define the default font and background color for the body element */
body {
font-family: class="p3";
background-color: #f0f0f0;
}
/* Define the style and layout of the header element */
header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem;
background-color: #333;
color: white;
}
/* @group Headings */
h1,h2,h3,h4,h5,h6 {
line-height: 1;
margin: 0;
margin-top: 1.5rem;
text-rendering: optimizeLegibility;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.65rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }
h2 em, h3 em{
color:grey;
}
/* Define the style and layout of the logo element */
.logo {
font-size: 2rem;
font-weight: bold;
}
/* Define the style and layout of the navigation element */
nav {
display: flex;
gap: 1rem;
}
/* Define the style and layout of the links inside the navigation element */
nav a {
color: white;
text-decoration: none;
}
/* Define the style and layout of the main element */
main {
margin: 2rem;
}
/* Define the style and layout of the article element */
article {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}
/* Define the style and layout of the card element */
.card {
border: 1px solid #ccc;
padding: 1rem;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
/* Define the style and layout of the image element inside the card element */
.card img {
width: 100%;
height: auto;
}
/* Define the style and layout of the title element inside the card element */
.card h3 {
margin: 0.5rem 0;
font-size: 1.5rem;
}
/* Define the style and layout of the footer element */
footer {
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
background-color: #333;
color: white;
}