Custom css for mobile devices doesn't work


  • Used Zammad version: 3.4/3.5
  • Used Zammad installation source: deb
  • Browser + version: Chrome 84

Changes made in custom.css in /zammad/app/assets/stylesheets/custom/ works only for the desktop. Any code using media queries doesn’t work. Example of code:
@media (min-width: 320px) and (max-width: 480px) {

body {
   font-size: 20px !important;

Yes, i use zammad run rake assets:precompile and restart zammad.

By the way, I need at least to make font-size on mobile devices bigger. Would appreciate any help.

The code part does appear within the compiled css files?
You may have to clear away existing CSS files. Sometimes a restart of the service helps too.

Beside of that it’s a very dependent local issue. Maybe your media query simply doesn’t fit your device.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.