2014-09-24 23:15:17 -04:00
|
|
|
@import "app/styles/mixins"
|
2014-08-14 16:41:32 -04:00
|
|
|
|
2014-09-21 02:06:28 -04:00
|
|
|
$totalWidth: 706px - 2 * 20px
|
2014-10-14 12:54:18 -04:00
|
|
|
$inventoryHeight: 445px
|
2014-09-21 02:06:28 -04:00
|
|
|
$equippedWidth: 450px
|
|
|
|
$itemSlotMargin: 5px
|
|
|
|
$itemSlotSize: ($equippedWidth - 6 * 2 * $itemSlotMargin) / 6
|
|
|
|
$itemSlotSizeWithMargin: $itemSlotSize + 2 * $itemSlotMargin
|
2014-10-01 21:17:21 -04:00
|
|
|
$itemSlotBorderWidth: 2px
|
|
|
|
$itemSlotInnerWidth: $itemSlotSize - 2 * $itemSlotBorderWidth
|
2014-09-21 02:06:28 -04:00
|
|
|
$heroContainerWidth: 4 * $itemSlotSizeWithMargin
|
2014-10-14 12:54:18 -04:00
|
|
|
$heroContainerHeight: $inventoryHeight - $itemSlotSizeWithMargin
|
2014-09-21 02:06:28 -04:00
|
|
|
$selectedAreaHeight: 150px
|
|
|
|
$stashMargin: 20px
|
|
|
|
$stashWidth: $totalWidth - $equippedWidth - $stashMargin
|
|
|
|
|
2014-10-30 16:07:04 -04:00
|
|
|
.ui-effects-transfer
|
|
|
|
outline: 2px solid #28f
|
|
|
|
@include box-shadow(0 0 10px #28f)
|
|
|
|
z-index: 9001
|
|
|
|
|
2014-11-06 19:23:23 -05:00
|
|
|
#inventory-modal
|
|
|
|
.modal-dialog
|
|
|
|
margin: 30px auto 0 auto
|
|
|
|
width: 720px
|
|
|
|
|
|
|
|
.modal-body
|
|
|
|
height: 450px
|
|
|
|
margin: 0
|
|
|
|
|
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
|
2014-11-06 19:23:23 -05:00
|
|
|
left: 20px
|
2014-08-13 20:21:37 -04:00
|
|
|
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
|
2014-09-24 12:38:45 -04:00
|
|
|
overflow: hidden
|
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
|
2014-10-14 12:54:18 -04:00
|
|
|
height: 5 * $itemSlotSizeWithMargin
|
2014-09-21 02:06:28 -04:00
|
|
|
float: left
|
2014-10-14 12:54:18 -04:00
|
|
|
//margin-top: 30px
|
2014-09-21 02:06:28 -04:00
|
|
|
|
|
|
|
.item-slot
|
|
|
|
width: $itemSlotSize
|
|
|
|
height: $itemSlotSize
|
|
|
|
margin: $itemSlotMargin
|
|
|
|
background-color: white
|
|
|
|
float: left
|
|
|
|
position: relative
|
|
|
|
cursor: pointer
|
2014-10-27 14:17:34 -04:00
|
|
|
@include transition(0.5s ease)
|
2014-09-21 02:06:28 -04:00
|
|
|
|
|
|
|
&.selected
|
|
|
|
.placeholder, .item-container .item-view img
|
|
|
|
border-color: #28f
|
|
|
|
@include box-shadow(0 0 10px #28f)
|
|
|
|
|
2014-10-09 18:54:18 -04:00
|
|
|
&.should-equip
|
|
|
|
background-color: #8fa
|
|
|
|
outline: 2px solid #8af
|
2014-10-27 14:17:34 -04:00
|
|
|
@include box-shadow(2px 2px 4px black)
|
2014-10-09 18:54:18 -04:00
|
|
|
|
2014-09-21 02:06:28 -04:00
|
|
|
&.droppable
|
|
|
|
outline: 2px solid blue
|
2014-10-27 14:17:34 -04:00
|
|
|
@include box-shadow(4px 4px 6px black)
|
2014-09-21 02:06:28 -04:00
|
|
|
|
|
|
|
&.droppable-hover
|
|
|
|
outline: 4px solid blue
|
2014-10-27 14:17:34 -04:00
|
|
|
@include box-shadow(6px 6px 8px black)
|
2014-09-21 02:06:28 -04:00
|
|
|
|
|
|
|
.placeholder
|
|
|
|
width: 100%
|
|
|
|
height: 100%
|
|
|
|
background-size: cover
|
2014-10-01 21:17:21 -04:00
|
|
|
border: $itemSlotBorderWidth solid #888
|
|
|
|
@include opacity(0.4)
|
|
|
|
background-image: url(/images/pages/game-menu/slot-icons.png)
|
2014-09-21 02:06:28 -04:00
|
|
|
|
2014-10-01 21:17:21 -04:00
|
|
|
&[data-slot="misc-1"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-0 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="minion"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-1 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="programming-book"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-3 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
2014-10-14 12:54:18 -04:00
|
|
|
// Only for wizards...
|
|
|
|
//&[data-slot="spellbook"] .placeholder
|
|
|
|
// background-position: (-2 * $itemSlotInnerWidth) 0px
|
|
|
|
|
2014-10-01 21:17:21 -04:00
|
|
|
&[data-slot="misc-0"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-4 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="wrists"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-5 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="left-ring"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-6 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="right-ring"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-7 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="torso"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-8 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="feet"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-9 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="neck"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-10 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="waist"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-11 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="eyes"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-12 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="head"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-13 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="pet"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-14 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="gloves"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-15 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="left-hand"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-16 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
|
|
|
&[data-slot="right-hand"] .placeholder
|
2014-10-03 19:02:50 -04:00
|
|
|
background-position: (-17 * $itemSlotInnerWidth) 0px
|
2014-10-21 16:57:49 -04:00
|
|
|
|
|
|
|
&[data-slot="flag"] .placeholder
|
|
|
|
//background-position: (-18 * $itemSlotInnerWidth) 0px
|
|
|
|
background-position: (-2 * $itemSlotInnerWidth) 0px
|
2014-10-01 21:17:21 -04:00
|
|
|
|
2014-09-21 02:06:28 -04:00
|
|
|
.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-10-27 14:17:34 -04:00
|
|
|
@include transition(0.5s ease)
|
|
|
|
|
|
|
|
&.droppable
|
|
|
|
outline: 2px solid blue
|
|
|
|
@include box-shadow(4px 4px 6px black)
|
|
|
|
|
|
|
|
&.droppable-hover
|
|
|
|
outline: 4px solid blue
|
|
|
|
@include box-shadow(6px 6px 8px black)
|
2014-09-21 02:06:28 -04:00
|
|
|
|
2014-10-14 12:54:18 -04:00
|
|
|
.equipped-hero-canvas, .hero-feature-image
|
2014-09-21 02:06:28 -04:00
|
|
|
width: $heroContainerWidth
|
|
|
|
height: $heroContainerHeight
|
|
|
|
|
2014-10-14 12:54:18 -04:00
|
|
|
.hero-feature-image
|
|
|
|
text-align: center
|
|
|
|
|
|
|
|
img
|
|
|
|
height: $heroContainerHeight
|
2014-09-21 02:06:28 -04:00
|
|
|
|
2014-08-13 20:21:37 -04:00
|
|
|
#available-equipment
|
2014-09-21 02:06:28 -04:00
|
|
|
width: $stashWidth
|
2014-08-13 20:21:37 -04:00
|
|
|
position: absolute
|
2014-11-06 19:23:23 -05:00
|
|
|
right: 20px
|
2014-08-13 20:21:37 -04:00
|
|
|
top: 0
|
2014-09-21 02:06:28 -04:00
|
|
|
bottom: 0
|
2014-09-24 12:38:45 -04:00
|
|
|
overflow-y: scroll
|
2014-09-21 02:06:28 -04:00
|
|
|
border: 2px solid #ccc
|
|
|
|
padding: 4px
|
|
|
|
background-color: white
|
|
|
|
|
2014-10-30 16:07:04 -04:00
|
|
|
&.Warrior .list-group-item:not(.Warrior), &.Ranger .list-group-item:not(.Ranger), &.Wizard .list-group-item:not(.Wizard)
|
|
|
|
// Our code hides and shows (modifies display), but we can be invisible this other way.
|
|
|
|
visibility: hidden
|
|
|
|
position: absolute
|
|
|
|
|
2014-09-21 14:24:37 -04:00
|
|
|
.list-group-item
|
2014-09-24 23:15:17 -04:00
|
|
|
padding: 4px 0
|
2014-10-27 14:17:34 -04:00
|
|
|
@include transition(0.5s ease)
|
2014-09-21 14:24:37 -04:00
|
|
|
|
|
|
|
&.active
|
|
|
|
background-color: #e0f0f5
|
2014-09-22 23:44:45 -04:00
|
|
|
|
2014-11-05 17:33:56 -05:00
|
|
|
.status-message .should-equip-message
|
|
|
|
display: inline
|
2014-08-13 20:21:37 -04:00
|
|
|
|
2014-10-09 18:54:18 -04:00
|
|
|
&.should-equip
|
|
|
|
background-color: #8fa
|
|
|
|
outline: 2px solid #8af
|
2014-10-27 14:17:34 -04:00
|
|
|
@include box-shadow(4px 4px 6px black)
|
|
|
|
z-index: 1
|
2014-10-09 18:54:18 -04:00
|
|
|
|
2014-11-05 17:33:56 -05:00
|
|
|
.status-message .should-equip-message
|
|
|
|
display: inline
|
2014-10-09 18:54:18 -04:00
|
|
|
font-weight: bold
|
|
|
|
|
2014-09-24 23:15:17 -04:00
|
|
|
&.equipped
|
|
|
|
background-color: #ff5
|
|
|
|
|
|
|
|
.item-view
|
|
|
|
cursor: default
|
2014-11-05 17:33:56 -05:00
|
|
|
|
|
|
|
.status-message .equipped-message
|
2014-11-05 23:56:17 -05:00
|
|
|
display: inline
|
|
|
|
|
|
|
|
&.restricted
|
|
|
|
background-color: rgba(255, 80, 67, 0.25)
|
|
|
|
|
|
|
|
.item-view
|
|
|
|
cursor: default
|
|
|
|
|
|
|
|
.status-message .restricted-message
|
2014-11-05 17:33:56 -05:00
|
|
|
display: inline
|
2014-09-24 23:15:17 -04:00
|
|
|
|
|
|
|
&.locked
|
|
|
|
background-image: url(/images/pages/game-menu/lock.png)
|
|
|
|
background-size: 25px 25px
|
|
|
|
background-repeat: no-repeat
|
|
|
|
background-position: 98% 90%
|
|
|
|
|
|
|
|
.item-view
|
|
|
|
cursor: default
|
|
|
|
|
|
|
|
h4, img
|
|
|
|
//@include filter(contrast(50%) brightness(65%))
|
|
|
|
@include opacity(0.6)
|
|
|
|
|
2014-11-05 17:33:56 -05:00
|
|
|
.status-message .locked-message
|
|
|
|
display: inline
|
2014-09-24 23:15:17 -04:00
|
|
|
|
2014-10-30 16:07:04 -04:00
|
|
|
&.silhouette
|
|
|
|
h4
|
|
|
|
visibility: hidden
|
|
|
|
position: absolute
|
|
|
|
h4:before
|
|
|
|
content: '???'
|
|
|
|
visibility: visible
|
2014-11-05 17:33:56 -05:00
|
|
|
.item-view .status-message .locked-message
|
2014-10-30 16:07:04 -04:00
|
|
|
display: none
|
|
|
|
img
|
|
|
|
@include filter(contrast(25%) brightness(25%))
|
|
|
|
|
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
|
|
|
|
|
2014-08-13 20:21:37 -04:00
|
|
|
position: absolute
|
2014-09-21 12:53:58 -04:00
|
|
|
top: $selectedItemsContainerMargin
|
|
|
|
right: $selectedItemsContainerMargin
|
2014-10-14 12:54:18 -04:00
|
|
|
bottom: $selectedItemsContainerMargin
|
2014-09-21 12:53:58 -04:00
|
|
|
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-09-24 23:15:17 -04:00
|
|
|
overflow-y: 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-09-24 23:15:17 -04:00
|
|
|
position: relative
|
|
|
|
display: none
|
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-09-24 23:15:17 -04:00
|
|
|
margin-right: 10px
|
2014-08-13 20:21:37 -04:00
|
|
|
|
|
|
|
.item-info
|
2014-09-24 23:15:17 -04:00
|
|
|
width: 110px
|
|
|
|
width: -webkit-calc(100% - 75px - 10px)
|
|
|
|
width: calc(100% - 75px - 10px)
|
|
|
|
|
|
|
|
> h3
|
|
|
|
position: absolute
|
|
|
|
left: 0px
|
|
|
|
top: 0px
|
|
|
|
padding: 5px
|
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
|
2014-09-24 23:15:17 -04:00
|
|
|
background-color: #ff5
|
2014-09-21 14:24:37 -04:00
|
|
|
|
|
|
|
#selected-available-item
|
|
|
|
padding-top: 15px
|
2014-09-24 23:15:17 -04:00
|
|
|
background-color: #e0f0f5
|
|
|
|
bottom: 0
|