2017 © Pedro Peláez
 

symfony-bundle sass-bundle

This bundle provides Sass compilation for multiple eZ Publish siteaccesses

image

xrow/sass-bundle

This bundle provides Sass compilation for multiple eZ Publish siteaccesses

  • Friday, September 23, 2016
  • by xrow
  • Repository
  • 4 Watchers
  • 0 Stars
  • 3,341 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 7 % Grown

The README.md

XrowSassBundle

Requirements

You will need to install https://github.com/sensational/sassphp, (*1)

Configuration

Either add xrow/sass-bundle to you composer.json or run composer require xrow/sass-bundle., (*2)

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

Make sure the Bundle is loaded in EzPublishKernel.php or AppKernel.php, (*3)

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

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

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., (*5)

If a siteacces is in a siteaccesgroup it will gain all settings defined in the associated siteaccesgroup., (*6)

Settings defined below a siteaccess will override settings defined in a siteaccessgoup., (*7)

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

Usage

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

To load the CSS, simply create a link tag like the following:, (*10)

html <link rel="stylesheet" href="css/{{ ezpublish.siteaccess.name }}.css" />, (*11)

The Versions

23/09 2016

dev-master

9999999-dev

This bundle provides Sass compilation for multiple eZ Publish siteaccesses

  Sources   Download

MIT

23/09 2016

1.0.1

1.0.1.0

This bundle provides Sass compilation for multiple eZ Publish siteaccesses

  Sources   Download

MIT

03/06 2016

1.0

1.0.0.0

This bundle provides Sass compilation for multiple eZ Publish siteaccesses

  Sources   Download

MIT