habitica/styles/app/header.styl

153 lines
2.8 KiB
Stylus
Raw Normal View History

2013-03-19 03:42:03 +00:00
/* header wrapper
-------------------- */
2013-03-18 23:33:30 +00:00
.header-wrap
width: 100% // this is for the sticky
2013-03-19 03:42:03 +00:00
padding: 0
z-index: 1
background: #f5f5f5
2013-03-19 03:42:03 +00:00
border-bottom: 1px solid rgba(0,0,0,0.2)
// margin-top: -1px
overflow: hidden
position relative
2013-03-19 03:42:03 +00:00
/* login/menu buttons
--------------------- */
.user-menu
position: absolute
top: 0.5em
right: 0.5em
2013-03-19 03:42:03 +00:00
font-size: 0.85em
.tile
cursor: pointer
font-weight: 400
color: #494949
color: hsla(0, 0%, 15%, 0.8)
2013-03-19 03:42:03 +00:00
background-color: darken($better, 5%)
&:hover, &:focus
2013-03-19 03:42:03 +00:00
background-color: darken($good, 15%)
&:active
2013-03-19 03:42:03 +00:00
background-color: darken($good, 25%)
.user-reporter:after
content: ''
float: right
2013-03-18 23:33:30 +00:00
/* flyout navigation pattern
----------------------------- */
.stacked > li
display:list-item
> a
display:block
.flyout, .flyout-alt
position: relative
.flyout-content
position: absolute
top: 100%
right: -99999px
height: 0
overflow: hidden
.flyout:hover > .flyout-content
right: 0
.flyout-alt:hover > .flyout-content
top: 0
right: 100%
.flyout:hover > .flyout-content,
.flyout-alt:hover > .flyout-content
height: auto
overflow: visible
.flyout .tile {
min-width: 6.5em;
}
.stacked .tile {
outline: 0
border: 1px solid rgba(0,0,0,0.2)
border-top: 0
}
2013-03-19 03:42:03 +00:00
/* header layout
-------------------- */
2013-03-18 23:33:30 +00:00
.site-header
display: table
2013-03-19 03:42:03 +00:00
height: 10.5em
2013-03-19 03:42:03 +00:00
@media (min-width: 42.5em)
2013-03-18 23:33:30 +00:00
.site-header
2013-03-19 03:42:03 +00:00
width: 75%
@media (min-width: 60em)
2013-03-18 23:33:30 +00:00
.site-header
2013-03-19 03:42:03 +00:00
// margin: 0 auto
width: 66%
@media (min-width: 70em)
.site-header
width: 70%
2013-03-19 03:42:03 +00:00
// this is a wrapper for avatars in the header
// inside this is the actual `herobox` module
// that can be used anywhere on the site
.herobox-wrap
display: table-cell
vertical-align: middle
width: 10em
height: 10.5em
2013-03-18 23:33:30 +00:00
/* progress bars
-------------------- */
.hero-stats
2013-03-19 03:42:03 +00:00
padding: 0 1.25em
margin: 0
2013-03-18 23:33:30 +00:00
display: table-cell
vertical-align: middle
min-width:175px
2013-03-18 23:33:30 +00:00
.meter, .bar
box-shadow: none
border-radius: 0
.meter
position: relative
background: white
opacity: 1
outline: 1px solid rgba(0,0,0,0.2)
outline-offset: -1px
2013-03-19 03:42:03 +00:00
overflow: hidden // firefox outline fix
height: 2.25em
margin: 0 0 1em
cursor: help;
color: #111
&:last-of-type
margin-bottom: 0
&:after
content: attr(title)
position: absolute
left: -1em
top 0.4em
font-weight: 400
z-index: -1
transition: all 0.25s ease-out
2013-03-18 23:33:30 +00:00
.bar
2013-03-19 03:42:03 +00:00
border: 1px solid rgba(0,0,0,0.1)
2013-03-18 23:33:30 +00:00
height: 100%
2013-03-19 03:42:03 +00:00
transition: width 0.25s ease-out
2013-03-18 23:33:30 +00:00
2013-03-19 03:42:03 +00:00
.meter:hover:after
left: 1em
z-index: 1
2013-03-18 23:33:30 +00:00
.health .bar
2013-03-19 03:42:03 +00:00
background: darken($worse, 38%)
2013-03-18 23:33:30 +00:00
.experience .bar
2013-03-19 03:42:03 +00:00
background: darken($neutral, 30%)
2013-03-18 23:33:30 +00:00
.meter-text
position: absolute
top: 0
2013-03-19 03:42:03 +00:00
right: 0.5em
2013-03-18 23:33:30 +00:00
z-index: 1
2013-03-19 03:42:03 +00:00
line-height: 2.25