-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
135 lines (114 loc) · 2.15 KB
/
style.css
File metadata and controls
135 lines (114 loc) · 2.15 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* style.css */
body {
font-family: Overpass;
color: #404042;
font-size: 18px;
margin: 0;
}
h1, h2, h3 {
font-family: Chivo;
color: #404042;
}
p {
color: #404042;
opacity: .7;
}
.container {
width: 800px;
margin: auto;
}
.container h2{
text-align: center;
}
.banner {
background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),url('images/repas_afro.jpg');
background-size: cover;
background-position: center;
padding: 150px 0;
text-align: center;
}
.banner h1 {
color: white;
font-size: 45px;
margin: 0;
}
.banner p {
color: white;
font-size: 24px;
}
.button-blue {
background-color: #1A48E3;
color: white;
padding: 16px 48px;
border-radius: 4px;
display: inline-block;
text-decoration: none;
transition: .3s;
}
.button-blue:hover {
background-color: #0D1EC6;
color: white;
}
.card-white {
background: white;
box-shadow: 0 0 16px rgba(0,0,0,0.1);
border-radius: 4px;
width: 200px;
text-align: center;
padding: 24px;
margin: 8px;
}
.card-white img {
width: 180px;
height: 180px;
object-fit: cover;
border-radius: 4px;
}
.card-white h3 {
margin-bottom: 0;
}
.footer {
background: #404042;
text-align: center;
padding: 24px 0;
}
.footer p {
color: white;
text-decoration: none;
}
/********** Mettre la couleur blanche sur le lien vers le site 241Web *****************/
.footer a {
color: white;
}
/**********CSS Grid pour mettre les cartes en trois colonnes *****************/
.cards {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: 16px;
}
/***** Pour que le site soit responsive ******/
/* Cards media queries - concerne la div cards*/
@media (max-width: 800px) {
.cards {
grid-template-columns: 1fr;
}
.card-white {
width: auto;
}
}
/* Container media queries - concerne l'ensemble des cartes*/
@media (min-width: 500px) {
.container {
width: 400px;
}
}
@media (min-width: 800px) {
.container {
width: 600px;
}
}
@media (min-width: 1000px) {
.container {
width: 800px;
}
}