可以直接用VQMOD修改bootstrap.min.css吗?
Can you directly modify bootstrap.min.css with VQMOD?
我正在尝试按以下方式使用 VQMOD 更改 bootstrap.min.css,但它不起作用。
除了构建一个重复的 bootstrap.min.css 文件之外,还有什么方法可以解决这个问题吗?
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Adds custom color link in bootstrap</id>
<version>1.0</version>
<vqmver>2.5.1</vqmver>
<author>Bubba</author>
<file name="catalog/view/javascript/bootstrap/css/bootstrap.min.css">
<operation info="Replace link colors">
<search position="replace"><![CDATA[
a{color:#428bca;text-decoration:none}a:hover,a:focus{color:#2a6496;text-decoration:underline}
]]></search>
<add><![CDATA[
a{color:#855e42;text-decoration:none}a:hover,a:focus{color:#000000;text-decoration:underline}
]]></add>
</operation>
</file>
</modification>
根据this article,vQmod 对可以修改的文件有限制。
You can't edit everything - CSS, JS and standalone files. Stylesheets and JavaScripts are handled by the browser, so you cannot edit them via a vQmod by default.
不幸的是,这给我们留下了两个选择:
- 修改原文件
- 使用内联代码块调整CSS/JS
<style type="text/css">
<script type="text/javascript">
- 正如@BubbaYakoza 指出的另一种方法是使用 vQmod 修改
<head>
标记以替换对修改文件的引用
- 只要您的
<head>
是在 index.php
之外定义的,即
我正在尝试按以下方式使用 VQMOD 更改 bootstrap.min.css,但它不起作用。
除了构建一个重复的 bootstrap.min.css 文件之外,还有什么方法可以解决这个问题吗?
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Adds custom color link in bootstrap</id>
<version>1.0</version>
<vqmver>2.5.1</vqmver>
<author>Bubba</author>
<file name="catalog/view/javascript/bootstrap/css/bootstrap.min.css">
<operation info="Replace link colors">
<search position="replace"><![CDATA[
a{color:#428bca;text-decoration:none}a:hover,a:focus{color:#2a6496;text-decoration:underline}
]]></search>
<add><![CDATA[
a{color:#855e42;text-decoration:none}a:hover,a:focus{color:#000000;text-decoration:underline}
]]></add>
</operation>
</file>
</modification>
根据this article,vQmod 对可以修改的文件有限制。
You can't edit everything - CSS, JS and standalone files. Stylesheets and JavaScripts are handled by the browser, so you cannot edit them via a vQmod by default.
不幸的是,这给我们留下了两个选择:
- 修改原文件
- 使用内联代码块调整CSS/JS
<style type="text/css">
<script type="text/javascript">
- 正如@BubbaYakoza 指出的另一种方法是使用 vQmod 修改
<head>
标记以替换对修改文件的引用- 只要您的
<head>
是在index.php
之外定义的,即
- 只要您的