gristlabs_grist-core/app/client/ui/DocTutorial.css
George Gevoian 95cbbb8910 (core) Improve dark mode in tutorials
Summary:
Headings 4, 5, and 6 are now properly visible in dark mode. Additionally,
pre-formatted text and code blocks have improved styling in dark mode.

Test Plan: Manual.

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D4108
2023-11-06 13:06:13 -05:00

136 lines
2.6 KiB
CSS

.doc-tutorial-popup h1,
.doc-tutorial-popup h2,
.doc-tutorial-popup h3,
.doc-tutorial-popup h4,
.doc-tutorial-popup h5,
.doc-tutorial-popup h6,
.doc-tutorial-popup p,
.doc-tutorial-popup li {
color: var(--grist-theme-text, #262633);
}
.doc-tutorial-popup h2,
.doc-tutorial-popup h3,
.doc-tutorial-popup h4,
.doc-tutorial-popup h5,
.doc-tutorial-popup h6 {
margin: 20px 0px 10px 0px;
font-weight: 400;
}
.doc-tutorial-popup h1 {
margin: 0px 0px 24px 0px;
font-weight: 500;
font-size: 28px;
line-height: 42px;
}
.doc-tutorial-popup h2 {
font-size: 24px;
line-height: 36px;
}
.doc-tutorial-popup h3 {
font-size: 22px;
line-height: 33px;
}
.doc-tutorial-popup h4 {
font-size: 20px;
line-height: 30px;
}
.doc-tutorial-popup h5 {
font-size: 18px;
line-height: 27px;
}
.doc-tutorial-popup h6 {
font-size: 16px;
line-height: 24px;
}
.doc-tutorial-popup p {
margin: 0px 0px 16px 0px;
font-weight: 400;
font-size: 14px;
line-height: 21px;
}
.doc-tutorial-popup a,
.doc-tutorial-popup a:hover {
color: var(--grist-theme-link, #16B378);
}
.doc-tutorial-popup li {
font-weight: 400;
font-size: 14px;
line-height: 21px;
}
.doc-tutorial-popup ol,
.doc-tutorial-popup ul {
margin: 0px 0px 10px 0px;
}
.doc-tutorial-popup code {
padding: 2px 5px;
color: var(--grist-theme-tutorials-popup-code-fg, #333333);
background: var(--grist-theme-tutorials-popup-code-bg, #FFFFFF);
border: 1px solid var(--grist-theme-tutorials-popup-code-border, #E1E4E5);
white-space: pre-wrap;
word-wrap: break-word;
}
.doc-tutorial-popup pre {
background: var(--grist-theme-tutorials-popup-code-bg, #FFFFFF);
border: 1px solid var(--grist-theme-tutorials-popup-code-border, #E1E4E5);
}
.doc-tutorial-popup pre > code {
background: none;
border: none;
}
.doc-tutorial-popup iframe {
border: none;
}
.doc-tutorial-popup-thumbnail {
position: relative;
margin: 20px 0px 30px 0px;
cursor: pointer;
}
.doc-tutorial-popup-thumbnail-half-screenshot {
margin-left: auto;
margin-right: auto;
width: 50%;
}
.doc-tutorial-popup-thumbnail img {
width: 100%;
border: 1px solid var(--grist-theme-tutorials-popup-border, #D9D9D9);
border-radius: 4px;
padding: 4px;
background-color: transparent;
}
.doc-tutorial-popup-thumbnail-icon-wrapper {
pointer-events: none;
position: absolute;
bottom: 8px;
right: 8px;
padding: 4px;
background-color: #D9D9D9;
border-radius: 4px;
}
.doc-tutorial-popup-thumbnail-icon {
mask-image: var(--icon-Maximize);
-webkit-mask-image: var(--icon-Maximize);
background-color: var(--grist-theme-accent-icon, var(--grist-color-light-green));
width: 16px;
height: 16px;
}