Edit in GitHubLog an issue


Since: UXP 4.1, PS 22.0.0

Enables you to restrict a set of CSS rules to match when the size of the plugin's dialog or panel meets your specified criteria.

See: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/width


Copied to your clipboard
1@media (max-width: 700px) {
2 .someElement {
3 background-color: red;
4 }

Known Issues#

  • When a plugin has multiple panels, only the size of the first panel is used for this calculation. As such, media queries based on viewport size do not make much sense when a plugin as two or more panels.
Copyright © 2021 Adobe. All rights reserved.