Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
i20rzslider
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jedife
i20rzslider
Commits
1303593f
Commit
1303593f
authored
Dec 23, 2016
by
Valentin Hervieu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(styling): add a custom style example
parent
e156f84d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
107 additions
and
8 deletions
+107
-8
demo.css
demo/demo.css
+86
-8
demo.js
demo/demo.js
+11
-0
index.html
demo/index.html
+10
-0
No files found.
demo/demo.css
View file @
1303593f
*
{
margin
:
0
;
padding
:
0
;
}
body
{
font-family
:
'Open Sans'
,
sans-serif
;
color
:
#1f2636
;
font-size
:
14px
;
padding-bottom
:
40px
;
}
header
{
background
:
#0db9f0
;
color
:
#fff
;
margin
:
-40px
;
margin-bottom
:
40px
;
text-align
:
center
;
padding
:
40px
0
;
}
h1
{
font-weight
:
300
;
}
h2
{
margin-bottom
:
10px
;}
.wrapper
{
background
:
#fff
;
padding
:
40px
;
}
article
{
margin-bottom
:
10px
;
}
.tab-pane
{
*
{
margin
:
0
;
padding
:
0
;
}
body
{
font-family
:
'Open Sans'
,
sans-serif
;
color
:
#1f2636
;
font-size
:
14px
;
padding-bottom
:
40px
;
}
header
{
background
:
#0db9f0
;
color
:
#fff
;
margin
:
-40px
;
margin-bottom
:
40px
;
text-align
:
center
;
padding
:
40px
0
;
}
h1
{
font-weight
:
300
;
}
h2
{
margin-bottom
:
10px
;
}
.wrapper
{
background
:
#fff
;
padding
:
40px
;
}
article
{
margin-bottom
:
10px
;
}
.tab-pane
{
padding-top
:
10px
;
}
.field-title
{
width
:
100px
;
}
...
...
@@ -15,6 +47,52 @@ article { margin-bottom: 10px; }
.vertical-sliders
{
margin
:
0
;
}
.vertical-sliders
>
div
{
height
:
250px
;
}
.custom-slider.rzslider
.rz-bar
{
background
:
#ffe4d1
;
height
:
2px
;
}
.custom-slider.rzslider
.rz-selection
{
background
:
orange
;
}
.custom-slider.rzslider
.rz-pointer
{
width
:
8px
;
height
:
16px
;
top
:
auto
;
/* to remove the default positioning */
bottom
:
0
;
background-color
:
#333
;
border-top-left-radius
:
3px
;
border-top-right-radius
:
3px
;
}
.custom-slider.rzslider
.rz-pointer
:after
{
display
:
none
;
}
.custom-slider.rzslider
.rz-bubble
{
bottom
:
14px
;
}
.custom-slider.rzslider
.rz-limit
{
font-weight
:
bold
;
color
:
orange
;
}
.custom-slider.rzslider
.rz-tick
{
width
:
1px
;
height
:
10px
;
margin-left
:
4px
;
border-radius
:
0
;
background
:
#ffe4d1
;
top
:
-1px
;
}
.custom-slider.rzslider
.rz-tick.rz-selected
{
background
:
orange
;
}
demo/demo.js
View file @
1303593f
...
...
@@ -17,6 +17,17 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $uibModal) {
}
};
$scope
.
customSlider
=
{
minValue
:
10
,
maxValue
:
90
,
options
:
{
floor
:
0
,
ceil
:
100
,
step
:
10
,
showTicks
:
true
}
};
//Range slider with minLimit and maxLimit config
$scope
.
minMaxLimitSlider
=
{
value
:
50
,
...
...
demo/index.html
View file @
1303593f
...
...
@@ -36,6 +36,16 @@
></rzslider>
</article>
<article>
<h2>
Slider with custom style
</h2>
<rzslider
class=
"custom-slider"
data-rz-slider-model=
"customSlider.minValue"
data-rz-slider-high=
"customSlider.maxValue"
data-rz-slider-options=
"customSlider.options"
></rzslider>
</article>
<article>
<h2>
Range slider with min limit set to 10 and max limit set to 90
</h2>
<rzslider
...
...
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