not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

304 lines
6.4 KiB

  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. html {
  8. background: #000;
  9. }
  10. body {
  11. font-family: 'Barlow', Helvetica, Arial, sans-serif;
  12. font-weight: 500;
  13. min-height: 100vh;
  14. color: #57585c;
  15. color: var(--color-text);
  16. background-color: #000;
  17. background-color: var(--color-bg);
  18. -webkit-font-smoothing: antialiased;
  19. -moz-osx-font-smoothing: grayscale;
  20. }
  21. /* Fade effect */
  22. .js body {
  23. opacity: 0;
  24. transition: opacity 0.6s;
  25. }
  26. .js body.render {
  27. opacity: 1;
  28. }
  29. a {
  30. text-decoration: none;
  31. color: var(--color-link);
  32. outline: none;
  33. }
  34. a:hover,
  35. a:focus {
  36. color: var(--color-link-hover);
  37. outline: none;
  38. }
  39. .hidden {
  40. position: absolute;
  41. overflow: hidden;
  42. width: 0;
  43. height: 0;
  44. pointer-events: none;
  45. }
  46. .message {
  47. position: relative;
  48. z-index: 100;
  49. display: none;
  50. padding: 1em;
  51. text-align: center;
  52. color: var(--color-bg);
  53. background: var(--color-text);
  54. }
  55. /* Icons */
  56. .icon {
  57. display: block;
  58. width: 1.5em;
  59. height: 1.5em;
  60. margin: 0 auto;
  61. fill: currentColor;
  62. }
  63. .icon--keyboard {
  64. display: none;
  65. }
  66. main {
  67. position: relative;
  68. width: 100%;
  69. }
  70. .content {
  71. position: relative;
  72. display: grid;
  73. justify-content: center;
  74. align-items: center;
  75. align-content: center;
  76. margin: 0 auto;
  77. min-height: 100vh;
  78. }
  79. .content--fixed {
  80. position: fixed;
  81. z-index: 10000;
  82. top: 0;
  83. left: 0;
  84. display: grid;
  85. align-content: space-between;
  86. width: 100%;
  87. max-width: none;
  88. min-height: 0;
  89. height: 100vh;
  90. padding: 1.5em;
  91. pointer-events: none;
  92. grid-template-columns: 50% 50%;
  93. grid-template-rows: auto auto 4em;
  94. grid-template-areas: 'header ...'
  95. '... ...'
  96. 'github demos';
  97. }
  98. .content--fixed a {
  99. pointer-events: auto;
  100. }
  101. /* Header */
  102. .codrops-header {
  103. position: relative;
  104. z-index: 100;
  105. display: flex;
  106. flex-direction: row;
  107. align-items: flex-start;
  108. align-items: center;
  109. align-self: start;
  110. grid-area: header;
  111. justify-self: start;
  112. }
  113. .codrops-header__title {
  114. font-size: 1em;
  115. font-weight: 500;
  116. margin: 0;
  117. padding: 0.75em 0;
  118. }
  119. .info {
  120. margin: 0 0 0 1.25em;
  121. color: var(--color-info);
  122. }
  123. .github {
  124. display: block;
  125. align-self: end;
  126. grid-area: github;
  127. justify-self: start;
  128. }
  129. .demos {
  130. position: relative;
  131. display: block;
  132. align-self: end;
  133. text-align: center;
  134. grid-area: demos;
  135. }
  136. .demo {
  137. margin: 0 0.15em;
  138. }
  139. .demo:hover,
  140. .demo:focus {
  141. opacity: 0.5;
  142. }
  143. .demo span {
  144. white-space: nowrap;
  145. text-transform: lowercase;
  146. pointer-events: none;
  147. }
  148. .demo span::before {
  149. content: '#';
  150. }
  151. a.demo--current {
  152. pointer-events: none;
  153. color: var(--color-link-hover);
  154. }
  155. /* Top Navigation Style */
  156. .codrops-links {
  157. position: relative;
  158. display: flex;
  159. justify-content: center;
  160. margin: 0 1em 0 0;
  161. text-align: center;
  162. white-space: nowrap;
  163. }
  164. .codrops-icon {
  165. display: inline-block;
  166. margin: 0.15em;
  167. padding: 0.25em;
  168. }
  169. /* Canvas positions */
  170. .content__inner {
  171. grid-area: 1 / 1 / 1 / 1;
  172. position: relative;
  173. display: flex;
  174. flex-direction: column;
  175. align-items: center;
  176. justify-content: center;
  177. align-content: center;
  178. }
  179. .scene {
  180. position: absolute;
  181. }
  182. .scene--left {
  183. width: 100vmin;
  184. height: 100vmin;
  185. transform: translate3d(-50vmin,0,0);
  186. }
  187. .scene--full {
  188. width: 100%;
  189. height: 100vh;
  190. }
  191. .scene--up {
  192. height: 150vmin;
  193. width: 150vmin;
  194. top: -50vh;
  195. left: 50%;
  196. margin-left: -75vmin;
  197. }
  198. @media screen and (min-width: 55em) {
  199. .icon--keyboard {
  200. position: absolute;
  201. right: 0.55em;
  202. bottom: -30%;
  203. display: block;
  204. width: 54px;
  205. height: 46px;
  206. fill: var(--color-link);
  207. }
  208. .demos {
  209. display: flex;
  210. padding-right: 80px;
  211. justify-self: end;
  212. }
  213. .demo {
  214. display: block;
  215. width: 17px;
  216. height: 17px;
  217. margin: 0 4px;
  218. border-radius: 50%;
  219. background: var(--color-link);
  220. }
  221. a.demo--current {
  222. background: var(--color-link-hover);
  223. }
  224. .demo span {
  225. line-height: 1;
  226. position: absolute;
  227. right: 100%;
  228. display: none;
  229. margin: 0 1em 0 0;
  230. }
  231. .demo--current span {
  232. display: block;
  233. }
  234. }
  235. @media screen and (max-width: 55em) {
  236. .message {
  237. /* display: block; */
  238. }
  239. .content {
  240. flex-direction: column;
  241. height: auto;
  242. }
  243. .content--fixed {
  244. position: relative;
  245. z-index: 1000;
  246. display: block;
  247. padding: 0.85em;
  248. }
  249. .content:not(.content--fixed) {
  250. margin-bottom: 6em;
  251. }
  252. .codrops-header {
  253. flex-direction: column;
  254. align-items: center;
  255. }
  256. .codrops-header__title {
  257. font-weight: bold;
  258. padding-bottom: 0.25em;
  259. text-align: center;
  260. }
  261. .info {
  262. margin: 0;
  263. }
  264. .github {
  265. display: block;
  266. margin: 1em auto;
  267. }
  268. .codrops-links {
  269. margin: 0;
  270. }
  271. }