-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
91 lines (81 loc) · 1.64 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
87
88
89
90
.responsive-image{
width: 100%;
background-size: 100% 100%;
background-color: lightblue;
}
.summary {
list-style-type: none;
position: absolute;
color: white;
font-size: 24px;
font-weight: bold;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%)
}
.transbox {
background: transparent;
color: white;
}
/*and finally, we serve for every view-port the right image:*/
/* Retina display */
@media screen and (min-width: 1024px){
.responsive-image{
background-image: url('./images/background/1366.png');
}
.summary {
font-size: 30px;
}
.transbox {
font-size: 30px;
}
}
/* Desktop */
@media screen and (min-width: 980px) and (max-width: 1024px){
.responsive-image{
background-image: url('./images/background/1024.png');
}
.summary {
font-size: 22px;
}
.transbox {
font-size: 22px;
}
}
/* Tablet */
@media screen and (min-width: 760px) and (max-width: 980px){
.responsive-image{
background-image: url('./images/background/980.png');
}
.summary {
font-size: 14px;
}
.transbox {
font-size: 14px;
}
}
/* Mobile HD */
@media screen and (min-width: 350px) and (max-width: 760px){
.responsive-image{
background-image: url('./images/background/760.png');
}
.summary {
font-size: 10px;
}
.transbox {
font-size: 10px;
}
}
/* Mobile LD */
@media screen and (max-width: 350px){
.responsive-image{
background-image: url('./images/background/350.png');
}
.summary {
font-size: 8px;
}
.transbox {
font-size: 8px;
}
}