codecombat/app/styles/home.sass

282 lines
5.6 KiB
Sass
Raw Normal View History

2014-01-03 13:32:13 -05:00
@import "bootstrap/mixins"
@import "bootstrap/variables"
#home-view
2014-03-16 19:59:48 -04:00
2014-03-16 21:10:39 -04:00
h1
2014-03-16 19:59:48 -04:00
text-align: center
2014-03-16 21:10:39 -04:00
margin-top: 0
2014-03-16 19:59:48 -04:00
#front-screenshot
margin: 15px 0 40px 150px
2014-03-17 01:46:57 -04:00
#trailer-wrapper
position: relative
2014-03-17 01:57:16 -04:00
margin: 0 auto 40px
width: 950px
2014-03-17 01:46:57 -04:00
iframe
display: block
margin: 0 auto
2014-03-17 01:57:16 -04:00
position: relative
top: 8px
2014-03-17 01:46:57 -04:00
img
position: absolute
2014-03-17 01:57:16 -04:00
left: 0
top: 0
2014-03-17 01:46:57 -04:00
pointer-events: none
2014-01-03 13:32:13 -05:00
2014-03-16 19:59:48 -04:00
.game-mode-wrapper
2014-01-03 13:32:13 -05:00
position: relative
2014-03-16 19:59:48 -04:00
margin-bottom: 60px
2014-01-03 13:32:13 -05:00
2014-03-16 19:59:48 -04:00
img
display: block
margin: 0 auto
@include transition(box-shadow .50s ease-in-out)
text-shadow: 2px 2px 5px black
2014-01-03 13:32:13 -05:00
h3
2014-03-16 19:59:48 -04:00
color: $yellow
position: absolute
top: 10px
left: 40px
font-size: 70px
margin-top: 0
h4
color: #e8d9c5
position: absolute
top: 75px
left: 140px
font-size: 30px
margin-top: 0
.play-text
2014-03-16 19:59:48 -04:00
position: absolute
right: 45px
bottom: -25px
color: $yellow
font-size: 90px
font-family: Bangers
@include transition(color .25s ease-in-out)
2014-03-16 19:59:48 -04:00
&:hover div, &.hovered div
2014-03-16 19:59:48 -04:00
color: lighten($yellow, 20%)
&:hover img, &.hovered img
2014-03-17 01:57:16 -04:00
filter: brightness(1.2)
-webkit-filter: brightness(1.2)
box-shadow: 0 0 15px black
.code-language-logo
background-color: transparent
background-repeat: no-repeat
position: absolute
right: 35px
top: 15px
width: 50px
height: 50px
&.inverted
filter: invert(100%)
-webkit-filter: invert(100%)
2014-06-19 11:06:34 -04:00
.code-languages
margin: 10px 0 30px 0
&:hover
.code-language
opacity: 0.6
.code-language.selected-language:not(:hover)
opacity: 0.8
h2, h3
text-shadow: none
.code-wizard
opacity: 0.5
.code-language
cursor: pointer
text-align: center
position: relative
opacity: 0.6
&:hover
opacity: 1
h2, h3
text-shadow: 0px 0px 5px white
.code-wizard
display: block
opacity: 1
&.selected-language
opacity: 1
h2, h3
text-shadow: 0px 0px 5px white
.code-wizard
display: block
.code-wizard
position: absolute
background: transparent url(/images/pages/home/wizard.png) no-repeat
background-size: contain
width: 111px
height: 97px
display: none
.code-language-beta
background: transparent url(/images/pages/home/language_beta_sticker.png) no-repeat
background-size: contain
width: 100px
height: 32px
position: absolute
right: 20px
top: -7px
2014-06-19 11:06:34 -04:00
.primary-code-languages
#javascript
background: transparent url(/images/pages/home/language_js.png) no-repeat
2014-06-19 11:06:34 -04:00
padding-right: 150px
.code-wizard
left: 120px
2014-06-19 11:06:34 -04:00
#python
background: transparent url(/images/pages/home/language_python.png) no-repeat
2014-06-19 11:06:34 -04:00
padding-left: 150px
.code-wizard
right: 120px
2014-06-19 11:06:34 -04:00
.code-language
width: 498px
height: 153px
padding: 30px
margin: 0px 0 0 -6px
.code-wizard
top: -65px
h2
margin: 15px 0 5px
2014-06-19 11:06:34 -04:00
.secondary-code-languages
margin-left: -10px
.col-md-3
padding: 0px
2014-06-19 11:06:34 -04:00
.code-language
background: transparent url(/images/pages/home/language_background_small.png) no-repeat
width: 250px
height: 80px
margin: 20px 0 20px 0
padding: 20px 20px 20px 70px
.code-wizard
top: -51px
left: 89px
height: 63px
.code-language-logo
position: absolute
left: 15px
top: 17px
width: 50px
height: 50px
.code-language-beta
right: -15px
top: -16px
height: 24px
h3
margin: 0
padding: 0
#coffeescript .code-language-logo
background: transparent url(/images/pages/home/language_logo_coffeescript.png) no-repeat center
#clojure .code-language-logo
background: transparent url(/images/pages/home/language_logo_clojure.png) no-repeat center
#lua .code-language-logo
background: transparent url(/images/pages/home/language_logo_lua.png) no-repeat center
#io .code-language-logo
background: transparent url(/images/pages/home/language_logo_io.png) no-repeat center
2014-06-19 11:06:34 -04:00
2014-03-16 23:32:24 -04:00
#multiplayer-launch-modal
.modal-dialog
width: 700px
.modal-header
text-align: center
.modal-body
padding-bottom: 0px
.modal-footer
padding-top: 0px
.multiplayer-launch-wrapper
position: relative
margin: 0 auto 30px
iframe
display: block
margin: 0 auto
position: relative
top: 8px
img
position: absolute
left: -7px
top: -3px
width: 660px
height: 382px
pointer-events: none
2014-04-03 18:10:24 -04:00
#mobile-trailer-wrapper
display: none
@media only screen and (max-width: 800px)
#home-view
#site-slogan
font-size: 30px
#trailer-wrapper
display: none
#front-screenshot
display: none
2014-04-03 18:10:24 -04:00
#mobile-trailer-wrapper
display: inline-block
width: 100%
iframe
display: block
margin: 0 auto
.game-mode-wrapper
width: 100%
img
width: 100%
.play-text
position: absolute
right: 45px
bottom: 0px
color: $yellow
font-size: 50px
font-family: Bangers
@include transition(color .10s linear)
h1
text-align: center
margin-top: 0