Making css additions to the theme

Permalink Browser Info Environment
Hi there

We are trying to make some additional css styles for the theme and are writing them into the main.less file. Is there a way to always recompile this when developing on the site, so we can see our changes immidiately?

Look forward to your reply,

Type: Discussion
Status: In Progress
View Replies:
c5hub replied on at Permalink Reply
c5hub
Have you tried turning all cache settings off? Not sure if this will allow you to work in this way but is certainly worth a shot.

If you are writing custom CSS that is not LESS based then you may be better just creating a new CSS file and call in the theme header. That would work.
AdMad replied on at Permalink Reply
Hi there

Thank you for the reply.

We have all cache disabled already.

We have also thought of making it in a separate file, and will do this in the end if nothing else works. We would like it best though to have all classes in one file.
c5hub replied on at Permalink Reply
c5hub
In that case, why not develop the site by using an additional CSS file as metioned and then once happy and production ready copy all these styles back in to the main.less file and clear the cache.
abigwonderful replied on at Permalink Reply
abigwonderful
I was running into this while developing locally. I ended up setting up a build tool (gulp, but grunt would work as well) and having it watch the .less files I was working on. This combined with liveReload and I had an automated refresh running on every saved .less file change. Let me know if you would like more details on how to setup.

concrete5 Environment Information

# concrete5 Version
5.7.2

# concrete5 Packages
Fundamental (1.0.1).

# concrete5 Overrides
languages/de_DE, languages/nl_NL, languages/da_DK, languages/it_IT, languages/sv_SE, languages/sl_SI, languages/ru_RU, languages/fr_FR, languages/el_GR, languages/ja_JP, languages/tr_TR, languages/fi_FI

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.4.4-14+deb7u14

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, memcache, mhash, mysql, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 128M
memcache.max_failover_attempts - 20
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 1440
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.