mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Hid some buttons that take us to old account/settings/achievements pages for now. Made property documentation popovers chill over to the left.
This commit is contained in:
parent
c660053dea
commit
35f5fd1c84
4 changed files with 10 additions and 5 deletions
|
@ -309,6 +309,8 @@ kbd
|
|||
.popover
|
||||
border-image: url(/images/level/popover_background.png) 29 39 fill stretch
|
||||
border-width: 15px 20px
|
||||
.arrow
|
||||
display: none
|
||||
|
||||
html.no-borderimage
|
||||
.popover
|
||||
|
|
|
@ -43,6 +43,8 @@
|
|||
.spell-palette-popover.popover
|
||||
// Only those popovers which are our direct children (spell documentation)
|
||||
max-width: 600px
|
||||
right: 45%
|
||||
min-width: 350px
|
||||
|
||||
&.pinned
|
||||
left: auto !important
|
||||
|
|
|
@ -42,10 +42,11 @@
|
|||
button.btn.settings(data-toggle='coco-modal', data-target='play/modal/PlaySettingsModal', data-i18n="[title]play.settings")
|
||||
else if me.get('anonymous')
|
||||
button.btn.settings(data-toggle='coco-modal', data-target='modal/AuthModal', data-i18n="[title]play.settings")
|
||||
else
|
||||
a.btn.achievements(href="/user/#{me.getSlugOrID()}/stats", data-i18n="[title]play.achievements")
|
||||
a.btn.account(href="/user/#{me.getSlugOrID()}", data-i18n="[title]play.account")
|
||||
a.btn.settings(href='/account', data-i18n="[title]play.settings")
|
||||
// Don't show these things, they are bad and take us out of the game. Just wait until the new ones work.
|
||||
//else
|
||||
// a.btn.achievements(href="/user/#{me.getSlugOrID()}/stats", data-i18n="[title]play.achievements")
|
||||
// a.btn.account(href="/user/#{me.getSlugOrID()}", data-i18n="[title]play.account")
|
||||
// a.btn.settings(href='/account', data-i18n="[title]play.settings")
|
||||
|
||||
if mapType === 'forest'
|
||||
a.btn.campaign-switch(href="/play/dungeon", data-i18n="[title]play.campaign_dungeon")
|
||||
|
|
|
@ -40,7 +40,7 @@ module.exports = class SpellPaletteEntryView extends CocoView
|
|||
@$el.popover(
|
||||
animation: false
|
||||
html: true
|
||||
placement: 'top'
|
||||
placement: 'left'
|
||||
trigger: 'manual' # Hover, until they click, which will then pin it until unclick.
|
||||
content: @docFormatter.formatPopover()
|
||||
container: 'body'
|
||||
|
|
Loading…
Reference in a new issue