Permalink
Browse files

build initial castle

  • Loading branch information...
jeremy0613 committed Nov 30, 2018
1 parent 9f49b7d commit 791b2512a517c0fa3e666c50d8de68f22dda4ecd
Showing with 5,123 additions and 1,148 deletions.
  1. BIN .sass-cache/3fbc8f841a53d077a935c522d4a13dc1f2c2ae33/style.scssc
  2. BIN _/assets/images/window.png
  3. +2,527 −36 _/css/style.css
  4. +74 −15 _/working/sass/style.scss
  5. +471 −7 index.html
  6. +15 −1 node_modules/.bin/bin-version-check
  7. +7 −0 node_modules/.bin/bin-version-check.cmd
  8. +15 −1 node_modules/.bin/cake
  9. +7 −0 node_modules/.bin/cake.cmd
  10. +15 −1 node_modules/.bin/coffee
  11. +7 −0 node_modules/.bin/coffee.cmd
  12. +15 −1 node_modules/.bin/dateformat
  13. +7 −0 node_modules/.bin/dateformat.cmd
  14. +15 −1 node_modules/.bin/esparse
  15. +7 −0 node_modules/.bin/esparse.cmd
  16. +15 −1 node_modules/.bin/esvalidate
  17. +7 −0 node_modules/.bin/esvalidate.cmd
  18. +15 −1 node_modules/.bin/find-versions
  19. +7 −0 node_modules/.bin/find-versions.cmd
  20. +15 −1 node_modules/.bin/grunt
  21. +7 −0 node_modules/.bin/grunt.cmd
  22. +15 −1 node_modules/.bin/gzip-size
  23. +7 −0 node_modules/.bin/gzip-size.cmd
  24. +15 −1 node_modules/.bin/js-yaml
  25. +7 −0 node_modules/.bin/js-yaml.cmd
  26. +15 −1 node_modules/.bin/mkdirp
  27. +7 −0 node_modules/.bin/mkdirp.cmd
  28. +15 −1 node_modules/.bin/nopt
  29. +7 −0 node_modules/.bin/nopt.cmd
  30. +15 −1 node_modules/.bin/pretty-bytes
  31. +7 −0 node_modules/.bin/pretty-bytes.cmd
  32. +15 −1 node_modules/.bin/rimraf
  33. +7 −0 node_modules/.bin/rimraf.cmd
  34. +15 −1 node_modules/.bin/semver
  35. +7 −0 node_modules/.bin/semver.cmd
  36. +15 −1 node_modules/.bin/strip-indent
  37. +7 −0 node_modules/.bin/strip-indent.cmd
  38. +15 −1 node_modules/.bin/uglifyjs
  39. +7 −0 node_modules/.bin/uglifyjs.cmd
  40. +15 −1 node_modules/.bin/which
  41. +7 −0 node_modules/.bin/which.cmd
  42. +14 −10 node_modules/abbrev/package.json
  43. +2 −2 node_modules/ansi-regex/package.json
  44. +2 −2 node_modules/ansi-styles/package.json
  45. +14 −10 node_modules/argparse/node_modules/sprintf-js/package.json
  46. +14 −10 node_modules/argparse/package.json
  47. +2 −2 node_modules/array-find-index/package.json
  48. +2 −2 node_modules/array-uniq/package.json
  49. +4 −3 node_modules/async/package.json
  50. +14 −10 node_modules/balanced-match/package.json
  51. +15 −1 node_modules/bin-version-check/node_modules/.bin/semver
  52. +7 −0 node_modules/bin-version-check/node_modules/.bin/semver.cmd
  53. +2 −2 node_modules/bin-version-check/node_modules/semver/package.json
  54. +2 −2 node_modules/bin-version-check/package.json
  55. +2 −2 node_modules/bin-version/package.json
  56. +14 −10 node_modules/body/package.json
  57. +14 −10 node_modules/brace-expansion/package.json
  58. +2 −2 node_modules/browserify-zlib/package.json
  59. +2 −2 node_modules/buffer-from/package.json
  60. +2 −2 node_modules/builtin-modules/package.json
  61. +14 −10 node_modules/bytes/package.json
  62. +2 −2 node_modules/camelcase-keys/package.json
  63. +2 −2 node_modules/camelcase/package.json
  64. +2 −2 node_modules/chalk/package.json
  65. +14 −10 node_modules/coffeescript/package.json
  66. +14 −10 node_modules/color-convert/package.json
  67. +9 −5 node_modules/color-name/package.json
  68. +14 −10 node_modules/colors/package.json
  69. +2 −2 node_modules/commander/package.json
  70. +14 −0 node_modules/compass/.npmignore
  71. +52 −0 node_modules/compass/README.md
  72. +1 −0 node_modules/compass/index.js
  73. +34 −0 node_modules/compass/lib/compass.js
  74. +60 −0 node_modules/compass/package.json
  75. +56 −0 node_modules/compass/test/compass.js
  76. +23 −0 node_modules/compass/test/fixtures/config.rb
  77. +1 −0 node_modules/compass/test/fixtures/sass/_base.scss
  78. +5 −0 node_modules/compass/test/fixtures/sass/style.scss
  79. +9 −5 node_modules/concat-map/package.json
  80. +2 −2 node_modules/concat-stream/package.json
  81. +14 −10 node_modules/continuable-cache/package.json
  82. +2 −2 node_modules/core-util-is/package.json
  83. +2 −2 node_modules/currently-unhandled/package.json
  84. +2 −2 node_modules/dargs/package.json
  85. +14 −10 node_modules/dateformat/package.json
  86. +14 −10 node_modules/debug/package.json
  87. +2 −2 node_modules/decamelize/package.json
  88. +2 −2 node_modules/error-ex/package.json
  89. +14 −10 node_modules/error/package.json
  90. +4 −3 node_modules/escape-string-regexp/package.json
  91. +14 −10 node_modules/esprima/package.json
  92. +14 −10 node_modules/eventemitter2/package.json
  93. +14 −10 node_modules/exit/package.json
  94. +14 −10 node_modules/faye-websocket/package.json
  95. +2 −2 node_modules/figures/package.json
  96. +2 −2 node_modules/find-up/package.json
  97. +2 −2 node_modules/find-versions/package.json
  98. +14 −10 node_modules/findup-sync/node_modules/glob/package.json
  99. +14 −10 node_modules/findup-sync/package.json
  100. +16 −11 node_modules/fs.realpath/package.json
  101. +14 −10 node_modules/gaze/package.json
  102. +3 −2 node_modules/get-stdin/package.json
  103. +14 −10 node_modules/getobject/package.json
  104. +14 −10 node_modules/glob/package.json
  105. +14 −10 node_modules/globule/node_modules/glob/package.json
  106. +14 −10 node_modules/globule/package.json
  107. +2 −2 node_modules/graceful-fs/package.json
  108. +2 −2 node_modules/grunt-contrib-compass/package.json
  109. +8 −11 node_modules/grunt-contrib-uglify-es/package.json
  110. +14 −10 node_modules/grunt-contrib-watch/node_modules/async/package.json
  111. +15 −12 node_modules/grunt-contrib-watch/package.json
  112. +14 −10 node_modules/grunt-known-options/package.json
  113. +14 −10 node_modules/grunt-legacy-log-utils/node_modules/ansi-styles/package.json
  114. +14 −10 node_modules/grunt-legacy-log-utils/node_modules/chalk/package.json
  115. +14 −10 node_modules/grunt-legacy-log-utils/node_modules/supports-color/package.json
  116. +14 −10 node_modules/grunt-legacy-log-utils/package.json
  117. +14 −10 node_modules/grunt-legacy-log/package.json
  118. +14 −10 node_modules/grunt-legacy-util/package.json
  119. +15 −1 node_modules/grunt/node_modules/.bin/grunt
  120. +7 −0 node_modules/grunt/node_modules/.bin/grunt.cmd
  121. +14 −10 node_modules/grunt/node_modules/grunt-cli/package.json
  122. +15 −12 node_modules/grunt/package.json
  123. +2 −2 node_modules/gzip-size/package.json
  124. +2 −2 node_modules/has-ansi/package.json
  125. +14 −10 node_modules/has-flag/package.json
  126. +14 −10 node_modules/hooker/package.json
  127. +2 −2 node_modules/hosted-git-info/package.json
  128. +14 −10 node_modules/http-parser-js/package.json
  129. +14 −10 node_modules/iconv-lite/package.json
  130. +2 −2 node_modules/indent-string/package.json
  131. +16 −11 node_modules/inflight/package.json
  132. +5 −2 node_modules/inherits/package.json
  133. +2 −2 node_modules/is-arrayish/package.json
  134. +2 −2 node_modules/is-builtin-module/package.json
  135. +2 −2 node_modules/is-finite/package.json
  136. +2 −2 node_modules/is-utf8/package.json
  137. +2 −2 node_modules/isarray/package.json
  138. +2 −2 node_modules/isexe/package.json
  139. +14 −10 node_modules/js-yaml/package.json
  140. +14 −10 node_modules/livereload-js/package.json
  141. +2 −2 node_modules/load-json-file/package.json
  142. +17 −10 node_modules/lodash/package.json
  143. +2 −2 node_modules/loud-rejection/package.json
  144. +2 −2 node_modules/map-obj/package.json
  145. +2 −2 node_modules/maxmin/package.json
  146. +3 −2 node_modules/meow/package.json
  147. +16 −10 node_modules/minimatch/package.json
  148. +2 −2 node_modules/minimist/package.json
  149. +9 −5 node_modules/mkdirp/node_modules/minimist/package.json
  150. +14 −10 node_modules/mkdirp/package.json
  151. +9 −5 node_modules/ms/package.json
  152. +14 −10 node_modules/nopt/package.json
  153. +2 −2 node_modules/normalize-package-data/package.json
  154. +2 −2 node_modules/number-is-nan/package.json
  155. +4 −3 node_modules/object-assign/package.json
  156. +15 −10 node_modules/once/package.json
  157. +2 −2 node_modules/onetime/package.json
  158. +2 −2 node_modules/os-tmpdir/package.json
  159. +2 −2 node_modules/pako/package.json
  160. +2 −2 node_modules/parse-json/package.json
  161. +2 −2 node_modules/path-exists/package.json
  162. +15 −10 node_modules/path-is-absolute/package.json
  163. +2 −2 node_modules/path-type/package.json
  164. +2 −2 node_modules/pify/package.json
  165. +2 −2 node_modules/pinkie-promise/package.json
  166. +2 −2 node_modules/pinkie/package.json
  167. +2 −2 node_modules/pretty-bytes/package.json
  168. +2 −2 node_modules/process-nextick-args/package.json
  169. +14 −10 node_modules/qs/package.json
  170. +14 −10 node_modules/raw-body/node_modules/string_decoder/package.json
  171. +14 −10 node_modules/raw-body/package.json
  172. +2 −2 node_modules/read-pkg-up/package.json
  173. +2 −2 node_modules/read-pkg/package.json
  174. +2 −2 node_modules/readable-stream/package.json
  175. +2 −2 node_modules/redent/package.json
  176. +2 −2 node_modules/repeating/package.json
  177. +14 −10 node_modules/resolve/package.json
  178. +14 −10 node_modules/rimraf/package.json
  179. +2 −2 node_modules/safe-buffer/package.json
  180. +14 −10 node_modules/safe-json-parse/package.json
  181. +14 −10 node_modules/safer-buffer/package.json
  182. +2 −2 node_modules/semver-regex/package.json
  183. +2 −2 node_modules/semver-truncate/package.json
  184. +2 −2 node_modules/semver/package.json
  185. +2 −2 node_modules/signal-exit/package.json
  186. +2 −2 node_modules/source-map/package.json
  187. +2 −2 node_modules/spdx-correct/package.json
  188. +2 −2 node_modules/spdx-exceptions/package.json
  189. +2 −2 node_modules/spdx-expression-parse/package.json
  190. +2 −2 node_modules/spdx-license-ids/package.json
  191. +14 −10 node_modules/sprintf-js/package.json
  192. +14 −10 node_modules/string-template/package.json
  193. +2 −2 node_modules/string_decoder/package.json
  194. +2 −2 node_modules/strip-ansi/package.json
  195. +2 −2 node_modules/strip-bom/package.json
  196. +2 −2 node_modules/strip-indent/package.json
  197. +2 −2 node_modules/supports-color/package.json
  198. +14 −10 node_modules/tiny-lr/package.json
  199. +2 −2 node_modules/tmp/package.json
  200. +2 −2 node_modules/trim-newlines/package.json
  201. +2 −2 node_modules/typedarray/package.json
  202. +2 −2 node_modules/uglify-es/package.json
  203. +14 −10 node_modules/underscore.string/package.json
  204. +2 −2 node_modules/uri-path/package.json
  205. +4 −3 node_modules/util-deprecate/package.json
  206. +2 −2 node_modules/validate-npm-package-license/package.json
  207. +14 −10 node_modules/websocket-driver/package.json
  208. +14 −10 node_modules/websocket-extensions/package.json
  209. +4 −3 node_modules/which/package.json
  210. +14 −10 node_modules/wrappy/package.json
  211. +14 −10 node_modules/xtend/package.json
  212. +208 −204 package-lock.json
  213. +1 −0 package.json
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -6,6 +6,9 @@ body, html {
ul {
list-style: none;
}
.hide {
background: none !important;
}
#target {
margin: auto;
background-color: green;
@@ -23,46 +26,102 @@ ul {
position: relative;
/* comment for live */
transform: perspective(400px) rotateX(85deg) rotateZ(128deg);
transform: perspective(400px) rotateX(85deg) rotateZ(0deg);
/* uncomment for live */
/*animation-name: spin;*/
animation-name: spin;
}
#castle {
transform: rotateY(90deg);
transform: translateZ(-19px) rotateY(90deg);
position: absolute;
left: 70%;
top: 33%;
/*left: 70%;
top: 33%;*/
left: 51%;
top: 73%;
list-style: none;
transform-style: preserve-3d;
}
.bricks {
transform-style: preserve-3d;
background-image: url(../../_/assets/images/brick1.png);
background-size: cover;
width: 10px;
height: 10px;
width: 5px;
height: 5px;
position: absolute;
&.window {
background-image: url(../../_/assets/images/window.png) !important;
}
}
/* Rotate the walls */
.wall2 .row1 {
.wall2 .row {
transform-style: preserve-3d;
transform: rotateX(90deg);
}
/* Rotate the walls */
.wall3 .row {
transform-style: preserve-3d;
transform: rotateX(0deg);
}
/* Rotate the walls */
.wall4 .row {
transform-style: preserve-3d;
transform: rotateX(90deg);
}
@keyframes spin {
from{
transform: perspective(400px) rotateX(85deg) rotateZ(0deg);
@mixin buildWall($wall, $row, $bricks, $zz: 0) {
$j: 0;
$z: $row * 15;
}
to{
transform: perspective(400px) rotateX(85deg) rotateZ(360deg);
}
}
@mixin buildWall($wall, $row, $bricks, $zz: 0, $k: 0) {
$j: $k;
$z: $row * 2;
@for $i from 1 to $bricks {
.wall#{$wall} .row#{$row} .bricks:nth-child(#{$i}) {
left: 0;
top: 0;
transform: translateZ($zz + px) translateY($j + px) translateX($z + px);
transform: translateZ($zz + px) translateY($j + px) translateX(-$z + px);
}
$j: $j + 5;
$j: $j + 2;
}
}
/* Wall 1 */
@include buildWall(1, 1, 16);
@include buildWall(1, 2, 16);
@include buildWall(1, 3, 16);
@include buildWall(1, 4, 16);
@include buildWall(1, 5, 16);
@include buildWall(1, 6, 16);
@include buildWall(1, 7, 16);
/* Wall 2 */
@include buildWall(2, 1, 16, 16);
@include buildWall(2, 2, 16, 16);
@include buildWall(2, 3, 16, 16);
@include buildWall(2, 4, 16, 16);
@include buildWall(2, 5, 16, 16);
@include buildWall(2, 6, 16, 16);
@include buildWall(2, 7, 16, 16);
/* Wall 3 */
@include buildWall(3, 1, 16, 30.5, -16);
@include buildWall(3, 2, 16, 30.5, -16);
@include buildWall(3, 3, 16, 30.5, -16);
@include buildWall(3, 4, 16, 30.5, -16);
@include buildWall(3, 5, 16, 30.5, -16);
@include buildWall(3, 6, 16, 30.5, -16);
@include buildWall(3, 7, 16, 30.5, -16);
@include buildWall(1, 1, 6);
@include buildWall(2, 1, 6, 16);
/* Wall 4 */
@include buildWall(4, 1, 16, -13);
@include buildWall(4, 2, 16, -13);
@include buildWall(4, 3, 16, -13);
@include buildWall(4, 4, 16, -13);
@include buildWall(4, 5, 16, -13);
@include buildWall(4, 6, 16, -13);
@include buildWall(4, 7, 16, -13);
Oops, something went wrong.

0 comments on commit 791b251

Please sign in to comment.