summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/highlight/white.scss
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2016-01-22 09:34:45 +0100
committerAchilleas Pipinellis <axilleas@axilleas.me>2016-01-22 09:34:45 +0100
commit831eb9468d5f82bd7d0c4e51e6ce87ca86aeca8c (patch)
tree739f342da21ad303605f997eb578ef5ce18d256d /app/assets/stylesheets/highlight/white.scss
parentb4d61ac46babc04f67bb191c477dddc88e10ad45 (diff)
parent8be4e545635f0f01993290b4577dbe38e74c6bbf (diff)
downloadgitlab-ce-831eb9468d5f82bd7d0c4e51e6ce87ca86aeca8c.tar.gz
Merge branch 'master' into doc_refactor_commits_api
Diffstat (limited to 'app/assets/stylesheets/highlight/white.scss')
-rw-r--r--app/assets/stylesheets/highlight/white.scss60
1 files changed, 50 insertions, 10 deletions
diff --git a/app/assets/stylesheets/highlight/white.scss b/app/assets/stylesheets/highlight/white.scss
index e2626da7871..8a932e6540e 100644
--- a/app/assets/stylesheets/highlight/white.scss
+++ b/app/assets/stylesheets/highlight/white.scss
@@ -1,20 +1,60 @@
/* https://github.com/aahan/pygments-github-style */
.code.white {
+ // Line numbers
+ .line-numbers, .diff-line-num {
+ background-color: $background-color;
+ }
- background-color: #f8fafc !important;
- color: #5b6169 !important;
-
- pre.highlight,
- .line-numbers,
- .line-numbers a {
- background-color: $background-color !important;
- color: $gl-gray !important;
+ .diff-line-num, .diff-line-num a {
+ color: rgba(0, 0, 0, 0.3);
}
+ // Code itself
pre.code {
border-left: 1px solid $border-color;
- background-color: #fff !important;
- color: #333 !important;
+ }
+
+ &, pre.code, .line_holder .line_content {
+ background-color: #fff;
+ color: #333;
+ }
+
+ // Diff line
+ .line_holder {
+ .diff-line-num {
+ &.old {
+ background: #ffdddd;
+ border-color: #f1c0c0;
+ }
+
+ &.new {
+ background: #dbffdb;
+ border-color: #c1e9c1;
+ }
+ }
+
+ .line_content {
+ &.old {
+ background: #ffecec;
+
+ span.idiff {
+ background-color: #f8cbcb;
+ }
+ }
+
+ &.new {
+ background: #eaffea;
+
+ span.idiff {
+ background-color: #a6f3a6;
+ }
+ }
+
+ &.match {
+ color: rgba(0, 0, 0, 0.3);
+ background: #fafafa;
+ }
+ }
}
// highlight line via anchor