habitica/public/css/global-modules.styl

170 lines
4.6 KiB
Stylus
Raw Normal View History

2014-04-03 08:19:54 +00:00
// Buttons
// The !important declarations override Bootstrap
2014-04-05 14:03:36 +00:00
hrpg-button-color-mixin($hrpg-button-color)
> a, button
background-color: $hrpg-button-color !important
2014-04-15 22:38:48 +00:00
color: darken($hrpg-button-color, 70%) !important
2014-04-05 14:03:36 +00:00
border-color: darken($hrpg-button-color, 16.18%) !important
&:active
background-color: darken($hrpg-button-color, 10%) !important
@media screen and (min-width:768px)
&:hover
background-color: darken($hrpg-button-color, 3.82%) !important
> a:nth-of-type(2)
border-left: 1px solid darken($hrpg-button-color, 3.82%) !important
2014-04-08 15:48:52 +00:00
> div
border:1px solid darken($hrpg-button-color, 16.18%)
h4
color: darken($hrpg-button-color, 61.8%)
background-color: $hrpg-button-color
border-color: darken($hrpg-button-color, 16.18%)
> ul:first-child:after
background-color: #fff
border-color: darken($hrpg-button-color, 16.18%)
h4:after
background-color: $hrpg-button-color
border-color: darken($hrpg-button-color, 16.18%)
a, a:link, a:visited
2014-04-15 22:38:48 +00:00
color: darken($hrpg-button-color, 70%) !important
2014-04-08 15:48:52 +00:00
.glyphicon
2014-04-15 22:38:48 +00:00
color:darken($hrpg-button-color, 60%)
&.active
a, button
background-color: darken($hrpg-button-color, 3.82%) !important
border-color: darken($hrpg-button-color, 38.2%) !important
2014-04-03 08:19:54 +00:00
$hrpg-button-master
list-style: none
> a, button
display: inline-block !important
2014-04-05 14:03:36 +00:00
padding: 0.25em 0.5em !important
2014-04-03 08:19:54 +00:00
text-decoration:none
2014-04-05 14:03:36 +00:00
font-size: 1em
2014-04-03 08:19:54 +00:00
color:#222
background-color: transparent
&:active
background-color: #aaa !important
@media screen and (min-width:768px)
&:hover
background-color: #eee !important
$hrpg-button
@extend $hrpg-button-master
> a, button
border: 1px solid #ccc !important
2014-04-05 14:03:36 +00:00
border-radius: 0.382em !important
2014-04-03 08:19:54 +00:00
$hrpg-button-call-to-action
@extend $hrpg-button
2014-04-05 14:03:36 +00:00
hrpg-button-color-mixin($color-button-style-one)
2014-04-03 08:19:54 +00:00
$hrpg-button-toggle
@extend $hrpg-button-master
border: 1px solid #ccc !important
2014-04-05 14:03:36 +00:00
border-radius: 0.382em !important
2014-04-03 08:19:54 +00:00
> a:first-of-type
2014-04-05 14:03:36 +00:00
border-radius: 0.382em 0em 0em 0.382em !important
2014-04-03 08:19:54 +00:00
> a:nth-of-type(2)
2014-04-05 14:03:36 +00:00
border-radius: 0em 0.382em 0.382em 0em !important
2014-04-15 22:38:48 +00:00
// Labels
hrpg-label-color-mixin($hrpg-label-color)
color: lighten($hrpg-label-color, 90%) !important
background-color: $hrpg-label-color !important
border-color: darken($hrpg-label-color, 16.18%) !important
> a
color: lighten($hrpg-label-color, 90%) !important
$hrpg-label
padding: 0.382em 0.618em
border-width: 1px
border-style: solid
border-radius: 0.382em
font-size: 0.8em
line-height: 1
color: #fff
2014-04-03 08:19:54 +00:00
// Modals
$hrpg-modal
position: relative
$hrpg-modal-dropdown
@extend $hrpg-modal
2014-04-08 15:48:52 +00:00
> div
2014-04-03 08:19:54 +00:00
position: absolute
2014-04-05 14:03:36 +00:00
top: 3em
2014-04-03 08:19:54 +00:00
min-width:110px
2014-04-05 14:03:36 +00:00
min-height: 68px
2014-04-03 08:19:54 +00:00
border-radius:4px
background-color:#fff
@media screen and (max-width:768px)
position:fixed
overflow: auto
z-index: 1000
top: 2%
left: 2%
width: 96%
height: 96%
box-shadow: 0 0 0 30px rgba(0,0,0,0.63)
&:after
display: none
h4
2014-04-05 14:03:36 +00:00
font-size: 1.2em
2014-04-03 08:19:54 +00:00
margin:0px
2014-04-08 15:48:52 +00:00
border-bottom-width: 1px
border-bottom-style: solid
border-radius:0.2em 0.2em 0em 0em
2014-04-05 14:03:36 +00:00
padding: 0.618em 0.8333em
ul
2014-04-08 15:48:52 +00:00
padding: 1em 1em 0em 1em
2014-04-03 08:19:54 +00:00
ul:last-child
padding-bottom:0px
ul
list-style: none
overflow: auto
li
2014-04-05 14:03:36 +00:00
margin-bottom: 1em
2014-04-08 15:48:52 +00:00
> ul:first-child:after, h4:after
2014-04-03 08:19:54 +00:00
content:''
position:absolute
top:-9px
z-index:2
width:16px
height:16px
2014-04-08 15:48:52 +00:00
border-top-width: 1px
border-top-style: solid
border-left-width: 1px
border-left-style: solid
2014-04-03 08:19:54 +00:00
transform: rotate(45deg)
2014-04-08 15:48:52 +00:00
h4:after
font-size: 0.8333em
z-index:3
2014-04-03 08:19:54 +00:00
$hrpg-modal-dropdown-left
@extend $hrpg-modal-dropdown
@media screen and (min-width:768px)
div
right: 0px
2014-04-08 15:48:52 +00:00
> ul:first-child:after, h4:after
2014-04-05 14:03:36 +00:00
right: 1em
2014-04-03 08:19:54 +00:00
$hrpg-modal-dropdown-right
@extend $hrpg-modal-dropdown
@media screen and (min-width:768px)
div
left: 0px
2014-04-08 15:48:52 +00:00
> ul:first-child:after, h4:after
2014-04-05 14:03:36 +00:00
left: 1em
2014-04-03 08:19:54 +00:00
$hrpg-modal-controls
text-align: right
2014-04-05 14:03:36 +00:00
border-radius:0px 0px 0.382em 0.382em
2014-04-03 08:19:54 +00:00
li
2014-04-08 15:48:52 +00:00
margin-left: 0.618em
2014-04-03 08:19:54 +00:00
display: inline-block
2014-04-05 14:03:36 +00:00
background-color: #fff
2014-04-03 08:19:54 +00:00
@media screen and (max-width:768px)
position: fixed
bottom:2%
2014-04-08 15:48:52 +00:00
right: 2%
border: none
@media screen and (min-width:768px)
2014-04-15 22:38:48 +00:00
display: none
// Submenus
$hrpg-submenu
@media screen and (min-width:768px)
padding: 1em 1em 0em 1em
margin-bottom: 1.618em
li
display: inline-block
margin-right: 1em
margin-bottom: 1em