mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-01 11:05:56 +01:00
Add experimental high contrast mode (#1845)
Add an experimental high contrast color theme to SCM-Manager. The high contrast mode uses a dark background and color with a high contrast for a better accessibility. The change adds the theme to ui-styles and theme switcher to the storybook of ui-components.
This commit is contained in:
@@ -43,10 +43,10 @@
|
||||
|
||||
pre[class*="language-"],
|
||||
code[class*="language-"] {
|
||||
color: #363636;
|
||||
color: var(--sh-base-color);
|
||||
font-size: 1rem;
|
||||
text-shadow: none;
|
||||
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
||||
font-family: var(--sh-font-family);
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
white-space: pre;
|
||||
@@ -67,7 +67,7 @@ code[class*="language-"]::selection,
|
||||
pre[class*="language-"]::-moz-selection,
|
||||
code[class*="language-"]::-moz-selection {
|
||||
text-shadow: none;
|
||||
background: #7fe3cd;
|
||||
background: var(--sh-selected-color);
|
||||
}
|
||||
|
||||
@media print {
|
||||
@@ -83,14 +83,14 @@ pre[class*="language-"] {
|
||||
padding: 1em;
|
||||
margin: .5em 0;
|
||||
overflow: auto;
|
||||
background: #ffffff;
|
||||
background: var(--sh-block-background);
|
||||
}
|
||||
|
||||
:not(pre) > code[class*="language-"] {
|
||||
padding: .1em .3em;
|
||||
border-radius: .3em;
|
||||
color: #ff3860;
|
||||
background: #fbe7eb;
|
||||
color: var(--sh-inline-code-color);
|
||||
background: var(--sh-inline-code-background);
|
||||
}
|
||||
|
||||
/*********************************************************
|
||||
@@ -105,11 +105,11 @@ pre[class*="language-"] {
|
||||
.token.prolog,
|
||||
.token.doctype,
|
||||
.token.cdata {
|
||||
color: #9a9a9a;
|
||||
color: var(--sh-comment-color);
|
||||
}
|
||||
|
||||
.token.punctuation {
|
||||
color: #9a9a9a;
|
||||
color: var(--sh-punctuation-color);
|
||||
}
|
||||
|
||||
.token.property,
|
||||
@@ -119,7 +119,7 @@ pre[class*="language-"] {
|
||||
.token.constant,
|
||||
.token.symbol,
|
||||
.token.deleted {
|
||||
color: #2c99c7;
|
||||
color: var(--sh-property-color);
|
||||
}
|
||||
|
||||
.token.selector,
|
||||
@@ -128,7 +128,7 @@ pre[class*="language-"] {
|
||||
.token.char,
|
||||
.token.builtin,
|
||||
.token.inserted {
|
||||
color: #005f9a;
|
||||
color: var(--sh-selector-color);
|
||||
}
|
||||
|
||||
.token.operator,
|
||||
@@ -136,23 +136,24 @@ pre[class*="language-"] {
|
||||
.token.url,
|
||||
.language-css .token.string,
|
||||
.style .token.string {
|
||||
color: #686868;
|
||||
color: var(--sh-operator-color);
|
||||
background: var(--sh-operator-bg);
|
||||
}
|
||||
|
||||
.token.atrule,
|
||||
.token.attr-value,
|
||||
.token.keyword {
|
||||
color: #00a984;
|
||||
color: var(--sh-keyword-color);
|
||||
}
|
||||
|
||||
.token.function {
|
||||
color: #ff3860;
|
||||
color: var(--sh-function-color);
|
||||
}
|
||||
|
||||
.token.regex,
|
||||
.token.important,
|
||||
.token.variable {
|
||||
color: #a74eb2;
|
||||
color: var(--sh-variable-color);
|
||||
}
|
||||
|
||||
.token.important,
|
||||
@@ -188,8 +189,8 @@ pre[class*="language-"] > code[class*="language-"] {
|
||||
right: 0;
|
||||
padding: inherit 0;
|
||||
margin-top: 1em;
|
||||
background: #f5f5f5;
|
||||
box-shadow: inset 5px 0 0 #99d8f3;
|
||||
background: var(--sh-highlight-background);
|
||||
box-shadow: inset 5px 0 0 var(--sh-highlight-accent);
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
line-height: inherit;
|
||||
|
||||
Reference in New Issue
Block a user