morpheus

A Matrix client written in Go-QT
git clone git://archive.git.mtrnord.blog/Nordgedanken/morpheus.git
Log | Files | Refs | README | LICENSE

_mixins.scss (1135B)


      1 @mixin transition-all()
      2 {
      3     -webkit-transition: all 0.35s;
      4     -moz-transition: all 0.35s;
      5     transition: all 0.35s;
      6 }
      7 
      8 @mixin background-cover()
      9 {
     10     -webkit-background-size: cover;
     11     -moz-background-size: cover;
     12     background-size: cover;
     13     -o-background-size: cover;
     14 }
     15 
     16 @mixin button-variant($color, $background, $border)
     17 {
     18 	color: $color;
     19 	background-color: $background;
     20 	border-color: $border;
     21 	@include transition-all;
     22 
     23 	&:hover,
     24 	&:focus,
     25 	&.focus,
     26 	&:active,
     27 	&.active,
     28 	.open > .dropdown-toggle & {
     29 		color: $color;
     30 		background-color: darken($background, 5%);
     31     border-color: darken($border, 7%);
     32 	}
     33 	&:active,
     34 	&.active,
     35 	.open > .dropdown-toggle & {
     36 		background-image: none;
     37 	}
     38 	&.disabled,
     39 	&[disabled],
     40 	fieldset[disabled] & {
     41 		&,
     42 		&:hover,
     43 		&:focus,
     44 		&.focus,
     45 		&:active,
     46 		&.active {
     47 			background-color: $background;
     48 			border-color: $border;
     49 		}
     50 	}
     51 
     52 	.badge {
     53 		color: $background;
     54 		background-color: $color;
     55 	}
     56 }
     57 
     58 @mixin sans-serif-font()
     59 {
     60 	font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
     61 }
     62 
     63 @mixin serif-font()
     64 {
     65 	font-family: 'Merriweather', 'Helvetica Neue', Arial, sans-serif;
     66 }