Frontend for viewing Dungeon Defender layouts
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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. @gradient-start-color: rgb(244,245,242);
  2. @gradient-end-color: rgb(255,255,255);
  3. @heading-color: #300;
  4. @mask-color: #999;
  5. @mask-opacity: 0.8;
  6. @create-color: @heading-color;
  7. @save-color: #030;
  8. @instructions-color: #003;
  9. @border-color: @gradient-start-color;
  10. @border: 1px solid @border-color;
  11. .linear-vertical-gradient(@start-color, @end-color, @start-pc: 0.64, @end-pc: 0.28) {
  12. background-image: linear-gradient(bottom, @end-color percentage(@end-pc), @start-color percentage(@start-pc));
  13. background-image: -o-linear-gradient(bottom, @end-color percentage(@end-pc), @start-color percentage(@start-pc));
  14. background-image: -moz-linear-gradient(bottom, @end-color percentage(@end-pc), @start-color percentage(@start-pc));
  15. background-image: -webkit-linear-gradient(bottom, @end-color percentage(@end-pc), @start-color percentage(@start-pc));
  16. background-image: -ms-linear-gradient(bottom, @end-color percentage(@end-pc), @start-color percentage(@start-pc));
  17. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(@end-pc, @gradient-end-color), color-stop(@start-pc, @gradient-start-color));
  18. }
  19. body {
  20. font-family: sans-serif;
  21. margin: 0;
  22. padding: 0;
  23. }
  24. #header {
  25. height: 70px;
  26. padding: 10px 20px;
  27. .linear-vertical-gradient(@gradient-start-color, @gradient-end-color);
  28. border-bottom: @border;
  29. &, & h1 {
  30. margin: 0;
  31. padding: 0;
  32. }
  33. h1 {
  34. float: left;
  35. img {
  36. vertical-align: bottom;
  37. width: 106px;
  38. height: 70px;
  39. }
  40. span {
  41. display: inline-block;
  42. padding-bottom: 10px;
  43. margin-left: 20px;
  44. color: @heading-color;
  45. }
  46. }
  47. #buttons {
  48. float: right;
  49. height: 40px;
  50. margin: 15px;
  51. #createlayout {
  52. color: @create-color;
  53. }
  54. #savelayout {
  55. margin-left: 20px;
  56. color: @save-color;
  57. }
  58. #showinstructions {
  59. color: @instructions-color;
  60. }
  61. }
  62. }
  63. button {
  64. font-variant: small-caps;
  65. font-weight: bold;
  66. text-transform: lowercase;
  67. padding: 10px;
  68. }
  69. #sidebar {
  70. float: left;
  71. width: 200px;
  72. padding: 10px;
  73. min-height: 1024px;
  74. border-right: @border;
  75. background-color: white;
  76. & > div {
  77. text-align: center;
  78. margin-bottom: 20px;
  79. }
  80. }
  81. h2 {
  82. margin: 0;
  83. color: @heading-color;
  84. }
  85. #notecontent {
  86. width: 100%;
  87. height: 300px;
  88. max-width: 100%;
  89. }
  90. #palette p {
  91. font-size: x-small;
  92. margin-top: 0;
  93. }
  94. #stats p {
  95. margin: 0;
  96. padding: 3px 0;
  97. }
  98. #mapcontainer {
  99. position: relative;
  100. width: 1024px;
  101. height: 1024px;
  102. margin-left: 221px;
  103. }
  104. #du_wrapper.over {
  105. background-color: #600;
  106. color: white;
  107. }
  108. .tower, .core, #palette .tower.monk { width: 40px; height: 40px; }
  109. .tower.monk, #palette .tower.monk.ui-draggable-dragging { width: 95px; height: 95px; }
  110. .tower.monk { z-index: 97; }
  111. .tower.huntress { z-index: 98; }
  112. .tower.squire { z-index: 99; }
  113. .tower.apprentice { z-index: 100; }
  114. body .tower.ui-draggable-dragging { z-index: 101; }
  115. .mask {
  116. position: fixed;
  117. top: 0;
  118. left: 0;
  119. right: 0;
  120. bottom: 0;
  121. background-color: @mask-color;
  122. z-index: 200;
  123. opacity: @mask-opacity;
  124. }
  125. .dialog {
  126. position: fixed;
  127. background-color: white;
  128. border: @border;
  129. z-index: 201;
  130. overflow: auto;
  131. text-align: center;
  132. padding: 0;
  133. .container {
  134. padding: 50px;
  135. }
  136. .close {
  137. float: right;
  138. margin: 0;
  139. background: white url('images/close.png') no-repeat left center;
  140. padding: 10px 10px 10px 25px;
  141. border: 0;
  142. cursor: pointer;
  143. &:hover {
  144. text-decoration: underline;
  145. }
  146. }
  147. }
  148. #searchdialog {
  149. top: 150px;
  150. left: 200px;
  151. right: 200px;
  152. bottom: 100px;
  153. h3 {
  154. color: @heading-color;
  155. text-align: left;
  156. border-bottom: 1px solid @border-color;
  157. }
  158. img {
  159. width: 30px;
  160. height: 30px;
  161. }
  162. img.disabled {
  163. opacity: 0.3;
  164. }
  165. #searchterms {
  166. width: 300px;
  167. float: left;
  168. select {
  169. width: 170px;
  170. }
  171. .formrow {
  172. clear: left;
  173. text-align: left;
  174. label:first-child {
  175. width: 120px;
  176. height: 30px;
  177. float: left;
  178. text-align: right;
  179. padding-right: 10px;
  180. & ~ label {
  181. display: block;
  182. margin-left: 130px;
  183. height: 30px;
  184. }
  185. }
  186. &.submit {
  187. text-align: center;
  188. padding: 20px;
  189. }
  190. button {
  191. width: 100px;
  192. }
  193. }
  194. }
  195. #searchresults {
  196. margin-left: 330px;
  197. table {
  198. width: 100%;
  199. thead tr {
  200. color: @heading-color;
  201. font-weight: bold;
  202. }
  203. tr {
  204. text-align: left;
  205. }
  206. }
  207. }
  208. }
  209. #layoutpicker {
  210. top: 150px;
  211. left: 200px;
  212. right: 200px;
  213. bottom: 100px;
  214. .container button {
  215. margin: 30px;
  216. }
  217. button {
  218. p {
  219. margin: 5px;
  220. font-size: large;
  221. }
  222. img {
  223. width: 200px;
  224. height: 100px;
  225. }
  226. }
  227. }
  228. #savedialog {
  229. top: 200px;
  230. left: 50%;
  231. height: 300px;
  232. width: 500px;
  233. margin-left: -250px;
  234. }
  235. .initiallyhidden {
  236. display: none;
  237. }
  238. .error {
  239. color: red;
  240. font-weight: bold;
  241. }
  242. #instructions {
  243. padding: 10px;
  244. border-bottom: @border;
  245. h2, p {
  246. display: inline-block;
  247. margin: 0;
  248. padding-left: 10px;
  249. }
  250. h2 {
  251. padding-left: 20px;
  252. }
  253. button {
  254. margin-left: 20px;
  255. opacity: 0.6;
  256. &:hover {
  257. opacity: 1;
  258. }
  259. }
  260. }
  261. #difficulty, #modes, #type {
  262. font-variant: small-caps;
  263. font-size: large;
  264. }
  265. #stats p {
  266. text-align: left;
  267. }
  268. .label {
  269. display: inline-block;
  270. text-align: right;
  271. width: 80px;
  272. padding-right: 5px;
  273. }
  274. .easy { color: #00AB00; }
  275. .medium { color: #008FE6; }
  276. .hard { color: #FF6600; }
  277. .insane { color: #FF0000; }
  278. .nightmare { color: #A000EB; }