Skip to content

Commit 67b939e

Browse files
committed
With puppeteer support
1 parent ff9a45e commit 67b939e

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

ā€Žplugins/CoreHome/stylesheets/layout.lessā€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ ul.browser-default {
7979
z-index: 1;
8080
border-radius: 8px;
8181

82+
/* Hover & active background */
8283
&::after {
8384
content: '';
8485
position: absolute;
@@ -101,7 +102,7 @@ ul.browser-default {
101102
.navbar-label {
102103
&::after {
103104
// contrast + opacity to create an effect that work in light and dark mode, with our without white-label customization
104-
background: light-dark(black, white);
105+
background: @color-mode-black;
105106
}
106107
}
107108
}
@@ -128,7 +129,7 @@ ul.browser-default {
128129

129130
.languageSelection {
130131
&:hover {
131-
background-color: @theme-color-background-tinyContrast;
132+
background-color: @color-mode-black;
132133
}
133134
}
134135

ā€Žplugins/Morpheus/stylesheets/base.lessā€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* base.less is a standalone Less file */
2-
32
@import "base/colors";
43
@import "base/mixins";
4+
@import "base/mode-colors";
5+
56
/* General styles */
67
@import "general/_default.less";
78
@import "general/_utils.less";
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Mode color
2+
@color-mode-black: #000;
3+
@color-mode-white: #fff;
4+
5+
.inDarkMode({
6+
@color-mode-black: #fff;
7+
@color-mode-white: #000;
8+
});

0 commit comments

Comments
Ā (0)
⚔