简体   繁体   English

使用bootstrap_package在TYPO3中应用.less

[英]Apply a .less in TYPO3 with the bootstrap_package

I got the site running with the default looks, but obviously I also want a little bit of customization. 我让网站以默认外观运行,但是显然我也想要一些自定义设置。
So I hopped right away on http://bootstrap-live-customizer.com/ to create a custom design. 因此,我立即跳上了http://bootstrap-live-customizer.com/来创建自定义设计。

For the sake of simplicity, I just replaced the EXT:bootstrap_package/.../Theme/variables.less and .../Bootstrap/variables.less file with the one I got from the website, unfortunately without any effect. 为了简单起见,我只是用从网站上获得的EXT:bootstrap_package/.../Theme/variables.less.../Bootstrap/variables.less文件替换了我的网站,不幸的是没有任何效果。 Literally nothing changed. 从字面上看,什么都没有改变。

Already cleared the cache in the install tool. 已经清除了安装工具中的缓存。

Your custom variables.less are not used to transpiling the Less-file because the extension offers the possibility to set the bootstrap Less variables in the constant editor and this is activited by default with the TypoScriot constant plugin.bootstrap_package.settings.overrideLessVariables . 您的自定义variable.less不习惯于转译Less-文件,因为该扩展名提供了在常量编辑器中设置bootstrap Less变量的可能性,并且默认情况下,这是使用TypoScriot常量plugin.bootstrap_package.settings.overrideLessVariables激活的 To avoid this default behavior, you have to set the constant to 0. 为了避免这种默认行为,您必须将常数设置为0。

But as already mentioned in the comments it is not a good idea to change the file directly in the extension. 但是,正如注释中已经提到的,直接在扩展名中更改文件不是一个好主意。 The extension offers the possibility to set the bootstrap Less variables in the constant editor. 该扩展提供了在常量编辑器中设置Bootstrap Less变量的可能性。 Select the category BOOTSTRAP PACKAGE: STYLING and there you can overwrite the variables. 选择类别BOOTSTRAP PACKAGE:STYLING,然后可以覆盖变量。

bootstrap_package TypoScript constants for bootstrap LESS variables bootstrap_package用于引导LESS变量的TypoScript常量

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM