-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
48 lines (47 loc) · 1.04 KB
/
style.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
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');
html {
box-sizing: border-box;
}
body {
margin: 0;
background-color: whitesmoke;
font-family: 'Bangers' , sans-serif;
}
h1 {text-align: center;font-size: 3em;letter-spacing: 8px;}
.loader {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255,255,255,0.8);
}
/*
here i made it position fixed to cover all the page and over the hight
like i'm stretching a paper on a table to paint it
*/
/*
here i made it fixed to bc i want it to be fixed and to give it dimentions (top , left)
and the transform => translate to make the top & left 50% without counting element's width and height
*/
.loader img{
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.imgs-container {
margin: 10px 25%;
}
.imgs-container img{
margin-top: 5px;
width: 100%;
}
/*
// Media Query
*/
@media screen and (max-width: 600px){
.imgs-container {
margin: 10px 5%;
}
}