Drupal 7 print.less编辑问题

时间:2017-09-13 22:01:25

标签: css drupal

Drupal 7

安装到sites / all / libraries / bootstrap /

的Bootstrap模块

我遇到了编辑用于页面打印的CSS样式的问题。当通过Chrome开发工具查看css时,它会显示一个css文件:sites / all / libraries / bootstrap / css / less / print.less,但此文件不存在。它正在添加一种我无法解开的CSS样式,我需要对其进行更改。当我为css引发问题时,它会出现:sites / all / libraries / bootstrap / bootstrap.min.css.map,但是当我在该文件中编辑CSS时它不会改变。

我已使用开发中的按钮清除了缓存>性能和使用drush cc all,但CSS不会更新。

我还尝试添加less / print.less文件夹/文件,希望它会覆盖,但没有成功。

导致我出现问题的具体CSS是:

*, *:before, *:after { background: transparent !important; color: #000 !important; // Black prints faster: h5bp.com/s box-shadow: none !important; text-shadow: none !important; }

背景上的!重要标签让我大吃一惊。

如果有人能告诉我如何编辑print.less,我将非常感激。

0 个答案:

没有答案