Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with CSS and smokescreen fogscreen classes #668

Open
yangauthier opened this issue Jan 3, 2022 · 1 comment
Open

Help with CSS and smokescreen fogscreen classes #668

yangauthier opened this issue Jan 3, 2022 · 1 comment

Comments

@yangauthier
Copy link

Hi, I visited the HTML/CSS/JS examples section of the wiki. There's the example of a Remark presentation with Story's theme with apron & al. What I'd like to achieve is to have slide like in the Haikudeck app, i.e. a background picture with a title and a dark / light shaded semi-transparent background. I've seen this can be achieved in Remark with the smokescreen / fogscreen classes (as explained here). But I'm not a programmer and I can't get the CSS to work properly in my Remark presentation. Would there be someone here to help me ? Thanks !

Smokescreen effect :

smokescreen

Fogscreen effect :

fogscreen

@yangauthier
Copy link
Author

As a complement to my request, here is the CSS I copied from the Adirondack css :

.remark-slide-content.smokescreen > h1,
.remark-slide-content img[src~=smokescreen] {
background-color: rgba(0, 0, 0, 0.7);
}
.remark-slide-content.smokescreen > h1,
.remark-slide-content.smokescreen > h2,
.remark-slide-content.smokescreen > h3 {
color: white;
text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.8), 8px 8px 20px rgba(0, 0, 0, 0.9);
}
@media print {
.remark-slide-content.smokescreen {
-webkit-print-color-adjust: exact;
-webkit-filter: opacity(1);
}
}
.remark-slide-content.fogscreen > h1 {
background-color: rgba(255, 255, 255, 0.7);
}
.remark-slide-content.fogscreen > h1,
.remark-slide-content.fogscreen > h2,
.remark-slide-content.fogscreen > h3 {
color: black;
text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.5), 8px 8px 20px rgba(0, 0, 0, 0.2);
}
@media print {
.remark-slide-content.fogscreen {
-webkit-print-color-adjust: exact;
-webkit-filter: opacity(1);
}
}
.remark-slide-content.fit-h1 h1 {
height: 1.25em;
overflow: hidden;

But here is what I get :

brave_x1gSLOny3v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants