mirror of
https://github.com/Redume/Kekkai-web.git
synced 2024-11-21 15:56:23 +03:00
Адаптивная верстка баннера
This commit is contained in:
parent
0a27f9d359
commit
56ae4877c1
1 changed files with 35 additions and 7 deletions
|
@ -1,29 +1,57 @@
|
|||
body {
|
||||
background: #4F5574;
|
||||
color: white;
|
||||
font-family: "Gotham Pro";
|
||||
font-family: "Gotham Pro", sans-serif;
|
||||
font-weight: bold;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.banner {
|
||||
background: rgba(0, 0, 0, 0.39);
|
||||
border-radius: 3vh;
|
||||
display: grid
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 2%;
|
||||
max-width: 95vw;
|
||||
margin: .5% auto;
|
||||
}
|
||||
|
||||
.banner-img {
|
||||
display: block;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.banner-img img {
|
||||
width: 20%;
|
||||
width: 100%;
|
||||
max-width: 450px;
|
||||
height: auto;
|
||||
margin: 1.5%;
|
||||
}
|
||||
|
||||
.desc {
|
||||
width: 50%;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
text-align: center;
|
||||
margin: 1% auto;
|
||||
font-size: 2.3vh;
|
||||
word-wrap: break-word;
|
||||
padding: 0 2%;
|
||||
box-sizing: border-box;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.desc {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.desc {
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue