2014-08-14 16:41:32 -04:00
|
|
|
@import "../bootstrap/mixins"
|
|
|
|
|
2014-09-21 02:06:28 -04:00
|
|
|
$totalWidth: 706px - 2 * 20px
|
|
|
|
// We get 666px to play with from our parent modals.
|
|
|
|
$inventoryHeight: 530px
|
|
|
|
$equippedWidth: 450px
|
|
|
|
$itemSlotMargin: 5px
|
|
|
|
$itemSlotSize: ($equippedWidth - 6 * 2 * $itemSlotMargin) / 6
|
|
|
|
$itemSlotSizeWithMargin: $itemSlotSize + 2 * $itemSlotMargin
|
|
|
|
$heroContainerBottomMargin: 10px
|
|
|
|
$heroContainerWidth: 4 * $itemSlotSizeWithMargin
|
|
|
|
$heroContainerHeight: $inventoryHeight - 2 * $itemSlotSizeWithMargin - $heroContainerBottomMargin
|
|
|
|
$selectedAreaHeight: 150px
|
|
|
|
$stashMargin: 20px
|
|
|
|
$stashWidth: $totalWidth - $equippedWidth - $stashMargin
|
|
|
|
|
2014-08-08 14:36:41 -04:00
|
|
|
#inventory-view
|
2014-08-13 20:21:37 -04:00
|
|
|
position: relative
|
2014-09-21 02:06:28 -04:00
|
|
|
height: $inventoryHeight
|
2014-08-14 16:41:32 -04:00
|
|
|
+user-select(none)
|
2014-08-13 20:21:37 -04:00
|
|
|
|
2014-08-08 14:36:41 -04:00
|
|
|
h3
|
2014-08-13 20:21:37 -04:00
|
|
|
margin: 0
|
2014-09-21 02:06:28 -04:00
|
|
|
|
|
|
|
.draggable-item
|
|
|
|
width: $itemSlotSize
|
|
|
|
height: $itemSlotSize
|
2014-08-13 20:21:37 -04:00
|
|
|
|
|
|
|
#equipped
|
2014-09-21 02:06:28 -04:00
|
|
|
width: $equippedWidth
|
2014-08-13 20:21:37 -04:00
|
|
|
position: absolute
|
|
|
|
left: 0
|
|
|
|
top: 0
|
2014-09-21 02:06:28 -04:00
|
|
|
bottom: 0
|
|
|
|
//bottom: $selectedAreaHeight + 10
|
2014-08-13 20:21:37 -04:00
|
|
|
right: 0
|
|
|
|
overflow: scroll
|
2014-09-21 02:06:28 -04:00
|
|
|
|
|
|
|
.item-slot-row
|
|
|
|
//background-color: rgba(35, 112, 124, 0.5)
|
|
|
|
height: $itemSlotSizeWithMargin
|
|
|
|
clear: both
|
|
|
|
margin: 0px auto
|
|
|
|
|
|
|
|
&.row-4
|
|
|
|
width: 4 * $itemSlotSizeWithMargin
|
|
|
|
|
|
|
|
.item-slot-column
|
|
|
|
//background-color: rgba(112, 124, 35, 0.5)
|
|
|
|
width: $itemSlotSizeWithMargin
|
|
|
|
height: 4 * $itemSlotSizeWithMargin
|
|
|
|
float: left
|
|
|
|
margin-top: 30px
|
|
|
|
|
|
|
|
.item-slot
|
|
|
|
width: $itemSlotSize
|
|
|
|
height: $itemSlotSize
|
|
|
|
margin: $itemSlotMargin
|
|
|
|
background-color: white
|
|
|
|
float: left
|
|
|
|
position: relative
|
|
|
|
cursor: pointer
|
|
|
|
|
|
|
|
&.selected
|
|
|
|
.placeholder, .item-container .item-view img
|
|
|
|
border-color: #28f
|
|
|
|
@include box-shadow(0 0 10px #28f)
|
|
|
|
|
|
|
|
&.droppable
|
|
|
|
outline: 2px solid blue
|
|
|
|
|
|
|
|
&.droppable-hover
|
|
|
|
outline: 4px solid blue
|
|
|
|
|
|
|
|
.placeholder
|
|
|
|
width: 100%
|
|
|
|
height: 100%
|
|
|
|
background-size: cover
|
|
|
|
border: 2px solid #888
|
2014-09-21 14:24:37 -04:00
|
|
|
@include opacity(0.75)
|
2014-09-21 02:06:28 -04:00
|
|
|
|
|
|
|
&[data-slot="waist"], &[data-slot="pet"], &[data-slot="minion"], &[data-slot="misc-1"]
|
|
|
|
// My spooging of the other placeholders had them dimmed; these didn't.
|
|
|
|
.placeholder
|
2014-09-21 14:24:37 -04:00
|
|
|
@include opacity(0.35)
|
2014-09-21 02:06:28 -04:00
|
|
|
border-color: black
|
|
|
|
&.selected
|
|
|
|
&[data-slot="waist"], &[data-slot="pet"], &[data-slot="minion"], &[data-slot="misc-1"]
|
|
|
|
.placeholder
|
|
|
|
border-color: #28f
|
|
|
|
|
|
|
|
.item-container
|
|
|
|
position: absolute
|
|
|
|
left: 0
|
|
|
|
top: 0
|
|
|
|
|
|
|
|
.item-view
|
|
|
|
img
|
|
|
|
width: $itemSlotSize
|
|
|
|
height: $itemSlotSize
|
|
|
|
border: 2px solid black
|
|
|
|
background-color: white
|
|
|
|
|
|
|
|
.item-info
|
|
|
|
display: none
|
2014-08-13 20:21:37 -04:00
|
|
|
|
|
|
|
.item-slot.disabled
|
|
|
|
opacity: 0.5
|
2014-09-21 02:06:28 -04:00
|
|
|
|
|
|
|
.hero-container
|
|
|
|
//background-color: rgba(31, 0, 200, 0.25)
|
|
|
|
float: left
|
2014-09-21 12:53:58 -04:00
|
|
|
position: relative
|
2014-09-21 02:06:28 -04:00
|
|
|
|
|
|
|
.equipped-hero-canvas
|
|
|
|
width: $heroContainerWidth
|
|
|
|
height: $heroContainerHeight
|
|
|
|
|
|
|
|
hr.slot-row-separator
|
|
|
|
clear: both
|
|
|
|
margin-top: 0
|
|
|
|
margin-bottom: $heroContainerBottomMargin / 2 - 1
|
|
|
|
border-top: 1px solid #aaa
|
|
|
|
|
2014-08-13 20:21:37 -04:00
|
|
|
.panel
|
|
|
|
text-align: center
|
2014-08-14 16:41:32 -04:00
|
|
|
width: 31.3%
|
2014-08-13 20:21:37 -04:00
|
|
|
margin: 5px 2% 5px 0
|
|
|
|
float: left
|
|
|
|
cursor: pointer
|
|
|
|
|
|
|
|
.panel-heading
|
|
|
|
padding: 5px
|
|
|
|
|
|
|
|
.panel-info .panel-body
|
|
|
|
background-color: #e0f0f5
|
|
|
|
|
|
|
|
.panel-body
|
|
|
|
height: 50px
|
|
|
|
padding: 5px
|
|
|
|
overflow: scroll
|
|
|
|
font-size: 12px
|
|
|
|
|
|
|
|
#available-equipment
|
2014-09-21 02:06:28 -04:00
|
|
|
width: $stashWidth
|
2014-08-13 20:21:37 -04:00
|
|
|
position: absolute
|
2014-08-14 16:41:32 -04:00
|
|
|
right: 0
|
2014-08-13 20:21:37 -04:00
|
|
|
top: 0
|
2014-09-21 02:06:28 -04:00
|
|
|
bottom: 0
|
2014-08-13 20:21:37 -04:00
|
|
|
overflow: scroll
|
2014-09-21 02:06:28 -04:00
|
|
|
border: 2px solid #ccc
|
|
|
|
padding: 4px
|
|
|
|
background-color: white
|
|
|
|
|
2014-09-21 14:24:37 -04:00
|
|
|
.list-group-item
|
|
|
|
padding: 8px 0
|
|
|
|
img
|
|
|
|
width: 50px
|
|
|
|
height: 50px
|
|
|
|
margin-right: 5px
|
|
|
|
|
|
|
|
&.active
|
|
|
|
background-color: #e0f0f5
|
|
|
|
&.equipped
|
|
|
|
display: none
|
2014-08-13 20:21:37 -04:00
|
|
|
|
2014-08-14 16:41:32 -04:00
|
|
|
.item-view
|
2014-08-13 20:21:37 -04:00
|
|
|
cursor: pointer
|
|
|
|
|
|
|
|
#selected-items
|
2014-09-21 12:53:58 -04:00
|
|
|
$selectedItemsContainerMargin: 20px
|
|
|
|
$selectedItemMargin: 10px
|
|
|
|
$selectedItemImageSize: 75px
|
|
|
|
$swapItemHeight: 40px
|
|
|
|
$swapItemWidth: 60px
|
|
|
|
|
2014-08-13 20:21:37 -04:00
|
|
|
position: absolute
|
2014-09-21 12:53:58 -04:00
|
|
|
top: $selectedItemsContainerMargin
|
|
|
|
right: $selectedItemsContainerMargin
|
|
|
|
bottom: $selectedItemsContainerMargin + $heroContainerBottomMargin
|
|
|
|
left: $selectedItemsContainerMargin
|
2014-08-14 16:41:32 -04:00
|
|
|
text-align: center
|
2014-08-13 20:21:37 -04:00
|
|
|
|
|
|
|
#selected-equipped-item, #selected-available-item
|
2014-08-14 16:41:32 -04:00
|
|
|
text-align: left
|
2014-08-13 20:21:37 -04:00
|
|
|
overflow: scroll
|
2014-09-21 12:53:58 -04:00
|
|
|
margin: 0
|
|
|
|
height: 48.4%
|
|
|
|
height: -webkit-calc(50% - $selectedItemMargin / 2)
|
|
|
|
height: calc(50% - $selectedItemMargin / 2)
|
|
|
|
width: 100%
|
2014-09-21 14:24:37 -04:00
|
|
|
padding: 10px 5px 10px 10px
|
2014-08-13 20:21:37 -04:00
|
|
|
|
|
|
|
img
|
2014-09-21 12:53:58 -04:00
|
|
|
margin-top: 21px
|
|
|
|
width: $selectedItemImageSize
|
|
|
|
height: $selectedItemImageSize
|
2014-08-13 20:21:37 -04:00
|
|
|
|
|
|
|
.item-info
|
2014-09-21 12:53:58 -04:00
|
|
|
margin-left: $selectedItemImageSize + 10px
|
2014-08-14 16:41:32 -04:00
|
|
|
|
2014-09-21 12:53:58 -04:00
|
|
|
#selected-equipped-item
|
|
|
|
margin-bottom: $selectedItemMargin
|
2014-09-21 14:24:37 -04:00
|
|
|
padding-bottom: 20px
|
|
|
|
|
|
|
|
#selected-available-item
|
|
|
|
padding-top: 15px
|
2014-09-21 12:53:58 -04:00
|
|
|
|
|
|
|
#swap-button
|
|
|
|
position: absolute
|
|
|
|
top: 50%
|
|
|
|
left: 50%
|
|
|
|
margin-top: -($swapItemHeight / 2)
|
|
|
|
margin-left: -($swapItemWidth / 2)
|
|
|
|
width: $swapItemWidth
|
|
|
|
height: $swapItemHeight
|
|
|
|
font-size: 24px
|
|
|
|
line-height: 24px
|
|
|
|
display: inline-block
|