style.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. *,
  2. *::before,
  3. *::after {
  4. box-sizing: border-box;
  5. }
  6. /* WRAPPER */
  7. .wrapper {
  8. display: flex;
  9. flex-direction: column;
  10. min-height: 100vh;
  11. }
  12. /* HEADER */
  13. .header {
  14. background: rgb(222, 184, 0);
  15. }
  16. .container-logo-nav {
  17. padding: 15px;
  18. display: flex;
  19. justify-content: space-between;
  20. align-items: center;
  21. }
  22. .logo {
  23. width: 220px;
  24. height: 73px;
  25. }
  26. a {
  27. text-decoration: none;
  28. }
  29. .menu__box > li,
  30. .nav-link {
  31. color: rgb(0, 0, 0);
  32. display: inline;
  33. margin-right: 3px;
  34. font-size: 20px;
  35. }
  36. li > .nav-link:hover {
  37. color: rgb(255, 255, 255);
  38. }
  39. #menu__toggle {
  40. opacity: 0;
  41. display: none;
  42. }
  43. .menu__btn {
  44. display: flex;
  45. align-items: center;
  46. position: fixed;
  47. top: 20px;
  48. left: 20px;
  49. width: 26px;
  50. height: 26px;
  51. cursor: pointer;
  52. z-index: 1;
  53. }
  54. /* MAIN */
  55. .main {
  56. display: flex;
  57. text-align: center;
  58. flex-grow: 1;
  59. }
  60. .block-center {
  61. order: 2;
  62. padding: 20px 10px 0;
  63. }
  64. .block-center > h1 {
  65. padding-top: 20px;
  66. font-weight: bold;
  67. font-size: 20px;
  68. }
  69. .flex-boxs {
  70. margin: 30px 30px 5px;
  71. display: flex;
  72. justify-content: space-around;
  73. flex-wrap: wrap;
  74. }
  75. .box {
  76. border: 2px rgb(128, 128, 128) solid;
  77. border-radius: 20px;
  78. max-width: 285px;
  79. min-height: 350px;
  80. width: calc(33.33% - 20px);
  81. padding: 15px 15px 15px;
  82. margin-bottom: 25px;
  83. display: flex;
  84. flex-direction: column;
  85. align-items: center;
  86. transition: all 0.5s;
  87. }
  88. .box:hover {
  89. transform: scale(1.1);
  90. background: rgb(16, 157, 251);
  91. color: rgb(255, 255, 255);
  92. box-shadow: 3px 5px 5px black;
  93. }
  94. .img-box {
  95. height: 100px;
  96. border: 10px rgb(208, 187, 187) solid;
  97. border-radius: 100%;
  98. }
  99. .box > h1 {
  100. font-size: 20px;
  101. font-weight: bold;
  102. padding-top: 15px;
  103. }
  104. .box > p {
  105. padding: 20px 0 20px;
  106. flex-grow: 1;
  107. }
  108. .box > a {
  109. border: 1px rgb(112, 80, 118) solid;
  110. border-radius: 20px;
  111. background: rgb(112, 80, 118);
  112. width: 70px;
  113. height: 30px;
  114. display: inline-block;
  115. color: rgb(255, 255, 255);
  116. font-weight: bold;
  117. font-size: 20px;
  118. padding-top: 3px;
  119. transition: all 0.5s;
  120. }
  121. .box > a:hover {
  122. color: rgb(255, 255, 0);
  123. transform: scale(1.4);
  124. background: rgb(0, 128, 0);
  125. border: 1px rgb(0, 128, 0) solid;
  126. width: 70px;
  127. box-shadow: 3px 3px 5px rgb(0, 0, 0);
  128. }
  129. .aside-left {
  130. background: rgb(215, 153, 187);
  131. min-width: 210px;
  132. order: 1;
  133. padding-top: 10px;
  134. }
  135. .aside-right {
  136. background: rgb(148, 178, 201);
  137. min-width: 210px;
  138. order: 3;
  139. padding-top: 10px;
  140. }
  141. /* Уровень 3 */
  142. .holder {
  143. border: 2px black solid;
  144. border-radius: 15px 15px 0 0;
  145. width: 100%;
  146. display: flex;
  147. flex-wrap: wrap;
  148. overflow: hidden;
  149. }
  150. .item {
  151. display: flex;
  152. align-items: center;
  153. justify-content: center;
  154. flex-grow: 1;
  155. flex-shrink: 0;
  156. order: 10;
  157. padding: 10px;
  158. }
  159. .item:first-child {
  160. background: #fd644d;
  161. border-radius: 15px 0 0 0;
  162. flex-basis: 50%;
  163. order: 1;
  164. }
  165. .item:nth-child(2) {
  166. background: #4983b2;
  167. order: 4;
  168. }
  169. .item:nth-child(3) {
  170. background: #663797;
  171. order: 3;
  172. }
  173. .item:nth-child(4) {
  174. background: #0e7f12;
  175. order: 5;
  176. }
  177. .item:last-child {
  178. background: #fda429;
  179. border-radius: 0 15px 0 0;
  180. flex-basis: 50%;
  181. order: 2;
  182. }
  183. /* FOOTER */
  184. .footer {
  185. background: rgb(11, 236, 128);
  186. text-align: center;
  187. padding: 7px 0;
  188. }
  189. /* HOMEWORK 6 */
  190. @media (max-width: 1023px) {
  191. .aside-left {
  192. min-width: 19%;
  193. }
  194. .aside-right {
  195. min-width: 19%;
  196. }
  197. .flex-boxs {
  198. margin: 10px -5px;
  199. }
  200. .logo {
  201. width: 180px;
  202. height: 60px;
  203. }
  204. .img-box {
  205. height: 60px;
  206. border: 5px rgb(208, 187, 187) solid;
  207. }
  208. .box > h1 {
  209. font-size: 17px;
  210. }
  211. .box > p {
  212. font-size: 14px;
  213. padding-top: 10px;
  214. }
  215. .box > a {
  216. width: 60px;
  217. font-size: 15px;
  218. padding-top: 6px;
  219. }
  220. }
  221. @media (max-width: 767px) {
  222. .box {
  223. width: calc(50% - 20px);
  224. }
  225. .flex-boxs {
  226. margin: 10px -5px;
  227. }
  228. .logo {
  229. width: 150px;
  230. height: 50px;
  231. }
  232. .box > h1 {
  233. font-size: 17px;
  234. }
  235. .box > p {
  236. font-size: 15px;
  237. }
  238. .box > a {
  239. width: 70px;
  240. font-size: 17px;
  241. padding-top: 5px;
  242. }
  243. .container-logo-nav {
  244. padding: 5px;
  245. display: flex;
  246. justify-content: center;
  247. }
  248. .menu__box {
  249. display: block;
  250. position: fixed;
  251. visibility: hidden;
  252. top: 0;
  253. left: -100%;
  254. width: 200px;
  255. height: 100%;
  256. margin: 0;
  257. padding: 80px 0;
  258. list-style: none;
  259. text-align: center;
  260. background-color: #94b2c9;
  261. box-shadow: 1px 0px 6px rgba(0, 0, 0, 0.2);
  262. transition: all 0.5s;
  263. }
  264. .nav-link {
  265. display: block;
  266. padding: 12px 24px;
  267. color: #333;
  268. font-family: "Roboto", sans-serif;
  269. font-size: 20px;
  270. font-weight: 600;
  271. text-decoration: none;
  272. }
  273. .nav-link:hover {
  274. background-color: black;
  275. }
  276. .menu__btn > span,
  277. .menu__btn > span::before,
  278. .menu__btn > span::after {
  279. display: block;
  280. position: absolute;
  281. width: 100%;
  282. height: 2px;
  283. background-color: #616161;
  284. transition: transform 0.2s;
  285. }
  286. .menu__btn > span::before {
  287. content: "";
  288. top: -8px;
  289. }
  290. .menu__btn > span::after {
  291. content: "";
  292. top: 8px;
  293. }
  294. #menu__toggle:checked ~ .menu__btn > span {
  295. transform: rotate(45deg);
  296. transition: transform 0.5s;
  297. }
  298. #menu__toggle:checked ~ .menu__btn > span::before {
  299. top: 0;
  300. transform: rotate(0);
  301. transition: transform 0.5s;
  302. }
  303. #menu__toggle:checked ~ .menu__btn > span::after {
  304. top: 0;
  305. transform: rotate(90deg);
  306. transition: transform 0.5s;
  307. }
  308. #menu__toggle:checked ~ .menu__box {
  309. visibility: visible;
  310. left: 0;
  311. }
  312. }
  313. @media (max-width: 479px) {
  314. .box {
  315. width: 100%;
  316. }
  317. .flex-boxs {
  318. margin: 10px 5px;
  319. }
  320. .logo {
  321. width: 130px;
  322. height: 43px;
  323. }
  324. .box > h1 {
  325. font-size: 17px;
  326. }
  327. .box > p {
  328. font-size: 15px;
  329. }
  330. .box > a {
  331. width: 70px;
  332. font-size: 17px;
  333. padding-top: 5px;
  334. }
  335. .menu__btn{
  336. top: 15px;
  337. }
  338. }