Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
K
kpp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexandr Veselov
kpp
Commits
14a373c2
Commit
14a373c2
authored
Feb 22, 2016
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
range
parent
b326f89b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
140 additions
and
1 deletion
+140
-1
gulpfile.js
gulpfile.js
+1
-1
_blocks_library.html
src/_blocks_library.html
+7
-0
field-range.less
src/less/blocks/field-range.less
+131
-0
style.less
src/less/style.less
+1
-0
No files found.
gulpfile.js
View file @
14a373c2
...
@@ -187,7 +187,7 @@ gulp.task('serve', function () {
...
@@ -187,7 +187,7 @@ gulp.task('serve', function () {
notify
:
false
,
notify
:
false
,
startPath
:
'_blocks_library.html'
startPath
:
'_blocks_library.html'
});
});
browserSync
.
watch
(
'build/**/*.*'
).
on
(
'change'
,
browserSync
.
reload
);
browserSync
.
watch
(
[
'build/**/*.*'
,
'!build/**/*.map.*'
]
).
on
(
'change'
,
browserSync
.
reload
);
});
});
// Задача по умолчанию
// Задача по умолчанию
...
...
src/_blocks_library.html
View file @
14a373c2
...
@@ -385,6 +385,13 @@
...
@@ -385,6 +385,13 @@
<small
class=
"field-select__help-text"
>
Обёртка —
<code>
<
label
>
</code>
.
</small>
<small
class=
"field-select__help-text"
>
Обёртка —
<code>
<
label
>
</code>
.
</small>
</div>
</div>
</label>
</label>
<div
class=
"field-range"
>
<div
class=
"field-range__name"
>
Название поля
</div>
<div
class=
"field-range__input-wrap"
>
<input
class=
"field-range__input"
type=
"range"
>
<div
class=
"field-range__help-text"
>
Пояснительный текст.
</div>
</div>
</div>
<div
class=
"field-file"
>
<div
class=
"field-file"
>
<div
class=
"field-file__name"
>
Название поля
</div>
<div
class=
"field-file__name"
>
Название поля
</div>
<label
class=
"field-file__input-wrap"
>
<label
class=
"field-file__input-wrap"
>
...
...
src/less/blocks/field-range.less
0 → 100644
View file @
14a373c2
.field-range {
display: block;
margin-bottom: (@line-height / 2);
&__name {
font-weight: 700;
display: block;
margin-bottom: round(@line-height / 4, 2);
}
&__input-wrap {}
&__input {
margin-bottom: round(@line-height / 3, 2);
align-self: center;
padding: 0;
width: 100%;
height: 2em;
border-radius: .25rem;
border: none;
background: none;
font-size: inherit;
cursor: pointer;
-webkit-appearance: none;
&::-webkit-slider-runnable-track,
&::-webkit-slider-thumb {
-webkit-appearance: none;
}
&:focus {
outline: 0;
box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.3);
}
// Увы, тут похожие наборы свойств приходится писать порознь.
&::-webkit-slider-runnable-track {
box-sizing: border-box;
border: none;
width: 100%;
height: 0.75em;
border-radius: @border-radius;
}
&::-moz-range-track {
box-sizing: border-box;
border: none;
width: 100%;
height: 0.75em;
border-radius: @border-radius;
}
&::-ms-track {
box-sizing: border-box;
border: none;
width: 100%;
height: 0.75em;
border-radius: @border-radius;
color: transparent;
}
// Увы, тут похожие наборы свойств приходится писать порознь.
&::-webkit-slider-thumb {
margin-top: -.68em;
box-sizing: border-box;
border: none;
padding: 0;
width: 2em;
height: 2em;
border-radius: @border-radius;
box-shadow: none;
cursor: ew-resize;
}
&::-moz-range-thumb {
box-sizing: border-box;
border: none;
padding: 0;
width: 2em;
height: 2em;
border-radius: @border-radius;
box-shadow: none;
cursor: ew-resize;
}
&::-ms-thumb {
box-sizing: border-box;
border: none;
padding: 0;
width: 2em;
height: 2em;
border-radius: @border-radius;
box-shadow: none;
cursor: ew-resize;
}
&::-ms-fill-lower,
&::-ms-tooltip {
display: none;
}
&::-webkit-slider-runnable-track {
background: @gray-lighter;
border: 1px solid @border-color;
}
&::-moz-range-track {
background: @gray-lighter;
border: 1px solid @border-color;
}
&::-ms-track {
background: @gray-lighter;
border: 1px solid @border-color;
}
&::-webkit-slider-thumb {
background: @gray-lighter;
border: 1px solid @border-color;
}
&::-moz-range-thumb {
background: @gray-lighter;
border: 1px solid @border-color;
}
&::-ms-thumb {
background: @gray-lighter;
border: 1px solid @border-color;
}
}
&__help-text {
display: block;
font-size: @font-size--small-percent;
line-height: 1.2em;
color: @text-color--muted;
}
}
src/less/style.less
View file @
14a373c2
...
@@ -15,4 +15,5 @@
...
@@ -15,4 +15,5 @@
@import "blocks/field-radio--custom.less";
@import "blocks/field-radio--custom.less";
@import "blocks/field-select.less";
@import "blocks/field-select.less";
@import "blocks/field-file.less";
@import "blocks/field-file.less";
@import "blocks/field-range.less";
@import "blocks/field-actions.less";
@import "blocks/field-actions.less";
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment