main.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. #wrapper {
  2. width: 100%;
  3. overflow: hidden;
  4. min-height: 100vh;
  5. display: flex;
  6. flex-direction: column;
  7. }
  8. #header {
  9. padding: 15px 0;
  10. background:rgb(216, 186, 53);
  11. position: fixed;
  12. width: 100%;
  13. }
  14. main {
  15. display: flex;
  16. flex-grow: 1;
  17. margin-top: 180px;
  18. }
  19. .header_content nav {
  20. display: flex;
  21. justify-content: space-between;
  22. align-items: center;
  23. }
  24. body {
  25. min-width: 320px;
  26. }
  27. .items {
  28. display: flex;
  29. padding: 35px 20px;
  30. }
  31. .burger,
  32. #menu_btn {
  33. display: none;
  34. }
  35. .items li {
  36. list-style-type: none;
  37. margin-left: 12px;
  38. font-size: 25px;
  39. }
  40. .items li a {
  41. text-decoration: none;
  42. color: black;
  43. }
  44. .items li a:hover {
  45. color: cornsilk;
  46. }
  47. nav img {
  48. display: flex;
  49. min-width: 250px;
  50. padding: 27px 20px;
  51. }
  52. .content {
  53. display: flex;
  54. flex-direction: column;
  55. text-align: center;
  56. width: 100%;
  57. max-width: 1380px;
  58. margin: 0 auto;
  59. }
  60. .content p {
  61. font-size: 27px;
  62. padding: 35px;
  63. text-align: center;
  64. }
  65. h1 {
  66. font-size: 35px;
  67. text-align: center;
  68. }
  69. .list {
  70. display: flex;
  71. flex-wrap: wrap;
  72. padding-right: 40px;
  73. }
  74. .list li {
  75. display: flex;
  76. width: calc(100% / 3);
  77. padding: 10px;
  78. }
  79. .list_box {
  80. display: flex;
  81. border: 2px solid black;
  82. border-radius: 20px 20px;
  83. flex-direction: column;
  84. width: 100%;
  85. padding: 15px;
  86. }
  87. .list_body {
  88. flex-grow: 1;
  89. }
  90. .list_box img {
  91. align-self: center;
  92. width: 130px;
  93. border-radius: 50% 50%;
  94. border: 14px solid #c8b8b8;
  95. overflow: hidden;
  96. transition: all 0.8s;
  97. }
  98. .list_box img:hover {
  99. transform: scale(1.2);
  100. }
  101. .list_body p {
  102. font-size: 20px;
  103. }
  104. h2 {
  105. margin-bottom: -30px;
  106. }
  107. .list_box a {
  108. padding: 10px 30px;
  109. align-self: center;
  110. border-radius: 20px;
  111. text-decoration: none;
  112. background: #7a6586;
  113. color: white;
  114. }
  115. .list_box a:hover {
  116. background: #fd644c;
  117. }
  118. aside {
  119. display: flex;
  120. justify-content: center;
  121. min-width: 210px;
  122. text-align: center;
  123. padding: 20px;
  124. font-size: 20px;
  125. }
  126. .one {
  127. order: -1;
  128. background: rgb(216, 148, 176);
  129. }
  130. .two {
  131. background: rgb(95, 161, 223);
  132. }
  133. .holder {
  134. display: flex;
  135. flex-wrap: wrap;
  136. min-width: 300px;
  137. min-height: 100px;
  138. border: 2px solid black;
  139. border-radius: 30px 30px 0 0;
  140. overflow: hidden;
  141. margin: 50px auto 0px;
  142. }
  143. .item {
  144. display: flex;
  145. justify-content: center;
  146. flex-direction: column;
  147. text-align: center;
  148. }
  149. .item:first-child {
  150. width: 50%;
  151. background: #fd644c;
  152. order: -2;
  153. }
  154. .item:nth-child(2) {
  155. background: #2977b3;
  156. order: 1;
  157. }
  158. .item:nth-child(3) {
  159. background: #663498;
  160. }
  161. .item:nth-child(2), .item:nth-child(3), .item:nth-child(4) {
  162. width: calc(100% / 3);
  163. }
  164. .item:nth-child(4) {
  165. background: #057c1f;
  166. order: 2;
  167. }
  168. .item:last-child {
  169. width: 50%;
  170. background: #fda524;
  171. order: -1;
  172. }
  173. footer {
  174. display: block;
  175. margin-top: auto;
  176. height: 50px;
  177. text-align: center;
  178. background:rgb(99, 233, 66);
  179. }
  180. h4 {
  181. font-size: 20px;
  182. margin-top: 15px;
  183. }
  184. @media (max-width:1400px) {
  185. .content {
  186. display: flex;
  187. order: -1;
  188. flex-direction: column;
  189. }
  190. main {
  191. display: flex;
  192. flex-direction: column;
  193. margin-top: 150px;
  194. }
  195. }
  196. @media (max-width:992px) {
  197. main {
  198. display: flex;
  199. flex-direction: column;
  200. margin-top: 180px;
  201. }
  202. .content {
  203. display: flex;
  204. order: -1;
  205. flex-direction: column;
  206. }
  207. .content p {
  208. font-size: 18px;
  209. padding: 15px;
  210. text-align: center;
  211. }
  212. .content h1 {
  213. font-size: 19px;
  214. text-align: center;
  215. margin-top: 0;
  216. }
  217. .list li {
  218. display: flex;
  219. width: calc(100% / 2);
  220. padding: 10px;
  221. }
  222. h2 {
  223. margin-bottom: -10px;
  224. }
  225. }
  226. @media (max-width:767px) {
  227. .menu {
  228. display: flex;
  229. justify-content: flex-end;
  230. flex-grow: 1;
  231. padding: 0 10px;
  232. }
  233. .burger {
  234. position: relative;
  235. z-index: 9;
  236. display: block;
  237. width: 40px;
  238. height: 30px;
  239. font-size: 0;
  240. }
  241. .burger:before,
  242. .burger:after,
  243. .burger span {
  244. position: absolute;
  245. content: '';
  246. display: block;
  247. height: 4px;
  248. width: 40px;
  249. background: #fff;
  250. left: 50%;
  251. transform: translateX(-50%);
  252. transition: all .8s;
  253. }
  254. .burger:before {
  255. top: 0;
  256. }
  257. .burger:after {
  258. top: calc(100% - 4px);
  259. }
  260. .burger span {
  261. top: 50%;
  262. margin-top: -2px;
  263. transition: opacity .5s .5s;
  264. }
  265. .menu ul {
  266. display: block;
  267. min-height: 100vh;
  268. position: fixed;
  269. top: 94px;
  270. left: -220px;
  271. width: 220px;
  272. background:rgb(216, 186, 53);
  273. transition: left .8s;
  274. }
  275. #menu_btn:checked ~ ul {
  276. left: 0;
  277. top: 94px;
  278. }
  279. #menu_btn:checked ~ .burger:after {
  280. top: 50%;
  281. transform: translate(-50%, -50%) rotate(45deg);
  282. }
  283. #menu_btn:checked ~ .burger:before {
  284. top: 50%;
  285. transform: translate(-50%, -50%) rotate(-45deg);
  286. }
  287. #menu_btn:checked ~ .burger span {
  288. opacity: 0;
  289. transition: opacity .5s;
  290. }
  291. .list > li {
  292. width: 100%;
  293. width: 450px;
  294. }
  295. nav img {
  296. max-width: calc(100% / 2);
  297. padding: 13px 10px;
  298. }
  299. .content {
  300. display: flex;
  301. order: -1;
  302. max-width: 690px;
  303. padding: 0;
  304. justify-content: space-between;
  305. flex-direction: column;
  306. }
  307. .list li {
  308. display: flex;
  309. justify-content: space-between;
  310. width: 100%;
  311. }
  312. main {
  313. margin-top: 130px;
  314. }
  315. }