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