Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pkoretic/csdefault
universal cross browser library to style elements - started as jqtransform replacement/alternative based only on CSS(3) and jquery
https://github.com/pkoretic/csdefault
Last synced: 6 days ago
JSON representation
universal cross browser library to style elements - started as jqtransform replacement/alternative based only on CSS(3) and jquery
- Host: GitHub
- URL: https://github.com/pkoretic/csdefault
- Owner: pkoretic
- Created: 2012-01-28T20:35:38.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-11-17T13:11:16.000Z (almost 9 years ago)
- Last Synced: 2023-03-22T13:00:11.263Z (over 1 year ago)
- Language: CSS
- Homepage: www.pkoretic.net/csDefault
- Size: 312 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
csDefault
[Official site and demo: http://www.pkoretic.net/csDefault](http://www.pkoretic.net/csDefault)
30.01.2012 - started
05.08.2012 - renamed to csDefault (since CSS3PIE is not used anymore no point to have it called csTransPie - and it's shorter!)**Development**
Library is considered **stable**.It's designed as a **very lightweight** cross-browser CSS(3) library which would give all elements styling they need
It's less than **14kb minified - 3kb gzipped**(note: jquery 1.7+ is needed - http://api.jquery.com/on/)
All elelemts are regular html elements with style applied - **no html breaking!**
elements are only styled and 'fixed' to be cross browser compatibleAll elements are created with CSS(3) without images (still, I like radio and checkboxes more with background images so they are using it - 673 bytes in size)
Cross-browser
**try it in IE**! Notice how everything looks the same as in other browsers - using CSS!
(Note that css3PIE is not used anymore, see the CSS file for details)
Tested in Chrome, Firefox 5+, Opera, IE 7+, Android 2.3, Opera Mobile, Firefox Mobile, Safari 5 - **please test** more and **report back**!All suggestions are welcome.
Download and usage
=======================
Download it here from git (https://github.com/pkoretic/csDefault/archive/master.zip) and add
And that's it! All element's will get styled as soon as the DOM is ready
**csDefault** has all the comments for easier development
**csDefault-min** is obviously minified version**Dynamic elements**
If you have elements created dynamically call csUpdate function on (parent) element which was created dynamicallyrecommended way
$("body").append('').csUpdate();or
$("body").append('
');
$("#dynamic").csUpdate();
Note: Calling .csUpdate function on any sort of text fields or buttons is not needed for the sake of element styling but there are titles and labels for that element that won't get styled unless you do call it.TODO
========================
New page and demosLICENCING
==================================================================================
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* See for a licence copy or more info.