<body>
<body>
<header class="container_main">
<nav class="nav" role="navigation">
<div class="menu-bg"></div>
<ul class="menu" id="see">
<li class="home"><a class="icon home_bar" href="index.html"><span>Главная</span></a></li>
<li class="gallery"><a class="icon gallery_bar" href="pages/gallery.html"><span>Галерея</span></a></li>
<li class="ut"><a class="icon ut_bar" href="pages/usefulTips.html"><span>Полезные советы</span></a></li>
<li class="contact"><a class="icon contact_bar" href="pages/contacts.html"><span>Контакты</span></a></li>
<li class="journal"><a class="icon journal_bar" href="#"><span>Журнал</span></a></li>
</ul>
<div class="burger">
<div class="x"></div>
<div class="y"></div>
<div class="z"></div>
</div>
</nav>
<div class="firstname">
<h1 class="name-main">Текст
<p>Текст</p>
</h1>
</div>
</header>
<div class="wrapper">
content
</div>
<footer>
footer
</footer>
</body>
/* Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/*
My style
*/
html {
overflow: scroll;
overflow-x: hidden;
height: 100%;
}
::scrollbar {
width: 0px;
}
body {
margin: 0;
width: 100%;
display: box;
display: flex;
box-orient: vertical;
box-direction: normal;
flex-direction: column;
min-height: 100%;
}
.wrapper {
display: block;
max-width: 2560px;
flex-grow: 1;
margin-top: 10px;
margin-left: 20%;
margin-right: 20%;
position: relative;
z-index: 7;
text-align: center;
background-color: red;
font-size:2em
}
.header {
background-color: blue;
max-height: 250px;
width: 100%;
font-size:2em
}
.nav {
display: block;
}
.nav a {
position: fixed;
z-index: 10;
left: -278px;
transition: 0.3s;
width: 310px;
color: #000000;
border-radius: 0px 5px 5px 0;
border: 1px solid black;
margin-top: 27%;
padding: 15px;
font-size: 24px;
text-decoration: none;
line-height: 40px;
text-align: center;
}
.nav a:hover {
left: -30px;
}
.home .icon {
background: url(../img/icon_home.svg) center right 0.5em no-repeat;
}
.gallery .icon {
background: url(../img/icon_gallery.svg) center right 0.5em no-repeat;
}
.ut .icon {
background: url(../img/icon_ut.svg) center right 0.5em no-repeat;
}
.journal .icon {
background: url(../img/icon_journal.svg) center right 0.5em no-repeat;
}
.contact .icon {
background: url(../img/icon_contact.svg) center right 0.5em no-repeat;
}
.home .icon, .gallery .icon, .ut .icon, .journal .icon, .contact .icon{
background-size: 40px;
background-color: #ffffff;
background-blend-mode: normal;
}
.home_bar {
visibility: hidden;
}
.gallery_bar {
top: 40px;
}
.ut_bar {
top: 120px;
}
.contact_bar {
top: 200px;
}
.journal_bar {
top: 280px;
}
.name-main {
font-family: 'Merriweather', serif;
font-size: 7.5rem;
color: #ffffff;
position: absolute;
margin-top: 7%;
margin-left: 52%;
z-index: 1;
text-shadow:black 1px 1px 0, black -1px -1px 0,
black -1px 1px 0, black 1px -1px 0;
}
.name-main p {
margin-left: 50px;
}
.slogan {
font-family: "Adana", serif;
color: #ffffff;
font-size: 4.5rem;
position: absolute;
z-index: 1;
line-height: 1;
margin-top: 27%;
margin-left: 70%;
text-shadow: black 1px 1px 0, black -1px -1px 0,
black -1px 1px 0, black 1px -1px 0;
}
footer {
background-color: yellow;
position: relative;
flex-shrink: 0;
height: 40px;
width: 100%;
bottom: 0;
z-index: 6;
font-size:2em
}
@media screen and (max-width : 1024px) and (min-width : 381px) {
.parallax {
background-attachment: scroll;
}
.main {
padding: 0 10%;
}
.name-main {
font-size: 5rem;
margin-top: 10%;
margin-left: 52%;
}
.slogan {
font-size: 3rem;
margin-top: 50%;
line-height: 0.9;
}
.foto-desinger {
margin: 10px auto;
}
.blockquote {
width: 50%;
margin: 0 auto;
}
.menu {
display: none;
background-image: url(../img/Фон.png);
height: 100%;
position: relative;
z-index: 20;
}
.home_bar {
visibility: visible;
}
div.burger {
height: 30px;
width: 40px;
position: absolute;
top: 11px;
left: 21px;
z-index: 30;
}
div.x,
div.y,
div.z {
position: absolute; margin: auto;
top: 0px; bottom: 0px;
background: #fff;
border-radius:2px;
transition: all 200ms ease-out;
transition: all 200ms ease-out;
transition: all 200ms ease-out;
}
div.x, div.y, div.z { height: 3px; width: 26px; }
div.y {top: 18px;}
div.z {top: 37px;}
div.collapse {
top: 20px;
transition: all 70ms ease-out;
transition: all 70ms ease-out;
transition: all 70ms ease-out;
}
div.rotate30 {
transform: rotate(30deg);
transform: rotate(30deg);
transform: rotate(30deg);
transition: all 50ms ease-out;
transition: all 50ms ease-out;
transition: all 50ms ease-out;
}
div.rotate150 {
transform: rotate(150deg);
transform: rotate(150deg);
transform: rotate(150deg);
transition: all 50ms ease-out;
transition: all 50ms ease-out;
transition: all 50ms ease-out;
}
div.rotate45 {
transform: rotate(45deg);
transform: rotate(45deg);
transform: rotate(45deg);
transition: all 100ms ease-out;
transition: all 100ms ease-out;
transition: all 100ms ease-out;
}
div.rotate135 {
transform: rotate(135deg);
transform: rotate(135deg);
transform: rotate(135deg);
transition: all 100ms ease-out;
transition: all 100ms ease-out;
transition: all 100ms ease-out;
}
div.menu-bg {
width: 100%;
height: 100%;
position:absolute;
top:0;
left:0;
transition: all 300ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
transition: all 300ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
transition: all 300ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
}
ul.menu {
padding-top: 5em;
}
ul.menu li {
width:300px;
margin: 0 auto;
}
ul.menu span {
text-align: right;
}
ul.menu li a {
background-color: white;
color:rgb(0, 0, 0);
opacity: 0.75;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.