Media query per page handling #6099
-
Hi the team, Version : 2.5.295.
.frame-style {
@media (min-width: 1000px) {
width: 560px;
height: 315px;
}
} The result is a CSS modified (??) as is : .frame-style {
height: 315px;
} Is this possible to handle media queries in wikijs ? Many many thanks for your help 👍 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Because iframes are a potential security risk when used by multiple users that may or may follow security best practices. Your media queries don't work because that's not valid CSS. The media query should be at the root level, then the classes inside it. |
Beta Was this translation helpful? Give feedback.
Because iframes are a potential security risk when used by multiple users that may or may follow security best practices.
If you're the sole editor or that you trust all editors, then there's no issue with enabling it.
Your media queries don't work because that's not valid CSS. The media query should be at the root level, then the classes inside it.