@leapdev/gui 0.2.229 → 0.2.234

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.
Files changed (30) hide show
  1. package/dist/css/4d-bylawyers.css +1 -1
  2. package/dist/css/4d-lawconnect.css +1 -1
  3. package/dist/css/4d-leap-web.css +1 -1
  4. package/dist/css/4d-leap.css +1 -1
  5. package/dist/index.html +2 -2
  6. package/dist/scss/4d/_base.scss +2 -0
  7. package/dist/scss/4d/_content-app.scss +4 -4
  8. package/dist/scss/4d/_variables-bylawyers.scss +37 -123
  9. package/dist/scss/4d/_variables-web.scss +37 -21
  10. package/dist/scss/4d/_variables.scss +36 -19
  11. package/dist/scss/4d/components/datepicker.scss +3 -0
  12. package/dist/scss/4d/components/page.scss +5 -1
  13. package/dist/scss/4d/components/responsive-table.scss +50 -0
  14. package/dist/scss/4d/components/section.scss +15 -1
  15. package/dist/scss/4d/mixins/_all.scss +2 -1
  16. package/dist/scss/4d/mixins/_mobile-device.scss +8 -0
  17. package/dist/scss/4d/overrides/buttons/buttons.scss +20 -0
  18. package/dist/scss/4d/overrides/forms/form-group.scss +13 -0
  19. package/dist/scss/4d/overrides/forms/forms.scss +0 -1
  20. package/dist/scss/4d/overrides/forms/input-group.scss +14 -0
  21. package/dist/scss/4d/overrides/forms/input-options.scss +46 -12
  22. package/dist/scss/4d/overrides/forms/input-select.scss +72 -9
  23. package/dist/scss/4d/overrides/forms/input-text.scss +6 -0
  24. package/dist/scss/4d/overrides/grid/_grid.scss +13 -0
  25. package/dist/scss/4d/overrides/nav/navbar.scss +110 -3
  26. package/dist/scss/4d/overrides/product/_bylawyers.scss +17 -10
  27. package/dist/scss/4d/overrides/product/_leapweb.scss +13 -56
  28. package/dist/scss/4d/overrides/typography/page-header.scss +31 -0
  29. package/package.json +1 -1
  30. package/dist/scss/4d/overrides/forms/input-range.scss +0 -0
@@ -1,9 +1,10 @@
1
1
 
2
2
  // Specific to word-app
3
3
  .section-header {
4
- display: flex;
4
+ display: grid;
5
5
  margin: 0.5rem 0;
6
6
  align-items: center;
7
+ grid-template-columns: auto 1fr;
7
8
 
8
9
  .btn,
9
10
  .btn-link {
@@ -15,8 +16,21 @@
15
16
  }
16
17
  }
17
18
  .section_title {
19
+ > * {
20
+ width: auto;
21
+ overflow-wrap: break-word;
22
+ word-break: break-word;
23
+ white-space: break-word;
24
+ overflow: hidden;
25
+ text-overflow: ellipsis;
26
+ }
27
+
18
28
  h3 {
19
29
  margin-bottom: 0;
20
30
  line-height: 1;
21
31
  }
32
+
33
+ h3, h4 {
34
+ text-transform: uppercase;
35
+ }
22
36
  }
@@ -1 +1,2 @@
1
- @import './chevron';
1
+ @import './chevron';
2
+ @import './mobile-device';
@@ -0,0 +1,8 @@
1
+ @mixin mobile-device-only() {
2
+ @media screen and (max-width: 844px)
3
+ and (-webkit-min-device-pixel-ratio: 2),
4
+ screen and (max-width: 844px)
5
+ and (-webkit-min-device-pixel-ratio: 3) {
6
+ @content;
7
+ }
8
+ }
@@ -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-block, .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
 
@@ -17,6 +17,20 @@
17
17
  background-color: transparent !important;
18
18
  }
19
19
  }
20
+
21
+ .form-group {
22
+ margin-bottom: 0;
23
+
24
+ &.row {
25
+ margin-left: 0;
26
+ margin-right: 0;
27
+
28
+ > .col {
29
+ padding-left: 0;
30
+ padding-right: 0;
31
+ }
32
+ }
33
+ }
20
34
  }
21
35
 
22
36
  .input-group-prepend {
@@ -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;
@@ -1,5 +1,6 @@
1
1
  select {
2
- color: $btn-dropdown-color;
2
+ // color: $btn-dropdown-color;
3
+ color: theme-color('default') !important;
3
4
  text-align: $btn-dropdown-alignment;
4
5
  padding-right: 1rem;
5
6
  outline: none;
@@ -15,11 +16,30 @@ select {
15
16
  &:not([multiple]):not(:hover) {
16
17
  // background-color: $select-bg !important;
17
18
  // border-color: $select-border-color;
18
- }
19
+ background-color: white !important;
20
+ border: 1px solid $select-border-color;
21
+ }
19
22
  }
20
23
 
21
24
  .ng-select .ng-select-container {
22
- border: 1px solid $input-border-color !important;
25
+ box-shadow: none;
26
+ border: 1px solid $select-border-color !important;
27
+
28
+ @if $is-sirius {
29
+ transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
30
+ }
31
+ }
32
+
33
+ @if not $is-sirius {
34
+ .input-group {
35
+ .ng-select .ng-select-container {
36
+ border-color: $gray-var-9;
37
+ }
38
+
39
+ .ng-select-wrapper {
40
+ margin-left: -0.0625rem;
41
+ }
42
+ }
23
43
  }
24
44
 
25
45
  .ng-placeholder {
@@ -32,13 +52,56 @@ ng-select-focused,
32
52
  background-color: #fff;
33
53
  border-color: theme-color('blue-var-3');
34
54
  outline: 0;
35
- box-shadow: 0 0 0 0.2rem rgba(theme-color('primary'),.25) !important;
55
+ // box-shadow: 0 0 0 0.2rem rgba(theme-color('primary'),.25) !important;
36
56
  }
37
57
 
38
- select {
39
- color: theme-color('default') !important;
40
- &:not([multiple]):not(:hover) {
41
- background-color: white !important;
42
- border: 1px solid theme-color('gray-var-9');
58
+ @if $is-sirius {
59
+ .ng-select-opened {
60
+ > .ng-select-container {
61
+ border-color: $select-border-focus-color !important;
62
+ box-shadow: 0 0 0 0.15rem $select-shadow-focus-color !important;
63
+ transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
64
+ }
65
+ }
66
+
67
+ .ng-arrow-wrapper:hover > .ng-arrow {
68
+ border-top-color: #666 !important;
69
+ }
70
+
71
+ .ng-select-opened {
72
+ .ng-arrow, .ng-arrow-wrapper:hover > .ng-arrow {
73
+ border-color: transparent transparent #666 !important;
74
+ }
75
+
76
+ .ng-arrow {
77
+ border-width: 0.1563rem 0.3125rem 0.3125rem;
78
+ }
43
79
  }
44
80
  }
81
+ @else {
82
+ .ng-select .ng-select-container {
83
+ background-color: #e5e5e5 !important;
84
+ height: 1.5635rem !important;
85
+ min-height: 1.5635rem !important;
86
+ min-height: 1.5635rem !important;
87
+ font-size: 0.8125rem;
88
+
89
+ .ng-arrow-wrapper, .ng-arrow {
90
+ width: 1.5625rem !important;
91
+ height: 1.5625rem !important;
92
+ }
93
+
94
+ .ng-arrow {
95
+ display: block;
96
+ border: none !important;
97
+ background-position: calc(100% - #{$chevron-width / 2}) 50%;
98
+ background-repeat: no-repeat;
99
+ background-image: $custom-select-chevron;
100
+ top: 0 !important;
101
+ }
102
+ &:hover {
103
+ background-color: #dceef9 !important;
104
+ border-color: #0078d7 !important;
105
+ }
106
+ }
107
+ }
@@ -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,85 @@
10
10
 
11
11
  .nav-tabs {
12
12
  background-color: $nav-tabs-bg;
13
+
14
+ @if $is-sirius {
15
+ border-bottom: 0.0625rem 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
+ z-index: 1;
30
+
31
+ &::after {
32
+ content: '';
33
+ position: absolute;
34
+ height: 0.125rem;
35
+ width: 100%;
36
+ left: 0;
37
+ bottom: -1px;
38
+ transform: scaleX(0);
39
+ z-index: 10;
40
+
41
+ @if $is-sirius {
42
+ transition: all .25s ease-out;
43
+ }
44
+
45
+
46
+ @include mobile-device-only {
47
+ &::after {
48
+ height: 0.25rem;
49
+ bottom: -0.125rem;
50
+ }
51
+ }
52
+
53
+ }
54
+
55
+ @if $nav-tabs-link-is-uppercase {
56
+ text-transform: uppercase;
57
+ }
58
+
59
+ @if not $is-sirius {
60
+ &, &:hover {
61
+ cursor: default;
62
+ }
63
+ }
16
64
 
17
65
  // IE Fix
18
66
  display: inline-block;
19
67
 
68
+ &:hover {
69
+ color: theme-color('primary');
70
+ background-color: $nav-tabs-link-hover-bg;
71
+
72
+ &::after {
73
+ background: $nav-tabs-link-hover-border;
74
+ transform: scaleX(1);
75
+ }
76
+ }
77
+
20
78
  &:not(.active):hover {
21
- background-color: $navbar-light-hover-bg;
79
+ background-color: $nav-tabs-link-hover-bg;
22
80
  }
81
+
23
82
  &.active {
24
83
  color: $nav-tabs-link-active-color;
25
- @include box-shadow(0 2px 0 0 $nav-tabs-link-active-border);
84
+ &::after {
85
+ background: $nav-tabs-link-active-border;
86
+ transform: scaleX(1);
87
+ }
88
+ }
89
+
90
+ > span {
91
+ letter-spacing: $nav-tabs-link-letter-spacing;
26
92
  }
27
93
  }
28
94
  }
@@ -61,3 +127,44 @@
61
127
  }
62
128
  }
63
129
  }
130
+ // leap-tabs-menu .toolbar {
131
+ // // position: -webkit-sticky;
132
+ // position: fixed;
133
+ // top: 0;
134
+ // display: block;
135
+ // z-index: 1030;
136
+ // }
137
+ @include mobile-device-only {
138
+ leap-tabs-menu .toolbar {
139
+ position: -webkit-sticky;
140
+ position: sticky;
141
+ top: 0;
142
+ z-index: 1500;
143
+
144
+ display: block !important;
145
+ white-space: nowrap;
146
+ width: 100%;
147
+ overflow-x: scroll;
148
+ overflow-y: hidden;
149
+ background-color: white;
150
+ }
151
+ .nav-tabs {
152
+ display: flex !important;
153
+ flex-wrap: nowrap;
154
+ width: 100%;
155
+
156
+ .nav-link {
157
+ display: inline-block;
158
+
159
+ &:not(.activated) {
160
+ position: relative;
161
+ margin-bottom: -0.0625rem;
162
+ border-bottom: 1px solid $border-color;
163
+ }
164
+
165
+ > span {
166
+ display: block;
167
+ }
168
+ }
169
+ }
170
+ }
@@ -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
  }
@@ -16,6 +16,37 @@
16
16
  font-weight: $font-weight-bold;
17
17
  }
18
18
 
19
+ @if not $is-sirius {
20
+ .section_title {
21
+ width: 100%;
22
+ }
23
+ .section_title .h5:first-child,
24
+ .section_title h5:first-child { font-size: 0.75rem; }
25
+
26
+ .section_title .h6:first-child,
27
+ .section_title h6:first-child { font-size: 0.6875rem; }
28
+
29
+ .section_title .h5:first-child,
30
+ .section_title h5:first-child,
31
+ .section_title .h6:first-child,
32
+ .section_title h6:first-child {
33
+ font-weight: 600;
34
+ text-transform: uppercase;
35
+ position: relative;
36
+ white-space: nowrap;
37
+ overflow: hidden;
38
+
39
+ &::after {
40
+ border-top: 1px solid $gray-var-6;
41
+ content: "";
42
+ position: absolute;
43
+ top: 0.5rem;
44
+ width: 100%;
45
+ margin-left: 2%;
46
+ }
47
+ }
48
+ }
49
+
19
50
  .section-subtitle {
20
51
  font-size: $font-size-base;
21
52
  color: var(--primary, theme-color("default"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leapdev/gui",
3
- "version": "0.2.229",
3
+ "version": "0.2.234",
4
4
  "description": "LEAP GUI",
5
5
  "author": "LEAP Dev",
6
6
  "license": "ISC",
File without changes