2019-07-07 11:18:12 +05:30
|
|
|
@import '../framework/variables';
|
2021-03-08 18:12:59 +05:30
|
|
|
@import './conflict_colors';
|
2021-04-29 21:17:54 +05:30
|
|
|
@import 'page_bundles/mixins_and_variables_and_functions';
|
2019-07-07 11:18:12 +05:30
|
|
|
|
|
|
|
@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
|
|
|
|
2022-07-16 23:28:13 +05:30
|
|
|
@mixin diff-expansion($background, $color, $hover-background, $hover-color) {
|
|
|
|
background-color: $background;
|
|
|
|
color: $color;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $hover-background;
|
|
|
|
color: $hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@mixin dark-diff-expansion-line {
|
|
|
|
&.expansion .diff-td {
|
|
|
|
background-color: $dark-diff-match-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-08 14:13:33 +05:30
|
|
|
@mixin line-coverage-border-color($coverage, $no-coverage) {
|
|
|
|
transition: border-left 0.1s ease-out;
|
|
|
|
|
|
|
|
&.coverage {
|
2022-04-04 11:22:00 +05:30
|
|
|
border-left: 2px solid $coverage;
|
2020-04-08 14:13:33 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.no-coverage {
|
2022-04-04 11:22:00 +05:30
|
|
|
border-left: 4px solid $no-coverage;
|
2020-04-08 14:13:33 +05:30
|
|
|
}
|
|
|
|
}
|
2021-01-29 00:20:46 +05:30
|
|
|
|
2022-01-26 12:08:38 +05:30
|
|
|
@mixin line-number-hover {
|
|
|
|
background-color: $purple-100;
|
|
|
|
border-color: $purple-200;
|
2021-01-29 00:20:46 +05:30
|
|
|
|
|
|
|
a {
|
2022-01-26 12:08:38 +05:30
|
|
|
color: $gray-600;
|
2021-01-29 00:20:46 +05:30
|
|
|
}
|
|
|
|
}
|
2021-03-08 18:12:59 +05:30
|
|
|
|
2023-04-23 21:23:45 +05:30
|
|
|
@mixin line-number-hover-dark {
|
|
|
|
background-color: $purple-800;
|
|
|
|
border-color: $purple-300;
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: $purple-50;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
@mixin conflict-colors($theme) {
|
|
|
|
.diff-line-num {
|
|
|
|
&.conflict_marker_our,
|
|
|
|
&.conflict_our {
|
|
|
|
background-color: map-get($conflict-colors, #{$theme}-header-head-neutral);
|
|
|
|
border-color: map-get($conflict-colors, #{$theme}-header-head-neutral);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.conflict_marker_their,
|
|
|
|
&.conflict_their {
|
|
|
|
background-color: map-get($conflict-colors, #{$theme}-header-origin-neutral);
|
|
|
|
border-color: map-get($conflict-colors, #{$theme}-header-origin-neutral);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.line_holder {
|
|
|
|
.line_content,
|
|
|
|
.line-coverage {
|
2023-04-23 21:23:45 +05:30
|
|
|
position: relative;
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
&.conflict_marker_our {
|
|
|
|
background-color: map-get($conflict-colors, #{$theme}-header-head-neutral);
|
|
|
|
border-color: map-get($conflict-colors, #{$theme}-header-head-neutral);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.conflict_marker_their {
|
|
|
|
background-color: map-get($conflict-colors, #{$theme}-header-origin-neutral);
|
|
|
|
border-color: map-get($conflict-colors, #{$theme}-header-origin-neutral);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.conflict_our {
|
|
|
|
background-color: map-get($conflict-colors, #{$theme}-line-head-neutral);
|
|
|
|
border-color: map-get($conflict-colors, #{$theme}-line-head-neutral);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.conflict_their {
|
|
|
|
background-color: map-get($conflict-colors, #{$theme}-line-origin-neutral);
|
|
|
|
border-color: map-get($conflict-colors, #{$theme}-line-origin-neutral);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-04-29 21:17:54 +05:30
|
|
|
|
2021-12-11 22:18:48 +05:30
|
|
|
|
2022-08-27 11:52:29 +05:30
|
|
|
@mixin line-link($color, $icon) {
|
2021-04-29 21:17:54 +05:30
|
|
|
&::before {
|
2022-08-27 11:52:29 +05:30
|
|
|
@include gl-visibility-hidden;
|
2021-04-29 21:17:54 +05:30
|
|
|
@include gl-align-self-center;
|
2022-08-27 11:52:29 +05:30
|
|
|
@include gl-mr-1;
|
|
|
|
@include gl-w-5;
|
|
|
|
@include gl-h-5;
|
|
|
|
background-color: rgba($color, 0.3);
|
|
|
|
mask-image: asset_url('icons-stacked.svg##{$icon}');
|
2021-04-29 21:17:54 +05:30
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: cover;
|
|
|
|
mask-position: center;
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
|
2022-08-27 11:52:29 +05:30
|
|
|
&:hover {
|
|
|
|
&::before {
|
|
|
|
background-color: rgba($color, 0.6);
|
|
|
|
}
|
2021-04-29 21:17:54 +05:30
|
|
|
}
|
2022-08-27 11:52:29 +05:30
|
|
|
}
|
2021-04-29 21:17:54 +05:30
|
|
|
|
2022-08-27 11:52:29 +05:30
|
|
|
@mixin line-hover-bg($color: $white-normal) {
|
|
|
|
&:hover,
|
|
|
|
&:focus-within {
|
|
|
|
background-color: darken($color, 10);
|
2021-04-29 21:17:54 +05:30
|
|
|
}
|
|
|
|
}
|
2022-07-23 23:45:48 +05:30
|
|
|
|
|
|
|
@mixin hljs-override($suffix, $color) {
|
|
|
|
&.blob-viewer {
|
|
|
|
.hljs-#{$suffix} {
|
|
|
|
color: $color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|