codecombat/app/styles/play/level/tome/spell_palette.sass

107 lines
2.6 KiB
Sass

@import "../../../bootstrap/mixins"
#spell-palette-view
position: absolute
bottom: 10px
left: 10px
right: 10px
height: 140px
// Height relates to .tab-content height
padding-top: 35px
padding-left: 12px
padding-right: 4px
color: #333
// Get crazy with the backgrounds so that we can lower the opacity on the editor background above it, making a gradient of the disabled background color on the top around where it's usually covered
background-color: transparent
background-size: 100% 100%
z-index: 0
//overflow-y: auto
.code-palette-background
position: absolute
left: 0
top: 0
width: 100%
height: 100%
z-index: -1
span.code-palette-background
border-width: 25px
border-image: url(/images/level/code_palette_background.png) 25 fill round
img.code-palette-background
display: none
&.disabled
@include opacity(0.80)
h4
color: #333
font-size: 16px
line-height: 16px
margin: 0 4px
font-weight: normal
.nav > li > a
padding: 2px 20px 0px 20px
margin-bottom: 3px
ul.nav.nav-pills
li.active a
background-color: transparent
&.multiple-tabs li.active a
background-color: lighten(rgb(230, 212, 146), 10%)
&.multiple-tabs li:not(.active) a
cursor: pointer
.tab-content
height: 80px
.nano-pane
width: 7px
right: 5px
//.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus
// background-color: lighten(rgb(230, 212, 146), 10%)
.property-entry-column
display: inline-block
margin-right: 3px
vertical-align: top
.code-language-logo
position: absolute
width: 16px
height: 16px
left: 16px
top: 36px
z-index: 10
background-color: transparent
background-repeat: no-repeat
background-size: contain
cursor: pointer
&.javascript
background-image: url(/images/common/code_languages/javascript_icon.png)
&.python
background-image: url(/images/common/code_languages/python_icon.png)
&.coffeescript
background-image: url(/images/common/code_languages/coffeescript_icon.png)
&.clojure
background-image: url(/images/common/code_languages/clojure_icon.png)
&.lua
background-image: url(/images/common/code_languages/lua_icon.png)
&.io
background-image: url(/images/common/code_languages/io_icon.png)
&:hover
outline: 1px outset #ccc
&:active
outline: 1px inset #ccc
html.no-borderimage
#spell-palette-view
span.code-palette-background
display: none
img.code-palette-background
display: block