Skip to content

Commit d7dcec2

Browse files
committed
adding style
1 parent 647b59d commit d7dcec2

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed

css/styles.css

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
body {
2+
font-family: system-ui, sans-serif;
3+
background: #f8f9fa;
4+
color: #222;
5+
margin: 0;
6+
padding: 0 0 2em 0;
7+
}
8+
h1 {
9+
text-align: center;
10+
margin-top: 1.5em;
11+
margin-bottom: 1.5em;
12+
font-size: 2.2em;
13+
}
14+
h2 {
15+
text-align: center;
16+
margin-top: 2em;
17+
margin-bottom: 0.5em;
18+
font-size: 1.5em;
19+
color: #2a4d8f;
20+
letter-spacing: 0.1em;
21+
}
22+
ul {
23+
list-style: none;
24+
padding: 0;
25+
margin: 0 auto 2em auto;
26+
max-width: 600px;
27+
}
28+
li {
29+
margin: 0.5em 0;
30+
text-align: center;
31+
}
32+
a {
33+
color: #1a5fb4;
34+
text-decoration: none;
35+
font-weight: 500;
36+
font-size: 1.1em;
37+
}
38+
a:hover {
39+
text-decoration: underline;
40+
}/* Réinitialisation des marges et paddings pour une base propre */
41+
html, body {
42+
margin: 0;
43+
padding: 0;
44+
box-sizing: border-box;
45+
}
46+
47+
/* Style général du corps */
48+
body {
49+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
50+
background-color: #f5f5f5;
51+
color: #333;
52+
line-height: 1.6;
53+
padding: 2rem;
54+
}
55+
56+
/* Conteneur principal */
57+
h1 {
58+
font-size: 2.5rem;
59+
text-align: center;
60+
margin-bottom: 2rem;
61+
color: #2c3e50;
62+
}
63+
64+
/* Style de la liste */
65+
ul {
66+
list-style: none;
67+
padding: 0;
68+
max-width: 600px;
69+
margin: 0 auto;
70+
}
71+
72+
/* Style des éléments de la liste */
73+
li {
74+
margin: 0.75rem 0;
75+
}
76+
77+
/* Style des liens */
78+
a {
79+
display: block;
80+
padding: 1rem;
81+
background-color: #ffffff;
82+
border-radius: 8px;
83+
text-decoration: none;
84+
color: #2980b9;
85+
font-size: 1.1rem;
86+
transition: background-color 0.3s, transform 0.2s;
87+
}
88+
89+
/* Effet au survol des liens */
90+
a:hover {
91+
background-color: #e6f3fa;
92+
transform: translateX(5px);
93+
}
94+
95+
/* Responsive pour petits écrans */
96+
@media (max-width: 600px) {
97+
h1 {
98+
font-size: 1.8rem;
99+
}
100+
101+
a {
102+
font-size: 1rem;
103+
padding: 0.75rem;
104+
}
105+
}

0 commit comments

Comments
 (0)