habitica/styles/app/index.styl

237 lines
4.7 KiB
Stylus
Raw Normal View History

@import "nib/vendor";
@import "./female_sprites.styl";
@import "./male_sprites.styl";
@import "./shop_sprites.styl";
2013-02-08 18:29:09 +00:00
@import "./tasks.styl";
@import "./avatar.styl";
@import "./customizer.styl";
2013-02-08 18:29:09 +00:00
@import "./items.styl";
2013-02-27 22:46:21 +00:00
@import "./alerts.styl";
@import "./helpers.styl";
@import "./responsive.styl";
2013-03-06 06:58:07 +00:00
@import "./scrollbars.styl";
2013-02-17 00:09:54 +00:00
@import "../../public/vendor/bootstrap-datepicker/css/datepicker.css";
2012-04-27 02:03:01 +00:00
// fix exploding to very wide for some reason
.datepicker
width: 210px
2012-06-26 15:25:24 +00:00
html,body,p,h1,ul,li,table,tr,th,td
margin: 0
padding: 0
2013-02-08 18:29:09 +00:00
*
-webkit-box-sizing: border-box
-moz-box-sizing: border-box
box-sizing: border-box
hr
border-top: 0
border-bottom: 1px solid #ddd
border-color: rgba(0,0,0,0.1)
2013-02-08 18:29:09 +00:00
/* Header
-------------------------------------------------- */
.site-header
2013-03-18 20:48:47 +00:00
padding: 0 0.75em 0.75em
background: #f5f5f5
border: 1px solid #ccc
2012-06-26 15:25:24 +00:00
white-space: nowrap
2013-02-03 21:05:06 +00:00
width: 100%
box-sizing: border-box
2013-03-18 20:48:47 +00:00
z-index: 1
2013-01-29 00:22:43 +00:00
2013-03-18 20:48:47 +00:00
.site-header .pull-right
margin-right: 0
2013-01-29 00:22:43 +00:00
margin-left: 1%
2013-01-14 18:05:43 +00:00
.modal
whitespace:normal
2013-03-18 20:48:47 +00:00
.user-menu {
text-align: right
position: relative
top: 1em
}
.dropdown-menu
right: 0
left: auto
.main-avatar-wrap
margin: 0 5px 0 0
float: left
.party-avatar-wrap
margin: 0
float: right
.progress-bars
2013-03-18 20:48:47 +00:00
// padding-top: 15px
.progress
position: relative
2013-03-18 20:48:47 +00:00
height: 2em
.bar
2013-03-18 20:48:47 +00:00
height: 2em
border: 1px solid black
.progress-text
2013-03-18 20:48:47 +00:00
color: #111
float: right
margin-right: 1em
line-height: 2
@media (max-width: 600px) {
2013-03-18 20:48:47 +00:00
// .char-status {
// padding-top: 30px
// }
.main-avatar-wrap {
border-right: 1px solid grey;
padding-right: 20px
}
.party-avatar-wrap {
float: left;
}
.progress-bars {
clear: both
}
}
2013-02-08 18:29:09 +00:00
2013-03-18 20:48:47 +00:00
$worse = rgb(244, 204, 204)
$neutral = rgb(255, 242, 204)
.progress-bars
.progress
border-radius: 0
background: white
opacity: 1
outline: 1px solid rgba(0,0,0,0.3)
overflow: hidden
outline-offset: -1px
box-shadow: none
.bar
background-image: none
border: 1px solid rgba(0,0,0,0.3)
box-shadow: none
.progress-danger .bar
background-color: darken($worse, 40%)
.progress-warning .bar
background-color: darken($neutral, 40%)
/* Footer
-------------------------------------------------- */
/* Bootstrap website boilerplate */
.footer {
padding: 70px 0;
border-top: 1px solid #e5e5e5;
background-color: #f5f5f5;
}
.footer p {
margin-bottom: 0;
color: #777;
}
.footer-links {
margin: 10px 0;
}
.footer-links li {
display: inline;
margin-right: 10px;
}
/* Customizations to make footer sticky */
/*html, body {height: 100%;}*/
2013-03-18 20:48:47 +00:00
#wrap
min-height: 100%
z-index:-1
#main
/*overflow:auto;*/
2013-02-08 18:29:09 +00:00
padding-bottom: 250px; /* don't know why this works, sticky footers are weird */
@media (max-width: 600px) {
#wrap {
margin-top: 0
}
}
2013-02-08 18:29:09 +00:00
/* Tokens
-------------------------------------------------- */
/* Adaptation of GH's social-count for Tokens */
.token-cost
border: 1px solid #D4D4D4;
font-size: 11px;
font-weight: bold;
padding: 6px 7px 5px;
line-height: 20px;
margin-left: 8px;
border-radius: 3px;
color: #333;
background-color: #FAFAFA;
position: relative;
.token-cost::before
content: "";
display: block;
width: 0;
height: 0;
border: 6px solid #D4D4D4;
border-color: transparent #D4D4D4 transparent transparent;
position: absolute;
right: 100%;
margin-right: 0;
top: 50%;
margin-top: -6px;
.token-cost::after
content: "";
display: block;
width: 0;
height: 0;
border: 6px solid #FAFAFA;
border-color: transparent #FAFAFA transparent transparent;
position: absolute;
right: 100%;
margin-right: -1px;
top: 50%;
2013-01-17 01:53:17 +00:00
margin-top: -6px;
2013-02-08 18:29:09 +00:00
/* Misc
-------------------------------------------------- */
2013-02-09 21:22:39 +00:00
.notification-character
2013-02-08 18:29:09 +00:00
float:left
2013-02-09 21:22:39 +00:00
.notification-message
display: inline-block;
padding-right: 1em
line-height: 3
.notification-action
vertical-align: baseline
2013-02-08 18:29:09 +00:00
#reset-modal
z-index:1500
#notification-area
position: fixed;
top: 0;
right: 0px;
2013-03-18 20:48:47 +00:00
z-index: 1001;
/* hero box
-------------------- */
@media (min-width: 37.5em)
.hero-box
width: 70%
@media (min-width: 60em)
.hero-box
width: 50%