Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2012-06-23 02:00:14
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Foundation framework & Textpattern comments & contact forms
Anyone using Foundation framework with Textpattern?
Grid/layout elements very helpful to get basic site structure up and running. But with forms, to take advantage of ‘nice’ inbuilt styles, you have to add classes to the form elements – not so easy, esp. with zem_contact_reborn.
Will probably take their form styles & apply to zem_contact_reborn classes & IDs – but is there an easier way?
Offline
Re: Foundation framework & Textpattern comments & contact forms
I used Foundation on my personal site, it is very easy to use. In my case I just added custom styles in a separate sheet that either overrides the Foundation CSS or add new styles.
Offline
#3 2012-06-23 04:27:31
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: Foundation framework & Textpattern comments & contact forms
Hi Jonathan, all is good – except for comment forms, and zem_contact_reborn forms. I could just hack the plugin & the Txp source (to add ‘nice’ class to form element, etc) … probably easiest, just have to remember when upgrading.
Offline
Re: Foundation framework & Textpattern comments & contact forms
Altering attributes (e.g. class) of dom nodes is quite easy with etc_query if you know their xpath (within data):
<txp:etc_query data='<txp:zem_or_something ... />' replace="xpath/of/node@@class=nice" />
You could also do it client-side with jQuery.
Offline
#5 2012-06-23 10:45:23
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: Foundation framework & Textpattern comments & contact forms
Thanks etc, good one.
It is not that difficult to reproduce the Foundation styles for forms; I will post a link when the site is live.
Offline
#6 2012-06-27 17:50:40
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: Foundation framework & Textpattern comments & contact forms
nardo:
I have recently become interested in Foundation and look forward to anything that you share.
progre55
Offline
Re: Foundation framework & Textpattern comments & contact forms
The problem with Foundation and other off-the-shelf CSS/JavaScript grid templates is the size and redundancy.
Foundation’s CSS is 55k
and the JavaScript 130k
Unless you use nearly all the classes there is so much of Foundation’s CSS you aren’t using.
If Foundation could read all the scripts in a folder and generate a minified CSS file containing only the CSS needed then it would be worth using.
Last edited by geoff777 (2012-06-29 14:55:01)
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Re: Foundation framework & Textpattern comments & contact forms
Foundation has just been updated to v3 which includes the option to customize your build – fyi.
Offline
#9 2012-06-30 04:13:20
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: Foundation framework & Textpattern comments & contact forms
Looks like you no longer need .input-text
class on input fields – v3 looking good.
Offline
Re: Foundation framework & Textpattern comments & contact forms
Foundation has just been updated to v3 which includes the option to customize your build – fyi.
That is pretty awesome. I wasn’t in love with v.2, but this is really solid. I’d like to find a way to use thumbnails with Orbit.
Offline