Refusal of declaration | Tumblr theme operators

I would like to use tumblr themes in my CSS output.

So, in my SCSS file, I have something like below.

article * img {
 max-width: 100%;
 {block:PermalinkPage}
  if is permalink page do this.
  min-width: 100;
 {/block:PermalinkPage}
}

So the question is, can you tell SASS not to compile or ignore a particular section. Say, wrapping it with special characters and print as-is?

article * img {
 max-width: 100%;
 \{block:PermalinkPage}\
  if is permalink page do this.
  min-width: 100;
 \{/block:PermalinkPage}\
}
+4
source share
1 answer

There is no built-in way to ignore or not compile a line or section.

Here's the answer to a similar request :

Of course, it will not be possible just not to parse the section of the document

It must be valid CSS / SCSS.

+3
source

Source: https://habr.com/ru/post/1528127/


All Articles