Skip to content

Commit ba48c0b

Browse files
committed
made minor changes to the control panel
1 parent b4980a3 commit ba48c0b

File tree

7 files changed

+15
-30
lines changed

7 files changed

+15
-30
lines changed

src/components/code/code.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $color-focus: $Dark-Shade-100;
33
$border-code: rgba(31, 32, 65, 0.25);
44
$color-item: #646568;
55
$color-lang-js: #61819d;
6-
$background-copy: #cdd1da;
6+
$background-copy: #4d5567;
77
$color-copy: #fff;
88
$shadow-copy-active: inset -1px 4px 4px 0px rgba(0, 0, 0, 0.129);
99
$color-copy-active: #868686;

src/components/miscellaneous/miscellaneous.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$border-miscellaneous: rgba(31, 32, 65, 0.25);
2-
$background-button: #cdd1da;
2+
$background-button: #4d5567;
33
$color-button: #fff;
44
$shadow-button-active: inset -1px 4px 4px 0px rgba(0, 0, 0, 0.129);
55
$color-button-active: #868686;

src/components/panel/render.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,3 @@ objectPanel[1].createRangeSlider({
3636
grid: true,
3737
gridStep: 33,
3838
});
39-
40-
objectPanel[2].createRangeSlider({
41-
type: 'double',
42-
min: -120,
43-
max: 800,
44-
from: 200,
45-
to: 500,
46-
grid: true,
47-
bar: true,
48-
gridStep: 30,
49-
});

src/components/text-field/text-field.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ mixin text-field(options = {})
1313
if label
1414
= label
1515

16-
input(class=`${BASE_CLASS}__input` type=typeField placeholder=placeholder value='' name=name)
16+
input(class=`${BASE_CLASS}__input` type=typeField placeholder=placeholder value='' name=name aria-label=name)
1717

src/components/toggle/toggle.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ mixin toggle(options = {})
1313

1414
div(class=`${BASE_CLASS}__wrapper`)
1515
label(class=`${BASE_CLASS}__label`)= label
16-
input(class=`${BASE_CLASS}__input` type='checkbox' name='toggle')
16+
input(class=`${BASE_CLASS}__input` type='checkbox' name='toggle' aria-label=header)
1717
span(class=`${BASE_CLASS}__before`)
1818

src/pages/index/index.pug

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,18 @@ block content
88
h1.demo-slider__header Range Slider Fox
99

1010
section.slider
11+
h2(class = 'slider__header') Horizontal view
1112
.slider__panel-wrapper
1213
+panel({theme:'fox'})
1314

1415
section.slider
16+
h2(class = 'slider__header') Vertical view
1517
.slider__panel-wrapper
1618
+panel({theme:'dark'})
17-
18-
section.slider
19-
.slider__panel-wrapper
20-
+panel({theme:'base'})
2119

2220
section.slider
2321
.initialization-plugin
24-
h2(class = 'initialization-plugin__header') Инициализация плагина с помощью data attribute
22+
h2(class = 'initialization-plugin__header') Plugin initialization with data attribute
2523

2624
div(
2725
class = 'initialization-plugin__rangeSliderFox'

src/pages/index/index.scss

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
$shadow-slider: rgba(31, 32, 65, 0.5);
32
$background-slider: #fcfcfc;
43

@@ -21,35 +20,34 @@ $background-slider: #fcfcfc;
2120
box-shadow: 0px 10px 20px $shadow-slider;
2221
min-height: 300px;
2322
background-color: $background-slider;
23+
24+
&__header {
25+
margin-bottom: 40px;
26+
text-align: center;
27+
}
2428
}
2529

2630
.slider__wrap {
2731
margin-top: 60px;
2832
margin-bottom: 60px;
2933
}
3034

31-
.initialization-plugin{
32-
35+
.initialization-plugin {
3336
display: flex;
3437
flex-direction: column;
3538
justify-content: space-around;
3639
min-height: 400px;
3740

38-
39-
&__header{
41+
&__header {
4042
margin-bottom: 40px;
4143
text-align: center;
4244
}
4345

44-
&__dataAttributes{
46+
&__dataAttributes {
4547
border: 1px solid rgba(31, 32, 65, 0.25);
4648
border-radius: 4px;
4749
padding: 10px;
4850
width: 100%;
4951
max-width: 250px;
5052
}
51-
5253
}
53-
54-
55-

0 commit comments

Comments
 (0)