123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380 |
- main {
- display: flex;
- justify-content: center;
- flex-grow: 1;
- }
- .wrapper {
- width: 100%;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- min-height: 100vh;
- }
- .content {
- display: flex;
- order: 2;
- }
- .container {
- max-width: 960px;
- margin: 0 auto;
- padding: 0 15px;
- }
- .content__wrapper {
- margin-top: 30px;
- }
- .content__text {
- padding: 0 40px;
- }
- .content__wrapper h1 {
- text-transform: uppercase;
- }
- .menu {
- background-color: rgb(226, 188, 21);
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 15px 50px;
- }
- .menu__img {
- width: 190px;
- position: relative;
- z-index: 9;
- }
- .burger,
- #opener {
- display: none;
- }
- .menu__list ul {
- display: flex;
- font-size: 15px;
- }
- .menu__list li {
- padding-left: 10px;
- }
- .menu__list a {
- font-size: 25px;
- color: black;
- }
- .menu__list a {
- transition: all 0.5s;
- }
- .menu__list a:hover {
- color: rgb(34, 132, 149);
- }
- .box {
- display: flex;
- text-align: center;
- }
- .content__list {
- display: flex;
- flex-wrap: wrap;
- margin: 0;
- padding: 0;
- width: 100%;
- align-items: stretch;
- }
- .content__item {
- width: calc(100% / 3);
- display: flex;
- margin-bottom: 15px;
- justify-content: center;
- }
- .item__box {
- border: 2px solid gray;
- border-radius: 30px;
- display: flex;
- flex-direction: column;
- align-items: center;
- padding: 15px 10px;
- transition: all 0.5s;
- }
- .item__box:hover {
- box-shadow: 0px 5px 10px 2px rgb(34 60 80 / 31%);
- border: 2px solid transparent;
- }
- .item__img img {
- height: 80px;
- width: 80px;
- border-radius: 50%;
- border: 10px solid rgb(167, 167, 128);
- }
- .item__text {
- flex-grow: 1;
- width: 250px;
- }
- .item__btn {
- background-color: rgb(87, 54, 116);
- color: white;
- padding: 5px 20px;
- border-radius: 30px;
- font-weight: bold;
- transition: all 0.7s;
- }
- .item__btn:hover {
- box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
- transform: scale(1.2);
- background-color: rgb(182, 158, 204);
- color: black;
- }
- .aside__first,
- .aside__second {
- width: 210px;
- height: auto;
- font-weight: bold;
- }
- .aside__first {
- background-color: rgb(235, 111, 208);
- order: 1;
- }
- .aside__second {
- background-color: rgb(111, 189, 235);
- order: 3;
- }
- .footer {
- background-color: cadetblue;
- padding: 15px 0;
- text-align: center;
- width: 100%;
- font-weight: bold;
- }
- .holder__wrapper {
- display: flex;
- justify-content: center;
- margin: 35px auto 50px;
- }
- .holder {
- flex-basis: 400px;
- height: 100px;
- border-radius: 20px 20px 0 0;
- overflow: hidden;
- border: 2px solid black;
- display: flex;
- flex-wrap: wrap;
- }
- .item {
- flex-basis: 100px;
- flex-grow: 1;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .item__one {
- background-color: coral;
- order: 1;
- flex-basis: 50%;
- }
- .item__two {
- background-color: rgb(164, 164, 236);
- order: 4;
- }
- .item__three {
- background-color: rgb(205, 80, 255);
- order: 3;
- }
- .item__four {
- background-color: rgb(11, 105, 11);
- order: 5;
- }
- .item__five {
- background-color: orange;
- order: 2;
- flex-basis: 50%;
- }
- @media (max-width: 1280px) {
- .menu__list a {
- font-size: 20px;
- }
- .content__item {
- width: calc(100% / 2);
- }
- }
- @media (max-width: 855px) {
- .menu__nav {
- display: flex;
- justify-content: flex-end;
- flex-grow: 1;
- }
- .menu__img {
- width: 150px;
- }
- .burger {
- position: relative;
- display: block;
- width: 30px;
- height: 20px;
- font-size: 0;
- }
- .burger::before,
- .burger span,
- .burger::after {
- position: absolute;
- content: "";
- display: block;
- height: 2px;
- width: 35px;
- background-color: black;
- left: 50%;
- transform: translateX(-50%);
- transition: all .8s;
- }
- .burger::before {
- top: 0;
- }
- .burger span {
- top: 50%;
- margin-top: -1px;
- transition: opacity .5s .5s;
- }
- .menu__list ul {
- display: flex;
- flex-direction: column;
- align-items: center;
- height: 100vh;
- position: absolute;
- left: -280px;
- top: 0;
- width: 280px;
- background-color: rgb(226, 188, 21);
- padding: 100px 15px 60px;
- transition: left .8s;
- }
- .menu__list li {
- padding: 0 0 10px;
- font-size: 30px;
- transition: all .5s;
- }
- .menu__list li:hover {
- transform: scale(1.2);
- }
- .menu__list a {
- font-size: 30px;
- }
- #opener:checked ~ ul {
- left: 0;
- }
- #opener:checked ~ .burger::before {
- top: 50%;
- transform: translate(-50%, -50%) rotate(-45deg);
- }
- #opener:checked ~ .burger span {
- opacity: 0;
- transition: opacity .5s;
- }
- #opener:checked ~ .burger::after {
- top: 50%;
- transform: translate(-50%, -50%) rotate(45deg);
- }
- .burger::after {
- top: calc(100% - 2px);
- }
- .content__wrapper h1 {
- font-size: 28px;
- }
- .content__item {
- width: calc(100% / 1);
- }
- .box {
- display: block;
- }
- .aside__first,
- .aside__second {
- width: 50%;
- float: left;
- }
- }
- @media (max-width: 500px) {
- .menu {
- padding: 15px 20px;
- }
- .menu__img {
- width: 125px;
- }
- .holder__wrapper {
- margin: 35px 15px 50px;
- }
- .holder {
- flex-basis: 280px;
- }
- .item__two,
- .item__three,
- .item__four {
- flex-basis: 33%;
- }
- }
- @media (max-width: 380px) {
- .menu__img {
- width: 100px;
- }
- .burger::before,
- .burger span,
- .burger::after {
- width: 25px;
- }
- .content__wrapper h1 {
- font-size: 25px;
- }
- .aside__first,
- .aside__second {
- width: 100%;
- float: none;
- padding: 5px;
- }
- .item__img img {
- height: 70px;
- width: 70px;
- border: 8px solid rgb(167, 167, 128);
- }
- .item__paragraph {
- font-size: 15px;
- }
- .item__text {
- width: 220px;
- }
- }
- @media (max-width: 300px) {
- .item__text {
- width: 180px;
- }
- }
|