Project

General

Profile

Actions

Feature proposal #4190

closed

Implement CSS LESS

Added by krileon about 11 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
28 August 2013
Due date:
% Done:

100%

Estimated time:

Description

Add new header functions to add LESS scripts to the header. If any LESS scripts are added to the header it should add the LESS JS file as needed.

Actions #1

Updated by krileon about 11 years ago

Update Bootstrap jquery plugin to load in bootstrap.less instead of bootstrap.css with a namespace of "cb_bootstrap" so it won't conflict with anything.

Actions #2

Updated by krileon about 11 years ago

Implement phpless for parsing less files to css files.

http://leafo.net/lessphp/

Should still implement normal document header functions, but it'll take the .less and pass it through to output .css (caching included) then add the .css to the header instead of adding a .less.

Actions #3

Updated by krileon about 11 years ago

Add with namespace as follows.

namespace CBphpless;

Use as follows.

new \CBphpless\lessc();

Actions #4

Updated by krileon about 11 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Implemented without namespace and simply renamed classes to be prefixed with cb.

Implemented new document methods addHeadLessStyleSheet and addHeadLessStyleInline to add .less files or inline less to header as compiled css.

Actions #5

Updated by beat about 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF