generated from Digitalni-akademie-Web-Jaro-2020-Praha/Ukol-kontakty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
66 lines (63 loc) · 1.03 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* nejsme vcerejsi, pouzivame moderni box model */
html { box-sizing: border-box; }
*, :after, :before { box-sizing: inherit; }
body {
font-family: sans-serif;
font-size: 14px;
text-align: center;
}
/* ---------------------------------------------------- */
.wrapper{
display: flex;
flex-direction: column;
width: 300px;
margin: 0 auto;
justify-content: center;
}
@media screen and (min-width: 540px){
.wrapper{
flex-direction: row;
flex-wrap: wrap;
width: 100%;
}
}
.box{
width: 100%;
border: 1px solid rgb(189, 189, 189);
border-radius: 5px;
text-align: center;
padding: 15px;
margin: 10px;
display: flex;
flex-direction: column;
}
.box img{
width: 60%;
align-self: center;
}
@media screen and (min-width: 540px){
.box{
width: 45%;
}
}
@media screen and (min-width: 540px) and (max-width: 960px){
.box{
width: 45%;
flex-direction: row;
}
.text{
text-align: left;
margin-left: 20px;
}
.box img{
width: 40%;
}
}
@media screen and (min-width: 960px){
.box{
width: 20%;
}
}
.box img{
border-radius: 100px;
}