Skip to content

Commit 8605f45

Browse files
authored
Merge pull request #1841 from hrx01-dev/fix/text-readability-inBlogs
Fixed text readability in "Google icon update " Blog
2 parents b7a0993 + 1ec7e78 commit 8605f45

1 file changed

Lines changed: 34 additions & 5 deletions

File tree

src/css/custom.css

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2619,9 +2619,38 @@ html[data-theme="dark"] .blog-post-page .markdown h4 {
26192619
font-size: inherit !important;
26202620
}
26212621

2622-
html[data-theme="dark"] .blog-post-page .markdown .admonition,
2623-
html[data-theme="dark"] .blog-post-page .markdown .alert {
2624-
background: rgba(59, 130, 246, 0.1) !important;
2622+
html[data-theme="dark"].blog-post-page .markdown .theme-admonition-info,
2623+
html[data-theme="dark"].blog-post-page .markdown .alert--info {
2624+
--ifm-alert-foreground-color: #ffffff !important;
2625+
--ifm-alert-background-color: #0f172a !important;
2626+
--ifm-alert-background-color-highlight: rgba(148, 163, 184, 0.14) !important;
2627+
--ifm-alert-border-color: #2563eb !important;
2628+
--ifm-link-color: #93c5fd !important;
2629+
--ifm-link-hover-color: #bfdbfe !important;
2630+
background-color: var(--ifm-alert-background-color) !important;
2631+
background: var(--ifm-alert-background-color) !important;
2632+
border-left-color: var(--ifm-alert-border-color) !important;
2633+
color: #ffffff !important;
2634+
}
2635+
2636+
html[data-theme="dark"].blog-post-page .markdown .theme-admonition-info [class*="admonitionContent_"],
2637+
html[data-theme="dark"].blog-post-page .markdown .alert--info [class*="admonitionContent_"],
2638+
html[data-theme="dark"].blog-post-page .markdown .theme-admonition-info [class*="admonitionContent_"] p,
2639+
html[data-theme="dark"].blog-post-page .markdown .theme-admonition-info [class*="admonitionContent_"] li,
2640+
html[data-theme="dark"].blog-post-page .markdown .theme-admonition-info [class*="admonitionContent_"] span,
2641+
html[data-theme="dark"].blog-post-page .markdown .theme-admonition-info [class*="admonitionContent_"] strong,
2642+
html[data-theme="dark"].blog-post-page .markdown .theme-admonition-info [class*="admonitionContent_"] em,
2643+
html[data-theme="dark"].blog-post-page .markdown .theme-admonition-info [class*="admonitionContent_"] code,
2644+
html[data-theme="dark"].blog-post-page .markdown .theme-admonition-info [class*="admonitionContent_"] a,
2645+
html[data-theme="dark"].blog-post-page .markdown .alert--info [class*="admonitionContent_"] p,
2646+
html[data-theme="dark"].blog-post-page .markdown .alert--info [class*="admonitionContent_"] li,
2647+
html[data-theme="dark"].blog-post-page .markdown .alert--info [class*="admonitionContent_"] span,
2648+
html[data-theme="dark"].blog-post-page .markdown .alert--info [class*="admonitionContent_"] strong,
2649+
html[data-theme="dark"].blog-post-page .markdown .alert--info [class*="admonitionContent_"] em,
2650+
html[data-theme="dark"].blog-post-page .markdown .alert--info [class*="admonitionContent_"] code,
2651+
html[data-theme="dark"].blog-post-page .markdown .alert--info [class*="admonitionContent_"] a {
2652+
color: #ffffff !important;
2653+
-webkit-text-fill-color: #ffffff !important;
26252654
}
26262655

26272656
/* Blog post page title (H1 rendered by Docusaurus header, outside .markdown) */
@@ -2888,7 +2917,7 @@ html[data-theme="dark"] .blog-post-page article header h2[itemprop="headline"] {
28882917
.theme-doc-markdown,
28892918
main[class*='docMainContainer_'] {
28902919
position: relative;
2891-
z-index: 1 !important;
2920+
z-index: 1 !important;
28922921
}
28932922

28942923
.theme-doc-markdown h1,
@@ -2903,5 +2932,5 @@ main[class*='docMainContainer_'] {
29032932
.theme-doc-sidebar-container,
29042933
.menu--responsive,
29052934
div[class*='sidebarViewport_'] {
2906-
z-index: 9999 !important;
2935+
z-index: 9999 !important;
29072936
}

0 commit comments

Comments
 (0)