Skip to content

Commit b960838

Browse files
authored
Merge pull request #58830 from nextcloud/feat/color_mark_css_variable
feat(theming): add `--color-mark` CSS variable for highlighted text
2 parents fee637c + 39a0545 commit b960838

8 files changed

Lines changed: 11 additions & 4 deletions

File tree

apps/theming/css/default.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
--color-info-hover: #b5e6f6;
4343
--color-info-text: #0066AC;
4444
--color-favorite: #A37200;
45+
--color-mark: #fff0c7;
4546
/** @deprecated use css color functions */
4647
--color-error-rgb: 255,231,231;
4748
/** @deprecated use css color functions */

apps/theming/lib/Themes/DarkTheme.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public function getCSSVariables(): array {
115115
'--color-info-hover' => $this->util->lighten($colorInfo, 10),
116116
'--color-info-text' => $colorInfoText,
117117
'--color-favorite' => '#ffde00',
118+
'--color-mark' => '#4d3800',
118119
// deprecated
119120
'--color-error-rgb' => join(',', $this->util->hexToRGB($colorError)),
120121
'--color-warning-rgb' => join(',', $this->util->hexToRGB($colorWarning)),

apps/theming/lib/Themes/DefaultTheme.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ public function getCSSVariables(): array {
165165
'--color-info-hover' => $this->util->darken($colorInfo, 7),
166166
'--color-info-text' => $colorInfoText,
167167
'--color-favorite' => '#A37200',
168+
'--color-mark' => '#fff0c7',
168169
// deprecated
169170
'--color-error-rgb' => join(',', $this->util->hexToRGB($colorError)),
170171
'--color-warning-rgb' => join(',', $this->util->hexToRGB($colorWarning)),

core/css/server.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/server.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/styles.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ select, .button span, label {
8585
cursor: pointer;
8686
}
8787

88+
mark {
89+
background-color: var(--color-mark);
90+
}
91+
8892
ul {
8993
list-style: none;
9094
}

0 commit comments

Comments
 (0)