Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.23 KB | None | 0 0
  1. body {
  2. overflow: hidden;
  3. padding: 0px;
  4. margin: 0px;
  5. background-repeat: no-repeat;
  6. background-size: contain;
  7. }
  8.  
  9. .header {
  10. font-family: arial;
  11. height: 34px;
  12. position: relative;
  13. background-color: #613c9e;
  14. padding: 0.3%;
  15. box-shadow: 0px 5px 5px 0px #613c9e;
  16. text-shadow: 1px 1px 1px white;
  17. width: 100%;
  18. }
  19.  
  20. .header::before {
  21. content: '';
  22.  
  23. position: absolute;
  24. top: -50%;
  25. right: -50%;
  26. bottom: -50%;
  27. left: -50%;
  28.  
  29.  
  30. z-index: -1;
  31.  
  32. /*TODO: DEFINE SIZE:*/
  33. height: 50px;
  34. width: 50px;
  35.  
  36. background: linear-gradient(to bottom, rgba(229, 172, 142, 0), rgba(255, 255, 255, 0.5) 50%, rgba(229, 172, 142, 0));
  37.  
  38. background-color: #613c9e;
  39. -webkit-animation: color_change 6s linear 0s infinite alternate;
  40. animation: color_change 6s linear 0s infinite alternate;
  41.  
  42.  
  43. -webkit-animation: position_change 6s linear 0s infinite alternate;
  44. animation: position_change 6s linear 0s infinite alternate;
  45. }
  46.  
  47. @-webkit-keyframes position_change {
  48. 0% {
  49. left: 0%;
  50. top: 10px;
  51. }
  52. 100% {
  53. top: 10px;
  54. left: 100%;
  55. }
  56. }
  57.  
  58. @keyframes position_change {
  59. 0% {
  60. left: 0%;
  61. top: 10px;
  62. }
  63. 100% {
  64. top: 10px;
  65. left: 100%;
  66. }
  67. }
  68.  
  69. @-webkit-keyframes color_change {
  70. 0% {
  71. background-color: #613c9e;
  72. }
  73. 5% {
  74. background-color: #232323;
  75. }
  76. 10% {
  77. background-color: #613c9e;
  78. }
  79. 15% {
  80. background-color: #232323;
  81. }
  82. 20% {
  83. background-color: #613c9e;
  84. }
  85. 25% {
  86. background-color: #232323;
  87. }
  88. 30% {
  89. background-color: #613c9e;
  90. }
  91. 35% {
  92. background-color: #232323;
  93. }
  94. 40% {
  95. background-color: #613c9e;
  96. }
  97. 45% {
  98. background-color: #232323;
  99. }
  100. 50% {
  101. background-color: #613c9e;
  102. }
  103. 55% {
  104. background-color: #232323;
  105. }
  106. 60% {
  107. background-color: #613c9e;
  108. }
  109. 65% {
  110. background-color: #232323;
  111. }
  112. 70% {
  113. background-color: #613c9e;
  114. }
  115. 75% {
  116. background-color: #232323;
  117. }
  118. 80% {
  119. background-color: #613c9e;
  120. }
  121. 85% {
  122. background-color: #232323;
  123. }
  124. 90% {
  125. background-color: #613c9e;
  126. }
  127. 95% {
  128. background-color: #232323;
  129. }
  130. 100% {
  131. background-color: #613c9e;
  132. }
  133. }
  134.  
  135. @keyframes color_change {
  136. 0% {
  137. background-color: #613c9e;
  138. }
  139. 5% {
  140. background-color: #232323;
  141. }
  142. 10% {
  143. background-color: #613c9e;
  144. }
  145. 15% {
  146. background-color: #232323;
  147. }
  148. 20% {
  149. background-color: #613c9e;
  150. }
  151. 25% {
  152. background-color: #232323;
  153. }
  154. 30% {
  155. background-color: #613c9e;
  156. }
  157. 35% {
  158. background-color: #232323;
  159. }
  160. 40% {
  161. background-color: #613c9e;
  162. }
  163. 45% {
  164. background-color: #232323;
  165. }
  166. 50% {
  167. background-color: #613c9e;
  168. }
  169. 55% {
  170. background-color: #232323;
  171. }
  172. 60% {
  173. background-color: #613c9e;
  174. }
  175. 65% {
  176. background-color: #232323;
  177. }
  178. 70% {
  179. background-color: #613c9e;
  180. }
  181. 75% {
  182. background-color: #232323;
  183. }
  184. 80% {
  185. background-color: #613c9e;
  186. }
  187. 85% {
  188. background-color: #232323;
  189. }
  190. 90% {
  191. background-color: #613c9e;
  192. }
  193. 95% {
  194. background-color: #232323;
  195. }
  196. 100% {
  197. background-color: #613c9e;
  198. }
  199. }
  200.  
  201. body {
  202. /* make it look decent enough */
  203. background: #232323;
  204.  
  205. overflow: hidden;
  206. font-family: "Avenir Next", "Avenir", sans-serif;
  207. }
  208.  
  209. a {
  210. text-decoration: none;
  211. color: grey;
  212. transition: color 0.3s ease;
  213. }
  214.  
  215. a:hover {
  216. color: #4d004d;
  217. }
  218.  
  219. #menuToggle {
  220. display: block;
  221. position: absolute;
  222. right: 20px;
  223. top: 15px;
  224. z-index: 1;
  225. -webkit-user-select: none;
  226. user-select: none;
  227. }
  228.  
  229. #menuToggle input {
  230. display: block;
  231. width: 40px;
  232. height: 32px;
  233. position: absolute;
  234. top: -7px;
  235. left: -5px;
  236. cursor: pointer;
  237. opacity: 0;
  238. /* hide this */
  239. z-index: 2;
  240. /* and place it over the hamburger */
  241. -webkit-touch-callout: none;
  242. }
  243.  
  244. #menuToggle span {
  245. display: block;
  246. width: 35px;
  247. height: 3px;
  248. margin-bottom: 6px;
  249. position: relative;
  250. background: #fff;
  251. border-radius: 2px;
  252. z-index: 1;
  253. transform-origin: 4px 0px;
  254. transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
  255. background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
  256. opacity 0.55s ease;
  257. }
  258.  
  259. #menuToggle span:first-child {
  260. transform-origin: 0% 0%;
  261. }
  262.  
  263. #menuToggle span:nth-last-child(2) {
  264. transform-origin: 0% 100%;
  265. }
  266.  
  267. /*Transformation*/
  268.  
  269. #menuToggle input:checked~span {
  270. opacity: 1;
  271. transform: rotate(45deg) translate(-2px, -1px);
  272. background: #232323;
  273. }
  274.  
  275. #menuToggle input:checked~span:nth-last-child(3) {
  276. opacity: 0;
  277. transform: rotate(0deg) scale(0.2, 0.2);
  278. }
  279.  
  280. #menuToggle input:checked~span:nth-last-child(2) {
  281. transform: rotate(-45deg) translate(0, -1px);
  282. }
  283.  
  284. #menu {
  285. overflow: hidden;
  286. height: 82.9vh;
  287. position: absolute;
  288. width: 200px;
  289. margin: -50px 0 0 -50px;
  290. padding: 50px;
  291. padding-top: 125px;
  292. background: #0e0e0e;
  293. list-style-type: none;
  294. -webkit-font-smoothing: antialiased;
  295. transform-origin: 0% 0%;
  296. transform: translate(100%, 0);
  297. transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  298. }
  299.  
  300. #menu li {
  301. padding: 10px 0;
  302. font-size: 22px;
  303. }
  304.  
  305. /*let's slide it in from the left*/
  306.  
  307. #menuToggle input:checked~ul {
  308. transform: translate(-50%, 0);
  309. ;
  310. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement