2012-11-27 18:30:26 -05:00
|
|
|
/**
|
|
|
|
* Generic mixins
|
|
|
|
*/
|
|
|
|
@mixin box-shadow($shadow) {
|
2012-11-24 04:57:22 -05:00
|
|
|
-webkit-box-shadow: $shadow;
|
|
|
|
-moz-box-shadow: $shadow;
|
|
|
|
-ms-box-shadow: $shadow;
|
|
|
|
-o-box-shadow: $shadow;
|
|
|
|
box-shadow: $shadow;
|
2012-11-23 11:51:38 -05:00
|
|
|
}
|
|
|
|
|
2012-11-23 11:26:26 -05:00
|
|
|
@mixin border-radius($radius) {
|
|
|
|
-webkit-border-radius: $radius;
|
2012-11-23 11:51:38 -05:00
|
|
|
-moz-border-radius: $radius;
|
|
|
|
-ms-border-radius: $radius;
|
|
|
|
-o-border-radius: $radius;
|
2012-11-23 11:26:26 -05:00
|
|
|
border-radius: $radius;
|
|
|
|
}
|
|
|
|
|
2013-08-08 10:29:31 -04:00
|
|
|
@mixin border-radius-left($radius) {
|
|
|
|
@include border-radius($radius 0 0 $radius)
|
|
|
|
}
|
|
|
|
|
2015-05-04 18:08:05 -04:00
|
|
|
@mixin border-radius-right($radius) {
|
|
|
|
@include border-radius(0 0 $radius $radius)
|
|
|
|
}
|
|
|
|
|
2012-11-24 04:57:22 -05:00
|
|
|
@mixin linear-gradient($from, $to) {
|
|
|
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($from), to($to));
|
|
|
|
background-image: -webkit-linear-gradient($from, $to);
|
|
|
|
background-image: -moz-linear-gradient($from, $to);
|
2013-11-02 18:19:35 -04:00
|
|
|
background-image: -ms-linear-gradient($from, $to);
|
2012-11-24 04:57:22 -05:00
|
|
|
background-image: -o-linear-gradient($from, $to);
|
|
|
|
}
|
|
|
|
|
2013-02-22 11:50:17 -05:00
|
|
|
@mixin transition($transition) {
|
|
|
|
-webkit-transition: $transition;
|
|
|
|
-moz-transition: $transition;
|
|
|
|
-ms-transition: $transition;
|
|
|
|
-o-transition: $transition;
|
|
|
|
transition: $transition;
|
|
|
|
}
|
|
|
|
|
2012-11-27 18:30:26 -05:00
|
|
|
/**
|
|
|
|
* Prefilled mixins
|
|
|
|
* Mixins with fixed values
|
|
|
|
*/
|
|
|
|
|
|
|
|
@mixin shade {
|
|
|
|
@include box-shadow(0 0 3px #ddd);
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin solid-shade {
|
|
|
|
@include box-shadow(0 0 0 3px #f1f1f1);
|
2012-12-12 05:30:19 -05:00
|
|
|
}
|
|
|
|
|
2014-06-04 11:52:35 -04:00
|
|
|
@mixin str-truncated($max_width: 82%) {
|
2014-05-26 16:26:41 -04:00
|
|
|
display: inline-block;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
vertical-align: top;
|
|
|
|
white-space: nowrap;
|
|
|
|
max-width: $max_width;
|
|
|
|
}
|
2015-08-26 16:44:02 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Base mixin for lists in GitLab
|
|
|
|
*/
|
|
|
|
@mixin basic-list {
|
|
|
|
margin: 5px 0px;
|
|
|
|
padding: 0px;
|
2015-08-26 18:06:48 -04:00
|
|
|
list-style: none;
|
2015-08-26 16:44:02 -04:00
|
|
|
|
2015-09-07 05:44:00 -04:00
|
|
|
> li {
|
2015-11-06 08:44:46 -05:00
|
|
|
@include clearfix;
|
|
|
|
|
2015-08-26 16:44:02 -04:00
|
|
|
padding: 10px 0;
|
|
|
|
border-bottom: 1px solid #EEE;
|
|
|
|
display: block;
|
|
|
|
margin: 0px;
|
|
|
|
|
|
|
|
&:last-child {
|
2015-09-07 19:25:51 -04:00
|
|
|
border-bottom: none;
|
2015-08-26 16:44:02 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
background: #f9f9f9;
|
|
|
|
a {
|
2015-09-22 09:14:26 -04:00
|
|
|
font-weight: 600;
|
2015-08-26 16:44:02 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.hide {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.light {
|
|
|
|
a {
|
2015-09-03 09:09:55 -04:00
|
|
|
color: $gl-gray;
|
2015-08-26 16:44:02 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-09-02 07:02:16 -04:00
|
|
|
|
|
|
|
@mixin input-big {
|
|
|
|
height: 36px;
|
|
|
|
padding: 5px 10px;
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 24px;
|
|
|
|
color: #7f8fa4;
|
|
|
|
background-color: #fff;
|
|
|
|
border-color: #e7e9ed;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin btn-big {
|
|
|
|
height: 36px;
|
|
|
|
padding: 5px 10px;
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 24px;
|
|
|
|
}
|
2015-09-07 19:25:51 -04:00
|
|
|
|
|
|
|
@mixin nav-menu {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
margin-top: 5px;
|
|
|
|
height: 56px;
|
|
|
|
|
|
|
|
li {
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
a {
|
|
|
|
padding: 14px;
|
|
|
|
font-size: 17px;
|
|
|
|
line-height: 28px;
|
|
|
|
color: #7f8fa4;
|
|
|
|
border-bottom: 2px solid transparent;
|
|
|
|
|
|
|
|
&:hover, &:active, &:focus {
|
|
|
|
text-decoration: none;
|
2015-11-04 08:13:25 -05:00
|
|
|
outline: none;
|
2015-09-07 19:25:51 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active a {
|
|
|
|
color: #4c4e54;
|
|
|
|
border-bottom: 2px solid #1cacfc;
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge {
|
|
|
|
font-weight: normal;
|
|
|
|
background-color: #eee;
|
|
|
|
color: #78a;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|