question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CustomTheme is overridden by default theme on template.marko

See original GitHub issue

At https://github.com/evilz/vscode-reveal/commit/30eaecc56113e3a05768ecee851cf28b786ad763

I’ve found that views/template.marko insert style code below that break my customTheme:

.hljs {
  background: none;
}
.reveal pre {
  width: 98%;
  margin: 0px;
  box-shadow: none;
}
.reveal pre code {
  font-size: 1.2em;
  line-height: 1.2;
  border-radius: 10px;
  max-height: 60vh !important;
  overflow: hidden !important;
}

My customTheme code CANNOT override the default style :

  pre {
    code {
      font-size: 1rem;
    }
  }

Could you help me how to fix it or recovery the origin style? Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
leimingcommented, Feb 26, 2019

@evilz , please reply this if it is convenient to you.

Thank you!

0reactions
evilzcommented, Oct 5, 2019

I think it ok

Read more comments on GitHub >

github_iconTop Results From Across the Web

Material UI default theme overrides custom theme
In my application I'm applying a custom theme as described in the Material UI docs. import ...
Read more >
Custom theme: styleOverrides on Ra* components are not ...
To me it looks like the example in the "Global Theme Overrides" section in documentation is wrong: import { defaultTheme } from 'react-admin'; ......
Read more >
Modifying Themes — Omeka 2.7 documentation
Omeka has a set of default template files that all themes use, and override when the desired page structure is different from the...
Read more >
Syntax | Marko - MarkoJS
Marko looks in components/ by default and this directory can be configured in marko.json . Dynamic text. You can use placeholders ( ${}...
Read more >
Work with themes in Adobe Captivate
When you create a project, a default theme is applied to the project. ... You can create a template with the required type...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found