gitlab-org--gitlab-foss/app/assets/stylesheets/framework/gfm.scss

48 lines
1 KiB
SCSS
Raw Normal View History

2014-10-01 03:10:13 -04:00
/**
* Styles that apply to all GFM related forms.
*/
2015-06-30 22:08:10 -04:00
.gfm-commit,
2016-08-15 14:41:55 -04:00
.gfm-commit_range {
@extend .commit-sha;
2015-06-30 22:08:10 -04:00
}
.gfm-project_member {
padding: 0 2px;
background-color: $blue-100;
border-radius: $border-radius-default;
&.current-user {
background-color: $orange-100;
}
}
2017-12-20 06:39:40 -05:00
.gfm-color_chip {
display: inline-block;
2018-06-12 02:27:00 -04:00
line-height: 1;
2018-02-01 05:35:03 -05:00
margin: 0 0 2px 4px;
2017-12-20 06:39:40 -05:00
vertical-align: middle;
border-radius: 3px;
2018-02-01 05:35:03 -05:00
$chip-size: 0.9em;
$bg-size: $chip-size / 0.9;
2017-12-20 06:39:40 -05:00
$bg-pos: $bg-size / 2;
2018-02-01 05:35:03 -05:00
width: $chip-size;
height: $chip-size;
2017-12-20 06:39:40 -05:00
background: $white-light;
2018-02-01 05:35:03 -05:00
background-image: linear-gradient(135deg, $gray-dark 25%, transparent 0%, transparent 75%, $gray-dark 0%),
linear-gradient(135deg, $gray-dark 25%, transparent 0%, transparent 75%, $gray-dark 0%);
2017-12-20 06:39:40 -05:00
background-size: $bg-size $bg-size;
background-position: 0 0, $bg-pos $bg-pos;
> span {
display: inline-block;
width: 100%;
height: 100%;
margin-bottom: 2px;
border-radius: 3px;
border: 1px solid $black-transparent;
}
}