Self-Evident / OneFileCMS

A single file cms - all in one file!
http://onefilecms.com/
165 stars 57 forks source link

Separate CSS file for styling (while developing) #24

Closed o-l-e closed 10 years ago

o-l-e commented 11 years ago

Hi, and good work on this, i love the idea.

This could be a really nice addition to my static site consisting of .txt (using Markdown) and image files on my FTP.

OFCMS lets me edit and upload files through my iOS devices, so what i was thinking was to style the OFCMS for mobile using media queries.

Is it possible to extract the CSS and link to an external stylesheet while developing this?

Thanks :)

o-l-e commented 11 years ago

Hi again,

i figured it out, it was basically to copy the < style > chunk over to a css file and place a < link > tag to it for development, and place the css back after i am done.

Also i referenced your plugin here https://github.com/kolber/stacey/issues/76

It seemed like such a nice companion to a flat file cms using only files and folders directly into an ftp :)

Self-Evident commented 11 years ago

Thanks for the note & interest.  At one point, I had a config variable for referencing an optional external style sheet.  I don't remember exactly why I removed that option, other than probably because it was not part of the "One File" paradigm.  However, as an option, I should probably put it back, for uses such as yours.

Along that line, if you have a style sheet that makes OneFileCMS useful (or just nicer looking) for a specific application, such as for an iOS device, I'd like to include it in the repo (as an option), similar to the language files, if you wouldn't mind shareing it.  I'm kind of a technological old fogy, in that I prefer a full keyboard & monitor that comes with a desktop when working online, and I like my phone to be a phone.  :)  As a result, I don't have one of them new-fangled "smart" phones, so I can't develope for that platform.  However, I do understand that that is just me...

Anway, thanks again for the interest and input.

----- Original Message ----- From: o-l-e Sent: 03/17/13 08:04 AM To: Self-Evident/OneFileCMS Subject: Re: [OneFileCMS] Separate CSS file for styling (while developing) (#24)

Hi again,

i figured it out, it was basically to copy the chunk over to a css file and place a tag to it for development, and place the css back after i am done.

Also i referenced your plugin in this project ( https://github.com/kolber/stacey/issues/76 ), since it seemed like such a nice companion to a flat file cms using only files and folders directly into an ftp :)

o-l-e commented 11 years ago

Hi, and thanks for the reply.

I do see the point of have the css embedded in the OneFileCMS, it is kind of the point of it :)

I would really like to contribute with the css. I am a designer and know little about php, but know a few tricks with css. As soon as i have something to show i will let you know. I may have some questions along the way though.

Self-Evident commented 10 years ago

DONE: Added option for external style sheets. In the config setup near the top, look for or add a variable called $CSS_FILE.

The format for a file name is the same as would be for any href value in an tag.

For instance, to include a style sheet called "onefilecms.css" in the same folder as onefilecms.php, simply add the following line to the config section of your onefilecms.php: $CSS_FILE = "onefilecms.css";