Version 2

This commit is contained in:
Петухова Ростислава
2023-10-31 19:39:28 +03:00
parent 648dba0a50
commit c5b1b7125f
12 changed files with 200 additions and 126 deletions

View File

@@ -1,33 +1,27 @@
html {
scroll-behavior: smooth;
}
header{
position: fixed;
margin: 0 auto;
left: 0;
top: 0;
height: calc(var(--boxHeight) * 1.5);
width: 100%;
z-index: 2;
}
.prevHeader{
background-color: var(--headerBoxColor);
overflow: hidden;
}
.postHeader{
position: fixed;
margin: 0 auto;
left: 0;
top: 0;
margin-top: calc(var(--boxHeight) * 1.5);
height: calc(var(--boxHeight) * 0.2);
width: 100%;
z-index: 2;
border-bottom-right-radius: 1vw;
height: calc(var(--boxHeight) * 0.3);
background-color: var(--postHeaderBoxColor);
border-bottom-left-radius: 1vw;
background-color: var(--postHeaderBoxColor);
overflow: hidden;
border-bottom-right-radius: 1vw;
}
body{
@@ -36,11 +30,10 @@
.vologdaDescription{
position:relative;
left: calc(100% - (50% + var(--blockSize)/2));
margin-top: calc(var(--boxHeight) * 2.2);
margin: auto;
margin-top: 10%;
width: var(--blockSize);
height: calc(var(--boxHeight) * 2.8);
text-align: center;
@@ -51,11 +44,11 @@
.vologdaPlace{
position:relative;
left: calc(100% - (50% + var(--blockSize)/2));
margin: auto;
width: var(--blockSize);
margin-top: 6vw;
height: calc(var(--boxHeight) * 10);
height: 25%;
text-align: center;
@@ -66,11 +59,11 @@
.vologdaMap{
position:relative;
left: calc(100% - (50% + var(--blockSize)/2));
margin: auto;
margin-top: var(--vologdaBoxMargin);
width: var(--blockSize);
height: calc(var(--boxHeight) * 8);
height: 30vw;
text-align: center;
@@ -101,8 +94,6 @@
}
.postFooter{
height: calc(var(--boxHeight) * 1);
border-bottom-right-radius: 1vw;
border-bottom-left-radius: 1vw;
background-color: var(--headerBoxColor);
@@ -118,17 +109,8 @@
--bodyBoxColor:rgb(255, 255, 255);
--vologdaBoxMargin: 6vw;
--blockSize: 40vw;
--blockSize: 50vw;
--vologdaBoxColor: rgb(177, 250, 250);
--boxHeight: 3.1vw;
}
@media screen and (max-width: 980px) {
:root {
--vologdaBoxMargin: 12vw;
--blockSize: 80vw;
--boxHeight: 6.2vw;
}
}

View File

@@ -2,9 +2,9 @@
.button-grid {
display: grid;
display: grid;
grid-template-columns: 2fr 0.1fr 2fr;
grid-template-rows: calc(11vw * var(--sizeButton)) calc(11vw * var(--sizeButton)) calc(11vw * var(--sizeButton));
grid-gap: calc(2vw * var(--sizeButton));
grid-template-columns: 4fr 4fr 4fr;
grid-template-rows: 4fr 4fr;
grid-gap: 4fr;
}
.image-button {
@@ -35,10 +35,4 @@
:root {
--sizeButton: 1;
}
@media screen and (max-width: 980px) {
:root {
--sizeButton: 2;
}
}

6
site/style/header.html Normal file
View File

@@ -0,0 +1,6 @@
<header>
<div class="prevHeader">
<p class="titleText">Вологда путешествия</p>
</div>
<div class="postHeader"></div>
</header>

View File

@@ -0,0 +1,29 @@
<div class="snowflakes">
<div class="snowflake">
В ВОЛОГДЕ ВКУСНОЕ МОЛОКО !
</div>
<div class="snowflake">
ВОЛОГДА СУПЕР !
</div>
<div class="snowflake">
ГДЕ ? В ВОЛОГДЕ !
</div>
<div class="snowflake">
КРУЖЕВА ПРОСТО КЛАСС !
</div>
<div class="snowflake">
МАСЛО ЛУЧШЕЕ !
</div>
<div class="snowflake">
В ВОЛОГДЕ КЛАСС !
</div>
<div class="snowflake">
В ВОЛОГДЕ ПРЕКРАСНО!
</div>
<div class="snowflake">
ВОЛОГДА СУПЕР !
</div>
<div class="snowflake">
ВОЛОГДА!
</div>
</div>

View File

@@ -21,11 +21,5 @@
}
:root {
--textSize: 1vw;
}
@media screen and (max-width: 980px) {
:root {
--textSize: 2vw;
}
--textSize: 1.2em;
}