Skip to content

gitlab.com_pre_code by nelsnelson

Details

Authornelsnelson

LicenseNo License

Categorygitlab.com

Created

Updated

Size1.6 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Tweaks for GitLab.com dark mode.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         gitlab.com_pre_code
@version      20211102.15.37
@namespace    userstyles.world/user/nelsnelson
@description  Tweaks for GitLab.com dark mode.
@author       nelsnelson
@license      No License
==/UserStyle== */

@-moz-document url-prefix("https://gitlab.com/"), url-prefix("http://gitlab.com/"), domain("gitlab.com"), domain("ops.gitlab.net") {
.md pre code {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.md p code, .md td code, .md li > code {
  color: rgba(192,255,192,1.0);
  background-color: rgba(160,255,76,0.15);
  border: 1px solid rgba(128,192,128,1.0);
}

.md a code {
  color: rgb(93, 175, 241);
  background-color: rgba(66,175,120,0.3);
  border: 1px solid rgba(93,125,200,0.9);
}

span.gl-label-text-dark {
  /* color: rgb(200, 195, 188); */ /* (Default) */
  color: rgb(23, 25, 28); /* (Dark-mode compatibility) */
  color: rgb(255, 255, 255); /* (Dark-mode compatibility) */
}

span.gl-label-text-light {
  color: rgb(232, 230, 227); /* (Default) */
}

body.gl-dark {
  background-color: rgb(23, 25, 26);
  /* Original: */
  /* background-color: rgb(31, 31, 31); */
}

li.timeline-entry:not(.note-form) {
  background-color: rgb(23, 25, 26);
  /* Original: */
  /* background-color: rgb(29, 29, 29); */
}

.card, .timeline-entry:not(.note-form), .common-note-form .md-area, .markdown-area {
  background-color: #1D1D1D;
}

.discussion-body {
  background-color: inherit;
}

.discussion-body .discussion-reply-holder {
  background-color: #1F1F1F;
}

.discussion-reply-holder .reply-placeholder-text-field {
  background-color: #272727;
}


}

Reviews

No reviews yet.