2014-10-17 20:57:18 -04:00
|
|
|
@import "app/styles/mixins"
|
|
|
|
@import "app/styles/bootstrap/variables"
|
|
|
|
|
2014-09-30 19:14:47 -04:00
|
|
|
#hero-victory-modal
|
2014-12-07 17:03:11 -05:00
|
|
|
$hero-yellow-text: rgb(252, 201, 53)
|
|
|
|
|
2014-10-17 20:57:18 -04:00
|
|
|
//- Top-level modal container
|
|
|
|
.modal-dialog
|
2014-12-07 17:03:11 -05:00
|
|
|
margin-top: 0
|
2014-10-17 20:57:18 -04:00
|
|
|
padding-top: 0
|
2014-12-07 17:03:11 -05:00
|
|
|
width: 750px
|
|
|
|
|
|
|
|
.modal-content
|
|
|
|
position: relative
|
|
|
|
margin-top: -251px
|
|
|
|
|
|
|
|
&.full-achievements
|
|
|
|
@media only screen and (max-height: 720px)
|
|
|
|
.modal-dialog
|
|
|
|
margin-top: -76px
|
|
|
|
#victory-header
|
|
|
|
background: transparent
|
|
|
|
@media only screen and (max-height: 640px)
|
|
|
|
.modal-dialog
|
|
|
|
margin-top: -130px
|
|
|
|
#victory-header
|
|
|
|
display: none
|
2014-10-10 16:11:35 -04:00
|
|
|
|
|
|
|
//- Header
|
|
|
|
|
|
|
|
.background-wrapper
|
2014-10-17 20:57:18 -04:00
|
|
|
//background: url("/images/pages/play/level/modal/victory_modal_background.png")
|
2014-12-07 17:03:11 -05:00
|
|
|
width: 750px
|
|
|
|
background: transparent
|
2014-11-17 00:26:21 -05:00
|
|
|
border: 0px solid transparent
|
2014-12-07 18:51:32 -05:00
|
|
|
border-style: solid
|
2014-12-07 17:03:11 -05:00
|
|
|
border-image: url("/images/pages/play/level/modal/victory_modal_border_background.png") 250 0 100 0 fill round
|
|
|
|
border-width: 250px 0 100px 0
|
2014-11-17 00:26:21 -05:00
|
|
|
border-radius: 12px
|
|
|
|
|
2014-10-10 16:11:35 -04:00
|
|
|
.modal-header
|
|
|
|
border: none
|
2014-12-07 17:03:11 -05:00
|
|
|
position: absolute
|
|
|
|
left: 188px
|
|
|
|
width: 378px
|
|
|
|
height: 134px
|
|
|
|
margin: 0
|
|
|
|
padding: 0
|
|
|
|
|
|
|
|
#victory-header
|
|
|
|
position: relative
|
|
|
|
// http://easings.net/#easeOutBack plus tweaked a bit: http://cubic-bezier.com/#.18,.68,.75,2
|
|
|
|
@include transition(0.5s cubic-bezier(0.18, 0.68, 0.75, 2))
|
|
|
|
z-index: 1
|
|
|
|
width: 100%
|
|
|
|
height: 100%
|
|
|
|
text-align: center
|
2015-02-27 12:28:26 -05:00
|
|
|
background: transparent url(/images/pages/play/level/modal/victory_hero.png) no-repeat
|
2014-12-07 17:03:11 -05:00
|
|
|
background-position: center -88px
|
2014-10-10 16:11:35 -04:00
|
|
|
|
2014-12-07 17:03:11 -05:00
|
|
|
&.out
|
|
|
|
@include scale(0)
|
|
|
|
|
|
|
|
#victory-title
|
|
|
|
display: inline-block
|
|
|
|
margin-top: 74px
|
|
|
|
|
|
|
|
h1
|
|
|
|
text-transform: uppercase
|
|
|
|
text-align: center
|
|
|
|
color: $hero-yellow-text
|
|
|
|
font-size: 80px
|
|
|
|
margin: 0
|
|
|
|
padding: 0
|
|
|
|
text-shadow: black 8px 8px 0, black -8px -8px 0, black 8px -8px 0, black -8px 8px 0, black 8px 0px 0, black 0px -8px 0, black -8px 0px 0, black 0px 8px 0
|
2014-10-10 16:11:35 -04:00
|
|
|
|
|
|
|
//- Achievement panels
|
|
|
|
|
|
|
|
.modal-body
|
|
|
|
padding: 0 20px
|
2014-10-19 20:38:10 -04:00
|
|
|
min-height: 30px
|
2014-12-07 17:03:11 -05:00
|
|
|
margin-top: 160px
|
2014-10-10 16:11:35 -04:00
|
|
|
|
|
|
|
.achievement-panel
|
2014-12-07 17:03:11 -05:00
|
|
|
background: transparent url("/images/pages/play/level/modal/victory_modal_shelf.png") no-repeat center 73px
|
|
|
|
width: 824px
|
|
|
|
height: 127px
|
|
|
|
margin: 0px -37px 0px -57px
|
2014-10-10 16:11:35 -04:00
|
|
|
position: relative
|
|
|
|
|
2014-10-17 20:57:18 -04:00
|
|
|
@include transition-duration(1s)
|
2014-10-10 16:11:35 -04:00
|
|
|
|
2014-10-17 23:47:32 -04:00
|
|
|
-webkit-filter: grayscale(100%) brightness(75%)
|
|
|
|
-moz-filter: grayscale(100%) brightness(75%)
|
|
|
|
-o-filter: grayscale(100%) brightness(75%)
|
|
|
|
filter: grayscale(100%) brightness(75%)
|
2014-10-10 16:11:35 -04:00
|
|
|
|
|
|
|
&.earned
|
|
|
|
-webkit-filter: none
|
|
|
|
-moz-filter: none
|
|
|
|
-o-filter: none
|
|
|
|
filter: none
|
|
|
|
|
2014-10-17 23:47:32 -04:00
|
|
|
.achievement-description
|
|
|
|
@include opacity(1)
|
|
|
|
|
2014-10-10 16:11:35 -04:00
|
|
|
.achievement-description
|
2014-10-17 23:47:32 -04:00
|
|
|
@include opacity(0.75)
|
2014-12-07 17:03:11 -05:00
|
|
|
z-index: 1
|
2014-10-10 16:11:35 -04:00
|
|
|
position: absolute
|
|
|
|
text-align: center
|
|
|
|
left: 95px
|
|
|
|
right: 98px
|
2014-12-07 17:03:11 -05:00
|
|
|
top: 86px
|
|
|
|
color: $hero-yellow-text
|
|
|
|
font-weight: bold
|
|
|
|
text-transform: uppercase
|
2014-12-07 20:57:57 -05:00
|
|
|
font-family: $headings-font-family
|
2014-10-10 16:11:35 -04:00
|
|
|
white-space: nowrap
|
|
|
|
overflow: hidden
|
|
|
|
text-overflow: ellipsis
|
2014-10-17 23:47:32 -04:00
|
|
|
|
2014-10-10 16:11:35 -04:00
|
|
|
.achievement-rewards
|
|
|
|
position: absolute
|
|
|
|
left: 25px
|
|
|
|
right: 23px
|
2014-12-07 17:03:11 -05:00
|
|
|
top: 0
|
2014-10-17 23:47:32 -04:00
|
|
|
@include flexbox()
|
|
|
|
@include flex-justify-center()
|
2014-10-10 16:11:35 -04:00
|
|
|
|
|
|
|
//- Reward panels
|
|
|
|
|
|
|
|
.reward-panel
|
|
|
|
background: url("/images/pages/play/level/modal/reward_plate.png")
|
|
|
|
width: 77px
|
|
|
|
height: 85px
|
|
|
|
float: left
|
|
|
|
margin: 0 1.8px
|
|
|
|
position: relative
|
2014-10-17 23:15:41 -04:00
|
|
|
z-index: 1
|
|
|
|
@include transition(0.25s ease)
|
|
|
|
|
2014-12-07 17:03:11 -05:00
|
|
|
&.hero, &.item, &.xp, &.gems
|
2014-11-17 00:26:21 -05:00
|
|
|
background: url("/images/pages/play/level/modal/reward_plate_wide.png")
|
|
|
|
width: 120px
|
|
|
|
height: 83px
|
|
|
|
margin-top: 1px
|
|
|
|
|
|
|
|
.reward-image-container
|
|
|
|
left: 33px
|
|
|
|
|
2014-10-17 23:15:41 -04:00
|
|
|
&.animating
|
|
|
|
@include scale(1.5)
|
|
|
|
z-index: 2
|
|
|
|
|
2014-10-20 22:01:00 -04:00
|
|
|
&.numerical &.animating .reward-text
|
|
|
|
font-size: 18px
|
|
|
|
overflow: visible
|
|
|
|
bottom: 9px
|
2014-10-10 16:11:35 -04:00
|
|
|
|
|
|
|
.reward-image-container
|
|
|
|
top: 8px
|
|
|
|
left: 11px
|
|
|
|
height: 55px
|
|
|
|
width: 56px
|
|
|
|
position: relative
|
|
|
|
|
2014-10-17 20:57:18 -04:00
|
|
|
@include scale(0)
|
|
|
|
@include transition-duration(0.5s)
|
2014-10-10 16:11:35 -04:00
|
|
|
|
|
|
|
&.show
|
2014-10-17 20:57:18 -04:00
|
|
|
@include scale(1)
|
2014-10-10 16:11:35 -04:00
|
|
|
|
2014-10-20 22:01:00 -04:00
|
|
|
&.pending-reward-image
|
|
|
|
img
|
|
|
|
-webkit-filter: brightness(2000%) contrast(25%)
|
|
|
|
-moz-filter: brightness(2000%) contrast(25%)
|
|
|
|
-o-filter: brightness(2000%) contrast(25%)
|
|
|
|
filter: brightness(2000%) contrast(25%)
|
|
|
|
|
2014-10-10 16:11:35 -04:00
|
|
|
img
|
|
|
|
margin: 0
|
|
|
|
position: absolute
|
|
|
|
top: 50%
|
|
|
|
left: 50%
|
|
|
|
margin-right: -50%
|
2014-10-17 20:57:18 -04:00
|
|
|
@include transition-duration(0.5s)
|
|
|
|
@include translate(-50%, -50%)
|
2014-10-10 16:11:35 -04:00
|
|
|
max-width: 56px
|
|
|
|
max-height: 55px
|
|
|
|
|
|
|
|
.reward-text
|
|
|
|
position: absolute
|
|
|
|
bottom: 6px
|
|
|
|
left: 4px
|
|
|
|
right: 3px
|
|
|
|
height: 15px
|
|
|
|
text-align: center
|
|
|
|
color: white
|
|
|
|
font-weight: bold
|
|
|
|
font-size: 12px
|
|
|
|
white-space: nowrap
|
|
|
|
overflow: hidden
|
|
|
|
text-overflow: ellipsis
|
|
|
|
|
|
|
|
//- Pulse effect
|
|
|
|
|
2014-10-17 20:57:18 -04:00
|
|
|
+keyframes(rewardPulse)
|
2014-10-10 16:11:35 -04:00
|
|
|
from
|
2014-10-17 20:57:18 -04:00
|
|
|
max-width: 56px
|
|
|
|
max-height: 55px
|
2014-10-10 16:11:35 -04:00
|
|
|
50%
|
2014-10-17 23:15:41 -04:00
|
|
|
width: 66px
|
|
|
|
max-width: 66px
|
|
|
|
max-height: 66px
|
2014-10-10 16:11:35 -04:00
|
|
|
to
|
2014-10-17 20:57:18 -04:00
|
|
|
max-width: 56px
|
|
|
|
max-height: 55px
|
2014-10-10 16:11:35 -04:00
|
|
|
|
2014-10-17 23:15:41 -04:00
|
|
|
.xp .pulse
|
2014-10-17 20:57:18 -04:00
|
|
|
@include animation(rewardPulse 0.15s infinite)
|
2014-10-17 23:15:41 -04:00
|
|
|
|
|
|
|
.gems .pulse
|
|
|
|
@include animation(rewardPulse 0.25s infinite)
|
2014-10-10 16:11:35 -04:00
|
|
|
|
2014-12-07 17:03:11 -05:00
|
|
|
|
|
|
|
//- Footer - totals
|
|
|
|
|
|
|
|
#totals
|
|
|
|
width: 709px
|
|
|
|
height: 96px
|
|
|
|
background: transparent url(/images/pages/play/level/modal/xp_gems_parchment.png)
|
|
|
|
position: relative
|
|
|
|
text-align: left
|
|
|
|
|
|
|
|
.total-wrapper
|
|
|
|
position: absolute
|
|
|
|
top: 18px
|
|
|
|
|
|
|
|
&#xp-wrapper
|
|
|
|
left: 117px
|
|
|
|
width: 300px
|
|
|
|
|
|
|
|
&#gem-wrapper
|
|
|
|
left: 529px
|
|
|
|
|
|
|
|
.total-label
|
|
|
|
width: 90px
|
|
|
|
|
|
|
|
.total-count
|
|
|
|
float: left
|
|
|
|
font-size: 45px
|
|
|
|
font-weight: bold
|
|
|
|
color: rgb(40, 33, 22)
|
|
|
|
margin-right: 12px
|
|
|
|
|
|
|
|
.total-label
|
|
|
|
float: left
|
|
|
|
color: rgb(103, 92, 76)
|
|
|
|
text-transform: uppercase
|
|
|
|
font-weight: bold
|
2014-12-07 20:57:57 -05:00
|
|
|
font-family: $headings-font-family
|
2014-12-07 17:03:11 -05:00
|
|
|
font-size: 18px
|
|
|
|
margin-top: 13px
|
|
|
|
line-height: 18px
|
|
|
|
|
|
|
|
.xp-bar-outer
|
|
|
|
background-color: rgb(40, 33, 22)
|
|
|
|
border: 4px solid rgb(40, 33, 22)
|
|
|
|
border-radius: 8px
|
|
|
|
width: 150px
|
|
|
|
height: 16px
|
|
|
|
margin-top: 3px
|
|
|
|
position: relative
|
|
|
|
float: left
|
|
|
|
|
|
|
|
.xp-bar-already-achieved
|
|
|
|
background-color: rgb(166, 213, 88)
|
|
|
|
//background-color: white
|
|
|
|
border-radius: 8px
|
|
|
|
height: 100%
|
|
|
|
position: absolute
|
|
|
|
z-index: 1
|
|
|
|
|
|
|
|
.xp-bar-total
|
|
|
|
background-color: rgb(253, 171, 45)
|
|
|
|
border: 1px solid rgb(239, 177, 73)
|
|
|
|
border-radius: 8px
|
|
|
|
height: 100%
|
|
|
|
position: absolute
|
|
|
|
|
|
|
|
|
|
|
|
//- Footer - other stuff
|
2014-10-10 16:11:35 -04:00
|
|
|
|
|
|
|
.modal-footer
|
2014-12-07 17:03:11 -05:00
|
|
|
// Negative bottom margin counteracts most of the extra the border image height.
|
|
|
|
margin: 0 0 -80px 0
|
|
|
|
padding: 0 20px
|
|
|
|
text-align: center
|
2014-10-10 16:11:35 -04:00
|
|
|
|
2014-12-07 17:03:11 -05:00
|
|
|
.sign-up-poke
|
|
|
|
width: 430px
|
2014-10-17 23:47:32 -04:00
|
|
|
|
2014-12-07 17:03:11 -05:00
|
|
|
.sign-up-blurb
|
|
|
|
width: 175px
|
2014-12-07 20:57:57 -05:00
|
|
|
font-family: $headings-font-family
|
2014-12-07 17:03:11 -05:00
|
|
|
font-weight: bold
|
|
|
|
text-transform: uppercase
|
|
|
|
font-size: 18px
|
|
|
|
line-height: 18px
|
|
|
|
text-align: left
|
|
|
|
float: left
|
|
|
|
margin: 5px 0 0 5px
|
|
|
|
color: rgb(160, 150, 126)
|
2014-10-17 23:47:32 -04:00
|
|
|
|
2014-12-07 17:03:11 -05:00
|
|
|
.sign-up-button
|
|
|
|
width: 250px
|
|
|
|
height: 60px
|
|
|
|
line-height: 30px
|
|
|
|
margin: 0
|
|
|
|
float: left
|
|
|
|
|
2015-01-30 15:27:19 -05:00
|
|
|
.leaderboard-button
|
|
|
|
height: 60px
|
|
|
|
line-height: 30px
|
|
|
|
margin: 0 10px
|
|
|
|
float: left
|
2014-10-19 20:38:10 -04:00
|
|
|
|
2014-10-22 18:42:51 -04:00
|
|
|
.next-level-buttons
|
|
|
|
float: right
|
|
|
|
|
2014-12-07 17:03:11 -05:00
|
|
|
.next-level-button, .return-to-ladder-button
|
|
|
|
width: 258px
|
|
|
|
height: 60px
|
|
|
|
line-height: 30px
|
|
|
|
margin: 0 10px
|
2014-10-22 18:42:51 -04:00
|
|
|
|
|
|
|
.ladder-submission-view
|
2014-10-19 20:38:10 -04:00
|
|
|
display: inline-block
|
2014-10-22 18:42:51 -04:00
|
|
|
color: white
|
|
|
|
|
|
|
|
.rank-button.btn-block
|
|
|
|
display: inline-block
|
|
|
|
width: initial
|
|
|
|
padding-left: 19px
|
|
|
|
padding-right: 19px
|
2014-10-19 20:38:10 -04:00
|
|
|
|
2014-10-22 18:42:51 -04:00
|
|
|
.last-submitted
|
|
|
|
float: none
|
2014-10-19 20:38:10 -04:00
|
|
|
|
2014-11-27 12:44:08 -05:00
|
|
|
.hour-of-code-done
|
|
|
|
clear: both
|
2014-12-07 17:03:11 -05:00
|
|
|
margin: 5px auto 0 auto
|
|
|
|
padding: 10px
|
|
|
|
background-color: rgba(22, 34, 30, 0.5)
|
|
|
|
border-radius: 8px
|
|
|
|
display: inline-block
|
2014-11-27 12:44:08 -05:00
|
|
|
|
|
|
|
strong
|
|
|
|
color: white
|
|
|
|
display: block
|
|
|
|
margin-bottom: 10px
|
|
|
|
font-weight: normal
|
|
|
|
|
|
|
|
.image-link
|
|
|
|
float: right
|
|
|
|
margin-left: 10px
|
|
|
|
|
|
|
|
.text-link
|
|
|
|
color: lighten(#0b63bc, 10%)
|
|
|
|
|
2015-04-07 14:19:22 -04:00
|
|
|
.offer
|
|
|
|
display: none
|
|
|
|
|
|
|
|
p
|
|
|
|
color: white
|
2014-10-19 20:38:10 -04:00
|
|
|
|
2014-10-17 20:57:18 -04:00
|
|
|
html.no-borderimage
|
|
|
|
#hero-victory-modal
|
2014-12-07 17:03:11 -05:00
|
|
|
.modal-dialog
|
|
|
|
margin-top: 251px
|
2014-10-17 20:57:18 -04:00
|
|
|
.background-wrapper
|
2014-11-17 00:26:21 -05:00
|
|
|
border: 0
|
2014-10-17 20:57:18 -04:00
|
|
|
background: url("/images/pages/play/level/modal/victory_modal_background.png")
|
2014-12-07 17:03:11 -05:00
|
|
|
height: 713px
|
|
|
|
|
|
|
|
&.full-achievements
|
|
|
|
@media only screen and (max-height: 720px)
|
|
|
|
.modal-dialog
|
|
|
|
margin-top: 175px
|
|
|
|
#victory-header
|
|
|
|
background: transparent
|
|
|
|
@media only screen and (max-height: 640px)
|
|
|
|
.modal-dialog
|
|
|
|
margin-top: 121px
|
|
|
|
#victory-header
|
|
|
|
display: none
|
|
|
|
|
2014-11-05 17:07:04 -05:00
|
|
|
|
|
|
|
body.ipad
|
|
|
|
#hero-victory-modal
|
|
|
|
// This animation is slow and wigs out on iPad and very old computers.
|
|
|
|
.xp .pulse, .gems .pulse
|
|
|
|
@include animation(none)
|
2015-02-02 14:50:25 -05:00
|
|
|
|
2015-02-25 16:03:17 -05:00
|
|
|
body[lang='ru'], body[lang^='es-ES'], body[lang^='it'], body[lang^='hu'], body[lang^='mk-MK'], body[lang^='ja'], body[lang^='uk']
|
|
|
|
#hero-victory-modal #totals .total-wrapper .total-label
|
|
|
|
font-size: 12px
|