无法加载COMPASS资源:服务器的响应状态为404(未找到) [英] Failed to load COMPASS resource: the server responded with a status of 404 (Not Found)

查看:134
本文介绍了无法加载COMPASS资源:服务器的响应状态为404(未找到)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 liferay 6.1 上使用相同的CSS,jsp,js和经典主题(位于ROOT\html\themes\classic中)的图像创建了主题.

I created a theme on liferay 6.1 using the same css, jsp, js, images of classic theme (which is located in ROOT\html\themes\classic).

我复制的主题可以正常工作,并且所有标准css均可正常工作,但指南针和sass无效.

My copied theme works fine and all the standard css works except the compass and sass doesn't work.

COMPASS版本0.12.2
SASS版本3.2.1

COMPASS Version 0.12.2
SASS Version 3.2.1

我的custom.css:

@import "compass";
@import "mixins";

@import url(custom_common.css);

$dockbarGradientEnd: #1273C7;
$dockbarGradientStart: #118ADE;

$dockbarOpenGradientEnd: #0993DD;
$dockbarOpenGradientStart: #0EA6F9;

/* ---------- Base styles ---------- */

.aui {
    .separator {
        border-color: #BFBFBF transparent #FFF;
        border-style: solid;
        border-width: 1px 0;
    }

    #wrapper {
        background: none;
        margin: 0 auto;
        padding: 2em 5em 0;
        position: relative;

        @include respond-to(phone) {
            padding-left: 0.5em;
            padding-right: 0.5em;
        }

        @include respond-to(tablet) {
            padding-left: 1em;
            padding-right: 1em;
        }
    }
/* etc....... */

在Firebug中,我收到此错误:

In the Firebug i get this error:

Failed to load resource: the server responded with a status of 404 (Not Found)  http://localhost:8080/test-theme/css/compass

我不知道为什么指南针和子在经典主题下都能正常工作,但在与经典主题相同的主题下却无法工作.为什么?!

I don't know why the compass and sass works fine in classic theme but doesn't work in my theme that is identical to the classic theme. Why?!

任何帮助将不胜感激!谢谢!

Any help will be greatly appreciated! Thank you!

推荐答案

问题是由旧的 campass 库( compass-0.11.5 )引起的,该库在处理透明关键字时存在问题. 它已在最新的Campass库中修复.

The issue is caused by the old campass library (compass-0.11.5) which has an issue in handling the transparent keyword. It got fixed in the latest campass library.

我遵循了本指南,并且解决了这个问题:

I followed this guide and i solved the problem: Resolve the "Sass::SyntaxError: Invalid CSS" error in Liferay 6.1

这篇关于无法加载COMPASS资源:服务器的响应状态为404(未找到)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆