gristlabs_grist-core/app/client/ui/DocTutorial.css
George Gevoian b15ae98349 (core) Fix browser history bug with tutorials
Summary:
History wasn't being replaced in some cases, which was
causing a bug where trying to leave a tutorial fork via the
browser's back button would navigate back to the trunk, and
trigger forking again. This effectively made it impossible to
leave a tutorial.

Also adds support for specifying custom CSS classes for
tutorial Markdown images.

Test Plan: Browser test.

Reviewers: JakubSerafin

Reviewed By: JakubSerafin

Differential Revision: https://phab.getgrist.com/D3866
2023-04-19 00:22:42 -04:00

103 lines
1.9 KiB
CSS

.doc-tutorial-popup h1,
.doc-tutorial-popup h2,
.doc-tutorial-popup h3,
.doc-tutorial-popup p,
.doc-tutorial-popup li {
color: var(--grist-theme-text, #262633);
}
.doc-tutorial-popup h1 {
margin: 0px 0px 24px 0px;
font-weight: 500;
font-size: 28px;
line-height: 40px;
}
.doc-tutorial-popup h2 {
margin: 20px 0px 10px 0px;
font-weight: 400;
font-size: 24px;
line-height: 32px;
}
.doc-tutorial-popup h3 {
margin: 20px 0px 10px 0px;
font-weight: 400;
font-size: 20px;
line-height: 24px;
}
.doc-tutorial-popup p {
margin: 0px 0px 16px 0px;
font-weight: 400;
font-size: 14px;
line-height: 22px;
}
.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: 22px;
}
.doc-tutorial-popup ol,
.doc-tutorial-popup ul {
margin: 0px 0px 10px 0px;
}
.doc-tutorial-popup code {
padding: 2px 5px;
background: #FFFFFF;
border: 1px solid #E1E4E5;
color: #333333;
white-space: pre-wrap;
word-wrap: break-word;
}
.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;
}