2017 © Pedro Peláez
 

typo3-cms-extension dyncss

image

kaystrobach/dyncss

  • Monday, July 30, 2018
  • by kaystrobach
  • Repository
  • 4 Watchers
  • 9 Stars
  • 5,429 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 20 Forks
  • 15 Open issues
  • 25 Versions
  • 25 % Grown

The README.md

, (*1)

Less in general

The parser libs may ship dedicated information based on the language you want to use., (*2)

Frontend

Example TYPOScript:, (*3)

page.includeCSS.testLess = EXT:dyncss_test/Resources/Public/Stylesheets/Example.less

Example Overrides (dynamic color settings, dynamic image overrides):, (*4)

plugin.tx_dyncss {
    register = LOAD_REGISTER
    register {
        inputColor1.cObject = TEXT
        inputColor1.cObject {
            value = {$lessColorScheme}
            split {
                token.char = 124
                returnKey = 0
            }
        }
        inputColor2 < .inputColor1
        inputColor2.cObject.split.returnKey = 1
    }
    overrides {
        inputColor1 = TEXT
        inputColor1 {
            data = register:inputColor1
        }
        inputColor2 = TEXT
        inputColor2 {
            data = register:inputColor2
        }
        logo = IMG_RESOURCE
        logo {
            stdWrap.wrap = url("|")
            file = GIFBUILDER
            file {
                XY = [20.w],[20.h]
                20 = IMAGE
                20.file = GIFBUILDER
                20.file {
                    XY = 128,22
                    backColor.data = register:inputColor1
                }
                20.mask = EXT:example/css/colors/less/images/logo_sw.png
            }
        }
    }
    registerReset = RESTORE_REGISTER
}

Example less file:, (*5)

    @linkColor: blue;
    @logo: url(someWeirdUrl);

    a {
        color: @linkColor;
    }

    h1 {
        a {
            color: lighten(@linkColor, 20%);
        }
    }
    #logo {
        background-image:@logo
    }

Backend: Include in backend.php

To see how it works, please take a look into dyncss_test., (*6)

Caching

In production mode, CSS is only re-rendered if the topmost less or sass file, which is directly included by typoscript, is altered.
In development mode, also changes in files that are imported inside a less or sass file trigger a new rendering.
Development mode is triggered either by TYPO3 application context "Development" or by the preset "Development" in the install tool. Additionally rerendering will happen if you change TS values, which are used in the less files., (*7)

Additionally we add a new clear cache button to just clear the dyncss cache., (*8)

dyncss clear cache, (*9)

Source maps

If the compiling library supports source maps, you can enable that feature by enabling the debug mode of dyncss in the extensionmanager settings., (*10)

Normally the source maps are appended to the generated css files, to avoid confusion., (*11)

IMPORTANT, (*12)

You need to disable css concatenation to get the sourcemaps working., (*13)

This can be done with the following TS based on your environment:, (*14)

themes.configuration.css.concatenate = 0
page.config.concatenateCss = 0

sourcemap, (*15)

The Versions

30/07 2018

dev-issue-1

dev-issue-1

  Sources   Download

01/05 2018

0.2.1

0.2.1.0

  Sources   Download

01/05 2018

0.2.2

0.2.2.0

  Sources   Download

01/05 2018

0.7.1

0.7.1.0

  Sources   Download

01/05 2018

0.7.2

0.7.2.0

  Sources   Download

01/05 2018

0.7.3

0.7.3.0

  Sources   Download

01/05 2018

0.7.4

0.7.4.0

  Sources   Download

01/05 2018

0.7.5

0.7.5.0

  Sources   Download

01/05 2018

0.7.6

0.7.6.0

  Sources   Download

01/05 2018

0.7.7

0.7.7.0

  Sources   Download

01/05 2018

0.7.8

0.7.8.0

  Sources   Download

01/05 2018

0.2.3

0.2.3.0

  Sources   Download

01/05 2018

0.2.4

0.2.4.0

  Sources   Download

01/05 2018

0.2.5

0.2.5.0

  Sources   Download

01/05 2018

0.2.6

0.2.6.0

  Sources   Download

01/05 2018

0.2.7

0.2.7.0

  Sources   Download

01/05 2018

0.3.1

0.3.1.0

  Sources   Download

01/05 2018

0.7.0

0.7.0.0

  Sources   Download

05/01 2018

dev-master

9999999-dev http://donate.kay-strobach.de/

Compile your CSS dynamically with DynCss Adapters.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

dyncss

05/01 2018

0.8.3

0.8.3.0 http://donate.kay-strobach.de/

Compile your CSS dynamically with DynCss Adapters.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

dyncss

18/04 2017

0.8.2

0.8.2.0 http://donate.kay-strobach.de/

Compile your CSS dynamically with DynCss Adapters.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

dyncss

07/04 2017

dev-issue-47

dev-issue-47 http://donate.kay-strobach.de/

Compile your CSS dynamically with DynCss Adapters.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

dyncss

25/03 2017

0.8.0

0.8.0.0 http://donate.kay-strobach.de/

Compile your CSS dynamically with DynCss Adapters.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

dyncss

25/03 2017

dev-analysis-XVngkZ

dev-analysis-XVngkZ http://donate.kay-strobach.de/

Compile your CSS dynamically with DynCss Adapters.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

dyncss

18/08 2016

0.7.9

0.7.9.0 http://donate.kay-strobach.de/

Compile your CSS dynamically with DynCss Adapters.

  Sources   Download

The Requires

 

The Development Requires

dyncss