mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
styled the victory modal a bit
This commit is contained in:
parent
ca274f9787
commit
4b6ebd6532
2 changed files with 31 additions and 12 deletions
|
@ -2,12 +2,18 @@
|
|||
p.sign-up-poke
|
||||
text-align: left
|
||||
margin-bottom: 10px
|
||||
|
||||
.sign-up-button
|
||||
margin-left: 20px
|
||||
|
||||
.next-level-button
|
||||
margin-bottom: 10px
|
||||
margin-right: 30px
|
||||
float: right
|
||||
margin-left: 10px
|
||||
|
||||
.rating
|
||||
float: left
|
||||
float: center
|
||||
margin-right: 22%
|
||||
span
|
||||
margin-right: 5px
|
||||
i
|
||||
|
@ -30,7 +36,18 @@
|
|||
clear: both
|
||||
|
||||
.modal-header
|
||||
text-align: center
|
||||
text-align: left
|
||||
|
||||
.victory-banner
|
||||
width: 200px
|
||||
.victory-banner
|
||||
width: 450px
|
||||
position: absolute
|
||||
left: -150px
|
||||
|
||||
.modal-dialog
|
||||
margin-left: 30%
|
||||
padding-left: 300px
|
||||
width: 700px
|
||||
|
||||
.modal-footer
|
||||
margin: 0px
|
||||
padding: 0px
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
// TODO: refactor to be like other modals
|
||||
|
||||
.modal-dialog
|
||||
|
||||
img.victory-banner(src="/images/level/victory.png", alt="")
|
||||
|
||||
.modal-header
|
||||
button(type='button', data-dismiss="modal", aria-hidden="true").close ×
|
||||
h3
|
||||
|
@ -7,15 +11,17 @@
|
|||
span= levelName
|
||||
span(data-i18n="play_level.victory_title_suffix") Complete
|
||||
|
||||
img.victory-banner(src="/images/level/victory.png", alt="")
|
||||
|
||||
.modal-body!= body
|
||||
|
||||
.modal-footer
|
||||
if hasNextLevel
|
||||
button.btn.btn-primary.next-level-button(data-dismiss="modal", data-i18n="play_level.victory_play_next_level") Play Next Level
|
||||
else
|
||||
a.btn.btn-primary(href="/", data-dismiss="modal", data-i18n="play_level.victory_go_home") Go Home
|
||||
if me.get('anonymous')
|
||||
p.sign-up-poke
|
||||
button.btn.btn-success.sign-up-button.btn-large(data-toggle="coco-modal", data-target="modal/signup", data-i18n="play_level.victory_sign_up") Sign Up to Save Progress
|
||||
span(data-i18n="play_level.victory_sign_up_poke") Want to save your code? Create a free account!
|
||||
span(data-i18n="play_level.victory_sign_up_poke") Want to save your code? Create a free account!
|
||||
p.clearfix
|
||||
else
|
||||
div.rating.secret
|
||||
|
@ -25,10 +31,6 @@
|
|||
i.icon-star-empty
|
||||
i.icon-star-empty
|
||||
i.icon-star-empty
|
||||
if hasNextLevel
|
||||
button.btn.btn-primary.next-level-button(data-dismiss="modal", data-i18n="play_level.victory_play_next_level") Play Next Level
|
||||
else
|
||||
a.btn.btn-primary(href="/", data-dismiss="modal", data-i18n="play_level.victory_go_home") Go Home
|
||||
if !me.get('anonymous')
|
||||
div.review.secret
|
||||
span(data-i18n="play_level.victory_review") Tell us more!
|
||||
|
|
Loading…
Reference in a new issue