Basic

How to compile stylesheet.css - Basic

How to compile stylesheet.css

by Arty » Thu May 07, 2015 9:50 am

Unlike other styles, this style uses Sass for stylesheet. What is it? I'll explain later in this post. What matters is in this style you should never edit stylesheet.css!

Instead you should edit .scss files. Those are Sass files with syntax compatible with CSS. You can open them with any CSS file editor or basic text editor. File stylesheet.css is generated from many smaller .scss files.

After editing and .scss file, you must recompile stylesheet.css. It is very easy to do and there is a tutorial that explains how to do it: how to compile theme.

Tutorial explains how to compile stylesheet using ether phpBB extension, an app or command line. It also explains how to automatically recompile stylesheet when you edit any .scss file.

---------------------------

So what is Sass? It is basically advanced CSS with variables, conditional statements that makes writing complex CSS a very simple job. See http://sass-lang.com/
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin

Re: How to compile stylesheet.css

by Arty » Sun Jun 14, 2015 4:11 pm

Compiling themes is now many many times easier!

I wrote an extension for phpBB that compiles Sass themes: http://www.artodia.com/threads/sass-com ... -3-1.2186/

Install extension on your forum and compile themes from admin control panel. You no longer need to install any additional software.
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin

Re: How to compile stylesheet.css

by loxawadi » Mon Jan 11, 2016 10:52 am

Dear Arty

Thank you for you nice styles.

I have one question needed your help. Every time I press "Compiling themes" in my ACP, my style returned back to original one.

I made somethings changed in background color. I want it white but it turned back to grey when i press "Compiling themes".

Please help.
Thank you
loxawadi
Registered User
Posts: 63
Joined: Tue Jan 05, 2016 3:14 am

Re: How to compile stylesheet.css

by Arty » Mon Jan 11, 2016 12:16 pm

Don't edit stylesheet.css, script overwrites it when it compiles theme. Edit .scss files
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin