-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbanner.css
107 lines (107 loc) · 2.19 KB
/
banner.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/* バナー */
#banner {
padding: 0 1em;
max-width: 940px;
display: inline-block;
}
#goldBanner, #silverBanner {
display: -ms-grid;
display: grid;
-ms-grid-rows: auto;
}
#goldBanner {
grid-template-columns: repeat(2, 1fr);
-ms-grid-columns: 1fr 60px 1fr;
grid-column-gap: 60px;
grid-row-gap: 60px;
margin: 60px 0;
}
#silverBanner {
grid-template-columns: repeat(3, 1fr);
-ms-grid-columns: 1fr 60px 1fr 60px 1fr;
grid-column-gap: 60px;
grid-row-gap: 60px;
margin: 60px 0;
}
#goldBanner > a, #silverBanner > a {
display: flex;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
background-color: #fff;
font-size: 0px;
border-width: 1px;
border-style: solid;
border-color: #cccccc;
border-image: initial;
padding: 5px;
}
#goldBanner > a {
height: calc(127px - 12px);
}
#silverBanner > a {
height: calc(101px - 12px);
}
#goldBanner > a > img {
width: 100%;
max-width: 440px;
height: 100%;
object-fit: contain;
}
#silverBanner > a > img {
width: 100%;
max-width: 280px;
height: 100%;
object-fit: contain;
}
@media screen and (max-width: 1600px) {
}
@media screen and (max-width: 768px) {
/*#goldBanner > a, #silverBanner > a {
padding: 10px;
}*/
#goldBanner > a {
/*height: calc(127px - 22px);*/
height: calc(100vw / 7.3142);
}
#silverBanner > a {
/*height: calc(82px - 22px);*/
height: calc(100vw / 12.8);
}
}
@media screen and (max-width: 576px) {
#goldBanner > a, #silverBanner > a {
padding: 2px;
}
#goldBanner {
grid-column-gap: 15px;
-ms-grid-columns: 1fr 15px 1fr;
grid-row-gap: 15px;
}
#silverBanner {
grid-column-gap: 15px;
-ms-grid-columns: 1fr 15px 1fr 15px 1fr;
grid-row-gap: 15px;
}
#goldBanner > a {
/*height: calc(68px - 4px);*/
height: calc(100vw / 5.8594);
}
#silverBanner > a {
/*height: calc(48px - 4px);*/
height: calc(100vw / 8.5227);
}
}
@media screen and (max-width: 330px) {
#goldBanner {
grid-column-gap: 10px;
-ms-grid-columns: 1fr 10px 1fr;
grid-row-gap: 10px;
}
#silverBanner {
grid-column-gap: 10px;
-ms-grid-columns: 1fr 10px 1fr 10px 1fr;
grid-row-gap: 10px;
}
}