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

Remove media='screen' for custom CSS #286

Closed
yesenin opened this issue Apr 21, 2015 · 3 comments
Closed

Remove media='screen' for custom CSS #286

yesenin opened this issue Apr 21, 2015 · 3 comments
Milestone

Comments

@yesenin
Copy link

yesenin commented Apr 21, 2015

For now, it's impossible to customize CSS for media='print'.
If "media='screen'" for ext/ is removed from SwaggerUiConfig it will be possible to use "@media print" in custom CSS.

@domaindrivendev
Copy link
Owner

Will address this in the next release, probably adding an optional "media" param to InjectStyleSheet.

For now though, you'll have to override the entire index.html (see https://github.com/domaindrivendev/Swashbuckle#provide-your-own-index-file)

@yesenin
Copy link
Author

yesenin commented Apr 22, 2015

@domaindrivendev , yes, default value for the attribute and opportunity to change it would be also great. Thank you.

@domaindrivendev
Copy link
Owner

Should be resolved in latest release - 5.2.0

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

No branches or pull requests

2 participants