Advertisement
Qellex

Untitled

Jan 25th, 2022
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.94 KB | None | 0 0
  1. body, html {
  2. width: 100%;
  3. height: 100%;
  4. }
  5.  
  6. * {
  7. margin: 0;
  8. padding: 0;
  9. outline: none;
  10. }
  11.  
  12. body {
  13. background-color: #d5feff;
  14. margin: 0px;
  15. font-family: Trebuchet MS, Helvetica;
  16. }
  17.  
  18. header {
  19. background-color: #78eced;
  20. height: 80px;
  21. border-top: 1px solid #867777;
  22. border-bottom: 1px solid #867777;
  23. display: flex;
  24. position: fixed;
  25. width: 100%;
  26. }
  27.  
  28. #box_menu {
  29. min-width: 60px;
  30. width: 60px;
  31. margin: auto 10px;
  32. z-index: 2;
  33. }
  34.  
  35. /* скрываем чекбокс */
  36. #menu__toggle {
  37. opacity: 0;
  38. }
  39. /* стилизуем кнопку */
  40. .menu__btn {
  41. display: flex; /* используем flex для центрирования содержимого */
  42. align-items: center; /* центрируем содержимое кнопки */
  43. position: fixed;
  44. top: 20px;
  45. left: 20px;
  46. width: 26px;
  47. height: 26px;
  48. cursor: pointer;
  49. z-index: 2;
  50. }
  51. /* добавляем "гамбургер" */
  52. .menu__btn > span,
  53. .menu__btn > span::before,
  54. .menu__btn > span::after {
  55. display: block;
  56. position: absolute;
  57. width: 100%;
  58. height: 2px;
  59. background-color: #616161;
  60. }
  61. .menu__btn > span::before {
  62. content: '';
  63. top: -8px;
  64. }
  65. .menu__btn > span::after {
  66. content: '';
  67. top: 8px;
  68. }
  69.  
  70. /* контейнер меню */
  71. .menu__box {
  72. display: block;
  73. position: fixed;
  74. visibility: hidden;
  75. top: 0;
  76. left: -100%;
  77. width: 300px;
  78. height: 100%;
  79. margin: 0;
  80. padding: 80px 0;
  81. list-style: none;
  82. text-align: center;
  83. background-color: #78eced;
  84. box-shadow: 1px 0px 6px rgba(0, 0, 0, .2);
  85. border: 1px solid #00000047;
  86. }
  87. /* элементы меню */
  88. .menu__item {
  89. display: block;
  90. padding: 12px 24px;
  91. color: #333;
  92. font-family: 'Roboto', sans-serif;
  93. font-size: 20px;
  94. font-weight: 600;
  95. text-decoration: none;
  96. }
  97. .menu__item:hover {
  98. background-color: #d5feff;
  99. border: 2px solid #867777;
  100.  
  101. }
  102.  
  103. #menu__toggle:checked ~ .menu__btn > span {
  104. transform: rotate(45deg);
  105. }
  106. #menu__toggle:checked ~ .menu__btn > span::before {
  107. top: 0;
  108. transform: rotate(0);
  109. }
  110. #menu__toggle:checked ~ .menu__btn > span::after {
  111. top: 0;
  112. transform: rotate(90deg);
  113. }
  114. #menu__toggle:checked ~ .menu__box {
  115. visibility: visible;
  116. left: 0;
  117. }
  118.  
  119.  
  120. #box_logo {
  121. width: 20%;
  122. min-width: none;
  123. float: left;
  124. }
  125.  
  126. #box_logo .logo {
  127. }
  128.  
  129. #find {
  130. min-width: 50%;
  131. width: 50%;
  132. z-index: 1;
  133. }
  134.  
  135. #find input {
  136. width: 100%;
  137. height: 60px;
  138. background: white;
  139. border: 1px solid #867777;
  140. margin: 10px 0px;
  141. border-radius: 60px;
  142. padding-left: 56px;
  143. }
  144.  
  145.  
  146. input[type=text]::-ms-clear { display: none; width : 0; height: 0; }
  147. input[type=text]::-ms-reveal { display: none; width : 0; height: 0; }
  148. input[type="search"]::-webkit-search-decoration,
  149. input[type="search"]::-webkit-search-cancel-button,
  150. input[type="search"]::-webkit-search-results-button,
  151. input[type="search"]::-webkit-search-results-decoration { display: none; }
  152.  
  153. #find input:hover{
  154. box-shadow: inset 0 1px 5px rgba(0,0,0,0.2);
  155. }
  156.  
  157. #find input:focus{
  158. box-shadow: inset 0 1px 5px rgba(0,0,0,0.2);
  159. }
  160.  
  161. #icon_panel {
  162. float: left;
  163. width: 30%;
  164. display: flex;
  165. justify-content: space-evenly;
  166. min-width: 180px;
  167. text-align: center;
  168.  
  169. }
  170.  
  171. #icon_panel .box {
  172. min-width: 60px;
  173. }
  174.  
  175. #icon_panel .box .love {
  176. background: url("image/love.png");
  177. display: inline-block;
  178. background-repeat: no-repeat;
  179. background-size: 56px 56px;
  180. width: 56px;
  181. height: 80px;
  182. background-position: center center;
  183. transition: all.3s ease;
  184. -ms-transition: all.3s ease;
  185. -o-transition: all.3s ease;
  186. -moz-transition: all.3s ease;
  187. -webkit-transition: all.3s ease;
  188. }
  189.  
  190. #icon_panel .box .love:hover {
  191. background-image: url("image/buy.png");
  192. display: inline-block;
  193. background-repeat: no-repeat;
  194. background-size: 56px 56px;
  195. width: 56px;
  196. height: 80px;
  197. background-position: center center;
  198. transition: all.3s ease;
  199. -ms-transition: all.3s ease;
  200. -o-transition: all.3s ease;
  201. -moz-transition: all.3s ease;
  202. -webkit-transition: all.3s ease;
  203. }
  204.  
  205. #icon_panel .box .buy{
  206. background: url("image/buy.png");
  207. display: inline-block;
  208. background-repeat: no-repeat;
  209. background-size: 56px 56px;
  210. width: 56px;
  211. height: 80px;
  212. background-position: center center;
  213. transition: all.3s ease;
  214. -ms-transition: all.3s ease;
  215. -o-transition: all.3s ease;
  216. -moz-transition: all.3s ease;
  217. -webkit-transition: all.3s ease;
  218. }
  219.  
  220. #icon_panel .box .buy:hover {
  221. background: url("image/love.png");
  222. display: inline-block;
  223. background-repeat: no-repeat;
  224. background-size: 56px 56px;
  225. width: 56px;
  226. height: 80px;
  227. background-position: center center;
  228. transition: all.3s ease;
  229. -ms-transition: all.3s ease;
  230. -o-transition: all.3s ease;
  231. -moz-transition: all.3s ease;
  232. -webkit-transition: all.3s ease;
  233.  
  234. }
  235.  
  236. #icon_panel .box .profile {
  237. background: url("image/profile.png");
  238. display: inline-block;
  239. background-repeat: no-repeat;
  240. background-size: 56px 56px;
  241. width: 56px;
  242. height: 80px;
  243. background-position: center center;
  244. transition: all.3s ease;
  245. -ms-transition: all.3s ease;
  246. -o-transition: all.3s ease;
  247. -moz-transition: all.3s ease;
  248. -webkit-transition: all.3s ease;
  249.  
  250. }
  251.  
  252. #icon_panel .box .profile:hover {
  253. background: url("image/love.png");
  254. display: inline-block;
  255. background-repeat: no-repeat;
  256. background-size: 56px 56px;
  257. width: 56px;
  258. height: 80px;
  259. background-position: center center;
  260. transition: all.3s ease;
  261. -ms-transition: all.3s ease;
  262. -o-transition: all.3s ease;
  263. -moz-transition: all.3s ease;
  264. -webkit-transition: all.3s ease;
  265. }
  266.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement