View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
08005Feature requestsTheme editorpublic2021-11-03 15:42
ReporterDenisChenu Assigned Togalads  
PrioritynormalSeverityfeature 
Status acknowledgedResolutionreopened 
Summary08005: Add Less css system for templating
Description

Less CSS is cool to have "option" in css. Some of our user think Public template difference is only color. But Less CSS allow "color" change easy (and width, and fonts and .... all).

Additional Information

For user : i think it's more easy to update a little file with just some parameters. Something like this:
http://ferme.gsill.net/plugins/auto/bootstrap/bootstrap/css/variables.less

But maybe it can be great too to have
Dev do a parameters file (XML for example) with all existing parameters and we add a template parameters in "advanced survey settings". Maybe we can fix some global parameters 'same for each template'.

And allow some other parameters: someting like this:

All template parameters:

  • @maxwidth
  • @bodybgcolor
  • @bodycolor
  • ....
    ....

This template parameters

  • @reallyspecificparametres

Some template can use 1/2/X global parameters , for example :
@surveytitlecolor=@grouptitlecolor etc ...

TagsNo tags attached.
Bug heat6
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2013-07-13 14:48

developer   ~25787

Last edited: 2013-07-13 14:49

Less CSS : http://lesscss.org/

This must be in public template but can be in admin template too.

sammousa

sammousa

2013-07-17 01:23

reporter   ~25805

Shnoulle, simply including this and configuring it will add LESS support to CClientScript.

https://github.com/sammousa/yii-less

Since we will use Twig templates in 2.1 we will make wrapper functions for CClientScript exposing the registration functions to the custom templates anyway.

DenisChenu

DenisChenu

2013-07-17 09:59

developer   ~25806

I think before adding less, we must have a "clean css file generation and caching", .

When activate a survey :

  • Create a survey-{$sid}-{$date}.css (maybe in upload/survey/{$sid} directory).

If admin :

  • Change template
  • Update a function adding a new css part (ranking.css for example)
  • or update the template.css file
    => delete survey-{$sid}-*.css, create a new one.

Else: we use PHP to generate css each time for one user, think it's a bad memory issue.

Denis
PS: near same thing for js file.
PS2: then before have such system, in question/attribute object : need a clean "registerCSS file", registerJS file , we can call a function for getAllCssSurveyFile($sid} and getAllCssSurveyFile{$sid}.

DenisChenu

DenisChenu

2021-11-02 13:25

developer   ~67058

open => fixed ?

DenisChenu

DenisChenu

2021-11-02 13:27

developer   ~67059

won't fix ?
No ?

galads

galads

2021-11-02 15:05

reporter   ~67062

This is nice to have but not a necessity. We can leave it open maybe will be picked up in the future.

DenisChenu

DenisChenu

2021-11-03 15:42

developer   ~67081

This is nice to have but not a necessity.

Like a lot of feature ;)

Issue History

Date Modified Username Field Change
2013-07-13 14:48 DenisChenu New Issue
2013-07-13 14:48 DenisChenu Note Added: 25787
2013-07-13 14:48 DenisChenu Severity @50@ => feature
2013-07-13 14:49 DenisChenu Note Edited: 25787
2013-07-16 15:36 DenisChenu Target Version => 2.1
2013-07-16 17:14 DenisChenu Issue Monitored: sammousa
2013-07-17 01:23 sammousa Note Added: 25805
2013-07-17 09:59 DenisChenu Note Added: 25806
2015-12-11 14:40 c_schmitz Category Templates => Theme editor
2021-11-02 12:31 galads Assigned To => galads
2021-11-02 12:31 galads Status new => closed
2021-11-02 12:31 galads Resolution open => fixed
2021-11-02 13:25 DenisChenu Status closed => feedback
2021-11-02 13:25 DenisChenu Resolution fixed => reopened
2021-11-02 13:25 DenisChenu Note Added: 67058
2021-11-02 13:27 DenisChenu Status feedback => assigned
2021-11-02 13:27 DenisChenu Note Added: 67059
2021-11-02 13:27 DenisChenu Status assigned => feedback
2021-11-02 15:05 galads Note Added: 67062
2021-11-02 15:05 galads Bug heat 4 => 6
2021-11-02 15:06 galads Status feedback => acknowledged
2021-11-03 15:42 DenisChenu Note Added: 67081