mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
221 lines
5.2 KiB
Sass
221 lines
5.2 KiB
Sass
@import "app/styles/mixins"
|
|
|
|
$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
|
|
|
|
#inventory-view
|
|
position: relative
|
|
height: $inventoryHeight
|
|
+user-select(none)
|
|
|
|
h3
|
|
margin: 0
|
|
|
|
.draggable-item
|
|
width: $itemSlotSize
|
|
height: $itemSlotSize
|
|
|
|
#equipped
|
|
width: $equippedWidth
|
|
position: absolute
|
|
left: 0
|
|
top: 0
|
|
bottom: 0
|
|
//bottom: $selectedAreaHeight + 10
|
|
right: 0
|
|
overflow: hidden
|
|
|
|
.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
|
|
@include opacity(0.75)
|
|
|
|
&[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
|
|
@include opacity(0.35)
|
|
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
|
|
|
|
.item-slot.disabled
|
|
opacity: 0.5
|
|
|
|
.hero-container
|
|
//background-color: rgba(31, 0, 200, 0.25)
|
|
float: left
|
|
position: relative
|
|
|
|
.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
|
|
|
|
#available-equipment
|
|
width: $stashWidth
|
|
position: absolute
|
|
right: 0
|
|
top: 0
|
|
bottom: 0
|
|
overflow-y: scroll
|
|
border: 2px solid #ccc
|
|
padding: 4px
|
|
background-color: white
|
|
|
|
.list-group-item
|
|
padding: 4px 0
|
|
|
|
&.active
|
|
background-color: #e0f0f5
|
|
|
|
.item-info:after
|
|
content: ' (available)'
|
|
|
|
&.equipped
|
|
background-color: #ff5
|
|
|
|
.item-view
|
|
cursor: default
|
|
.item-info:after
|
|
content: ' (equipped)'
|
|
|
|
&.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)
|
|
|
|
.item-info:after
|
|
content: ' (locked)'
|
|
|
|
.item-view
|
|
cursor: pointer
|
|
|
|
#selected-items
|
|
$selectedItemsContainerMargin: 20px
|
|
$selectedItemMargin: 10px
|
|
$selectedItemImageSize: 75px
|
|
|
|
position: absolute
|
|
top: $selectedItemsContainerMargin
|
|
right: $selectedItemsContainerMargin
|
|
bottom: $selectedItemsContainerMargin + $heroContainerBottomMargin
|
|
left: $selectedItemsContainerMargin
|
|
text-align: center
|
|
|
|
#selected-equipped-item, #selected-available-item
|
|
text-align: left
|
|
overflow-y: scroll
|
|
margin: 0
|
|
height: 48.4%
|
|
height: -webkit-calc(50% - $selectedItemMargin / 2)
|
|
height: calc(50% - $selectedItemMargin / 2)
|
|
width: 100%
|
|
padding: 10px 5px 10px 10px
|
|
position: relative
|
|
display: none
|
|
|
|
img
|
|
margin-top: 21px
|
|
width: $selectedItemImageSize
|
|
height: $selectedItemImageSize
|
|
margin-right: 10px
|
|
|
|
.item-info
|
|
width: 110px
|
|
width: -webkit-calc(100% - 75px - 10px)
|
|
width: calc(100% - 75px - 10px)
|
|
|
|
> h3
|
|
position: absolute
|
|
left: 0px
|
|
top: 0px
|
|
padding: 5px
|
|
|
|
#selected-equipped-item
|
|
margin-bottom: $selectedItemMargin
|
|
padding-bottom: 20px
|
|
background-color: #ff5
|
|
|
|
#selected-available-item
|
|
padding-top: 15px
|
|
background-color: #e0f0f5
|
|
bottom: 0
|