generated from Digitalni-akademie-Web-Jaro-2020-Praha/Ukol-kontakty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
86 lines (72 loc) · 1.34 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* 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;
}
/* ---------------------------------------------------- */
.tym {
display: flex;
flex-direction: column;
}
.fotka img {
border-radius: 50%;
}
.clenka {
border: 2px solid rgb(211, 209, 209);
border-radius: 5%;
padding: 20px;
text-align: center;
margin: 10px;
box-shadow: 0px 1px 2px #70e6ee;
}
@media only screen and (min-width: 540px) {
/*při velkém zůžení mi jsou fotky různě veliké, proč?*/
.tym {
flex-direction: row;
flex-wrap: wrap;
}
.clenka {
display: flex;
width: 46%; /*proč tady nejde 50%? je to kvůli paddingu a marginu?*/
justify-content: space-evenly;
}
.fotka img {
max-width: 90px;
}
.charakteristika {
text-align: left;
padding-left: 20px;
}
}
@media only screen and (min-width: 960px) {
.tym {
flex-direction: row;
justify-content: space-evenly;
}
.clenka {
width: 23%;
display: flex;
flex-direction: column;
justify-content: flex-start;
padding: 10px;
margin: 0;
}
.fotka img {
margin-top: 10px;
max-width: 100%;
}
.charakteristika {
text-align: center;
padding: 0 5px;
margin: 0;
}
}