mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Always show level and course name in-game
This commit is contained in:
parent
4d8d4ff268
commit
2f7fa4e6e7
2 changed files with 11 additions and 18 deletions
|
@ -24,14 +24,14 @@
|
|||
width: 160px
|
||||
text-align: center
|
||||
cursor: pointer
|
||||
|
||||
|
||||
a.levels-link
|
||||
margin: 0
|
||||
height: 50px
|
||||
line-height: 50px
|
||||
color: white
|
||||
font-size: 16px
|
||||
|
||||
|
||||
.glyphicon
|
||||
margin-left: -20px
|
||||
margin-right: 10px
|
||||
|
@ -49,7 +49,7 @@
|
|||
position: absolute
|
||||
top: 0
|
||||
pointer-events: none
|
||||
|
||||
|
||||
.left-cap
|
||||
background: transparent url(/images/level/control_bar_cap_left.png)
|
||||
background-size: cover
|
||||
|
@ -91,28 +91,27 @@
|
|||
.level-name-area-container
|
||||
position: relative
|
||||
width: 100%
|
||||
height: 50px
|
||||
pointer-events: none
|
||||
z-index: 1
|
||||
|
||||
.level-name-area
|
||||
min-width: 200px
|
||||
max-width: 293px
|
||||
height: 60px
|
||||
margin: 0 auto
|
||||
padding: 8px
|
||||
border-style: solid
|
||||
border-image: url(/images/level/control_bar_level_name_background.png) 30 fill round
|
||||
border-width: 0 15px 15px 15px
|
||||
border-image: url(/images/level/control_bar_level_name_background.png) 20 fill round
|
||||
border-width: 0 10px 10px 10px
|
||||
text-align: center
|
||||
position: absolute
|
||||
left: 50%
|
||||
@include translate(-50%, 0)
|
||||
|
||||
|
||||
.level-label
|
||||
font-size: 12px
|
||||
color: $control-yellow-highlight
|
||||
margin-bottom: -5px
|
||||
|
||||
|
||||
.level-name
|
||||
color: white
|
||||
font-size: 18px
|
||||
|
@ -144,7 +143,7 @@
|
|||
|
||||
.hamburger
|
||||
display: inline-block
|
||||
|
||||
|
||||
span.icon-bar
|
||||
display: block
|
||||
border-radius: 4px
|
||||
|
@ -179,10 +178,3 @@ html.no-borderimage
|
|||
background: transparent url(/images/level/control_bar_level_name_background.png)
|
||||
background-size: contain
|
||||
background-repeat: no-repeat
|
||||
|
||||
|
||||
body:not(.ipad)
|
||||
@media only screen and (max-width: 1300px)
|
||||
#control-bar-view .level-name-area-container
|
||||
display: none
|
||||
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
|
||||
.level-name-area-container
|
||||
.level-name-area
|
||||
.level-label(data-i18n="play_level.level")
|
||||
if view.course
|
||||
.level-label= view.course.get('name')
|
||||
.level-name(title=difficultyTitle || "")
|
||||
span #{view.levelNumber ? view.levelNumber + '. ' : ''}#{worldName.replace('Course: ', '')}
|
||||
if levelDifficulty
|
||||
|
|
Loading…
Reference in a new issue