Skip to content

Commit b281c7a

Browse files
authored
fix: update dark mode colors in note block (#386)
* fix: update dark mode colors in note block Signed-off-by: Umesh Kumar Pal <[email protected]> * fix: Apply note block colors only in dark mode, keeping light mode unchanged Signed-off-by: Umesh Kumar Pal <[email protected]> * fix: update light mode note block to match expected style Signed-off-by: Umesh Kumar Pal <[email protected]> --------- Signed-off-by: Umesh Kumar Pal <[email protected]>
1 parent 84acf99 commit b281c7a

File tree

1 file changed

+22
-25
lines changed

1 file changed

+22
-25
lines changed

website/src/css/global.css

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
@import url('https://fonts.googleapis.com/css2?family=Work+Sans&display=swap');
22

3-
43
:root {
54
--ifm-menu-font-size: 15px;
6-
--ifm-menu-color-background-active: #8890992E;
7-
--ifm-link-menu-color-background-hover: #8890992E;
5+
--ifm-menu-color-background-active: #8890992e;
6+
--ifm-link-menu-color-background-hover: #8890992e;
87
--ifm-litmus-light: #7b84ea;
98
--ifm-litmus-dark: #5b44ba;
109
}
@@ -23,20 +22,20 @@
2322
font-size: 16px;
2423
}
2524

26-
.category-as-header .menu__link{
25+
.category-as-header .menu__link {
2726
padding-left: 8px;
2827
}
29-
.category-as-header>.menu__list-item-collapsible:first-child a {
28+
.category-as-header > .menu__list-item-collapsible:first-child a {
3029
font-size: 18px;
3130
font-style: normal;
3231
font-weight: 600 !important;
3332
line-height: 20px;
3433
margin-top: 20px;
35-
color: #1B1F24;
34+
color: #1b1f24;
3635
padding-left: 15px;
3736
}
3837

39-
[data-theme='dark'] .category-as-header>.menu__list-item-collapsible:first-child a {
38+
[data-theme='dark'] .category-as-header > .menu__list-item-collapsible:first-child a {
4039
color: white;
4140
}
4241

@@ -48,9 +47,9 @@
4847
color: var(--ifm-litmus-light);
4948
}
5049

51-
52-
.navbar__link, .navbar__link:hover {
53-
color: #1B1F24;
50+
.navbar__link,
51+
.navbar__link:hover {
52+
color: #1b1f24;
5453
}
5554

5655
[data-theme='dark'] .navbar__link {
@@ -65,8 +64,7 @@
6564
font-weight: 600;
6665
border-radius: 6px;
6766
margin: 0px 6px !important;
68-
box-shadow: 0px 0px 1px 0px rgba(48, 50, 51, 0.05),
69-
0px 1px 1px 0px rgba(48, 50, 51, 0.10);
67+
box-shadow: 0px 0px 1px 0px rgba(48, 50, 51, 0.05), 0px 1px 1px 0px rgba(48, 50, 51, 0.1);
7068
border: 1px solid var(--ifm-litmus-dark);
7169
display: flex;
7270
justify-content: center;
@@ -75,7 +73,6 @@
7573
transition: background-color 0.2s ease;
7674
}
7775

78-
7976
.try-button:hover {
8077
background-color: var(--ifm-litmus-dark);
8178
color: white;
@@ -87,7 +84,6 @@
8784
}
8885
}
8986

90-
9187
.category-as-header .menu__link--active:not(.menu__link--sublist) {
9288
background-color: var(--ifm-menu-color-background-active);
9389
}
@@ -100,7 +96,7 @@
10096
max-width: 94%;
10197
}
10298

103-
.category-as-header>.menu__list-item-collapsible:first-child:hover {
99+
.category-as-header > .menu__list-item-collapsible:first-child:hover {
104100
background-color: transparent;
105101
}
106102

@@ -111,8 +107,7 @@
111107
display: flex;
112108
background-color: var(--ifm-navbar-link-color);
113109
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
114-
transition: background-color var(--ifm-transition-fast)
115-
var(--ifm-transition-timing-default);
110+
transition: background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
116111
}
117112

118113
.slack-button::before {
@@ -124,12 +119,11 @@
124119
background-size: contain;
125120
background-repeat: no-repeat;
126121
background-position: center;
127-
transition: background-color var(--ifm-transition-fast)
128-
var(--ifm-transition-timing-default);
122+
transition: background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
129123
}
130124

131125
.DocSearch-Button {
132-
border: 1px solid #CCD1D5 !important;
126+
border: 1px solid #ccd1d5 !important;
133127
border-radius: 6px !important;
134128
background: transparent !important;
135129
height: 32px !important;
@@ -140,29 +134,28 @@
140134
border: none !important;
141135
box-shadow: none !important;
142136
background: transparent !important;
143-
color: #6A727C !important;
137+
color: #6a727c !important;
144138
font: inherit !important;
145139
padding: 0 !important;
146140
}
147141

148142
.DocSearch-Search-Icon {
149143
height: 16px;
150144
width: 16px;
151-
color: #6A727C !important
145+
color: #6a727c !important;
152146
}
153147

154148
.DocSearch-Button-Placeholder {
155149
font-size: 12px;
156-
color: #6A727C
150+
color: #6a727c;
157151
}
158152

159153
.navbarSearchContainer_Bca1 {
160-
border-right: 1px solid #E4E7EB !important;
154+
border-right: 1px solid #e4e7eb !important;
161155
padding: 4px 16px !important;
162156
margin-right: 8px;
163157
}
164158

165-
166159
html {
167160
font-family: 'Work Sans', sans-serif;
168161
}
@@ -220,3 +213,7 @@ text {
220213
background: #d8dbfa;
221214
border-left-color: #5b44ba;
222215
}
216+
[data-theme='dark'] .alert--secondary {
217+
background: #5b44ba;
218+
border-left-color: #d8dbfa;
219+
}

0 commit comments

Comments
 (0)