nice-elements 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -1
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +318 -161
- package/dist/nice.min.js +1 -1
- package/dist/style.css +262 -114
- package/dist/style.css.map +3 -2
- package/dist/style.min.css +2 -2
- package/package.json +1 -1
- package/src/components/nice-calendar/nice-calendar.html +3 -2
- package/src/components/nice-calendar/nice-calendar.scss +9 -5
- package/src/components/nice-checkbox/nice-checkbox.html +1 -3
- package/src/components/nice-checkbox/nice-checkbox.scss +12 -12
- package/src/components/nice-choice/nice-choice.html +3 -1
- package/src/components/nice-choice/nice-choice.scss +14 -3
- package/src/components/nice-date/nice-date.html +5 -4
- package/src/components/nice-date/nice-date.js +50 -52
- package/src/components/nice-date/nice-date.scss +29 -6
- package/src/components/nice-date-input/nice-date-input.html +41 -0
- package/src/components/nice-date-input/nice-date-input.js +97 -0
- package/src/components/nice-date-input/nice-date-input.scss +49 -0
- package/src/components/nice-date-range/nice-date-range.html +3 -1
- package/src/components/nice-datetime-picker/nice-datetime-picker.html +5 -19
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +6 -1
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +5 -3
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +25 -26
- package/src/components/nice-dropdown/nice-dropdown.html +3 -1
- package/src/components/nice-dropdown/nice-dropdown.scss +1 -0
- package/src/components/nice-dtp/nice-dtp.html +12 -12
- package/src/components/nice-help/nice-help.html +2 -1
- package/src/components/nice-help/nice-help.scss +7 -0
- package/src/components/nice-input/nice-input.html +9 -42
- package/src/components/nice-input/nice-input.js +28 -28
- package/src/components/nice-input/nice-input.scss +27 -20
- package/src/components/nice-number/nice-number.html +6 -2
- package/src/components/nice-number/nice-number.scss +15 -3
- package/src/components/nice-quantity/nice-quantity.html +6 -2
- package/src/components/nice-quantity/nice-quantity.scss +11 -0
- package/src/components/nice-search/nice-search.html +9 -20
- package/src/components/nice-search2/nice-search2.html +4 -2
- package/src/components/nice-time-picker/nice-time-picker.html +21 -27
- package/src/components/nice-time-picker/nice-time-picker.scss +11 -32
- package/src/components/nice-upload/nice-upload.html +10 -7
- package/src/components/nice-upload/nice-upload.scss +26 -31
- package/src/components/nice-yesno/nice-yesno.html +2 -2
- package/src/components/nice-yesno/nice-yesno.scss +13 -0
- package/src/styles/_nice-buttons.scss +22 -9
- package/src/styles/_nice-common.scss +57 -13
- package/src/styles/_nice.scss +2 -1
- package/src/styles/_variables.scss +3 -0
|
@@ -8,34 +8,23 @@
|
|
|
8
8
|
|
|
9
9
|
<!------------------------- Field ------------------------->
|
|
10
10
|
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
11
|
-
<div
|
|
12
|
-
class="input-group"
|
|
13
|
-
ng-class="{
|
|
11
|
+
<div class="input-group" ng-class="{
|
|
14
12
|
'disabled': isDisabled,
|
|
15
13
|
'has-warning': !isDisabled && form.$invalid && form.$dirty,
|
|
16
14
|
'has-success': !isDisabled && form.$valid && form.$dirty}
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
<input
|
|
20
|
-
class="form-control"
|
|
21
|
-
type="text"
|
|
22
|
-
id="{{ id }}"
|
|
23
|
-
ng-model="modelString"
|
|
24
|
-
ng-keypress="keypress($event)"
|
|
25
|
-
placeholder="{{ placeholder }}"
|
|
26
|
-
ng-disabled="isDisabled"
|
|
27
|
-
ng-change="updateSearch()"
|
|
28
|
-
ng-required="required"
|
|
29
|
-
tabindex="{{ tabIndex }}"
|
|
30
|
-
>
|
|
15
|
+
">
|
|
16
|
+
<input class="form-control" type="text" id="{{ id }}" ng-model="modelString" ng-keypress="keypress($event)" placeholder="{{ placeholder }}" ng-disabled="isDisabled" ng-change="updateSearch()" ng-required="required" tabindex="{{ tabIndex }}">
|
|
31
17
|
|
|
32
18
|
<span class="input-group-addon clickable" ng-click="search()" ng-if="!model">
|
|
33
|
-
<i ng-show="!loading" class="fa fa-search"
|
|
34
|
-
<i ng-show="loading" class="fa fa-refresh fa-spin"></i>
|
|
19
|
+
<!-- <i ng-show="!loading" class="fa fa-search"></i>
|
|
20
|
+
<i ng-show="loading" class="fa fa-refresh fa-spin"></i> -->
|
|
21
|
+
<nice-icon ng-show="!loading" icon="icon-search"></nice-icon>
|
|
22
|
+
<nice-icon ng-show="loading" icon="icon-loader" class="d-block nice-animation-spin"></nice-icon>
|
|
35
23
|
</span>
|
|
36
24
|
|
|
37
25
|
<span class="input-group-addon clickable" ng-click="remove()" ng-if="model">
|
|
38
|
-
<i ng-show="!loading" class="fa fa-remove"
|
|
26
|
+
<!-- <i ng-show="!loading" class="fa fa-remove"></i> -->
|
|
27
|
+
<nice-icon ng-show="!loading" icon="icon-x"></nice-icon>
|
|
39
28
|
</span>
|
|
40
29
|
</div>
|
|
41
30
|
</div>
|
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
<input class="form-control" type="text" id="{{ id }}" ng-model="model" placeholder="{{ placeholder }}" ng-disabled="isDisabled" ng-change="updateSearch()" ng-focus="onFocus()" tabindex="{{ tabIndex }}">
|
|
13
13
|
|
|
14
14
|
<span class="input-group-addon clickable" ng-click="onFocus()">
|
|
15
|
-
<
|
|
16
|
-
<
|
|
15
|
+
<nice-icon ng-show="!loading" icon="icon-search"></nice-icon>
|
|
16
|
+
<nice-icon ng-show="loading" icon="icon-loader" class="d-block nice-animation-spin"></nice-icon>
|
|
17
|
+
<!-- <i ng-show="!loading" class="fa fa-search"></i>
|
|
18
|
+
<i ng-show="loading" class="fa fa-refresh fa-spin"></i> -->
|
|
17
19
|
</span>
|
|
18
20
|
</div>
|
|
19
21
|
|
|
@@ -8,41 +8,35 @@
|
|
|
8
8
|
|
|
9
9
|
<!------------------------- Field ------------------------->
|
|
10
10
|
<div class="nice-field col-xs-12" ng-class="fieldWidth ? fieldWidth : 'col-sm-8'">
|
|
11
|
-
<div
|
|
12
|
-
class="input-group"
|
|
13
|
-
ng-class="{
|
|
11
|
+
<div class="input-group" ng-class="{
|
|
14
12
|
'has-warning': !isDisabled && forma.$invalid && forma.$dirty,
|
|
15
13
|
'disabled': isDisabled
|
|
16
|
-
}"
|
|
17
|
-
>
|
|
14
|
+
}">
|
|
18
15
|
<input type="text" class="form-control" ng-model="modelString" ng-keyup="$event.keyCode == 13 && validateDate()" ng-blur="validateDate()">
|
|
19
|
-
<span class="input-group-addon clickable" ng-click="open = !open"
|
|
16
|
+
<span class="input-group-addon clickable" ng-click="open = !open">
|
|
17
|
+
<nice-icon icon="icon-clock"></nice-icon>
|
|
18
|
+
</span>
|
|
20
19
|
</div>
|
|
21
20
|
|
|
22
21
|
<div class="nice-time-picker-dropdown" ng-if="open">
|
|
23
|
-
<div
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
</
|
|
27
|
-
<div class="
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
<div>
|
|
23
|
+
<button class="btn btn-sm btn-block btn-default" ng-click="changeHour(true)">
|
|
24
|
+
<nice-icon icon="icon-chevron-up"></nice-icon>
|
|
25
|
+
</button>
|
|
26
|
+
<div class="numbers">{{ hours }}</div>
|
|
27
|
+
<button class="btn btn-sm btn-block btn-default" ng-click="changeHour(false)">
|
|
28
|
+
<nice-icon icon="icon-chevron-down"></nice-icon>
|
|
29
|
+
</button>
|
|
30
30
|
</div>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<button ng-click="changeHour(false)"><i class="fa fa-chevron-down"></i></button>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="col-xs-6">
|
|
42
|
-
<button ng-click="changeMinutes(false)"><i class="fa fa-chevron-down"></i></button>
|
|
43
|
-
</div>
|
|
31
|
+
<div>
|
|
32
|
+
<button class="btn btn-sm btn-block btn-default" ng-click="changeMinutes(true)">
|
|
33
|
+
<nice-icon icon="icon-chevron-up"></nice-icon>
|
|
34
|
+
</button>
|
|
35
|
+
<div class="numbers">{{ minutes }}</div>
|
|
36
|
+
<button class="btn btn-sm btn-block btn-default" ng-click="changeMinutes(false)">
|
|
37
|
+
<nice-icon icon="icon-chevron-down"></nice-icon>
|
|
38
|
+
</button>
|
|
44
39
|
</div>
|
|
45
|
-
|
|
46
40
|
</div>
|
|
47
41
|
</div>
|
|
48
42
|
</div>
|
|
@@ -1,54 +1,33 @@
|
|
|
1
|
-
.nice-time-picker{
|
|
1
|
+
.nice-time-picker {
|
|
2
2
|
position: relative;
|
|
3
3
|
|
|
4
|
-
.nice-time-picker-dropdown{
|
|
4
|
+
.nice-time-picker-dropdown {
|
|
5
5
|
z-index: 900;
|
|
6
6
|
border-radius: $nice-border-radius;
|
|
7
7
|
position: absolute;
|
|
8
8
|
top: 100%;
|
|
9
9
|
left: 15px;
|
|
10
|
-
width:
|
|
10
|
+
width: 130px;
|
|
11
11
|
background: white;
|
|
12
12
|
border: 1px solid $nice-border-color;
|
|
13
13
|
box-shadow: $nice-box-shadow;
|
|
14
14
|
padding: 10px;
|
|
15
15
|
margin-top: 0.5rem;
|
|
16
|
-
text-align: center;
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
line-height: 1.6;
|
|
22
|
-
}
|
|
17
|
+
display: grid;
|
|
18
|
+
grid-template-columns: 1fr 1fr;
|
|
19
|
+
gap: 10px;
|
|
23
20
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
border: 0;
|
|
21
|
+
.numbers {
|
|
22
|
+
font-size: 1.5rem;
|
|
27
23
|
color: $nice-font-color;
|
|
28
24
|
line-height: 1;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
background: none;
|
|
32
|
-
|
|
33
|
-
&:hover{
|
|
34
|
-
background: $nice-base-color;
|
|
35
|
-
color: #ffffff;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&:focus{
|
|
39
|
-
outline: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:active{
|
|
43
|
-
outline: 0;
|
|
44
|
-
background: darken($nice-base-color, 10%);
|
|
45
|
-
color: #ffffff;
|
|
46
|
-
}
|
|
25
|
+
text-align: center;
|
|
26
|
+
padding: 5px 0;
|
|
47
27
|
}
|
|
48
28
|
}
|
|
49
29
|
|
|
50
|
-
|
|
51
|
-
.nice-background{
|
|
30
|
+
.nice-background {
|
|
52
31
|
position: fixed;
|
|
53
32
|
top: 0;
|
|
54
33
|
left: 0;
|
|
@@ -8,14 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
<!------------------------- Field ------------------------->
|
|
10
10
|
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
<div class="nice-upload-area">
|
|
12
|
+
<div class="input-area" ng-class="{ 'dragging': dragging || draggingGlobal }">
|
|
13
|
+
<div class="middle-text" ng-if="!imageSource && !loading">
|
|
14
|
+
<nice-icon icon="icon-upload"></nice-icon>
|
|
15
|
+
<div class="text text-placeholder" ng-if="!dragging">{{ text }}</div>
|
|
16
|
+
<div class="text text-placeholder" ng-if="dragging" translate translate-group="Nice">Drop file here</div>
|
|
17
|
+
<div class="error" ng-if="error">{{ error }}</div>
|
|
18
|
+
</div>
|
|
19
|
+
<img ng-if="imageSource" data-ng-src="{{ imageSource }}" />
|
|
17
20
|
</div>
|
|
18
|
-
<
|
|
21
|
+
<input class="input-file" type="file" accept="{{ accept }}" ng-model="file" ng-disabled="isDisabled || loading" />
|
|
19
22
|
<nice-loader fulldiv="true" ng-if="loading"></nice-loader>
|
|
20
23
|
</div>
|
|
21
24
|
</div>
|
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
.nice-upload-area {
|
|
14
|
+
height: 150px;
|
|
15
|
+
position: relative;
|
|
16
|
+
|
|
17
|
+
border-radius: var(--nice-border-radius);
|
|
18
|
+
border: 1px solid var(--nice-border-color);
|
|
19
|
+
}
|
|
20
|
+
|
|
13
21
|
input {
|
|
14
22
|
position: absolute;
|
|
15
23
|
top: 0;
|
|
@@ -17,7 +25,6 @@
|
|
|
17
25
|
width: 100%;
|
|
18
26
|
height: 100%;
|
|
19
27
|
opacity: 0;
|
|
20
|
-
z-index: 10;
|
|
21
28
|
cursor: pointer;
|
|
22
29
|
|
|
23
30
|
&:disabled {
|
|
@@ -26,15 +33,17 @@
|
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
.input-area {
|
|
29
|
-
border-radius: $nice-border-radius;
|
|
30
36
|
width: 100%;
|
|
31
|
-
height:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
height: 100%;
|
|
38
|
+
top: 0;
|
|
39
|
+
left: 0;
|
|
40
|
+
position: absolute;
|
|
41
|
+
padding: 1rem;
|
|
42
|
+
border-radius: $nice-border-radius;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
display: flex;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
align-items: center;
|
|
38
47
|
|
|
39
48
|
&.dragging {
|
|
40
49
|
outline: 2px dashed var(--nice-primary-color);
|
|
@@ -48,6 +57,11 @@
|
|
|
48
57
|
flex-direction: column;
|
|
49
58
|
height: 100%;
|
|
50
59
|
|
|
60
|
+
svg {
|
|
61
|
+
opacity: 0.6;
|
|
62
|
+
margin-bottom: 2px;
|
|
63
|
+
}
|
|
64
|
+
|
|
51
65
|
.text-placeholder {
|
|
52
66
|
font-size: 0.9em;
|
|
53
67
|
opacity: 0.6;
|
|
@@ -59,28 +73,9 @@
|
|
|
59
73
|
}
|
|
60
74
|
|
|
61
75
|
img {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.loading {
|
|
68
|
-
position: absolute;
|
|
69
|
-
width: 100%;
|
|
70
|
-
height: 100%;
|
|
71
|
-
top: 0;
|
|
72
|
-
left: 0;
|
|
73
|
-
background-color: rgba(255, 255, 255, 0.50);
|
|
74
|
-
|
|
75
|
-
.nice-loader {
|
|
76
|
-
position: absolute;
|
|
77
|
-
top: 50%;
|
|
78
|
-
left: 50%;
|
|
79
|
-
width: 40px;
|
|
80
|
-
height: 40px;
|
|
81
|
-
margin-top: -20px;
|
|
82
|
-
margin-left: -20px;
|
|
83
|
-
padding: 0;
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 100%;
|
|
78
|
+
object-fit: contain;
|
|
84
79
|
}
|
|
85
80
|
}
|
|
86
81
|
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
<!------------------------- Field ------------------------->
|
|
10
10
|
<div class="nice-field col-xs-12" ng-class="fieldWidth ? fieldWidth : 'col-sm-8'">
|
|
11
11
|
<div class="yesno-wrapper noselect" ng-class="{ 'disabled': isDisabled }">
|
|
12
|
-
<
|
|
13
|
-
<
|
|
12
|
+
<button class="yesno-yes-bg" ng-click="switch()" tabindex="-1">{{ yes }}</button>
|
|
13
|
+
<button class="yesno-no-bg" ng-click="switch()" tabindex="-1">{{ no }}</button>
|
|
14
14
|
<button class="yesno-button btn btn-primary" ng-class="buttonClass" ng-click="switch()">{{ state }}</button>
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
height: 34px;
|
|
21
21
|
position: relative;
|
|
22
22
|
|
|
23
|
+
&:focus-within {
|
|
24
|
+
@extend .nice-focus;
|
|
25
|
+
}
|
|
26
|
+
|
|
23
27
|
.yesno-yes-bg,
|
|
24
28
|
.yesno-no-bg,
|
|
25
29
|
.yesno-button {
|
|
@@ -36,6 +40,11 @@
|
|
|
36
40
|
position: absolute;
|
|
37
41
|
top: 0;
|
|
38
42
|
bottom: 0;
|
|
43
|
+
appearance: none;
|
|
44
|
+
background: none;
|
|
45
|
+
border: 0 none;
|
|
46
|
+
padding: 0;
|
|
47
|
+
line-height: 1;
|
|
39
48
|
}
|
|
40
49
|
|
|
41
50
|
.yesno-no-bg {
|
|
@@ -63,6 +72,10 @@
|
|
|
63
72
|
&:hover {
|
|
64
73
|
background-color: darken($nice-yesno-slider-bg, 5%);
|
|
65
74
|
}
|
|
75
|
+
|
|
76
|
+
&:focus {
|
|
77
|
+
outline: 0 none;
|
|
78
|
+
}
|
|
66
79
|
}
|
|
67
80
|
|
|
68
81
|
.yesno-button-no {
|
|
@@ -8,6 +8,16 @@
|
|
|
8
8
|
min-height: 34px;
|
|
9
9
|
position: relative;
|
|
10
10
|
|
|
11
|
+
&.btn-icon {
|
|
12
|
+
padding: 6px;
|
|
13
|
+
width: 34px;
|
|
14
|
+
|
|
15
|
+
svg {
|
|
16
|
+
width: 20px;
|
|
17
|
+
height: 20px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
11
21
|
&:hover,
|
|
12
22
|
&:focus {
|
|
13
23
|
color: white;
|
|
@@ -306,6 +316,11 @@
|
|
|
306
316
|
padding: 0.2rem 1.5rem;
|
|
307
317
|
min-height: 42px;
|
|
308
318
|
|
|
319
|
+
&.btn-icon {
|
|
320
|
+
padding: 0.2rem;
|
|
321
|
+
width: 42px;
|
|
322
|
+
}
|
|
323
|
+
|
|
309
324
|
svg {
|
|
310
325
|
width: 24px;
|
|
311
326
|
height: 24px;
|
|
@@ -317,21 +332,19 @@
|
|
|
317
332
|
// -------------------------------- Btn medium --------------------------------
|
|
318
333
|
.btn-medium {
|
|
319
334
|
height: 40px !important;
|
|
335
|
+
|
|
336
|
+
&.btn-icon {
|
|
337
|
+
width: 40px;
|
|
338
|
+
}
|
|
320
339
|
}
|
|
321
340
|
|
|
322
341
|
// -------------------------------- Btn sm --------------------------------
|
|
323
342
|
.btn-sm {
|
|
324
343
|
min-height: 30px !important;
|
|
325
344
|
padding: 4px 10px;
|
|
326
|
-
}
|
|
327
345
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
svg,
|
|
333
|
-
img {
|
|
334
|
-
width: 24px;
|
|
335
|
-
height: 24px;
|
|
346
|
+
&.btn-icon {
|
|
347
|
+
padding: 4px;
|
|
348
|
+
height: 30px;
|
|
336
349
|
}
|
|
337
350
|
}
|
|
@@ -34,6 +34,19 @@ label.nice {
|
|
|
34
34
|
|
|
35
35
|
.input-group,
|
|
36
36
|
.form-group {
|
|
37
|
+
.form-control {
|
|
38
|
+
z-index: unset;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.input-group-btn:last-child>.btn,
|
|
42
|
+
.input-group-btn:last-child>.btn-group {
|
|
43
|
+
z-index: unset;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.form-control:not(:last-child) {
|
|
47
|
+
border-right: 0 none;
|
|
48
|
+
}
|
|
49
|
+
|
|
37
50
|
&:focus-within {
|
|
38
51
|
@extend .nice-focus;
|
|
39
52
|
border-radius: var(--nice-border-radius);
|
|
@@ -79,40 +92,47 @@ label.nice {
|
|
|
79
92
|
background: $nice-input-bg;
|
|
80
93
|
border: 1px solid $nice-border-color;
|
|
81
94
|
box-shadow: 0 0 0;
|
|
95
|
+
color: var(--nice-font-color);
|
|
82
96
|
|
|
83
97
|
&:active,
|
|
84
98
|
&:focus {
|
|
85
|
-
border-color: $nice-focus-border;
|
|
99
|
+
// border-color: $nice-focus-border;
|
|
86
100
|
box-shadow: 0 0 0;
|
|
87
101
|
|
|
88
102
|
&+.input-group-addon {
|
|
89
|
-
border-color: $nice-focus-border;
|
|
90
|
-
background-color: $nice-focus-border;
|
|
91
|
-
color: white;
|
|
103
|
+
// border-color: $nice-focus-border;
|
|
104
|
+
// background-color: $nice-focus-border;
|
|
105
|
+
// color: white;
|
|
92
106
|
}
|
|
93
107
|
}
|
|
94
108
|
|
|
95
109
|
&:disabled {
|
|
96
110
|
background: $nice-input-disabled-bg;
|
|
97
|
-
border-color: $nice-input-disabled-border;
|
|
111
|
+
// border-color: $nice-input-disabled-border;
|
|
98
112
|
opacity: 0.65;
|
|
99
113
|
}
|
|
100
114
|
}
|
|
101
115
|
|
|
102
116
|
.input-group-addon {
|
|
103
|
-
background: $nice-addon-bg;
|
|
104
|
-
// border: 0 none;
|
|
105
117
|
border-top-right-radius: $nice-border-radius;
|
|
106
118
|
border-bottom-right-radius: $nice-border-radius;
|
|
107
|
-
color: $nice-font-color;
|
|
108
119
|
border: 1px solid $nice-border-color;
|
|
109
120
|
border-left: 0 none;
|
|
121
|
+
background: $nice-input-bg;
|
|
122
|
+
padding: 0 9px;
|
|
123
|
+
color: var(--nice-font-color);
|
|
124
|
+
|
|
125
|
+
svg {
|
|
126
|
+
height: 16px;
|
|
127
|
+
width: 16px;
|
|
128
|
+
}
|
|
110
129
|
|
|
111
130
|
&.clickable {
|
|
112
131
|
&:hover {
|
|
113
132
|
cursor: pointer;
|
|
114
|
-
background-color: $nice-base-color;
|
|
115
|
-
color:
|
|
133
|
+
// background-color: $nice-base-color;
|
|
134
|
+
background-color: var(--nice-hover-color);
|
|
135
|
+
// color: white;
|
|
116
136
|
}
|
|
117
137
|
}
|
|
118
138
|
}
|
|
@@ -317,6 +337,8 @@ p.nice {
|
|
|
317
337
|
}
|
|
318
338
|
|
|
319
339
|
.has-warning {
|
|
340
|
+
outline-color: $nice-input-invalid !important;
|
|
341
|
+
|
|
320
342
|
.form-control {
|
|
321
343
|
border-color: $nice-input-invalid !important;
|
|
322
344
|
}
|
|
@@ -334,12 +356,34 @@ p.nice {
|
|
|
334
356
|
}
|
|
335
357
|
|
|
336
358
|
.input-group-addon {
|
|
337
|
-
background: $nice-input-valid;
|
|
338
|
-
border-color: $nice-input-valid;
|
|
339
|
-
color:
|
|
359
|
+
// background: $nice-input-valid;
|
|
360
|
+
// border-color: $nice-input-valid;
|
|
361
|
+
color: var(--nice-font-color);
|
|
340
362
|
}
|
|
341
363
|
}
|
|
342
364
|
|
|
343
365
|
.nice-highligh {
|
|
344
366
|
background: yellow;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.nice-animation-spin {
|
|
370
|
+
animation: nice-spin 2s infinite linear;
|
|
371
|
+
|
|
372
|
+
&.ng-hide {
|
|
373
|
+
display: none;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
@keyframes nice-spin {
|
|
378
|
+
from {
|
|
379
|
+
transform: rotate(0deg);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
to {
|
|
383
|
+
transform: rotate(360deg);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.d-block {
|
|
388
|
+
display: block;
|
|
345
389
|
}
|
package/src/styles/_nice.scss
CHANGED
|
@@ -53,4 +53,5 @@
|
|
|
53
53
|
@import "../components/nice-tooltip/nice-tooltip";
|
|
54
54
|
@import "../components/nice-popup/nice-popup";
|
|
55
55
|
@import "../components/nice-icon/nice-icon";
|
|
56
|
-
@import "../components/nice-toast/nice-toast";
|
|
56
|
+
@import "../components/nice-toast/nice-toast";
|
|
57
|
+
@import "../components/nice-date-input/nice-date-input.scss";
|
|
@@ -138,6 +138,9 @@ $nice-table-bg-active: #f5f5f5 !default;
|
|
|
138
138
|
--nice-font-weight: #{$nice-font-weight};
|
|
139
139
|
--nice-font-color: #{$nice-font-color};
|
|
140
140
|
|
|
141
|
+
// ---------- Common ----------
|
|
142
|
+
--nice-hover-color: #{$nice-hover-color};
|
|
143
|
+
|
|
141
144
|
// ---------- Colors ----------
|
|
142
145
|
--nice-primary-color: #{$nice-base-color};
|
|
143
146
|
--nice-primary-color-lighter: #{$nice-base-color-lighter};
|