Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 KB | None | 0 0
  1. article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}audio,canvas,video{display:inline-block;}audio:not([controls]){display:none;height:0;}[hidden]{display:none;}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}a:focus{outline:thin dotted;}a:active,a:hover{outline:0;}h1{font-size:2em;margin:0.67em 0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}button,input{line-height:normal;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}textarea{overflow:auto;vertical-align:top;}table{border-collapse:collapse;border-spacing:0;}
  2. *,
  3. *::after,
  4. *::before {
  5. box-sizing: border-box;
  6. }
  7.  
  8. html {
  9. background: #1d2121;
  10. }
  11.  
  12. body {
  13. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  14. min-height: 100vh;
  15. color: #57585c;
  16. color: var(--color-text);
  17. background-color: #fff;
  18. background-color: var(--color-bg);
  19. -webkit-font-smoothing: antialiased;
  20. -moz-osx-font-smoothing: grayscale;
  21. }
  22.  
  23. /* Fade effect */
  24. .js body {
  25. opacity: 0;
  26. transition: opacity 0.3s;
  27. }
  28.  
  29. .js body.render {
  30. opacity: 1;
  31. }
  32.  
  33. /* Page Loader */
  34. .js .loading::before {
  35. content: '';
  36. position: fixed;
  37. z-index: 100000;
  38. top: 0;
  39. left: 0;
  40. width: 100%;
  41. height: 100%;
  42. background: var(--color-bg);
  43. }
  44.  
  45. .js .loading::after {
  46. content: '';
  47. position: fixed;
  48. z-index: 100000;
  49. top: 50%;
  50. left: 50%;
  51. width: 60px;
  52. height: 60px;
  53. margin: -30px 0 0 -30px;
  54. pointer-events: none;
  55. border-radius: 50%;
  56. opacity: 0.4;
  57. background: var(--color-link);
  58. animation: loaderAnim 0.7s linear infinite alternate forwards;
  59. }
  60.  
  61. @keyframes loaderAnim {
  62. to {
  63. opacity: 1;
  64. transform: scale3d(0.5,0.5,1);
  65. }
  66. }
  67.  
  68. a {
  69. text-decoration: none;
  70. color: var(--color-link);
  71. outline: none;
  72. }
  73.  
  74. a:hover,
  75. a:focus {
  76. color: var(--color-link-hover);
  77. outline: none;
  78. }
  79.  
  80. .hidden {
  81. position: absolute;
  82. overflow: hidden;
  83. width: 0;
  84. height: 0;
  85. pointer-events: none;
  86. }
  87.  
  88. .message {
  89. position: relative;
  90. z-index: 100;
  91. padding: 1.5em 1em;
  92. font-size: 0.85em;
  93. font-weight: bold;
  94. text-align: center;
  95. color: var(--color-bg);
  96. background: var(--color-text);
  97. }
  98.  
  99. @supports(-webkit-clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%)) or (clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%)) {
  100. .message {
  101. display: none;
  102. }
  103. }
  104.  
  105. /* Icons */
  106. .icon {
  107. display: block;
  108. width: 1.5em;
  109. height: 1.5em;
  110. margin: 0 auto;
  111. fill: currentColor;
  112. }
  113.  
  114. .icon--keyboard {
  115. display: none;
  116. }
  117.  
  118. main {
  119. position: relative;
  120. width: 100%;
  121. }
  122.  
  123. .content {
  124. position: relative;
  125. display: flex;
  126. justify-content: center;
  127. align-items: center;
  128. margin: 0 auto;
  129. min-height: 100vh;
  130. }
  131.  
  132. .content--fixed {
  133. position: fixed;
  134. z-index: 10000;
  135. top: 0;
  136. left: 0;
  137. display: grid;
  138. align-content: space-between;
  139. width: 100%;
  140. max-width: none;
  141. min-height: 0;
  142. height: 100vh;
  143. padding: 1.5em;
  144. pointer-events: none;
  145. grid-template-columns: 50% 50%;
  146. grid-template-rows: auto auto 4em;
  147. grid-template-areas: 'header header'
  148. '... ...'
  149. 'github demos';
  150. }
  151.  
  152. .content--fixed a {
  153. pointer-events: auto;
  154. }
  155.  
  156. .content--top {
  157. padding: 1.5em 2em 1.5em 1.5em;
  158. justify-content: flex-start;
  159. min-height: 0;
  160. position: relative;
  161. }
  162.  
  163. /* Header */
  164. .codrops-header {
  165. position: relative;
  166. z-index: 100;
  167. display: flex;
  168. flex-direction: row;
  169. align-items: flex-start;
  170. align-items: center;
  171. align-self: start;
  172. grid-area: header;
  173. justify-self: start;
  174. }
  175.  
  176. .demo-2 .codrops-header {
  177. justify-self: stretch;
  178. }
  179.  
  180. .codrops-header__title {
  181. font-size: 1em;
  182. font-weight: bold;
  183. margin: 0;
  184. }
  185.  
  186. .info {
  187. margin: 0 0 0 1.25em;
  188. color: var(--color-info);
  189. }
  190.  
  191. .github {
  192. display: block;
  193. align-self: end;
  194. grid-area: github;
  195. justify-self: start;
  196. }
  197.  
  198. .content--top .github {
  199. align-self: center;
  200. margin: 0 1em 0 auto;
  201. }
  202.  
  203. .demos {
  204. position: relative;
  205. display: block;
  206. align-self: end;
  207. text-align: right;
  208. grid-area: demos;
  209. }
  210.  
  211. .content--top .demos {
  212. align-self: center;
  213. }
  214.  
  215. .demo {
  216. margin: 0 0 0 1em;
  217. }
  218.  
  219. .demo:hover,
  220. .demo:focus {
  221. opacity: 0.5;
  222. }
  223.  
  224. .demo span {
  225. white-space: nowrap;
  226. pointer-events: none;
  227. }
  228.  
  229. a.demo--current {
  230. pointer-events: none;
  231. color: var(--color-link-hover);
  232. }
  233.  
  234. /* Top Navigation Style */
  235. .codrops-links {
  236. position: relative;
  237. display: flex;
  238. justify-content: center;
  239. margin: 0 1em 0 0;
  240. text-align: center;
  241. white-space: nowrap;
  242. }
  243.  
  244. .codrops-icon {
  245. display: inline-block;
  246. margin: 0.15em;
  247. padding: 0.25em;
  248. }
  249.  
  250. @media screen and (max-width: 55em) {
  251. .message {
  252. display: block;
  253. }
  254. .content {
  255. flex-direction: column;
  256. height: auto;
  257. min-height: 0;
  258. }
  259. .content--fixed {
  260. position: relative;
  261. z-index: 1000;
  262. display: block;
  263. padding: 0.85em;
  264. }
  265. .codrops-header {
  266. flex-direction: column;
  267. align-items: center;
  268. align-self: center;
  269. }
  270. .codrops-header__title {
  271. font-weight: bold;
  272. padding-bottom: 0.25em;
  273. text-align: center;
  274. }
  275. .github {
  276. display: block;
  277. margin: 1em auto;
  278. }
  279. .content--top .github {
  280. margin: 1em 0;
  281. }
  282. .codrops-links {
  283. margin: 0;
  284. }
  285. .demos {
  286. text-align: center;
  287. }
  288. .demo {
  289. margin: 0 0.5em;
  290. }
  291. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement