Skip to content
This repository was archived by the owner on Dec 27, 2021. It is now read-only.

Voral patch 1 #158

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# История изменений

## 2.0.2 <sup>22.10.2017</sup>
- Исправлено: нативный селект выходил вправо за область псевдоселекта, из-за чего пространство справа от псевдоселекта становилось кликабельным.

## 2.0.1 <sup>29.08.2017</sup>
- Изменено: в отмеченном чекбоксе теперь галочка вместо квадрата.
- Исправлено: неверный путь в параметре `main` файла _package.json_.
- Исправлено: для `<input type="number">` не срабатывало событие `input` при нажатии на переключатели.

## 2.0.0 <sup>08.05.2017</sup>
- Добавлено: вызов события `click` для `<input type="checkbox">` и `<input type="radio">` ([#130](https://github.com/Dimox/jQueryFormStyler/pull/130)).
- Изменено: все обязательные стили вынесены из скрипта в отдельный файл - _jquery.formstyler.css_, а оформление - в _jquery.formstyler.theme.css_.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# jQuery Form Styler <sup>[2.0.0](https://github.com/Dimox/jQueryFormStyler/blob/master/CHANGELOG.md)</sup>
# jQuery Form Styler <sup>[2.0.2](https://github.com/Dimox/jQueryFormStyler/blob/master/CHANGELOG.md)</sup>

jQuery-плагин для стилизации элементов HTML-форм:

Expand All @@ -12,7 +12,7 @@ jQuery-плагин для стилизации элементов HTML-форм

- [Страница с примерами](https://dimox.github.io/jQueryFormStyler/demo/)
- [Домашняя страница плагина](http://dimox.name/jquery-form-styler/)
- [Плагин в CDN jsDelivr](http://www.jsdelivr.com/#!jquery.formstyler)
- [Плагин в CDN jsDelivr](https://www.jsdelivr.com/package/npm/jquery-form-styler) [![](https://data.jsdelivr.com/v1/package/npm/jquery-form-styler/badge)](https://www.jsdelivr.com/package/npm/jquery-form-styler)

## Лицензия

Expand Down
6 changes: 3 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "jquery.form-styler",
"version": "2.0.0",
"version": "2.0.2",
"main": [
"jquery.formstyler.min.js",
"jquery.formstyler.css"
"dist/jquery.formstyler.js",
"dist/jquery.formstyler.css"
],
"description": "jQuery-плагин для стилизации элементов HTML-форм",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.formstyler.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
.jq-select-multiple select {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
opacity: 0;
Expand Down
10 changes: 6 additions & 4 deletions dist/jquery.formstyler.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* jQuery Form Styler v2.0.0
* jQuery Form Styler v2.0.2
* https://github.com/Dimox/jQueryFormStyler
*
* Copyright 2012-2017 Dimox (http://dimox.name/)
* Released under the MIT license.
*
* Date: 2017.05.08
* Date: 2017.10.22
*
*/

Expand Down Expand Up @@ -300,6 +300,7 @@

// end file

// number
} else if (el.is('input[type="number"]')) {

var numberOutput = function() {
Expand Down Expand Up @@ -379,7 +380,7 @@
clearTimeout(timeout);
clearInterval(interval);
}).on('mouseup', 'div.jq-number__spin', function() {
el.change();
el.change().trigger('input');
});
el.on('focus.styler', function() {
number.addClass('focused');
Expand Down Expand Up @@ -437,6 +438,7 @@
function makeList() {
for (var i = 0; i < option.length; i++) {
var op = option.eq(i);
if (op.prop('hidden')) continue;
var li = '',
liClass = '',
liClasses = '',
Expand Down Expand Up @@ -1104,4 +1106,4 @@
}
onDocumentClick.registered = false;

}));
}));
4 changes: 2 additions & 2 deletions dist/jquery.formstyler.min.js

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions dist/jquery.formstyler.theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
border-radius: 3px;
}
.jq-checkbox.checked .jq-checkbox__div {
width: 12px;
height: 12px;
margin: 2px 0 0 2px;
border-radius: 2px;
background: #666;
box-shadow: inset 0 -3px 6px #AAA;
width: 8px;
height: 4px;
margin: 3px 0 0 3px;
border-bottom: 2px solid #666;
border-left: 2px solid #666;
-webkit-transform: rotate(-50deg);
transform: rotate(-50deg);
}
.jq-radio {
border-radius: 50%;
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var path = {
},
};

gulp.task('minifyJs', function() {
gulp.task('minify-js', function() {
gulp.src(path.src.js)
.pipe(uglify())
.pipe(header(head, {pkg}))
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "jquery-form-styler",
"version": "2.0.0",
"version": "2.0.2",
"description": "jQuery-плагин для стилизации элементов HTML-форм",
"main": "jquery.formstyler.min.js",
"main": "dist/jquery.formstyler.min.js",
"author": "Dimox (http://dimox.name/)",
"contributors": [
"Sergey Slipchenko <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions src/jquery.formstyler.styl
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
position absolute
top 0
left 0
right 0
bottom 0
width 100%
height 100%
margin 0
padding 0
opacity 0
Expand Down
12 changes: 6 additions & 6 deletions src/jquery.formstyler.theme.styl
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
border-radius 3px
&.checked
.jq-checkbox__div
width 12px
height 12px
margin 2px 0 0 2px
border-radius 2px
background #666
box-shadow inset 0 -3px 6px #AAA
width 8px
height 4px
margin 3px 0 0 3px
border-left 2px solid #666
border-bottom 2px solid #666
transform rotate(-50deg)

.jq-radio
border-radius 50%
Expand Down