css uniform,GitHub - AudithSoftworks/Uniform: A jQuery plugin to make your form controls look how yo...

(jQuery) Uniform

A jQuery plugin to make your form controls look how you want them to. Now with HTML-5 attributes!

Works well with jQuery 1.6+, but we've received patches and heard that this works with jQuery 1.3.

Version 4.3.x uses jQuery 3.3.1+ and so far, things look promising.

68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f40696d616e6f762f6a71756572792e756e69666f726d2e7376673f6d61784167653d323539323030303f7374796c653d706c6173746963

68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f417564697468536f6674776f726b732f556e69666f726d2f746f74616c2e7376673f6d61784167653d323539323030303f7374796c653d706c6173746963

68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f417564697468536f6674776f726b732f556e69666f726d2e7376673f6d61784167653d323539323030303f7374796c653d706c6173746963

68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f417564697468536f6674776f726b732f556e69666f726d2e7376673f6d61784167653d323539323030303f7374796c653d706c6173746963

Installation

Packaging of Uniform comes with source SASS files and minified CSS files, ready for consumption in live/production environment. You can install Uniform via one of two methods listed below:

Via NPM

68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f646d2f6a71756572792e756e69666f726d2e737667

68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f64742f6a71756572792e756e69666f726d2e737667

Simply run:

npm install --save @imanov/jquery.uniform

To create minified file, run (though this isn't necessary, as the minified file is already included in the package):

npm run build

Minified source file will be built inside dist/ folder.

Via Public CDN

68747470733a2f2f696d672e736869656c64732e696f2f63646e6a732f762f556e69666f726d2e6a732e7376673f6d61784167653d323539323030303f7374796c653d706c6173746963

68747470733a2f2f646174612e6a7364656c6976722e636f6d2f76312f7061636b6167652f6e706d2f6a71756572792e756e69666f726d2f62616467653f7374796c653d726f756e646564

Un-minified CSS files

For your own development purposes, to get human-readable, un-minified CSS outputs, you will need to install Uniform via NPM (as shown above), install the necessary dependencies through npm install and then run gulp. Doing so will recreate readable CSS files in dist/css folder. Invoking gulp --production however, will recreate minified CSS files (which is default behavior, what we already have in the dist folder).

Implementation

There are two ways to go with this:

Basic Implementation

Basically, you can use the final assets provided in dist folder out of the box.

Stylesheets and Javascript files should be linked in the of your markup (the latter, coming after jQuery):

Or if you are using our bundled version - jquery.uniform.bundled.js file - which already comes with jQuery (beware not to include jQuery twice):

Advanced Implementation

To have more control over your web assets, you can directly work with our SCSS and JS files, by importing them into or bundling with your own assets. Please be advised that our Gulp configuration (via Laravel-Elixir package) includes Auto-prefixer, i.e. browser prefixes are automatically added to CSS during the post-processing of SCSS files. Whatever your post-processing solution will be (Gulp-based or Compass), you need to make sure to include Auto-prefixer in that workflow. Our SCSS source files do not include browser prefixes out of the box!

Usage

See our Wiki page for documentation.

Reporting Bugs

It sure would be handy if you could create a test page to help illustrate bugs. When you use the GitHub Issue Tracker, you could use this jsfiddle to help illustrate your point. Additionally, we have provided some demo pages in /demo folder for you to use.

Even if you don't use these assets, all sorts of feedback is welcome, but narrowing down your problem or providing an example would immediately help narrow down the problem quickly.

Contributor/Developer Assets

We have created a Docker container to help our contributors with development of Uniform.

68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f6175746f6d617465642f617564697468736f6674776f726b732f756e69666f726d2e737667

68747470733a2f2f696d616765732e6d6963726f6261646765722e636f6d2f6261646765732f76657273696f6e2f617564697468736f6674776f726b732f756e69666f726d2e737667

68747470733a2f2f696d616765732e6d6963726f6261646765722e636f6d2f6261646765732f696d6167652f617564697468736f6674776f726b732f756e69666f726d2e737667

68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f70756c6c732f617564697468736f6674776f726b732f756e69666f726d2e737667

Additionally, /dev folder contains following assets, to further enhance our capabilities:

docker folder contains necessary Dockerfile to build the container.

theme-kit contains assets to help you create new themes.

build.sh script, which basically spins a Docker container up and builds the package, using that instance.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值