debian-mirror-gitlab/app/assets/stylesheets/highlight/common.scss

54 lines
918 B
SCSS
Raw Normal View History

2019-07-07 11:18:12 +05:30
@import '../framework/variables';
@mixin diff-background($background, $idiff, $border) {
background: $background;
&.line_content span.idiff {
background: $idiff;
}
&.diff-line-num {
border-color: $border;
}
}
@mixin dark-diff-match-line {
color: $dark-diff-match-bg;
background: $dark-diff-match-color;
}
2019-10-12 21:52:04 +05:30
@mixin diff-expansion($background, $border, $link) {
background-color: $background;
2021-01-29 00:20:46 +05:30
.diff-td,
2019-10-12 21:52:04 +05:30
td {
border-top: 1px solid $border;
border-bottom: 1px solid $border;
}
a {
color: $link;
}
}
2020-04-08 14:13:33 +05:30
@mixin line-coverage-border-color($coverage, $no-coverage) {
transition: border-left 0.1s ease-out;
&.coverage {
border-left: 3px solid $coverage;
}
&.no-coverage {
border-left: 3px solid $no-coverage;
}
}
2021-01-29 00:20:46 +05:30
@mixin line-number-hover($color) {
background-color: $color;
border-color: darken($color, 5%);
a {
color: darken($color, 15%);
}
}