nice-elements 1.9.7 → 1.9.8

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/dist/style.css CHANGED
@@ -39,6 +39,7 @@
39
39
  --nice-card-border: #cbd4d9;
40
40
  --nice-card-bg: white;
41
41
  --nice-card-padding: 2rem;
42
+ --nice-input-bg: white;
42
43
  }
43
44
 
44
45
  .noselect, .nice-choice li {
@@ -78,7 +79,7 @@ label.nice {
78
79
  }
79
80
 
80
81
  .nice-focus, .nice-component .input-group:focus-within,
81
- .nice-component .form-group:focus-within, .btn.focus, .btn.active.focus, .nice-table.nice-table-settings .btn.focus.nice-table-row:hover, .btn.active:focus, .nice-table.nice-table-settings .btn.nice-table-row:focus:hover, .btn.focus:active, .btn:active:focus, .btn:focus, .nice-dropdown .btn-dropdown:active, .nice-search .nice-dropdown-empty .btn-dropdown:active, .nice-dropdown .btn-dropdown:focus, .nice-search .nice-dropdown-empty .btn-dropdown:focus, .nice-dropdown-old .btn-dropdown:active, .nice-dropdown-old .btn-dropdown:focus, .nice-yesno .yesno-wrapper:focus-within, .nice-choice li .choice-checkbox:focus, .nice-dropdown-date select:active, .nice-dropdown-date select:focus, .nice-upload .nice-field:focus-within .input-area {
82
+ .nice-component .form-group:focus-within, .btn.focus, .btn.active.focus, .nice-table.nice-table-settings .btn.focus.nice-table-row:hover, .btn.active:focus, .nice-table.nice-table-settings .btn.nice-table-row:focus:hover, .btn.focus:active, .btn:active:focus, .btn:focus, .nice-dropdown .btn-dropdown:active, .nice-search .nice-dropdown-empty .btn-dropdown:active, .nice-dropdown .btn-dropdown:focus, .nice-search .nice-dropdown-empty .btn-dropdown:focus, .nice-dropdown-old .btn-dropdown:active, .nice-dropdown-old .btn-dropdown:focus, .nice-yesno .yesno-wrapper:focus-within, .nice-choice li .choice-checkbox:focus, .nice-dropdown-date select:active, .nice-dropdown-date select:focus, .nice-upload .nice-field:focus-within .input-area, .nice-toggle:focus-within .nice-toggle-field {
82
83
  outline: 2px solid;
83
84
  outline-color: var(--nice-primary-color);
84
85
  outline-offset: 2px;
@@ -4945,6 +4946,59 @@ p.nice {
4945
4946
  color: white;
4946
4947
  }
4947
4948
 
4949
+ .nice-toggle .nice-title {
4950
+ min-height: 27px;
4951
+ }
4952
+
4953
+ .nice-toggle.nice-component-inline .row {
4954
+ display: flex;
4955
+ align-items: center;
4956
+ margin: 0;
4957
+ }
4958
+
4959
+ .nice-toggle.nice-component-inline .row nice-title {
4960
+ order: 2;
4961
+ }
4962
+
4963
+ .nice-toggle.nice-component-inline .row .nice-title {
4964
+ margin: 0;
4965
+ padding: 0;
4966
+ margin-left: 1rem;
4967
+ line-height: 25px;
4968
+ }
4969
+
4970
+ .nice-toggle.nice-component-inline .row .nice-field {
4971
+ margin: 0;
4972
+ padding: 0;
4973
+ width: auto;
4974
+ order: 1;
4975
+ }
4976
+
4977
+ .nice-toggle .nice-toggle-field {
4978
+ border: 1px solid var(--nice-border-color);
4979
+ background: var(--nice-input-bg);
4980
+ border-radius: 1rem;
4981
+ position: relative;
4982
+ width: 50px;
4983
+ height: 25px;
4984
+ }
4985
+
4986
+ .nice-toggle .nice-toggle-field .nice-toggle-field-handle {
4987
+ position: absolute;
4988
+ top: 2px;
4989
+ left: 2px;
4990
+ width: 19px;
4991
+ height: 19px;
4992
+ background: var(--nice-border-color);
4993
+ border-radius: 50%;
4994
+ transition: left 0.3s ease-in-out;
4995
+ }
4996
+
4997
+ .nice-toggle .nice-toggle-field .nice-toggle-field-handle.active, .nice-toggle .nice-toggle-field .nice-table.nice-table-settings .nice-toggle-field-handle.nice-table-row:hover, .nice-table.nice-table-settings .nice-toggle .nice-toggle-field .nice-toggle-field-handle.nice-table-row:hover {
4998
+ background: var(--nice-primary-color);
4999
+ left: calc(100% - 22px);
5000
+ }
5001
+
4948
5002
  .nice-multilangual-modal .nice-multilangual-languages .nice-multilangual-language {
4949
5003
  margin-bottom: 1rem;
4950
5004
  display: flex;