gpt4 book ai didi

css - Prestashop 主题 compass scss

转载 作者:太空宇宙 更新时间:2023-11-04 02:34:42 25 4
gpt4 key购买 nike

我已经为 Prestashop 购买了一个主题。现在我需要自定义一些css样式。自然是用compass编译css文件,主题已经有sass文件夹了。当我从 root/themes/my-theme 启动“compass watch”时,所有 css 文件都被删除并使用 sass 主题文件夹中的 scss 文件重新编译。

结果是所有样式似乎都重置为默认的 prestashop 主题 default-bootstrap。

这是主题文件夹中的config.rb:

# Require any additional compass plugins here.

# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"enter code here
sass_dir = "sass"
images_dir = "img"
javascripts_dir = "js"
fonts_dir = "fonts"

output_style = :nested
environment = :development

# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true

# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = false
color_output = false

sourcemap = true

# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass

我找不到不覆盖 css 主题文件的方法。

最佳答案

The result is that all style seems to be resetted to the default PrestaShop theme default-bootstrap.

您购买的主题似乎仅使用了 CSS。因此你的 sass 文件不与你的 CSS 同步。最好的方法是询问您的主题开发人员。

关于css - Prestashop 主题 compass scss,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35919869/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com