style.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. body{
  2. overflow-x:hidden;
  3. }
  4. .wrapper{
  5. display: flex;
  6. flex-direction: column;
  7. width: 100vw;
  8. }
  9. .m-header{
  10. background: #d3b714;
  11. padding: 15px;
  12. position: relative;
  13. z-index: 69;
  14. width: auto;
  15. }
  16. .cont{
  17. display: flex;
  18. min-width: 720px;
  19. margin: 0 auto ;
  20. padding: 0 15px ;
  21. justify-content: space-between;
  22. }
  23. .logo-pic img{
  24. margin-left: 200px;
  25. width: 150px;
  26. }
  27. .B-list{
  28. display: flex;
  29. list-style: none;
  30. padding: 0;
  31. margin: 0;
  32. }
  33. .B-list li{
  34. margin: 10px;
  35. }
  36. .B-list a{
  37. text-decoration: none;
  38. color: #000;
  39. font-size: 30px;
  40. }
  41. #menu__toggle {
  42. opacity: 0;
  43. }
  44. .menu__btn {
  45. display: flex;
  46. align-items: center;
  47. position: fixed;
  48. top: 20px;
  49. left: 20px;
  50. width: 26px;
  51. height: 26px;
  52. cursor: pointer;
  53. opacity: 0;
  54. z-index: 99;
  55. }
  56. .menu__btn > span,
  57. .menu__btn > span::before,
  58. .menu__btn > span::after {
  59. display: block;
  60. position: absolute;
  61. width: 100%;
  62. height: 2px;
  63. background-color: #616161;
  64. }
  65. .menu__btn > span::before {
  66. content: '';
  67. top: -8px;
  68. }
  69. .menu__btn > span::after {
  70. content: '';
  71. top: 8px;
  72. }
  73. .main{
  74. display: flex;
  75. width: 100%;
  76. flex-grow: 1;
  77. }
  78. .content{
  79. flex-grow: 1;
  80. padding: 20px;
  81. }
  82. .head-content{
  83. display: block;
  84. text-align: center;
  85. font-size: 1.25em;
  86. margin-bottom: 30px;
  87. }
  88. .head-content p{
  89. margin:20px;
  90. }
  91. .box{
  92. display: flex;
  93. flex-wrap: wrap;
  94. justify-content:space-between;
  95. margin: 0 -10px;
  96. }
  97. .card{
  98. display: flex;
  99. flex-direction: column;
  100. align-items: center;
  101. text-align: center;
  102. position: relative;
  103. margin: 0 10px 20px;
  104. width:calc(46% - 20px);
  105. padding: 10px 15px 15px;
  106. border: 1px solid black;
  107. border-radius: 15px;
  108. }
  109. .c-content{
  110. width: 100%;
  111. }
  112. .c-content p{
  113. padding-bottom: 20px;
  114. }
  115. .img-content{
  116. width: 100px;
  117. margin: 0 auto;
  118. border-radius: 50%;
  119. overflow: hidden;
  120. border: 10px solid #f0dcc2;
  121. }
  122. .img-content img{
  123. width: 100px;
  124. vertical-align: top;
  125. }
  126. .btn {
  127. display: flex;
  128. height: 30px;
  129. width: 70px;
  130. border-radius: 15px;
  131. background: #757;
  132. margin-top: auto;
  133. margin-bottom: 20px;
  134. align-items: center;
  135. justify-content: center;
  136. font-size: 20px;
  137. text-decoration: none;
  138. color:#fff;
  139. }
  140. .btn:hover{
  141. background: #fff;
  142. color: #757;
  143. }
  144. .sidebar {
  145. flex-shrink: 0;
  146. width: 210px;
  147. padding: 10px;
  148. background-color:#9cb0c7;
  149. align-items: center;
  150. text-align: center;
  151. padding-top:20px;
  152. }
  153. .left{
  154. flex-shrink: 0;
  155. width: 210px;
  156. padding: 10px;
  157. background-color: #c798b8;
  158. order: -1;
  159. }
  160. .footer{
  161. padding: 10px 15px;
  162. background-color: rgba(0, 255, 0, .5);
  163. text-align: center;
  164. }
  165. .daun{
  166. font-size: 30px;
  167. }
  168. .holder{
  169. display: flex;
  170. border: 5px solid #000;
  171. border-radius: 50px 50px 0px 0px;
  172. flex-grow: 1;
  173. width: 100%;
  174. height: 100px;
  175. margin: 10px;
  176. flex-wrap: wrap;
  177. overflow: hidden;
  178. background: #0e7f12;
  179. }
  180. .item{
  181. display: inline-flex;
  182. background: #fd644d;
  183. order: 1;
  184. height: 50%;
  185. width: 50%;
  186. display: inline-flex;
  187. align-items: center;
  188. justify-content: center;
  189. font-size: 20px;
  190. text-decoration: none;
  191. }
  192. .item:nth-child(2){
  193. background: #4983b2;
  194. order: 4;
  195. width: calc(100%/3);
  196. }
  197. .item:nth-child(3){
  198. background: #663797;
  199. order: 3;
  200. width: calc(100%/3);
  201. }
  202. .item:nth-child(4){
  203. background: #0e7f12;
  204. order: 5;
  205. width: calc(100%/3);
  206. }
  207. .item:last-child{
  208. background: #fda429;
  209. order: 2;
  210. }
  211. @media (max-width: 799px){
  212. .card{
  213. width:calc(100% - 20px);
  214. }
  215. .B-list {
  216. display: block;
  217. position: fixed;
  218. visibility: hidden;
  219. top: 0;
  220. left: -100%;
  221. width: 300px;
  222. height: 100%;
  223. margin: 0;
  224. padding: 80px 0;
  225. list-style: none;
  226. text-align: center;
  227. background-color: #d3b714;
  228. box-shadow: 1px 0px 6px rgba(0, 0, 0, .2);
  229. z-index: 2;
  230. }
  231. .B-list li{
  232. margin: 15px;
  233. }
  234. .menu__item {
  235. display: block;
  236. padding: 12px 24px;
  237. color: #333;
  238. font-family: 'Roboto', sans-serif;
  239. font-size: 20px;
  240. font-weight: 600;
  241. text-decoration: none;
  242. }
  243. .menu__item:hover {
  244. background-color: #CFD8DC;
  245. }
  246. #menu__toggle:checked ~ .menu__btn > span {
  247. transform: rotate(45deg);
  248. }
  249. #menu__toggle:checked ~ .menu__btn > span::before {
  250. top: 0;
  251. transform: rotate(0);
  252. }
  253. #menu__toggle:checked ~ .menu__btn > span::after {
  254. top: 0;
  255. transform: rotate(90deg);
  256. }
  257. #menu__toggle:checked ~ .B-list {
  258. visibility: visible;
  259. left: 0;
  260. z-index: 6;
  261. }
  262. .menu__btn > span,
  263. .menu__btn > span::before,
  264. .menu__btn > span::after {
  265. transition-duration: .25s;
  266. }
  267. .menu__btn{
  268. opacity: 1;
  269. }
  270. .B-list {
  271. transition-duration: .25s;
  272. }
  273. .menu__item {
  274. transition-duration: .25s;
  275. }
  276. }
  277. @media (min-width: 800px){
  278. .card{
  279. width:calc(40% - 20px);
  280. }
  281. }
  282. @media (min-width: 1440px){
  283. .card{
  284. width:calc(30% - 20px);
  285. }
  286. }