xrow/sass-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xrow/sass-bundle

Composer 安装命令:

composer require xrow/sass-bundle

包简介

This bundle provides Sass compilation for multiple eZ Publish siteaccesses

README 文档

README

Requirements

You will need to install https://github.com/sensational/sassphp

Configuration

Either add xrow/sass-bundle to you composer.json or run composer require xrow/sass-bundle.

"require": {
    "xrow/sass-bundle": "~1.0", 
},

Make sure the Bundle is loaded in EzPublishKernel.php or AppKernel.php

public function registerBundles()
{
    $bundles = array(
            new Xrow\SassBundle\XrowSassBundle(),
    );
}

Configure the siteaccess settings in a loaded configuration file (i.e. Config.yml)

xrow_sass:
    siteaccess:
        my_siteaccess:
            settings:
                'brand-primary': "#ffff00"
        my_second_siteaccess:
            settings:
                'brand-primary': "#0000ff"
        my_siteaccess_group:
            file: "bootstrap/scss/bootstrap.scss"
            settings:
                'gray-dark': "#00ff00"
                'brand-primary': "#00ff00"
                'brand-info': "#00ff00"
                'my-color': "red"

You can specfiy file and settings for siteaccesses or siteaccessgroups, file specifies the SASS file to use, settings defines a list of SASS variables wich should be included.

If a siteacces is in a siteaccesgroup it will gain all settings defined in the associated siteaccesgroup.

Settings defined below a siteaccess will override settings defined in a siteaccessgoup.

If neither the siteaccess or the associated siteaccesgroup has file attribute specified, the siteaccess will be skipped.

Usage

Run: ezpublish/console sass:compile and your CSS files will be placed in web/css/{{siteaccessname}}.css

To load the CSS, simply create a link tag like the following:

<link rel="stylesheet" href="css/{{ ezpublish.siteaccess.name }}.css" />

统计信息

  • 总下载量: 7.54k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固