2016-11-30 13:25:25 +00:00
|
|
|
// Disabled to use the color map for creating color schemes
|
|
|
|
// scss-lint:disable ColorVariable
|
2016-08-08 21:51:04 +00:00
|
|
|
$colors: (
|
2018-07-24 21:22:56 +00:00
|
|
|
white-header-head-neutral : #e1fad7,
|
|
|
|
white-line-head-neutral : #effdec,
|
|
|
|
white-button-head-neutral : #9adb84,
|
2016-08-02 08:20:22 +00:00
|
|
|
|
2018-07-24 21:22:56 +00:00
|
|
|
white-header-head-chosen : #baf0a8,
|
|
|
|
white-line-head-chosen : #e1fad7,
|
|
|
|
white-button-head-chosen : #52c22d,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2018-07-24 21:22:56 +00:00
|
|
|
white-header-origin-neutral : #e0f0ff,
|
|
|
|
white-line-origin-neutral : #f2f9ff,
|
|
|
|
white-button-origin-neutral : #87c2fa,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2018-07-24 21:22:56 +00:00
|
|
|
white-header-origin-chosen : #add8ff,
|
|
|
|
white-line-origin-chosen : #e0f0ff,
|
|
|
|
white-button-origin-chosen : #268ced,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2018-07-24 21:22:56 +00:00
|
|
|
white-header-not-chosen : #f0f0f0,
|
|
|
|
white-line-not-chosen : $gray-light,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
dark-header-head-neutral : rgba(#3f3, 0.2),
|
|
|
|
dark-line-head-neutral : rgba(#3f3, 0.1),
|
2018-07-24 21:22:56 +00:00
|
|
|
dark-button-head-neutral : #40874f,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
dark-header-head-chosen : rgba(#3f3, 0.33),
|
|
|
|
dark-line-head-chosen : rgba(#3f3, 0.2),
|
2018-07-24 21:22:56 +00:00
|
|
|
dark-button-head-chosen : #258537,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
dark-header-origin-neutral : rgba(#2878c9, 0.4),
|
|
|
|
dark-line-origin-neutral : rgba(#2878c9, 0.3),
|
2018-07-24 21:22:56 +00:00
|
|
|
dark-button-origin-neutral : #2a5c8c,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
dark-header-origin-chosen : rgba(#2878c9, 0.6),
|
|
|
|
dark-line-origin-chosen : rgba(#2878c9, 0.4),
|
2018-07-24 21:22:56 +00:00
|
|
|
dark-button-origin-chosen : #1d6cbf,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
dark-header-not-chosen : rgba(#fff, 0.25),
|
|
|
|
dark-line-not-chosen : rgba(#fff, 0.1),
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
monokai-header-head-neutral : rgba(#a6e22e, 0.25),
|
|
|
|
monokai-line-head-neutral : rgba(#a6e22e, 0.1),
|
2018-07-24 21:22:56 +00:00
|
|
|
monokai-button-head-neutral : #376b20,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
monokai-header-head-chosen : rgba(#a6e22e, 0.4),
|
|
|
|
monokai-line-head-chosen : rgba(#a6e22e, 0.25),
|
2018-07-24 21:22:56 +00:00
|
|
|
monokai-button-head-chosen : #39800d,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
monokai-header-origin-neutral : rgba(#60d9f1, 0.35),
|
|
|
|
monokai-line-origin-neutral : rgba(#60d9f1, 0.15),
|
2018-07-24 21:22:56 +00:00
|
|
|
monokai-button-origin-neutral : #38848c,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
monokai-header-origin-chosen : rgba(#60d9f1, 0.5),
|
|
|
|
monokai-line-origin-chosen : rgba(#60d9f1, 0.35),
|
2018-07-24 21:22:56 +00:00
|
|
|
monokai-button-origin-chosen : #3ea4b2,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
monokai-header-not-chosen : rgba(#76715d, 0.24),
|
|
|
|
monokai-line-not-chosen : rgba(#76715d, 0.1),
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
solarized-light-header-head-neutral : rgba(#859900, 0.37),
|
|
|
|
solarized-light-line-head-neutral : rgba(#859900, 0.2),
|
2018-07-24 21:22:56 +00:00
|
|
|
solarized-light-button-head-neutral : #afb262,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
solarized-light-header-head-chosen : rgba(#859900, 0.5),
|
|
|
|
solarized-light-line-head-chosen : rgba(#859900, 0.37),
|
2018-07-24 21:22:56 +00:00
|
|
|
solarized-light-button-head-chosen : #94993d,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
solarized-light-header-origin-neutral : rgba(#2878c9, 0.37),
|
|
|
|
solarized-light-line-origin-neutral : rgba(#2878c9, 0.15),
|
2018-07-24 21:22:56 +00:00
|
|
|
solarized-light-button-origin-neutral : #60a1bf,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
solarized-light-header-origin-chosen : rgba(#2878c9, 0.6),
|
|
|
|
solarized-light-line-origin-chosen : rgba(#2878c9, 0.37),
|
2018-07-24 21:22:56 +00:00
|
|
|
solarized-light-button-origin-chosen : #2482b2,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
solarized-light-header-not-chosen : rgba(#839496, 0.37),
|
|
|
|
solarized-light-line-not-chosen : rgba(#839496, 0.2),
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
solarized-dark-header-head-neutral : rgba(#859900, 0.35),
|
|
|
|
solarized-dark-line-head-neutral : rgba(#859900, 0.15),
|
2018-07-24 21:22:56 +00:00
|
|
|
solarized-dark-button-head-neutral : #376b20,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
solarized-dark-header-head-chosen : rgba(#859900, 0.5),
|
|
|
|
solarized-dark-line-head-chosen : rgba(#859900, 0.35),
|
2018-07-24 21:22:56 +00:00
|
|
|
solarized-dark-button-head-chosen : #39800d,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
solarized-dark-header-origin-neutral : rgba(#2878c9, 0.35),
|
|
|
|
solarized-dark-line-origin-neutral : rgba(#2878c9, 0.15),
|
2018-07-24 21:22:56 +00:00
|
|
|
solarized-dark-button-origin-neutral : #086799,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
solarized-dark-header-origin-chosen : rgba(#2878c9, 0.6),
|
|
|
|
solarized-dark-line-origin-chosen : rgba(#2878c9, 0.35),
|
2018-07-24 21:22:56 +00:00
|
|
|
solarized-dark-button-origin-chosen : #0082cc,
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2019-02-25 19:03:21 +00:00
|
|
|
solarized_dark_header_not_chosen : rgba(#839496, 0.25),
|
|
|
|
solarized_dark_line_not_chosen : rgba(#839496, 0.15),
|
2018-12-18 00:34:50 +00:00
|
|
|
|
|
|
|
none_header_head_neutral : $gray-normal,
|
|
|
|
none_line_head_neutral : $gray-normal,
|
|
|
|
none_button_head_neutral : $gray-normal,
|
|
|
|
|
|
|
|
none_header_head_chosen : $gray-darker,
|
|
|
|
none_line_head_chosen : $gray-darker,
|
|
|
|
none_button_head_chosen : $gray-darker,
|
|
|
|
|
|
|
|
none_header_origin_neutral : $gray-normal,
|
|
|
|
none_line_origin_neutral : $gray-normal,
|
|
|
|
none_button_origin_neutral : $gray-normal,
|
|
|
|
|
|
|
|
none_header_origin_chosen : $gray-darker,
|
|
|
|
none_line_origin_chosen : $gray-darker,
|
|
|
|
none_button_origin_chosen : $gray-darker,
|
|
|
|
|
|
|
|
none_header_not_chosen : $gray-light,
|
|
|
|
none_line_not_chosen : $gray-light
|
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
);
|
2016-11-30 13:25:25 +00:00
|
|
|
// scss-lint:enable ColorVariable
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
@mixin color-scheme($color) {
|
2016-10-24 20:22:06 +00:00
|
|
|
.header.line_content,
|
|
|
|
.diff-line-num {
|
2016-08-08 21:51:04 +00:00
|
|
|
&.origin {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-header-origin-neutral);
|
|
|
|
border-color: map-get($colors, #{$color}-header-origin-neutral);
|
2016-08-12 20:23:47 +00:00
|
|
|
|
|
|
|
button {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-button-origin-neutral);
|
|
|
|
border-color: darken(map-get($colors, #{$color}-button-origin-neutral), 15);
|
2016-08-12 20:23:47 +00:00
|
|
|
}
|
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
&.selected {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-header-origin-chosen);
|
|
|
|
border-color: map-get($colors, #{$color}-header-origin-chosen);
|
2016-08-12 20:23:47 +00:00
|
|
|
|
|
|
|
button {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-button-origin-chosen);
|
|
|
|
border-color: darken(map-get($colors, #{$color}-button-origin-chosen), 15);
|
2016-08-12 20:23:47 +00:00
|
|
|
}
|
2016-08-08 21:39:07 +00:00
|
|
|
}
|
2016-08-12 20:23:47 +00:00
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
&.unselected {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-header-not-chosen);
|
|
|
|
border-color: map-get($colors, #{$color}-header-not-chosen);
|
2016-08-12 20:23:47 +00:00
|
|
|
|
|
|
|
button {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: lighten(map-get($colors, #{$color}-button-origin-neutral), 15);
|
|
|
|
border-color: map-get($colors, #{$color}-button-origin-neutral);
|
2016-08-12 20:23:47 +00:00
|
|
|
}
|
2016-08-08 21:39:07 +00:00
|
|
|
}
|
|
|
|
}
|
2016-10-14 20:39:08 +00:00
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
&.head {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-header-head-neutral);
|
|
|
|
border-color: map-get($colors, #{$color}-header-head-neutral);
|
2016-08-12 20:23:47 +00:00
|
|
|
|
|
|
|
button {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-button-head-neutral);
|
|
|
|
border-color: darken(map-get($colors, #{$color}-button-head-neutral), 15);
|
2016-08-12 20:23:47 +00:00
|
|
|
}
|
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
&.selected {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-header-head-chosen);
|
|
|
|
border-color: map-get($colors, #{$color}-header-head-chosen);
|
2016-08-12 20:23:47 +00:00
|
|
|
|
|
|
|
button {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-button-head-chosen);
|
|
|
|
border-color: darken(map-get($colors, #{$color}-button-head-chosen), 15);
|
2016-08-12 20:23:47 +00:00
|
|
|
}
|
2016-08-08 21:39:07 +00:00
|
|
|
}
|
2016-08-12 20:23:47 +00:00
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
&.unselected {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-header-not-chosen);
|
|
|
|
border-color: map-get($colors, #{$color}-header-not-chosen);
|
2016-08-12 20:23:47 +00:00
|
|
|
|
|
|
|
button {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: lighten(map-get($colors, #{$color}-button-head-neutral), 15);
|
|
|
|
border-color: map-get($colors, #{$color}-button-head-neutral);
|
2016-08-12 20:23:47 +00:00
|
|
|
}
|
2016-08-08 21:39:07 +00:00
|
|
|
}
|
|
|
|
}
|
2016-07-11 22:08:04 +00:00
|
|
|
}
|
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
.line_content {
|
|
|
|
&.origin {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-line-origin-neutral);
|
2016-08-12 20:23:47 +00:00
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
&.selected {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-line-origin-chosen);
|
2016-08-03 15:04:00 +00:00
|
|
|
}
|
2016-08-12 20:23:47 +00:00
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
&.unselected {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-line-not-chosen);
|
2016-08-03 15:04:00 +00:00
|
|
|
}
|
|
|
|
}
|
2016-10-14 20:39:08 +00:00
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
&.head {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-line-head-neutral);
|
2016-08-12 20:23:47 +00:00
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
&.selected {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-line-head-chosen);
|
2016-08-03 15:04:00 +00:00
|
|
|
}
|
2016-08-12 20:23:47 +00:00
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
&.unselected {
|
2018-07-24 21:22:56 +00:00
|
|
|
background-color: map-get($colors, #{$color}-line-not-chosen);
|
2016-08-03 15:04:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-08-08 21:51:04 +00:00
|
|
|
}
|
2016-08-03 15:04:00 +00:00
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
#conflicts {
|
|
|
|
.white {
|
2019-02-25 19:03:21 +00:00
|
|
|
@include color-scheme('white'); }
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
.dark {
|
2019-02-25 19:03:21 +00:00
|
|
|
@include color-scheme('dark'); }
|
2016-08-08 21:39:07 +00:00
|
|
|
|
|
|
|
.monokai {
|
2019-02-25 19:03:21 +00:00
|
|
|
@include color-scheme('monokai'); }
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
.solarized-light {
|
2019-02-25 19:03:21 +00:00
|
|
|
@include color-scheme('solarized-light'); }
|
2016-08-08 21:39:07 +00:00
|
|
|
|
2016-08-08 21:51:04 +00:00
|
|
|
.solarized-dark {
|
2019-02-25 19:03:21 +00:00
|
|
|
@include color-scheme('solarized-dark'); }
|
2016-08-08 21:39:07 +00:00
|
|
|
|
|
|
|
.diff-wrap-lines .line_content {
|
|
|
|
white-space: normal;
|
|
|
|
min-height: 19px;
|
2016-08-03 15:04:00 +00:00
|
|
|
}
|
|
|
|
|
2016-07-11 22:08:04 +00:00
|
|
|
.line_content.header {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
button {
|
2016-08-12 20:23:47 +00:00
|
|
|
border-radius: 2px;
|
2016-07-11 22:08:04 +00:00
|
|
|
font-size: 10px;
|
|
|
|
position: absolute;
|
2016-08-08 18:33:59 +00:00
|
|
|
right: 10px;
|
2016-08-12 20:23:47 +00:00
|
|
|
padding: 0;
|
2016-11-30 13:25:25 +00:00
|
|
|
outline: none;
|
2020-03-31 00:08:09 +00:00
|
|
|
color: $white;
|
2016-08-12 20:23:47 +00:00
|
|
|
width: 75px; // static width to make 2 buttons have same width
|
|
|
|
height: 19px;
|
2016-07-11 22:08:04 +00:00
|
|
|
}
|
|
|
|
}
|
2016-08-08 10:26:09 +00:00
|
|
|
|
|
|
|
.btn-success .fa-spinner {
|
2020-03-31 00:08:09 +00:00
|
|
|
color: $white;
|
2016-08-08 10:26:09 +00:00
|
|
|
}
|
2016-09-08 16:44:04 +00:00
|
|
|
|
|
|
|
.editor-wrap {
|
|
|
|
&.is-loading {
|
|
|
|
.editor {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2016-09-19 16:04:52 +00:00
|
|
|
.loading {
|
2016-09-08 16:44:04 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.saved {
|
|
|
|
.editor {
|
2017-09-23 00:06:18 +00:00
|
|
|
border-top: solid 2px $green-300;
|
2016-09-08 16:44:04 +00:00
|
|
|
}
|
|
|
|
}
|
2016-10-24 19:23:40 +00:00
|
|
|
|
2016-09-08 16:44:04 +00:00
|
|
|
.editor {
|
2016-09-17 00:41:15 +00:00
|
|
|
pre {
|
|
|
|
height: 350px;
|
2017-11-02 23:59:51 +00:00
|
|
|
border: 0;
|
2016-09-17 00:41:15 +00:00
|
|
|
border-radius: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2016-09-08 16:44:04 +00:00
|
|
|
}
|
|
|
|
|
2016-09-19 16:04:52 +00:00
|
|
|
.loading {
|
2016-09-08 16:44:04 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2016-09-19 15:10:17 +00:00
|
|
|
|
|
|
|
.discard-changes-alert {
|
2016-12-12 22:26:21 +00:00
|
|
|
background-color: $gray-light;
|
2016-09-19 15:10:17 +00:00
|
|
|
text-align: right;
|
|
|
|
padding: $gl-padding-top $gl-padding;
|
|
|
|
color: $gl-text-color;
|
|
|
|
|
|
|
|
.discard-actions {
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
}
|
2016-09-19 15:51:09 +00:00
|
|
|
|
|
|
|
.resolve-conflicts-form {
|
2018-05-11 19:41:46 +00:00
|
|
|
h4 {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.resolve-info {
|
2018-05-22 23:04:21 +00:00
|
|
|
@media(max-width: map-get($grid-breakpoints, lg)-1) {
|
2018-05-11 19:41:46 +00:00
|
|
|
margin-bottom: $gl-padding;
|
|
|
|
}
|
|
|
|
}
|
2016-09-19 15:51:09 +00:00
|
|
|
}
|
2016-07-11 22:08:04 +00:00
|
|
|
}
|