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

48 lines
1019 B
SCSS
Raw Normal View History

2014-10-01 07:10:13 +00:00
/**
* Styles that apply to all GFM related forms.
*/
2015-07-01 02:08:10 +00:00
.gfm-commit,
2016-08-15 18:41:55 +00:00
.gfm-commit_range {
@extend .commit-sha;
2015-07-01 02:08:10 +00: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 11:39:40 +00:00
.gfm-color_chip {
display: inline-block;
2018-06-12 06:27:00 +00:00
line-height: 1;
2018-02-01 10:35:03 +00:00
margin: 0 0 2px 4px;
2017-12-20 11:39:40 +00:00
vertical-align: middle;
border-radius: 3px;
2018-02-01 10:35:03 +00:00
$chip-size: 0.9em;
$bg-size: $chip-size / 0.9;
2017-12-20 11:39:40 +00:00
$bg-pos: $bg-size / 2;
2018-02-01 10:35:03 +00:00
width: $chip-size;
height: $chip-size;
background: $white;
2018-02-01 10:35:03 +00: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 11:39:40 +00: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;
}
}