123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381 |
- *,
- *::before,
- *::after {
- box-sizing: border-box;
- }
- /* WRAPPER */
- .wrapper {
- display: flex;
- flex-direction: column;
- min-height: 100vh;
- }
- /* HEADER */
- .header {
- background: rgb(222, 184, 0);
- }
- .container-logo-nav {
- padding: 15px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .logo {
- width: 220px;
- height: 73px;
- }
- a {
- text-decoration: none;
- }
- .menu__box > li,
- .nav-link {
- color: rgb(0, 0, 0);
- display: inline;
- margin-right: 3px;
- font-size: 20px;
- }
- li > .nav-link:hover {
- color: rgb(255, 255, 255);
- }
- #menu__toggle {
- opacity: 0;
- display: none;
- }
- .menu__btn {
- display: flex;
- align-items: center;
- position: fixed;
- top: 20px;
- left: 20px;
- width: 26px;
- height: 26px;
- cursor: pointer;
- z-index: 1;
- }
- /* MAIN */
- .main {
- display: flex;
- text-align: center;
- flex-grow: 1;
- }
- .block-center {
- order: 2;
- padding: 20px 10px 0;
- }
- .block-center > h1 {
- padding-top: 20px;
- font-weight: bold;
- font-size: 20px;
- }
- .flex-boxs {
- margin: 30px 30px 5px;
- display: flex;
- justify-content: space-around;
- flex-wrap: wrap;
- }
- .box {
- border: 2px rgb(128, 128, 128) solid;
- border-radius: 20px;
- max-width: 285px;
- min-height: 350px;
- width: calc(33.33% - 20px);
- padding: 15px 15px 15px;
- margin-bottom: 25px;
- display: flex;
- flex-direction: column;
- align-items: center;
- transition: all 0.5s;
- }
- .box:hover {
- transform: scale(1.1);
- background: rgb(16, 157, 251);
- color: rgb(255, 255, 255);
- box-shadow: 3px 5px 5px black;
- }
- .img-box {
- height: 100px;
- border: 10px rgb(208, 187, 187) solid;
- border-radius: 100%;
- }
- .box > h1 {
- font-size: 20px;
- font-weight: bold;
- padding-top: 15px;
- }
- .box > p {
- padding: 20px 0 20px;
- flex-grow: 1;
- }
- .box > a {
- border: 1px rgb(112, 80, 118) solid;
- border-radius: 20px;
- background: rgb(112, 80, 118);
- width: 70px;
- height: 30px;
- display: inline-block;
- color: rgb(255, 255, 255);
- font-weight: bold;
- font-size: 20px;
- padding-top: 3px;
- transition: all 0.5s;
- }
- .box > a:hover {
- color: rgb(255, 255, 0);
- transform: scale(1.4);
- background: rgb(0, 128, 0);
- border: 1px rgb(0, 128, 0) solid;
- width: 70px;
- box-shadow: 3px 3px 5px rgb(0, 0, 0);
- }
- .aside-left {
- background: rgb(215, 153, 187);
- min-width: 210px;
- order: 1;
- padding-top: 10px;
- }
- .aside-right {
- background: rgb(148, 178, 201);
- min-width: 210px;
- order: 3;
- padding-top: 10px;
- }
- /* Уровень 3 */
- .holder {
- border: 2px black solid;
- border-radius: 15px 15px 0 0;
- width: 100%;
- display: flex;
- flex-wrap: wrap;
- overflow: hidden;
- }
- .item {
- display: flex;
- align-items: center;
- justify-content: center;
- flex-grow: 1;
- flex-shrink: 0;
- order: 10;
- padding: 10px;
- }
- .item:first-child {
- background: #fd644d;
- border-radius: 15px 0 0 0;
- flex-basis: 50%;
- order: 1;
- }
- .item:nth-child(2) {
- background: #4983b2;
- order: 4;
- }
- .item:nth-child(3) {
- background: #663797;
- order: 3;
- }
- .item:nth-child(4) {
- background: #0e7f12;
- order: 5;
- }
- .item:last-child {
- background: #fda429;
- border-radius: 0 15px 0 0;
- flex-basis: 50%;
- order: 2;
- }
- /* FOOTER */
- .footer {
- background: rgb(11, 236, 128);
- text-align: center;
- padding: 7px 0;
- }
- /* HOMEWORK 6 */
- @media (max-width: 1023px) {
- .aside-left {
- min-width: 19%;
- }
- .aside-right {
- min-width: 19%;
- }
- .flex-boxs {
- margin: 10px -5px;
- }
- .logo {
- width: 180px;
- height: 60px;
- }
- .img-box {
- height: 60px;
- border: 5px rgb(208, 187, 187) solid;
- }
- .box > h1 {
- font-size: 17px;
- }
- .box > p {
- font-size: 14px;
- padding-top: 10px;
- }
- .box > a {
- width: 60px;
- font-size: 15px;
- padding-top: 6px;
- }
- }
- @media (max-width: 767px) {
- .box {
- width: calc(50% - 20px);
- }
- .flex-boxs {
- margin: 10px -5px;
- }
- .logo {
- width: 150px;
- height: 50px;
- }
- .box > h1 {
- font-size: 17px;
- }
- .box > p {
- font-size: 15px;
- }
- .box > a {
- width: 70px;
- font-size: 17px;
- padding-top: 5px;
- }
- .container-logo-nav {
- padding: 5px;
- display: flex;
- justify-content: center;
- }
- .menu__box {
- display: block;
- position: fixed;
- visibility: hidden;
- top: 0;
- left: -100%;
- width: 200px;
- height: 100%;
- margin: 0;
- padding: 80px 0;
- list-style: none;
- text-align: center;
- background-color: #94b2c9;
- box-shadow: 1px 0px 6px rgba(0, 0, 0, 0.2);
- transition: all 0.5s;
- }
- .nav-link {
- display: block;
- padding: 12px 24px;
- color: #333;
- font-family: "Roboto", sans-serif;
- font-size: 20px;
- font-weight: 600;
- text-decoration: none;
- }
- .nav-link:hover {
- background-color: black;
- }
- .menu__btn > span,
- .menu__btn > span::before,
- .menu__btn > span::after {
- display: block;
- position: absolute;
- width: 100%;
- height: 2px;
- background-color: #616161;
- transition: transform 0.2s;
- }
- .menu__btn > span::before {
- content: "";
- top: -8px;
- }
- .menu__btn > span::after {
- content: "";
- top: 8px;
- }
- #menu__toggle:checked ~ .menu__btn > span {
- transform: rotate(45deg);
- transition: transform 0.5s;
- }
- #menu__toggle:checked ~ .menu__btn > span::before {
- top: 0;
- transform: rotate(0);
- transition: transform 0.5s;
- }
- #menu__toggle:checked ~ .menu__btn > span::after {
- top: 0;
- transform: rotate(90deg);
- transition: transform 0.5s;
- }
- #menu__toggle:checked ~ .menu__box {
- visibility: visible;
- left: 0;
- }
- }
- @media (max-width: 479px) {
- .box {
- width: 100%;
- }
- .flex-boxs {
- margin: 10px 5px;
- }
- .logo {
- width: 130px;
- height: 43px;
- }
- .box > h1 {
- font-size: 17px;
- }
- .box > p {
- font-size: 15px;
- }
- .box > a {
- width: 70px;
- font-size: 17px;
- padding-top: 5px;
- }
- .menu__btn{
- top: 15px;
- }
- }
|