Skip to content

Instantly share code, notes, and snippets.

@vctls
Last active January 31, 2023 16:49
Show Gist options
  • Save vctls/fee75998f5c4671be0e531b0731d7c73 to your computer and use it in GitHub Desktop.
Save vctls/fee75998f5c4671be0e531b0731d7c73 to your computer and use it in GitHub Desktop.
Makes Gitlab CI job log follow light theme preference, and removes ugly and unnecessary spacing.
/* ==UserStyle==
@name Slightly more readable Gitlab CI job log
@namespace github.com/openstyles/stylus
@version 0.3
@description Enforces light color scheme preference, and reduces spacing between log lines.
@author vctls
@homepageURL https://gist.github.com/vctls/fee75998f5c4671be0e531b0731d7c73/edit
@downloadURL https://gist.github.com/vctls/fee75998f5c4671be0e531b0731d7c73/raw
@updateURL https://gist.github.com/vctls/fee75998f5c4671be0e531b0731d7c73/raw
==/UserStyle== */
@-moz-document domain("gitlab.com") {
@media (prefers-color-scheme: light) {
.job-log {
filter: invert(1) hue-rotate(180deg);
}
}
.build-page .term-bg-red {
background-color: unset !important;
color: #ff7e7e;
}
.log-line {
padding: unset;
line-height: normal !important;
min-height: unset !important;
}
.log-line > span {
display: inline-block;
word-break: break-all;
}
.line-number {
font-size: unset;
}
.build-page .top-bar {
z-index: 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment