-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
236 lines (201 loc) · 4.57 KB
/
style.css
File metadata and controls
236 lines (201 loc) · 4.57 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
:root {
--base-color: #ffffff;
--text-color: #000000;
--primary-color: #635f5b;
--scondary-color: #ed5d29;
--color-1: #dcd7d2;
--color-2: #F3F7F9;
--color-3: #F6F3F9;
}
* {]
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
color: var(--text-color)
}
body {
padding: 1em;
background-color: var(--base-color);
}
h1, h2, h3 {
font-family: Oswald;
}
/* ==========================================*/
/* Travail du style de la barre de navigation*/
/* ==========================================*/
nav {
margin: 1em auto 3em auto;
width: min(1000px, 100%)
}
nav ul {
display: flex;
align-items: center;
list-style-type: none;
gap: 1em
}
nav li:first-child {
margin-right: auto;
font-family: Oswald;
font-weight: bold;
font-size: x-large
}
nav a:hover {
text-decoration: underline;
}
/* ==========================================*/
/* Travail du style du header */
/* ==========================================*/
header, section {
margin: 2em auto;
width: min(75em, 100%);
background-color: var(--color-1);
padding: min(2em, 15%);
border-radius: 1em;
}
.flex-container {
display: flex;
justify-content: center;
align-items: top;
flex-wrap: wrap;
gap: 3em;
}
header img {
max-width: 100%;
border-radius: 1em;
object-fit: cover;
object-position: center;
}
.text-container {
flex: 0 1 34em;
}
/* Stylle sur les boutons */
/* A travaillez - les boutons sont pas top*/
.cta-button {
display: inline-block;
text-decoration: none;
color: #F6F3F9;
background-color: var(--primary-color);
padding: .100 1.25em;
border-radius: .4em;
font-size: x-large;
font-weight: 600;
}
.secondary {
background-color: var(--scondary-color);
}
/* ============================================*/
/* Travail du style de la section après header */
/* ============================================*/
section {
padding: 3em min(2em, 15%);
background-color: var(--color-1);
text-align: center;
}
h2 {
font-size: 2rem;
}
section p {
margin-top: 1em;
font-size: 1.25rem;
}
/* ======================================*/
/* Travail du style de la section my-work*/
/* ======================================*/
section#my-work {
background-color: var(--color-1);
}
/* Permet de créer la grille sans positionning */
.grid-container {
margin-top: 3em;
margin-bottom: 3em;
display: grid;
width: 100%;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: 1fr 1fr;
grid-template-areas:
"img-1 img-1 img-2 img-3"
"img-1 img-1 img-4 img-5";
gap: 1em;
}
.grid-container img {
height: 100%;
width: 100%;
border-radius: .5em;
transition: 100ms ease;
}
/* permet un léger zoom sur les images */
.grid-container img:hover {
scale: 1.05;
}
/* ========================================*/
/* Travail du style de la section questions*/
/* ========================================*/
details {
margin-top: 1em;
background-color: var(--base-color);
border-radius: 1em;
}
details summary {
padding: 1em;
font-size: 1.7rem;
font-family: Oswald;
}
details p {
padding: 0 2em 2em 2em;
}
/* ========================================*/
/* Travail du style du footer */
/* ========================================*/
footer {
padding-bottom: 1.5 em;
text-align: center;
}
footer a {
margin: 0 1em;
text-decoration: none;
color: var(--text-color);
}
footer a:hover {
text-decoration: underline;
}
/* ========================================*/
/* Gestion du site responsive */
/* ========================================*/
@media(max-width: 988px){
header {
text-align: center;
}
header .text-container {
padding-top: 0;
}
}
@media(max-width: 640px){
nav li {
display: none;
}
nav li:first-child,
nav li:last-child{
display: block;
}
header{
margin-top: 0;
}
.cta-button{
margin-top: .5em;
}
.grid-container{
display: flex;
flex-direction: column;
}
.text-container p{
font-size: 1rem;
}
h2 {
font-size: 1.5rem;
}
}