style.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. body {
  2. margin: 0;
  3. font-family: Georgia, 'Times New Roman', Times, serif;
  4. }
  5. html {
  6. box-sizing: border-box;
  7. }
  8. *,
  9. *:before,
  10. *:after {
  11. box-sizing: inherit;
  12. }
  13. .wrapper {
  14. width: 100%;
  15. position: relative;
  16. overflow: hidden;
  17. display: flex;
  18. flex-direction: column;
  19. min-height: 100vh;
  20. }
  21. img {
  22. max-width: 100%;
  23. height: auto;
  24. vertical-align: top;
  25. }
  26. .header {
  27. background: #D2B837;
  28. padding: 15px 30px;
  29. }
  30. .header-wrap {
  31. display: flex;
  32. align-items: center;
  33. }
  34. .nav {
  35. display: flex;
  36. align-items: center;
  37. justify-content: flex-end;
  38. flex-grow: 1;
  39. }
  40. .nav-list {
  41. display: flex;
  42. align-items: center;
  43. list-style: none;
  44. margin: 0;
  45. padding-left: 0;
  46. }
  47. .nav-item+.nav-item {
  48. padding-left: 15px;
  49. }
  50. .nav-link {
  51. color: black;
  52. text-decoration: none;
  53. }
  54. .nav-link:hover {
  55. opacity: .7;
  56. }
  57. .content {
  58. display: flex;
  59. flex-grow: 1;
  60. }
  61. .aside {
  62. max-width: 210px;
  63. width: 100%;
  64. padding: 10px;
  65. text-align: center;
  66. }
  67. .aside-left {
  68. background: #c798b9;
  69. order: -1;
  70. }
  71. .aside-right {
  72. background: #9cb1c7;
  73. }
  74. .main {
  75. padding: 20px;
  76. text-align: center;
  77. display: flex;
  78. flex-direction: column;
  79. }
  80. .boxes {
  81. display: flex;
  82. flex-wrap: wrap;
  83. justify-content: space-around;
  84. }
  85. .box {
  86. height: 400px;
  87. width: 320px;
  88. border: 2px solid grey;
  89. border-radius: 25px;
  90. margin-bottom: 15px;
  91. display: flex;
  92. flex-direction: column;
  93. justify-content: space-around;
  94. align-items: center;
  95. }
  96. .pict {
  97. height: 80px;
  98. width: 80px;
  99. border-radius: 50%;
  100. border: 8px solid #c798b9;
  101. /* position: absolute;
  102. transform: translateY(-140px); */
  103. }
  104. h2 {
  105. font-size: 20px;
  106. }
  107. .about {
  108. text-align: top;
  109. }
  110. .btn {
  111. height: 25px;
  112. width: 50px;
  113. background: #685274;
  114. color: white;
  115. border-radius: 25px;
  116. border-style: none;
  117. }
  118. .btn:hover {
  119. transition: all .3s ease-in;
  120. opacity: .8;
  121. background-color: #86ec86;
  122. border: 2px solid #0e7f12;
  123. }
  124. .task3 {
  125. display: flex;
  126. flex-wrap: wrap;
  127. justify-content: center;
  128. }
  129. .holder {
  130. display: flex;
  131. flex-wrap: wrap;
  132. /* justify-content: center; */
  133. max-height: 200px;
  134. width: 600px;
  135. border: 2px solid black;
  136. border-radius: 25px 25px 0px 0px;
  137. }
  138. .holder>.item:first-child {
  139. background-color: #fd644d;
  140. order: 1;
  141. flex-grow: 1;
  142. border-radius: 25px 0px 0px 0px;
  143. }
  144. .holder>.item:last-child {
  145. background-color: #fda429;
  146. order: 2;
  147. flex-grow: 1;
  148. border-radius: 0px 25px 0px 0px;
  149. }
  150. .holder>.item:nth-child(3) {
  151. background-color: #663797;
  152. order: 3;
  153. height: calc(100px - 2px);
  154. /* width: calc(200px - 2px); */
  155. }
  156. .holder>.item:nth-child(2) {
  157. background-color: #4983b2;
  158. order: 4;
  159. height: calc(100px - 2px);
  160. width: calc(200px - 4px);
  161. }
  162. .holder>.item:nth-child(4) {
  163. background-color: #0e7f12;
  164. order: 5;
  165. height: 98px;
  166. /* width: calc(200px - 2px); */
  167. }
  168. .item {
  169. display: flex;
  170. justify-content: center;
  171. align-items: center;
  172. height: 100px;
  173. width: 200px;
  174. }
  175. .footer {
  176. background: #86ec86;
  177. padding: 10px;
  178. text-align: center;
  179. }