mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-01 08:23:57 -04:00
Added campaign label banner art.
This commit is contained in:
parent
60d68ca23c
commit
86aa265679
3 changed files with 21 additions and 18 deletions
app
assets/images/pages/play
styles/play
templates/play
BIN
app/assets/images/pages/play/campaign-banner.png
Normal file
BIN
app/assets/images/pages/play/campaign-banner.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 16 KiB |
|
@ -412,26 +412,29 @@ $gameControlMargin: 30px
|
||||||
#campaign-status
|
#campaign-status
|
||||||
position: absolute
|
position: absolute
|
||||||
left: 0
|
left: 0
|
||||||
top: 5px
|
top: 0
|
||||||
width: 100%
|
width: 100%
|
||||||
margin: 0
|
margin: 0
|
||||||
text-align: center
|
text-align: center
|
||||||
color: rgb(254,188,68)
|
color: rgb(232, 217, 87)
|
||||||
font-size: 30px
|
font-size: 28px
|
||||||
text-shadow: black 2px 2px 0, black -2px -2px 0, black 2px -2px 0, black -2px 2px 0, black 2px 0px 0, black 0px -2px 0, black -2px 0px 0, black 0px 2px 0
|
text-shadow: black 2px 2px 0, black -2px -2px 0, black 2px -2px 0, black -2px 2px 0, black 2px 0px 0, black 0px -2px 0, black -2px 0px 0, black 0px 2px 0
|
||||||
z-index: 30
|
z-index: 30
|
||||||
pointer-events: none
|
pointer-events: none
|
||||||
|
|
||||||
.campaign-status-background
|
.campaign-status-background
|
||||||
background-color: rgba(255, 255, 255, 0.5)
|
background: transparent url(/images/pages/play/campaign-banner.png) no-repeat center center
|
||||||
border-radius: 10px
|
border-radius: 10px
|
||||||
padding: 10px
|
padding-top: 30px
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
min-width: 250px
|
||||||
|
height: 106px
|
||||||
|
|
||||||
img.banner
|
.campaign-name
|
||||||
height: 50px
|
line-height: 26px
|
||||||
vertical-align: bottom
|
|
||||||
margin: -20px 0 -6px 5px
|
.levels-completed
|
||||||
|
font-size: 22px
|
||||||
|
|
||||||
.particle-man
|
.particle-man
|
||||||
z-index: 2
|
z-index: 2
|
||||||
|
|
|
@ -85,12 +85,12 @@ button.btn.btn-lg.btn-inverse#volume-button(data-i18n="[title]play.adjust_volume
|
||||||
if campaign.loaded
|
if campaign.loaded
|
||||||
h1#campaign-status
|
h1#campaign-status
|
||||||
.campaign-status-background
|
.campaign-status-background
|
||||||
- var fullName = i18n(campaign.attributes, 'fullName')
|
.campaign-name
|
||||||
if (me.get('preferredLanguage', true) || 'en-US').split('-')[0] == 'en' || fullName != campaign.get('fullName')
|
- var fullName = i18n(campaign.attributes, 'fullName')
|
||||||
// We have a translation.
|
if (me.get('preferredLanguage', true) || 'en-US').split('-')[0] == 'en' || fullName != campaign.get('fullName')
|
||||||
span= fullName
|
// We have a translation.
|
||||||
| :
|
span= fullName
|
||||||
span.spl.spr= levelsCompleted
|
.levels-completed
|
||||||
| /
|
span= levelsCompleted
|
||||||
span.spl= levelsTotal
|
| /
|
||||||
img.banner(src="/images/pages/play/level-banner-complete.png")
|
span= levelsTotal
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue