Untitled
unknown
plain_text
a year ago
5.4 kB
6
Indexable
$main-font-color: #ceb44c; $main-font-color-hover: #ac9847; $pure-white: #fff; @mixin hover { color: $main-font-color-hover; transform: scale(1.1); } * { box-sizing: border-box; margin: 0; padding: 0; } html { font-size: 62.5%; scroll-behavior: smooth; } body { background-color: $pure-white; font-family: 'Open Sans', sans-serif; } .wrapper { margin: 0 auto; width: 100%; max-width: 1200px; } // NAV .active { position: fixed; display: grid; transform: translateX(0); } nav { position: relative; width: 100%; overflow: hidden; z-index: 2; } .nav__mobile { position: fixed; display: grid; align-items: center; justify-content: center; transform: translateX(100%); width: 100%; height: 100%; background-color: #242424; z-index: 2; transition: transform 1s; &--active { transform: translateX(0); } &-items { width: 100%; list-style: none; align-items: center; justify-content: center; } &-item { display: block; text-align: center; width: 100%; text-decoration: none; color: $main-font-color; font-size: 4.2em; letter-spacing: 2px; margin: 10px 0; transition-duration: 0.3s; &:hover { opacity: 0.6; } } } .nav-container { position: fixed; background-color: #242424; z-index: 2; width: 100%; } .nav { display: flex; justify-content: space-between; align-items: center; height: 100px; &-logo { &__img { width: 20em; } } &-items { display: none; li::marker { position: absolute; content: '/'; right: -30px; } a { position: relative; text-decoration: none; font-size: 2.3em; color: $main-font-color; margin: 0 20px; text-transform: uppercase; transition: transform 0.3s, color 0.3s; &:last-child::after { display: none; } &:hover { @include hover(); } } &__item { padding: 10px; } } &-bars { position: absolute; background-color: transparent; border: none; top: 0; right: 0; padding: 30px; font-size: 3em; text-decoration: none; color: $main-font-color; cursor: pointer; } &-contact { i { a { text-decoration: none; } transition: 0.3s; display: none; &:hover { @include hover(); } } } } // header .header { background-image: url('/dist/img/bg.jpg'); position: relative; height: 75vh; top: 0; left: 0; width: 100%; display: flex; justify-content: center; align-items: center; flex-direction: column; background-attachment: scroll; background-size: cover; background-position: center; z-index: 1; .white-block { position: absolute; height: 40px; width: 60%; background-color: $pure-white; z-index: 301; &-left { bottom: 0; left: -50px; transform: skew(45deg); } &-right { top: 0; right: -50px; transform: skew(45deg); } } &__shadow { position: absolute; width: 100%; height: 100%; background-color: rgba(37, 31, 2, 0.75); z-index: -10; } &__heading { display: flex; color: $main-font-color; font-family: 'Caramel', cursive; font-weight: 400; font-size: 9em; line-height: 1; &-text { letter-spacing: 1px; font-weight: 400; color: $main-font-color; font-size: 2em; } } } // MAIN main { background-color: $pure-white; } .main { // display: none; &-heading { display: flex; justify-content: center; flex-direction: column; align-items: center; margin: 60px; text-align: center; h3 { text-align: center; font-size: 3.6em; text-transform: uppercase; color: $main-font-color; &::after { background-color: $main-font-color-hover; width: 200px; height: 3px; border: none; content: ''; display: block; } } } &__about { display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; &-left { width: 550px; img { width: 90%; border-radius: 8px; margin-right: 10px; } } &-right { font-size: 1.6em; width: 100%; p { padding: 30px 50px; } } } } .items-animation { display: grid; animation: navItemsAnimation 1s both; animation-delay: 0.3s; } // @keyframes navItemsAnimation { from { transform: translateX(200%); } to { transform: translateX(0); } } ///// $main-font-color: #ceb44c; @media (min-width: 576px) { .nav { &-logo { &__img { width: 20em; } } &-contact { display: flex; } } } @media (min-width: 768px) { .nav { &-contact { i { position: relative; display: block; font-size: 1.9em; padding: 0 5px; color: $main-font-color; a { text-decoration: none; } } } height: 100px; &-logo { &__img { width: 20em; } } &-items { display: flex; a { font-size: 1.8em; } } &-bars { display: none; } } } @media (min-width: 992px) { .nav { &-items { a { font-size: 2.3em; } } } .header { background-attachment: fixed; } .main { &__about { flex-direction: row; &-right { font-size: 2.6em; } } } }
Editor is loading...
Leave a Comment