2014-01-03 13:32:13 -05:00
|
|
|
@import "../../bootstrap/mixins"
|
2014-04-21 15:15:22 -04:00
|
|
|
|
|
|
|
$mobile: 1050px
|
|
|
|
|
2014-01-03 13:32:13 -05:00
|
|
|
#editor-level-thangs-tab-view
|
|
|
|
$addPaletteIconColumns: 3
|
|
|
|
$extantThangsWidth: 300px
|
2014-01-06 20:11:57 -05:00
|
|
|
$addPaletteIconWidth: 40px
|
2014-08-26 17:34:23 -04:00
|
|
|
$addPaletteIconPadding: 0px
|
|
|
|
$addPaletteIconMargin: 4px
|
2014-01-06 20:11:57 -05:00
|
|
|
$addPaletteWidth: ($addPaletteIconWidth + 2 * $addPaletteIconPadding + 2 * $addPaletteIconMargin) * $addPaletteIconColumns + 20
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-04-21 15:15:22 -04:00
|
|
|
#toggle
|
|
|
|
display: none
|
|
|
|
position: absolute
|
|
|
|
z-index: 11
|
|
|
|
left: -14px
|
|
|
|
@media screen and (max-width: $mobile)
|
|
|
|
display: block
|
|
|
|
|
|
|
|
.toggle
|
|
|
|
left: 0
|
|
|
|
|
|
|
|
.toggle
|
|
|
|
display: none
|
|
|
|
float: none
|
|
|
|
z-index: 11
|
|
|
|
position: absolute
|
|
|
|
right: -14px
|
|
|
|
z-index: 11
|
|
|
|
margin: 0
|
|
|
|
padding: 8px
|
|
|
|
@media screen and (max-width: $mobile)
|
|
|
|
display: block
|
|
|
|
|
|
|
|
.thangs-column
|
|
|
|
background-color: #E4CF8C
|
|
|
|
|
|
|
|
@media screen and (max-width: $mobile)
|
|
|
|
display: block
|
|
|
|
|
|
|
|
h3
|
|
|
|
@media screen and (max-width: $mobile)
|
|
|
|
display: none
|
|
|
|
|
|
|
|
#all-thangs
|
|
|
|
display: block
|
|
|
|
@media screen and (max-width: $mobile)
|
|
|
|
display: none
|
|
|
|
|
2014-01-03 13:32:13 -05:00
|
|
|
.thangs-container
|
|
|
|
width: $extantThangsWidth
|
|
|
|
position: absolute
|
|
|
|
left: 0
|
|
|
|
top: 0
|
|
|
|
bottom: 0
|
2014-04-21 15:15:22 -04:00
|
|
|
z-index: 11
|
|
|
|
@media screen and (max-width: $mobile)
|
|
|
|
width: auto
|
|
|
|
left: 18px
|
|
|
|
bottom: -18px
|
|
|
|
|
|
|
|
.btn-group
|
|
|
|
margin: 0
|
|
|
|
@media screen and (max-width: $mobile)
|
|
|
|
margin: 5px
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
h3
|
|
|
|
margin: 0 -20px 0 0
|
|
|
|
|
2014-05-16 19:39:35 -04:00
|
|
|
.editor-nano-container
|
2014-05-16 06:37:09 -04:00
|
|
|
height: 90%
|
2014-05-16 19:39:35 -04:00
|
|
|
position: relative
|
2014-05-16 06:37:09 -04:00
|
|
|
top: 20px
|
2014-01-03 13:32:13 -05:00
|
|
|
#thangs-treema
|
2014-05-16 06:37:09 -04:00
|
|
|
height: 100%
|
|
|
|
width: 100%
|
2014-01-03 13:32:13 -05:00
|
|
|
position: absolute
|
|
|
|
left: 0
|
|
|
|
right: 0
|
|
|
|
bottom: 0
|
|
|
|
overflow: scroll
|
2014-04-21 15:15:22 -04:00
|
|
|
margin: 0
|
2014-05-16 06:37:09 -04:00
|
|
|
outline: thin
|
2014-04-21 15:15:22 -04:00
|
|
|
@media screen and (max-width: $mobile)
|
|
|
|
margin: 5px
|
|
|
|
top: 40px
|
2014-01-21 13:42:09 -05:00
|
|
|
|
|
|
|
&.hide-except-Unit
|
|
|
|
.treema-node
|
|
|
|
display: none
|
|
|
|
.treema-node.treema-Unit
|
|
|
|
display: block
|
|
|
|
|
|
|
|
&.hide-except-Doodad
|
|
|
|
.treema-node
|
|
|
|
display: none
|
|
|
|
.treema-node.treema-Doodad
|
|
|
|
display: block
|
|
|
|
|
|
|
|
&.hide-except-Floor
|
|
|
|
.treema-node
|
|
|
|
display: none
|
|
|
|
.treema-node.treema-Floor
|
|
|
|
display: block
|
|
|
|
|
|
|
|
&.hide-except-Wall
|
|
|
|
.treema-node
|
|
|
|
display: none
|
|
|
|
.treema-node.treema-Wall
|
|
|
|
display: block
|
|
|
|
|
2014-08-06 11:24:50 -04:00
|
|
|
&.hide-except-Item
|
|
|
|
.treema-node
|
|
|
|
display: none
|
|
|
|
.treema-node.treema-Item
|
|
|
|
display: block
|
|
|
|
|
2014-01-21 13:42:09 -05:00
|
|
|
&.hide-except-Misc
|
|
|
|
.treema-node
|
|
|
|
display: none
|
|
|
|
.treema-node.treema-Misc
|
|
|
|
display: block
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
.treema-children .treema-row *
|
|
|
|
cursor: pointer !important
|
|
|
|
|
|
|
|
.world-container
|
|
|
|
margin-left: $extantThangsWidth
|
|
|
|
margin-right: $addPaletteWidth
|
2014-04-21 15:15:22 -04:00
|
|
|
@media screen and (max-width: $mobile)
|
|
|
|
margin-left: 0
|
|
|
|
margin-right: 0
|
2014-01-03 13:32:13 -05:00
|
|
|
padding: 0 20px
|
|
|
|
box-sizing: border-box
|
|
|
|
|
|
|
|
h3
|
|
|
|
margin: 0 -10px 0 0
|
2014-04-21 15:15:22 -04:00
|
|
|
text-align: center
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
.add-thangs-palette
|
|
|
|
width: $addPaletteWidth
|
|
|
|
box-sizing: border-box
|
|
|
|
position: absolute
|
|
|
|
right: 0
|
|
|
|
top: 0
|
|
|
|
bottom: 0
|
2014-04-21 15:15:22 -04:00
|
|
|
@media screen and (max-width: $mobile)
|
|
|
|
display: none
|
|
|
|
right: 18px
|
|
|
|
z-index: 11
|
|
|
|
width: $addPaletteWidth + 10
|
2014-04-24 05:51:16 -04:00
|
|
|
bottom: -15px
|
|
|
|
//height: auto
|
|
|
|
//padding-bottom: 10px
|
2014-04-21 15:15:22 -04:00
|
|
|
|
|
|
|
input
|
|
|
|
width: $addPaletteWidth
|
|
|
|
margin: 0
|
2014-07-25 14:45:22 -04:00
|
|
|
margin-top: 5px
|
|
|
|
padding-left: 5px
|
2014-04-21 15:15:22 -04:00
|
|
|
@media screen and (max-width: $mobile)
|
|
|
|
margin: 0 5px
|
2014-03-18 00:47:53 -04:00
|
|
|
|
2014-05-16 06:37:09 -04:00
|
|
|
#thangs-list-container
|
|
|
|
height: 90%
|
|
|
|
|
2014-01-03 13:32:13 -05:00
|
|
|
#thangs-list
|
2014-03-18 00:47:53 -04:00
|
|
|
position: relative
|
2014-01-03 13:32:13 -05:00
|
|
|
right: 0
|
2014-03-20 14:22:23 -04:00
|
|
|
top: 10px
|
|
|
|
bottom: 10px
|
2014-01-03 13:32:13 -05:00
|
|
|
overflow: scroll
|
2014-03-18 00:47:53 -04:00
|
|
|
height: 100%
|
2014-04-21 15:15:22 -04:00
|
|
|
margin: 0
|
|
|
|
@media screen and (max-width: $mobile)
|
|
|
|
margin: 0 5px
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
h3
|
|
|
|
margin: 0 -20px 0 0
|
|
|
|
width: 100%
|
2014-01-21 02:02:23 -05:00
|
|
|
|
|
|
|
h4
|
|
|
|
margin: 0 0 10px
|
|
|
|
clear: both
|
|
|
|
padding: 5px
|
|
|
|
background: rgba(150, 150, 150, 0.5)
|
|
|
|
width: $addPaletteWidth - 20px
|
|
|
|
box-sizing: border-box
|
|
|
|
|
|
|
|
.clearfix
|
|
|
|
margin-bottom: 20px
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
.add-thang-palette-icon
|
2014-01-06 20:11:57 -05:00
|
|
|
position: relative
|
|
|
|
float: left
|
|
|
|
background: white
|
|
|
|
padding: $addPaletteIconPadding
|
|
|
|
margin: $addPaletteIconMargin
|
2014-01-03 13:32:13 -05:00
|
|
|
cursor: pointer
|
2014-08-26 17:34:23 -04:00
|
|
|
width: $addPaletteIconWidth
|
|
|
|
height: $addPaletteIconWidth
|
2014-01-06 20:11:57 -05:00
|
|
|
|
|
|
|
img
|
2014-08-26 17:34:23 -04:00
|
|
|
position: absolute
|
2014-01-06 20:11:57 -05:00
|
|
|
width: $addPaletteIconWidth
|
|
|
|
height: $addPaletteIconWidth
|
|
|
|
transition: box-shadow 0.25s ease-out
|
|
|
|
|
2014-08-26 17:34:23 -04:00
|
|
|
&:hover
|
|
|
|
$hoverScaleIncreaseFactor: 0.2
|
|
|
|
outline: 1px dotted blue
|
|
|
|
img
|
|
|
|
left: -($hoverScaleIncreaseFactor / 2) * $addPaletteIconWidth
|
|
|
|
top: -($hoverScaleIncreaseFactor / 2) * $addPaletteIconWidth
|
|
|
|
width: (1 + $hoverScaleIncreaseFactor) * $addPaletteIconWidth
|
|
|
|
height: (1 + $hoverScaleIncreaseFactor) * $addPaletteIconWidth
|
|
|
|
|
2014-01-03 13:32:13 -05:00
|
|
|
&.selected
|
2014-08-26 17:34:23 -04:00
|
|
|
outline: 1px solid blue
|
2014-01-03 13:32:13 -05:00
|
|
|
@include box-shadow(0px 5px 25px rgba(79, 79, 213, 0.6))
|
2014-01-06 20:11:57 -05:00
|
|
|
background: #add8e6
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-01-14 01:29:58 -05:00
|
|
|
.world-container
|
2014-01-03 13:32:13 -05:00
|
|
|
position: relative
|
|
|
|
|
2014-01-14 01:29:58 -05:00
|
|
|
#canvas-wrapper
|
|
|
|
width: 100%
|
|
|
|
position: relative
|
2014-08-07 14:12:07 -04:00
|
|
|
text-align: center
|
|
|
|
|
|
|
|
#randomize-button
|
2014-07-25 16:21:10 -04:00
|
|
|
position: absolute
|
2014-08-07 14:12:07 -04:00
|
|
|
top: 45%
|
|
|
|
height: 40px
|
2014-07-25 16:21:10 -04:00
|
|
|
|
|
|
|
|
2014-01-14 01:29:58 -05:00
|
|
|
|
|
|
|
// Below snatched from play/level.sass; should refactor?
|
|
|
|
|
|
|
|
canvas#surface
|
|
|
|
background-color: #ddd
|
|
|
|
width: 100%
|
|
|
|
display: block
|
|
|
|
z-index: 1
|
|
|
|
|
|
|
|
$GI: 0.5 // gradient intensity; can tweak this 0-1
|
|
|
|
|
|
|
|
.gradient
|
|
|
|
position: absolute
|
|
|
|
z-index: 10
|
|
|
|
|
|
|
|
#canvas-left-gradient
|
|
|
|
left: 0px
|
|
|
|
width: 5px
|
|
|
|
background: linear-gradient(to left, rgba(0,0,0,0) 0%,rgba(0,0,0,0.8*$GI) 100%)
|
|
|
|
bottom: 0
|
|
|
|
top: 0
|
|
|
|
|
|
|
|
#canvas-top-gradient
|
|
|
|
top: 0
|
|
|
|
height: 5px
|
|
|
|
left: 0
|
|
|
|
right: 0
|
|
|
|
background: linear-gradient(to top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.8*$GI) 100%)
|