@leapdev/gui 0.2.229 → 0.2.230

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.
@@ -3,6 +3,11 @@
3
3
  color: $body-color;
4
4
  }
5
5
 
6
+ // Min width so we don't have short buttons
7
+ .btn:not(.btn-icon-only), .btn:not(.btn-link) {
8
+ min-width: 7.5rem;
9
+ }
10
+
6
11
  .btn {
7
12
  &:disabled {
8
13
  color: $btn-disabled-color;
@@ -45,3 +50,18 @@
45
50
  color: $white !important;
46
51
  }
47
52
  }
53
+
54
+ @include mobile-device-only {
55
+ // .btn:not(.btn-block) {
56
+ // width: 100%;
57
+ // display: block;
58
+ // margin-bottom: 1rem;
59
+ // }
60
+ }
61
+
62
+ // Properly style [block] buttons on page_footer
63
+ @include mobile-device-only {
64
+ .page_footer .col:not(:last-child) .btn-block {
65
+ margin-bottom: 0.5rem;
66
+ }
67
+ }
@@ -5,4 +5,17 @@
5
5
  .card & {
6
6
  margin-bottom: 0;
7
7
  }
8
+
9
+ label, .form-check-label, .form-label {
10
+ font-size: $label-font-size;
11
+ font-weight: $label-font-weight;
12
+ color: $label-font-color;
13
+ letter-spacing: 0.01rem;
14
+ }
8
15
  }
16
+
17
+ .form-group {
18
+ @include mobile-device-only {
19
+ margin-bottom: 1rem !important;
20
+ }
21
+ }
@@ -5,7 +5,6 @@
5
5
  @import "input-select";
6
6
  @import "input-text";
7
7
  @import "input-group";
8
- @import "input-range";
9
8
  @import "legend";
10
9
  @import "tables";
11
10
 
@@ -1,3 +1,7 @@
1
+ .form-check {
2
+ padding-left: $input-4d-options-to-text-whitespace;
3
+ }
4
+
1
5
  .form-check, .form-check-inline {
2
6
  position: relative;
3
7
 
@@ -7,7 +11,6 @@
7
11
  height: $input-4d-options-dimension;
8
12
  width: $input-4d-options-dimension;
9
13
  border: $input-4d-options-border-width solid $input-4d-checkbox-default-border-color;
10
-
11
14
  background-color: $white;
12
15
  outline: none;
13
16
  margin: 0;
@@ -17,18 +20,38 @@
17
20
  }
18
21
 
19
22
  > input[type="checkbox"] {
20
- border-radius: $border-radius-sm;
23
+ border-radius: $input-4d-checkbox-border-radius;
24
+
25
+ @if $is-sirius {
26
+ transition: box-shadow .15s ease-in-out;
27
+ }
28
+
21
29
  &:before {
22
30
  position: absolute;
23
- top: 0.05rem;
24
- left: -0.08rem;
31
+ top: -0.0625rem;
32
+ left: -0.0625rem;
25
33
  line-height: 0.6;
26
34
  font-size: 0.97rem;
27
35
  text-align: center;
28
36
  }
29
37
 
38
+ &:checked {
39
+ background-color: $input-4d-checkbox-checked-bg-color;
40
+ border-color: $input-4d-checkbox-checked-border-color;
41
+
42
+ &:focus, &:active {
43
+ border-color: $input-4d-checkbox-active-border-color;
44
+ box-shadow: $input-btn-focus-box-shadow;
45
+ }
46
+ }
47
+
30
48
  &:checked:before {
31
- content: '\2713';
49
+ content: '';
50
+ width: $input-4d-options-dimension;
51
+ height: $input-4d-options-dimension;
52
+ background-repeat: none;
53
+ background-position: center center;
54
+ background-image: $custom-checkbox-indicator-icon-checked;
32
55
  }
33
56
 
34
57
  &:disabled {
@@ -37,6 +60,7 @@
37
60
 
38
61
  &:hover {
39
62
  border-color: $input-4d-checkbox-hover-border-color;
63
+ box-shadow: $input-4d-checkbox-hover-boxshadow;
40
64
  color: $input-4d-checkbox-hover-text-color;
41
65
  }
42
66
 
@@ -52,20 +76,32 @@
52
76
  }
53
77
 
54
78
  > input[type="radio"] {
55
- border-radius: $input-4d-options-dimension;
79
+ border-radius: $input-4d-options-dimension;
80
+
81
+ @if $is-sirius {
82
+ transition: box-shadow .15s ease-in-out;
83
+ }
84
+
56
85
  &:before {
57
86
  position: absolute;
58
87
  $top: $input-4d-radio-tick-dimension / 2;
59
- top: calc(50% - 0.2186rem);
60
- left: calc(50% - 0.2186rem);
88
+ top: calc(50% - #{$top});
89
+ left: calc(50% - #{$top});
61
90
  width: $input-4d-radio-tick-dimension;
62
91
  height: $input-4d-radio-tick-dimension;
63
92
  border-radius: 50%;
64
93
  background-color: $input-4d-radio-default-border-color;
65
94
  }
66
95
 
67
- &:checked:before {
68
- content: '';
96
+ &:checked {
97
+ background-color: $input-4d-checkbox-checked-bg-color;
98
+ &:before {
99
+ content: '';
100
+ background-color: $input-4d-radio-active-bg-color;
101
+ }
102
+ &:focus, &:active {
103
+ box-shadow: $input-btn-focus-box-shadow;
104
+ }
69
105
  }
70
106
 
71
107
  &:disabled {
@@ -80,7 +116,6 @@
80
116
  }
81
117
 
82
118
  &:active {
83
- background-color: $input-4d-radio-active-bg-color;
84
119
  border-color: $input-4d-radio-active-border-color;
85
120
  &:before {
86
121
  background-color: $input-4d-radio-active-text-color;
@@ -94,7 +129,6 @@
94
129
  }
95
130
 
96
131
  .form-check-inline {
97
- padding-left: $input-4d-options-to-text-whitespace;
98
132
  margin-right: 0;
99
133
  & ~ & {
100
134
  margin-left: $form-check-inline-margin-x;
@@ -13,13 +13,18 @@ select {
13
13
  }
14
14
 
15
15
  &:not([multiple]):not(:hover) {
16
- // background-color: $select-bg !important;
17
- // border-color: $select-border-color;
16
+ background-color: $select-bg !important;
17
+ border-color: $select-border-color;
18
18
  }
19
19
  }
20
20
 
21
21
  .ng-select .ng-select-container {
22
- border: 1px solid $input-border-color !important;
22
+ box-shadow: none;
23
+ border: 1px solid $select-border-color !important;
24
+
25
+ @if $is-sirius {
26
+ transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
27
+ }
23
28
  }
24
29
 
25
30
  .ng-placeholder {
@@ -32,13 +37,62 @@ ng-select-focused,
32
37
  background-color: #fff;
33
38
  border-color: theme-color('blue-var-3');
34
39
  outline: 0;
35
- box-shadow: 0 0 0 0.2rem rgba(theme-color('primary'),.25) !important;
40
+ // box-shadow: 0 0 0 0.2rem rgba(theme-color('primary'),.25) !important;
36
41
  }
37
42
 
38
43
  select {
39
44
  color: theme-color('default') !important;
40
45
  &:not([multiple]):not(:hover) {
41
46
  background-color: white !important;
42
- border: 1px solid theme-color('gray-var-9');
47
+ border: 1px solid $select-border-color;
43
48
  }
44
49
  }
50
+
51
+ @if $is-sirius {
52
+ .ng-select-opened {
53
+ > .ng-select-container {
54
+ border-color: $select-border-focus-color !important;
55
+ box-shadow: 0 0 0 0.15rem $select-shadow-focus-color !important;
56
+ transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
57
+ }
58
+ }
59
+
60
+ .ng-arrow-wrapper:hover > .ng-arrow {
61
+ border-top-color: #666 !important;
62
+ }
63
+
64
+ .ng-select-opened {
65
+ .ng-arrow, .ng-arrow-wrapper:hover > .ng-arrow {
66
+ border-color: transparent transparent #666 !important;
67
+ }
68
+
69
+ .ng-arrow {
70
+ border-width: 0.1563rem 0.3125rem 0.3125rem;
71
+ }
72
+ }
73
+ }
74
+ @else {
75
+ .ng-select .ng-select-container {
76
+ background-color: #e5e5e5 !important;
77
+ min-height: calc(1.371em + 0.2rem + 0.25rem) !important;
78
+ font-size: 0.8125rem;
79
+
80
+ .ng-arrow-wrapper, .ng-arrow {
81
+ width: 1.5625rem !important;
82
+ height: 1.5625rem !important;
83
+ }
84
+
85
+ .ng-arrow {
86
+ display: block;
87
+ border: none !important;
88
+ background-position: calc(100% - #{$chevron-width / 2}) 50%;
89
+ background-repeat: no-repeat;
90
+ background-image: $custom-select-chevron;
91
+ top: 0 !important;
92
+ }
93
+ &:hover {
94
+ background-color: #dceef9 !important;
95
+ border-color: #0078d7 !important;
96
+ }
97
+ }
98
+ }
@@ -7,4 +7,10 @@ input {
7
7
  &[readonly], &:disabled {
8
8
  border-color: $input-readonly-border-color;
9
9
  }
10
+ }
11
+
12
+ .form-control {
13
+ &:focus {
14
+ border-color: $input-focus-border-color;
15
+ }
10
16
  }
@@ -0,0 +1,13 @@
1
+ @include mobile-device-only {
2
+ ::-webkit-scrollbar {
3
+ display: none;
4
+ -ms-overflow-style: none;
5
+ overflow: -moz-scrollbars-none;
6
+ }
7
+
8
+ .col, [class*="col-"], [class*=" col-"] {
9
+ flex: 100% !important;
10
+ max-width: 100% !important;
11
+ min-width: 100% !important;
12
+ }
13
+ }
@@ -10,19 +10,74 @@
10
10
 
11
11
  .nav-tabs {
12
12
  background-color: $nav-tabs-bg;
13
+
14
+ @if $is-sirius {
15
+ border-bottom: 1px solid $border-color;
16
+ }
17
+
13
18
  .nav-link {
19
+ background-color: transparent;
14
20
  color: $body-color;
15
- padding: $nav-tabs-stacked-padding;
21
+ padding: $nav-tabs-link-padding-x $nav-tabs-link-padding-y;
22
+ font-weight: $nav-tabs-link-font-weight;
23
+ font-size: $nav-tabs-link-font-size;
24
+ border-radius: 0;
25
+ position: relative;
26
+ min-height: $nav-tabs-link-min-height;
27
+ max-width: $nav-tabs-link-max-width;
28
+ min-width: $nav-tabs-link-min-width;
29
+
30
+ &::after {
31
+ content: '';
32
+ position: absolute;
33
+ height: 2px;
34
+ width: 100%;
35
+ left: 0;
36
+ bottom: -1px;
37
+ transform: scaleX(0);
38
+
39
+ @if $is-sirius {
40
+ transition: all .25s ease-out;
41
+ }
42
+ }
43
+
44
+ @if $nav-tabs-link-is-uppercase {
45
+ text-transform: uppercase;
46
+ }
47
+
48
+ @if not $is-sirius {
49
+ &, &:hover {
50
+ cursor: default;
51
+ }
52
+ }
16
53
 
17
54
  // IE Fix
18
55
  display: inline-block;
19
56
 
57
+ &:hover {
58
+ color: theme-color('primary');
59
+ background-color: $nav-tabs-link-hover-bg;
60
+
61
+ &::after {
62
+ background: $nav-tabs-link-hover-border;
63
+ transform: scaleX(1);
64
+ }
65
+ }
66
+
20
67
  &:not(.active):hover {
21
- background-color: $navbar-light-hover-bg;
68
+ background-color: $nav-tabs-link-hover-bg;
22
69
  }
70
+
23
71
  &.active {
24
72
  color: $nav-tabs-link-active-color;
25
- @include box-shadow(0 2px 0 0 $nav-tabs-link-active-border);
73
+ &::after {
74
+ background: $nav-tabs-link-active-border;
75
+ transform: scaleX(1);
76
+ }
77
+ }
78
+
79
+ > span {
80
+ letter-spacing: $nav-tabs-link-letter-spacing;
26
81
  }
27
82
  }
28
83
  }
@@ -61,3 +116,27 @@
61
116
  }
62
117
  }
63
118
  }
119
+
120
+ @include mobile-device-only {
121
+ leap-tabs-menu .toolbar {
122
+ position: sticky;
123
+ top: 0;
124
+ z-index: 1030;
125
+ }
126
+ .nav-tabs {
127
+ display: block !important;
128
+ white-space: nowrap;
129
+ width: 100%;
130
+ overflow-x: scroll;
131
+ overflow-y: hidden;
132
+ background-color: white;
133
+
134
+ .nav-link {
135
+ display: inline-block;
136
+
137
+ > span {
138
+ display: block;
139
+ }
140
+ }
141
+ }
142
+ }
@@ -68,22 +68,29 @@ h3 {
68
68
  letter-spacing: 0.2px;
69
69
  }
70
70
 
71
+ // .form-check, .form-check-inline {
72
+ // .form-check-label {
73
+ // margin-left: 0.5rem;
74
+ // }
75
+ // > input[type="radio"]:not(.form-check-inline) {
76
+ // top: 0.2rem !important;
77
+ // }
78
+ // > input[type="checkbox"] {
79
+ // top: 0.2rem !important;
80
+ // &:before {
81
+ // top: 0.09rem !important;
82
+ // left: 0 !important;
83
+ // }
84
+ // }
85
+ // }
86
+
71
87
  .form-check, .form-check-inline {
72
- .form-check-label {
73
- margin-left: 0.5rem;
74
- }
75
88
  > input[type="radio"]:not(.form-check-inline) {
76
89
  top: 0.2rem !important;
77
90
  }
78
- > input[type="checkbox"] {
79
- top: 0.2rem !important;
80
- &:before {
81
- top: 0.09rem !important;
82
- left: 0 !important;
83
- }
84
- }
85
91
  }
86
92
 
93
+
87
94
  .card {
88
95
  border-radius: $border-radius-sm;
89
96
  }
@@ -1,15 +1,22 @@
1
-
2
-
3
1
  .ng-dropdown-panel.ng-select-bottom {
4
2
  border-color: $border-color !important;
5
3
  }
6
4
 
5
+ .ng-select-container {
6
+ min-height: $input-height !important;
7
+ border-radius: $border-radius-sm !important;
8
+
9
+ .ng-value-container {
10
+ line-height: $line-height-base !important;
11
+ padding: $input-padding-y $input-padding-x !important;
12
+ }
13
+ }
14
+
7
15
  .btn {
8
16
  border-radius: $border-radius !important;
9
17
  padding: $input-padding-y $input-padding-x !important;
10
18
  }
11
19
 
12
-
13
20
  .alert {
14
21
  border-radius: $border-radius-sm !important;
15
22
  font-size: $font-size-base;
@@ -21,54 +28,20 @@
21
28
  }
22
29
  }
23
30
 
24
-
25
31
  .form-group {
26
32
  margin-bottom: 0.35rem !important;
27
33
  }
28
34
 
29
-
30
- .ng-select-container {
31
- min-height: $input-height !important;
32
- border-radius: $border-radius-sm !important;
33
-
34
-
35
- .ng-value-container {
36
- line-height: $line-height-base !important;
37
- padding: $input-padding-y $input-padding-x !important;
38
- }
39
- }
40
-
41
-
42
35
  .form-check, .form-check-inline {
43
- .form-check-label {
44
- margin-left: 0.5rem;
45
- }
46
36
  > input[type="radio"]:not(.form-check-inline) {
47
37
  top: 0.2rem !important;
48
38
  }
49
- > input[type="checkbox"] {
50
- top: 0.2rem !important;
51
- &:before {
52
- top: 0.09rem !important;
53
- left: 0 !important;
54
- }
55
- }
56
39
  }
57
-
58
-
59
-
60
- .ng-dropdown-panel.ng-select-bottom {
61
- border-color: $border-color !important;
62
- }
63
-
64
- .alert {
65
- border-radius: $border-radius-sm !important;
66
- .close {
67
- font-size: $font-size-lg;
40
+ .form-group {
41
+ @include mobile-device-only {
42
+ margin-bottom: 1rem !important;
68
43
  }
69
44
  }
70
-
71
-
72
45
  .card {
73
46
  border-radius: $border-radius-sm;
74
47
  }
@@ -107,22 +80,6 @@ h3 {
107
80
  letter-spacing: -0.5px;
108
81
  }
109
82
 
110
- .form-check, .form-check-inline {
111
- .form-check-label {
112
- margin-left: 0.5rem;
113
- }
114
- > input[type="radio"]:not(.form-check-inline) {
115
- top: 0.2rem !important;
116
- }
117
- > input[type="checkbox"] {
118
- top: 0.2rem !important;
119
- &:before {
120
- top: 0.09rem !important;
121
- left: 0 !important;
122
- }
123
- }
124
- }
125
-
126
83
  .card {
127
84
  border-radius: $border-radius-sm;
128
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leapdev/gui",
3
- "version": "0.2.229",
3
+ "version": "0.2.230",
4
4
  "description": "LEAP GUI",
5
5
  "author": "LEAP Dev",
6
6
  "license": "ISC",
File without changes