@agorapulse/ui-theme 0.0.1

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 (36) hide show
  1. package/agorapulse-ui-theme-0.0.1.tgz +0 -0
  2. package/assets/lib-ui-theme/fonts/averta/AvertaStd-Black.otf +0 -0
  3. package/assets/lib-ui-theme/fonts/averta/AvertaStd-Bold.otf +0 -0
  4. package/assets/lib-ui-theme/fonts/averta/AvertaStd-Extrabold.otf +0 -0
  5. package/assets/lib-ui-theme/fonts/averta/AvertaStd-Regular.otf +0 -0
  6. package/assets/lib-ui-theme/fonts/averta/AvertaStd-Semibold.otf +0 -0
  7. package/assets/lib-ui-theme/style/_colors.scss +323 -0
  8. package/assets/lib-ui-theme/style/_font-face.scss +35 -0
  9. package/assets/lib-ui-theme/style/_grid.scss +166 -0
  10. package/assets/lib-ui-theme/style/_helpers.scss +78 -0
  11. package/assets/lib-ui-theme/style/_mat-typography.scss +85 -0
  12. package/assets/lib-ui-theme/style/_variables.scss +104 -0
  13. package/assets/lib-ui-theme/style/components-custom-style/_alert.scss +35 -0
  14. package/assets/lib-ui-theme/style/components-custom-style/_clickable-text.scss +8 -0
  15. package/assets/lib-ui-theme/style/components-custom-style/_form.scss +35 -0
  16. package/assets/lib-ui-theme/style/components-custom-style/_input-error.scss +7 -0
  17. package/assets/lib-ui-theme/style/components-custom-style/_input.scss +127 -0
  18. package/assets/lib-ui-theme/style/components-custom-style/_mat-button-toggle-group.scss +68 -0
  19. package/assets/lib-ui-theme/style/components-custom-style/_mat-button.scss +434 -0
  20. package/assets/lib-ui-theme/style/components-custom-style/_mat-checkbox.scss +103 -0
  21. package/assets/lib-ui-theme/style/components-custom-style/_mat-dialog.scss +36 -0
  22. package/assets/lib-ui-theme/style/components-custom-style/_mat-divider.scss +3 -0
  23. package/assets/lib-ui-theme/style/components-custom-style/_mat-expansion-panel.scss +21 -0
  24. package/assets/lib-ui-theme/style/components-custom-style/_mat-list.scss +19 -0
  25. package/assets/lib-ui-theme/style/components-custom-style/_mat-menu.scss +181 -0
  26. package/assets/lib-ui-theme/style/components-custom-style/_mat-radio-button.scss +86 -0
  27. package/assets/lib-ui-theme/style/components-custom-style/_mat-slide-toggle.scss +45 -0
  28. package/assets/lib-ui-theme/style/components-custom-style/_mat-snack-bar.scss +40 -0
  29. package/assets/lib-ui-theme/style/components-custom-style/_ng-select.scss +130 -0
  30. package/assets/lib-ui-theme/style/components-custom-style/_notification.scss +48 -0
  31. package/assets/lib-ui-theme/style/components-custom-style/_reduction.scss +14 -0
  32. package/assets/lib-ui-theme/style/components-custom-style/_select.scss +16 -0
  33. package/assets/lib-ui-theme/style/components-custom-style/_sign.scss +10 -0
  34. package/assets/lib-ui-theme/style/theme.scss +77 -0
  35. package/ng-package.json +4 -0
  36. package/package.json +15 -0
@@ -0,0 +1,181 @@
1
+ @import 'assets/lib-ui-theme/style/variables';
2
+
3
+ .mat-menu-panel:not(.pop-menu) {
4
+ box-shadow: 0 7px 50px rgba(0, 0, 0, 0.08);
5
+ min-width: unset !important;
6
+ border-radius: 4px;
7
+ background-color: $color-white;
8
+
9
+ .mat-menu-item {
10
+ color: map_get($colors-grey, 100);
11
+ height: unset;
12
+ line-height: $font-line-height;
13
+ padding: $padding-s $padding-m;
14
+ display: flex;
15
+ font-size: $font-size;
16
+ background: none;
17
+
18
+ &::after {
19
+ color: map_get($colors-grey, 100);
20
+ }
21
+
22
+ &:hover:not([disabled]), &.mat-menu-item-highlighted:not([disabled]) {
23
+ background-color: map_get($colors-electric-blue, 10);
24
+ color: map_get($colors-electric-blue, 100);
25
+ &::after {
26
+ color: map_get($colors-electric-blue, 100);
27
+ }
28
+ ap-symbol .svg {
29
+ fill: map_get($colors-electric-blue, 100) !important;
30
+ }
31
+ }
32
+
33
+ ap-symbol {
34
+ padding-right: $padding-s;
35
+ color: map_get($colors-grey, 60);
36
+ }
37
+ }
38
+ }
39
+
40
+ .mat-menu-panel.pop-menu {
41
+ max-width: unset;
42
+ background-color: white;
43
+ padding: 0px;
44
+ border: none!important;
45
+ box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.05);
46
+
47
+ &.shadow {
48
+ filter: drop-shadow(0 0 1px rgba(0, 0, 0, .25))
49
+ }
50
+
51
+ &.shadow-no-border {
52
+ box-shadow: 0px 7px 50px rgba(0, 0, 0, 0.08);
53
+ }
54
+
55
+ &.arrow-left{
56
+ background: transparent;
57
+ .mat-menu-content {
58
+ margin-left: 8px;
59
+ }
60
+ }
61
+ &.arrow-top{
62
+ background: transparent;
63
+ .mat-menu-content {
64
+ margin-top: 8px;
65
+ }
66
+ }
67
+ &.arrow-right{
68
+ background: transparent;
69
+ .mat-menu-content {
70
+ margin-right: 8px;
71
+ }
72
+ }
73
+ &.arrow-bottom{
74
+ background: transparent;
75
+ .mat-menu-content {
76
+ margin-bottom: 8px;
77
+ }
78
+ }
79
+ .mat-menu-content {
80
+ background-color: white;
81
+ padding: 0px;
82
+ position: relative;
83
+
84
+ .arrow-before {
85
+ background-color: $color-pale-grey;
86
+ /*border: 5px solid black;
87
+ border-color: transparent transparent $color-white $color-white;*/
88
+ //box-shadow: -3px 3px 3px 0 rgba(0, 0, 0, 0.05);
89
+ content: '';
90
+ display: block;
91
+ position: absolute;
92
+ width: 8px;
93
+ height: 8px;
94
+ transform: rotate(135deg);
95
+ z-index: 99999;
96
+ &.arrow-left{
97
+ bottom: 12px;
98
+ left: -4px;
99
+ -webkit-transform: rotate(45deg);
100
+ transform: rotate(45deg);
101
+ }
102
+ &.arrow-right{
103
+ bottom: 12px;
104
+ right: -4px;
105
+ -webkit-transform: rotate(45deg);
106
+ transform: rotate(45deg);
107
+ }
108
+ &.arrow-top{
109
+ top: -4px;
110
+ left: 50%;
111
+ -webkit-transform: rotate(45deg);
112
+ transform: rotate(45deg);
113
+ //box-shadow: -3px 0px 0px 0px rgba(0, 0, 0, 0.05);
114
+ }
115
+ &.arrow-bottom{
116
+ bottom: -4px;
117
+ left: 50%;
118
+ -webkit-transform: rotate(45deg);
119
+ transform: rotate(45deg);
120
+ //box-shadow: -3px 0px 0px 0px rgba(0, 0, 0, 0.05);
121
+ }
122
+ }
123
+ .arrow-before::after {
124
+ display: block;
125
+ position: absolute;
126
+ width: inherit;
127
+ height: inherit;
128
+ background-color: $color-white;
129
+ content: ' ';
130
+ }
131
+
132
+ .arrow-before.arrow-top::after {
133
+ top: 1px;
134
+ right: -1px;
135
+ }
136
+
137
+ .arrow-before.arrow-left::after {
138
+ right: -1px;
139
+ top: -1px;
140
+ }
141
+
142
+ .arrow-before.arrow-right::after {
143
+ right: 1px;
144
+ top: 1px;
145
+ }
146
+ .arrow-before.arrow-bottom::after {
147
+ top: -1px;
148
+ right: 1px;
149
+ }
150
+ }
151
+
152
+ .mat-menu-item {
153
+ line-height: unset;
154
+ }
155
+
156
+ &.no-background {
157
+ background-color: transparent;
158
+ .mat-menu-content {
159
+ background-color: transparent;
160
+ }
161
+ }
162
+ }
163
+
164
+ .mat-menu-panel.button-dropdown {
165
+ margin-bottom: $padding-sm;
166
+ .mat-menu-item {
167
+ font-weight: $font-weight-bold;
168
+ display: flex;
169
+ flex-direction: column;
170
+ .caption {
171
+ font-weight: normal;
172
+ color: map_get($colors-grey, 60);
173
+ margin-top: 0px;
174
+ }
175
+ &:hover {
176
+ .caption {
177
+ color: map_get($colors-electric-blue, 85);
178
+ }
179
+ }
180
+ }
181
+ }
@@ -0,0 +1,86 @@
1
+ @import 'assets/lib-ui-theme/style/variables';
2
+
3
+ @mixin radio-button-state-style($color) {
4
+ .mat-radio-button:not(.mat-radio-disabled) {
5
+ .mat-radio-outer-circle {
6
+ border-color: $color;
7
+ }
8
+ &.mat-radio-checked {
9
+ .mat-radio-inner-circle {
10
+ background-color: $color;
11
+ }
12
+ }
13
+ }
14
+ }
15
+
16
+ .mat-radio-button {
17
+ margin-right: $padding-m;
18
+ .mat-radio-container {
19
+ height: 16px;
20
+ width: 16px;
21
+ .mat-radio-inner-circle {
22
+ border-color: $form-control-default-border-color;
23
+ left: -2px;
24
+ top: -2px;
25
+ }
26
+ .mat-radio-outer-circle {
27
+ border-color: $form-control-default-border-color;
28
+ border-width: 1px;
29
+ height: 16px;
30
+ width: 16px;
31
+ }
32
+ }
33
+ .mat-radio-label-content {
34
+ color: $form-control-default-font-color;
35
+ }
36
+ // Checked
37
+ &.mat-radio-checked:not(.mat-radio-disabled) {
38
+ .mat-radio-container {
39
+ .mat-radio-outer-circle {
40
+ border-color: $form-control-selected-border-color;
41
+ }
42
+ }
43
+ .mat-radio-label-content {
44
+ color: $form-control-selected-font-color;
45
+ }
46
+ }
47
+ // Disabled
48
+ &.mat-radio-disabled {
49
+ .mat-radio-outer-circle {
50
+ background-color: $form-control-disabled-background-color;
51
+ border-color: $form-control-disabled-border-color;
52
+ }
53
+ &.mat-radio-checked {
54
+ .mat-radio-inner-circle {
55
+ background-color: $form-control-disabled-border-color;
56
+ }
57
+ .mat-radio-outer-circle {
58
+ border-color: $form-control-disabled-border-color;
59
+ }
60
+ }
61
+ .mat-radio-label-content {
62
+ color: $form-control-disabled-font-color;
63
+ }
64
+ }
65
+ }
66
+
67
+ .mat-radio-group {
68
+ // Invalid
69
+ &.invalid,
70
+ &.ng-invalid.ng-touched {
71
+ @include radio-button-state-style($color-error);
72
+ }
73
+ // Valid
74
+ &.valid {
75
+ @include radio-button-state-style($color-success);
76
+ }
77
+ }
78
+
79
+ form.submitted {
80
+ .mat-radio-group {
81
+ // Invalid
82
+ &.ng-invalid {
83
+ @include radio-button-state-style($color-error);
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,45 @@
1
+ @import 'assets/lib-ui-theme/style/variables';
2
+
3
+ .mat-slide-toggle {
4
+ .mat-slide-toggle-bar {
5
+ background-color: $form-control-default-background-color;
6
+ border-radius: 16px;
7
+ box-shadow: none;
8
+ height: 16px;
9
+ width: 32px;
10
+ .mat-slide-toggle-thumb-container {
11
+ top: 2px;
12
+ left: 2px;
13
+ .mat-slide-toggle-thumb {
14
+ background-color: $color-white;
15
+ box-shadow: none;
16
+ height: 12px;
17
+ width: 12px;
18
+ }
19
+ }
20
+ }
21
+ .mat-slide-toggle-ripple {
22
+ display: none;
23
+ }
24
+ &.mat-disabled {
25
+ opacity: 1 !important;
26
+ .mat-slide-toggle-bar {
27
+ background-color: $form-control-disabled-selected-background-color;
28
+ }
29
+ .mat-slide-toggle-content {
30
+ color: $form-control-disabled-font-color;
31
+ }
32
+ }
33
+ &.mat-checked {
34
+ .mat-slide-toggle-bar {
35
+ background-color: $form-control-selected-background-color;
36
+ .mat-slide-toggle-thumb-container {
37
+ top: 2px;
38
+ left: 2px;
39
+ }
40
+ }
41
+ .mat-slide-toggle-content {
42
+ color: $form-control-selected-font-color;
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,40 @@
1
+ @import 'assets/lib-ui-theme/style/variables';
2
+
3
+ snack-bar-container.mat-snack-bar-container {
4
+ min-width: 300px;
5
+ max-width: 900px;
6
+ border-radius: $border-radius;
7
+ padding: $padding-ml $padding-ml;
8
+ background-position: left;
9
+ background-position-x: $padding-ml;
10
+ background-repeat: no-repeat;
11
+ box-shadow: none;
12
+
13
+ &.error {
14
+ background-color: $color-error;
15
+ background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 20C11.9778 20 13.9112 19.4135 15.5557 18.3147C17.2002 17.2159 18.4819 15.6541 19.2388 13.8268C19.9957 11.9996 20.1937 9.98891 19.8078 8.0491C19.422 6.10929 18.4696 4.32746 17.0711 2.92894C15.6725 1.53041 13.8907 0.578004 11.9509 0.192152C10.0111 -0.1937 8.00043 0.00433289 6.17316 0.761209C4.3459 1.51809 2.78412 2.79981 1.6853 4.4443C0.58649 6.08879 0 8.02219 0 10C0.00299199 12.6512 1.05752 15.1931 2.93224 17.0678C4.80695 18.9425 7.34875 19.997 10 20ZM5.69565 7.54087C5.6148 7.46011 5.55066 7.36421 5.5069 7.25865C5.46314 7.15308 5.44062 7.03993 5.44062 6.92566C5.44062 6.81138 5.46314 6.69823 5.5069 6.59266C5.55066 6.4871 5.6148 6.3912 5.69565 6.31044L6.31043 5.69566C6.39119 5.61481 6.4871 5.55067 6.59266 5.50691C6.69822 5.46315 6.81138 5.44062 6.92565 5.44062C7.03993 5.44062 7.15308 5.46315 7.25864 5.50691C7.36421 5.55067 7.46011 5.61481 7.54087 5.69566L9.84609 8C9.86628 8.02025 9.89027 8.03631 9.91668 8.04727C9.94309 8.05823 9.9714 8.06387 10 8.06387C10.0286 8.06387 10.0569 8.05823 10.0833 8.04727C10.1097 8.03631 10.1337 8.02025 10.1539 8L12.4591 5.69566C12.5399 5.61481 12.6358 5.55067 12.7414 5.50691C12.8469 5.46315 12.9601 5.44062 13.0743 5.44062C13.1886 5.44062 13.3018 5.46315 13.4073 5.50691C13.5129 5.55067 13.6088 5.61481 13.6896 5.69566L14.3043 6.31044C14.3852 6.3912 14.4493 6.4871 14.4931 6.59266C14.5369 6.69823 14.5594 6.81138 14.5594 6.92566C14.5594 7.03993 14.5369 7.15308 14.4931 7.25865C14.4493 7.36421 14.3852 7.46011 14.3043 7.54087L12 9.84609C11.9798 9.86628 11.9637 9.89027 11.9527 9.91668C11.9418 9.94309 11.9361 9.97141 11.9361 10C11.9361 10.0286 11.9418 10.0569 11.9527 10.0833C11.9637 10.1097 11.9798 10.1337 12 10.1539L14.3061 12.4591C14.3869 12.5399 14.4511 12.6358 14.4948 12.7414C14.5386 12.8469 14.5611 12.9601 14.5611 13.0743C14.5611 13.1886 14.5386 13.3018 14.4948 13.4073C14.4511 13.5129 14.3869 13.6088 14.3061 13.6896L13.6913 14.3044C13.6105 14.3852 13.5146 14.4493 13.4091 14.4931C13.3035 14.5369 13.1904 14.5594 13.0761 14.5594C12.9618 14.5594 12.8487 14.5369 12.7431 14.4931C12.6375 14.4493 12.5416 14.3852 12.4609 14.3044L10.1539 12C10.1129 11.9595 10.0576 11.9368 10 11.9368C9.94239 11.9368 9.88709 11.9595 9.84609 12L7.54087 14.3044C7.46011 14.3852 7.36421 14.4493 7.25864 14.4931C7.15308 14.5369 7.03993 14.5594 6.92565 14.5594C6.81138 14.5594 6.69822 14.5369 6.59266 14.4931C6.4871 14.4493 6.39119 14.3852 6.31043 14.3044L5.69565 13.6896C5.6148 13.6088 5.55066 13.5129 5.5069 13.4073C5.46314 13.3018 5.44062 13.1886 5.44062 13.0743C5.44062 12.9601 5.46314 12.8469 5.5069 12.7414C5.55066 12.6358 5.6148 12.5399 5.69565 12.4591L8 10.1539C8.02024 10.1337 8.03631 10.1097 8.04727 10.0833C8.05822 10.0569 8.06387 10.0286 8.06387 10C8.06387 9.97141 8.05822 9.94309 8.04727 9.91668C8.03631 9.89027 8.02024 9.86628 8 9.84609L5.69565 7.54087Z" fill="white"/></svg>');
16
+ color: $color-white;
17
+ padding-left: calc(#{$padding-xl} + #{$font-size-icon});
18
+ }
19
+
20
+ &.info {
21
+ background-color: map_get($colors-electric-blue, 100);
22
+ background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 1.14583C4.735 1.14583 0.450836 4.67583 0.450836 9.01417C0.466548 10.0566 0.71037 11.0829 1.16516 12.021C1.61996 12.9591 2.27469 13.7862 3.08334 14.4442L1.18 18.25C1.14798 18.3136 1.13276 18.3843 1.13581 18.4554C1.13886 18.5265 1.16008 18.5956 1.19743 18.6562C1.23478 18.7168 1.28702 18.7668 1.34918 18.8014C1.41134 18.8361 1.48134 18.8542 1.5525 18.8542C1.61324 18.8538 1.6732 18.8405 1.72834 18.815L6.83334 16.4392C7.86289 16.7346 8.92891 16.8835 10 16.8817C15.265 16.8817 19.5492 13.3517 19.5492 9.01417C19.5492 4.67667 15.265 1.14583 10 1.14583ZM5.79917 10.3125C5.55194 10.3125 5.31027 10.2392 5.10471 10.1018C4.89915 9.96448 4.73893 9.76926 4.64432 9.54085C4.54971 9.31245 4.52496 9.06111 4.57319 8.81864C4.62142 8.57616 4.74047 8.35343 4.91529 8.17862C5.0901 8.0038 5.31283 7.88475 5.55531 7.83652C5.79778 7.78829 6.04912 7.81304 6.27752 7.90765C6.50593 8.00226 6.70116 8.16248 6.83851 8.36804C6.97586 8.5736 7.04917 8.81527 7.04917 9.0625C7.04917 9.39402 6.91747 9.71196 6.68305 9.94638C6.44863 10.1808 6.13069 10.3125 5.79917 10.3125ZM10 7.8125C10.2472 7.8125 10.4889 7.88581 10.6945 8.02316C10.9 8.16051 11.0602 8.35574 11.1549 8.58414C11.2495 8.81255 11.2742 9.06389 11.226 9.30636C11.1778 9.54884 11.0587 9.77157 10.8839 9.94638C10.7091 10.1212 10.4863 10.2402 10.2439 10.2885C10.0014 10.3367 9.75006 10.312 9.52165 10.2173C9.29324 10.1227 9.09802 9.96252 8.96067 9.75696C8.82331 9.5514 8.75 9.30973 8.75 9.0625C8.75 8.73098 8.8817 8.41304 9.11612 8.17862C9.35054 7.94419 9.66848 7.8125 10 7.8125ZM14.1667 10.3125C13.9194 10.3125 13.6778 10.2392 13.4722 10.1018C13.2666 9.96448 13.1064 9.76926 13.0118 9.54085C12.9172 9.31245 12.8925 9.06111 12.9407 8.81864C12.9889 8.57616 13.108 8.35343 13.2828 8.17862C13.4576 8.0038 13.6803 7.88475 13.9228 7.83652C14.1653 7.78829 14.4166 7.81304 14.645 7.90765C14.8734 8.00226 15.0687 8.16248 15.206 8.36804C15.3434 8.5736 15.4167 8.81527 15.4167 9.0625C15.4167 9.39402 15.285 9.71196 15.0506 9.94638C14.8161 10.1808 14.4982 10.3125 14.1667 10.3125Z" fill="white"/></svg>');
23
+ color: $color-white;
24
+ padding-left: calc(#{$padding-xl} + #{$font-size-icon});
25
+ }
26
+
27
+ &.success {
28
+ background-color: $color-success;
29
+ background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="white"/><path d="M14.9367 7.23975L13.7003 6.06178C13.6797 6.04219 13.6553 6.02665 13.6284 6.01605C13.6015 6.00544 13.5726 5.99998 13.5435 5.99998C13.5144 5.99998 13.4856 6.00544 13.4587 6.01605C13.4318 6.02665 13.4073 6.04219 13.3868 6.06178L8.16474 11.0261C8.14417 11.0457 8.11973 11.0612 8.09283 11.0718C8.06593 11.0824 8.03709 11.0879 8.00797 11.0879C7.97885 11.0879 7.95001 11.0824 7.92311 11.0718C7.89621 11.0612 7.87177 11.0457 7.8512 11.0261L6.61478 9.8481C6.59421 9.82851 6.56978 9.81297 6.54288 9.80236C6.51598 9.79176 6.48714 9.7863 6.45802 9.7863C6.42889 9.7863 6.40005 9.79176 6.37315 9.80236C6.34625 9.81297 6.32182 9.82851 6.30125 9.8481L5.06483 11.0261C5.02332 11.0655 5 11.119 5 11.1748C5 11.2306 5.02332 11.2841 5.06483 11.3235L7.8512 13.971C7.87177 13.9906 7.89621 14.0061 7.92311 14.0167C7.95001 14.0273 7.97885 14.0328 8.00797 14.0328C8.03709 14.0328 8.06593 14.0273 8.09283 14.0167C8.11973 14.0061 8.14417 13.9906 8.16474 13.971L14.9367 7.53424C14.9773 7.49492 15 7.44205 15 7.38699C15 7.33193 14.9773 7.27907 14.9367 7.23975Z" fill="%2345B854"/></svg>');
30
+ color: $color-white;
31
+ padding-left: calc(#{$padding-xl} + #{$font-size-icon});
32
+ }
33
+
34
+ &.warning {
35
+ background-color: map_get($colors-yellow, 100);
36
+ background-image: url('data:image/svg+xml;utf8,<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.158 0.00223185C7.46858 0.0459718 4.90451 1.1394 3.02007 3.04615C2.07719 3.97872 1.33326 5.09058 0.832739 6.31526C0.332222 7.53994 0.0853979 8.8523 0.10702 10.1739C0.105473 11.4653 0.360466 12.7443 0.857387 13.9376C1.35431 15.1309 2.08338 16.215 3.00284 17.1279C3.92229 18.0408 5.01404 18.7644 6.21553 19.2574C7.41701 19.7503 8.70461 20.0029 10.0045 20.0006H10.184C12.8743 19.9731 15.4437 18.8865 17.3285 16.9793C19.2132 15.072 20.2594 12.4999 20.2375 9.82726C20.2406 8.52022 19.9806 7.22575 19.4728 6.01998C18.965 4.81422 18.2196 3.7215 17.2804 2.80609C16.3413 1.89068 15.2274 1.17106 14.0043 0.689544C12.7811 0.20803 11.4734 -0.0256546 10.158 0.00223185ZM8.91412 13.7861C8.90807 13.6227 8.93488 13.4598 8.99296 13.3068C9.05105 13.1538 9.13926 13.0139 9.25242 12.8952C9.36559 12.7765 9.50144 12.6814 9.65204 12.6155C9.80263 12.5495 9.96495 12.5141 10.1295 12.5112H10.1521C10.4831 12.5118 10.801 12.6397 11.0392 12.8681C11.2773 13.0964 11.4172 13.4075 11.4296 13.7361C11.4358 13.8995 11.409 14.0625 11.351 14.2155C11.2929 14.3685 11.2047 14.5085 11.0916 14.6273C10.9784 14.746 10.8425 14.8411 10.6918 14.907C10.5412 14.9729 10.3788 15.0082 10.2142 15.011H10.1916C9.86071 15.01 9.54305 14.8819 9.30499 14.6537C9.06693 14.4254 8.92688 14.1146 8.91412 13.7861ZM9.3335 10.418V5.41846C9.3335 5.19746 9.42188 4.98552 9.57917 4.82925C9.73647 4.67298 9.94982 4.58519 10.1723 4.58519C10.3947 4.58519 10.6081 4.67298 10.7654 4.82925C10.9227 4.98552 11.011 5.19746 11.011 5.41846V10.418C11.011 10.639 10.9227 10.851 10.7654 11.0073C10.6081 11.1635 10.3947 11.2513 10.1723 11.2513C9.94982 11.2513 9.73647 11.1635 9.57917 11.0073C9.42188 10.851 9.3335 10.639 9.3335 10.418Z" fill="%235D6A82"/></svg>');
37
+ color: map_get($colors-grey, 80);
38
+ padding-left: calc(#{$padding-xl} + #{$font-size-icon});
39
+ }
40
+ }
@@ -0,0 +1,130 @@
1
+ @import '../../../../../../node_modules/@ng-select/ng-select/themes/default.theme.css';
2
+ @import 'assets/lib-ui-theme/style/variables';
3
+
4
+ @mixin select-state-style($color) {
5
+ .ng-select-container {
6
+ border-color: $color;
7
+ }
8
+ }
9
+
10
+ .ng-select {
11
+ div, span {
12
+ font-weight: normal !important;
13
+ }
14
+ input {
15
+ padding: 0; // Reset theme input padding
16
+ }
17
+ &:not(.ng-select-disabled):not(.ng-select-focused):not(.valid):not(.invalid) {
18
+ .ng-select-container:hover {
19
+ border-color: map_get($colors-grey, 40);
20
+ }
21
+ }
22
+ .ng-select-container {
23
+ border-radius: $border-radius !important;
24
+ border: 1px solid $form-input-default-border-color;
25
+ font-weight: normal;
26
+ box-shadow: none !important;
27
+ .ng-placeholder {
28
+ color: $form-input-placeholder-font-color !important;
29
+ }
30
+ .ng-value-container {
31
+ font-weight: normal;
32
+ padding-left: $padding-m;
33
+ .ng-placeholder {
34
+ color: $border-color;
35
+ }
36
+ .ng-value span:not(.ng-value-icon) {
37
+ color: $form-control-selected-font-color;
38
+ display: flex;
39
+ ap-symbol {
40
+ padding-right: $padding-s;
41
+ }
42
+ }
43
+ }
44
+ }
45
+ &.ng-select-opened {
46
+ .ng-select-container {
47
+ border-color: $form-control-selected-border-color !important;
48
+ .ng-arrow {
49
+ border-color: transparent transparent $form-control-selected-border-color;
50
+ }
51
+ }
52
+ }
53
+ &.ng-select-single {
54
+ .ng-select-container {
55
+ .ng-value-container {
56
+ .ng-input {
57
+ padding-left: $padding-m;
58
+ }
59
+ }
60
+ }
61
+ }
62
+ // Invalid
63
+ &.invalid:not(.ng-select-disabled),
64
+ &.ng-invalid.ng-dirty.ng-touched:not(.ng-select-disabled) {
65
+ @include select-state-style($color-error);
66
+ }
67
+ // Valid
68
+ &.valid:not(.ng-select-disabled) {
69
+ @include select-state-style($color-success);
70
+ }
71
+ }
72
+
73
+ form.submitted {
74
+ .ng-select {
75
+ // Invalid
76
+ &.ng-invalid:not(.ng-select-disabled) {
77
+ @include select-state-style($color-error);
78
+ }
79
+ }
80
+ }
81
+
82
+ .ng-dropdown-panel {
83
+ border: none;
84
+ box-shadow: none;
85
+ &.ng-select-bottom {
86
+ border-radius: $border-radius;
87
+ box-shadow: 0 7px 50px rgba(0, 0, 0, 0.08);
88
+ margin-top: $padding-sm;
89
+ }
90
+ .ng-dropdown-panel-items {
91
+ padding: $padding-s 0;
92
+ .ng-option, .ng-optgroup {
93
+ padding: $padding-s $padding-m;
94
+ span {
95
+ color: $form-control-selected-font-color;
96
+ display: flex;
97
+ ap-symbol {
98
+ padding-right: $padding-s;
99
+ }
100
+ }
101
+ &.ng-option-selected {
102
+ background-color: unset;
103
+ span {
104
+ color: map_get($colors-electric-blue, 100);
105
+ ap-symbol .svg {
106
+ fill: map_get($colors-electric-blue, 100) !important;
107
+ }
108
+ }
109
+ }
110
+ &.ng-option-marked {
111
+ background-color: map_get($colors-electric-blue, 10);
112
+ span {
113
+ color: map_get($colors-electric-blue, 100);
114
+ ap-symbol .svg {
115
+ fill: map_get($colors-electric-blue, 100) !important;
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
122
+
123
+ .ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child {
124
+ border-bottom-right-radius: 0;
125
+ border-bottom-left-radius: 0;
126
+ }
127
+
128
+ .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder {
129
+ top: unset;
130
+ }
@@ -0,0 +1,48 @@
1
+ @import 'assets/lib-ui-theme/style/variables';
2
+
3
+ .notification {
4
+ align-items: center;
5
+ background: map_get($colors-soft-blue, 10);
6
+ display: flex;
7
+ color: $color-info;
8
+ font-size: $font-size;
9
+ line-height: 17px;
10
+ padding: $padding-s $padding-m $padding-s $padding-s;
11
+ border-radius: $padding-sm;
12
+
13
+ .notification-border {
14
+ align-self: stretch;
15
+ border: 2px solid $color-info;
16
+ background-color: $color-info;
17
+ border-radius: 4px;
18
+ margin-right: $padding-s;
19
+ }
20
+
21
+ .notification-icon {
22
+ margin-right: $padding-s;
23
+ }
24
+
25
+ &.warning {
26
+ background: map_get($colors-yellow, 10);
27
+ color: map_get($colors-grey, 60);
28
+ .notification-border {
29
+ border-color: map_get($colors-yellow, 100);
30
+ background-color: map_get($colors-yellow, 100);
31
+ }
32
+ }
33
+
34
+ &.error {
35
+ background: map_get($colors-red, 10);
36
+ color: $color-error;
37
+ .notification-border {
38
+ border-color: $color-error;
39
+ background-color: $color-error;
40
+ }
41
+ }
42
+
43
+ /*&.large {
44
+ padding-bottom: $padding-sm - 1;
45
+ padding-top: $padding-sm - 1;
46
+ font-size: $font-size;
47
+ }*/
48
+ }
@@ -0,0 +1,14 @@
1
+ @import 'assets/lib-ui-theme/style/variables';
2
+
3
+ span.ap-reduction {
4
+ color: map-get($colors-green, 100);
5
+ font-size: $font-size-s;
6
+ font-weight: $font-weight-bold;
7
+ padding: $padding-sm $padding-s $padding-sm $padding-s;
8
+ background-color: map-get($colors-green, 10);
9
+ border-radius: $border-radius;
10
+
11
+ &.ap-line-through {
12
+ text-decoration: line-through;
13
+ }
14
+ }
@@ -0,0 +1,16 @@
1
+ @import 'assets/lib-ui-theme/style/variables';
2
+
3
+ select {
4
+ border: 1px solid $border-color;
5
+ border-radius: $border-radius;
6
+ color: $font-color;
7
+ font-family: $font-family;
8
+ font-size: $font-size;
9
+ font-weight: $font-weight-semibold;
10
+ padding: 6px $padding-m;
11
+ -webkit-appearance: none;
12
+ }
13
+
14
+ select:focus {
15
+ outline: none;
16
+ }
@@ -0,0 +1,10 @@
1
+ @import 'assets/lib-ui-theme/style/variables';
2
+
3
+ .sign {
4
+ padding: 0 2px;
5
+ border-radius: 2px;
6
+ font-size: $font-size-s;
7
+ font-weight: $font-weight-bold;
8
+ background-color: map_get($colors-orange, 100);
9
+ color: white;
10
+ }
@@ -0,0 +1,77 @@
1
+ /*
2
+ * THEMING
3
+ * See https://material.angular.io/guide/theming
4
+ */
5
+ @use '../../../../../node_modules/@angular/material/index' as mat;
6
+ @include mat.core();
7
+
8
+
9
+ @import 'font-face';
10
+ @import 'colors';
11
+ @import 'variables';
12
+
13
+ // Custom palettes
14
+ @include mat.all-component-themes(mat.define-light-theme(
15
+ $primary: mat.define-palette($colors-primary),
16
+ $accent: mat.define-palette($colors-accent),
17
+ $warn: mat.define-palette($colors-warn)
18
+ ));
19
+
20
+ /*
21
+ * TYPOGRAPHY
22
+ */
23
+
24
+ @import 'mat-typography';
25
+
26
+ /*
27
+ * GRID
28
+ */
29
+ @import 'grid';
30
+
31
+ /*
32
+ * HELPERS
33
+ */
34
+ @import 'helpers';
35
+
36
+ /*
37
+ * COMPONENTS
38
+ */
39
+
40
+ @import 'assets/lib-ui-theme/style/components-custom-style/alert';
41
+ @import 'assets/lib-ui-theme/style/components-custom-style/form';
42
+ @import 'assets/lib-ui-theme/style/components-custom-style/input';
43
+ @import 'assets/lib-ui-theme/style/components-custom-style/notification';
44
+ @import 'assets/lib-ui-theme/style/components-custom-style/mat-button';
45
+ @import 'assets/lib-ui-theme/style/components-custom-style/mat-button-toggle-group';
46
+ @import 'assets/lib-ui-theme/style/components-custom-style/mat-checkbox';
47
+ @import 'assets/lib-ui-theme/style/components-custom-style/mat-dialog';
48
+ @import 'assets/lib-ui-theme/style/components-custom-style/mat-divider';
49
+ @import 'assets/lib-ui-theme/style/components-custom-style/mat-expansion-panel';
50
+ @import 'assets/lib-ui-theme/style/components-custom-style/mat-list';
51
+ @import 'assets/lib-ui-theme/style/components-custom-style/mat-menu';
52
+ @import 'assets/lib-ui-theme/style/components-custom-style/mat-radio-button';
53
+ @import 'assets/lib-ui-theme/style/components-custom-style/mat-slide-toggle';
54
+ @import 'assets/lib-ui-theme/style/components-custom-style/mat-snack-bar';
55
+ @import 'assets/lib-ui-theme/style/components-custom-style/ng-select';
56
+ @import 'assets/lib-ui-theme/style/components-custom-style/select';
57
+ @import 'assets/lib-ui-theme/style/components-custom-style/sign';
58
+ @import 'assets/lib-ui-theme/style/components-custom-style/reduction';
59
+ @import 'assets/lib-ui-theme/style/components-custom-style/clickable-text';
60
+ @import 'assets/lib-ui-theme/style/components-custom-style/input-error';
61
+
62
+ .mat-ripple { display: none; }
63
+
64
+ /*
65
+ * {
66
+ -webkit-font-smoothing: antialiased;
67
+ -moz-osx-font-smoothing: grayscale;
68
+ box-sizing: border-box;
69
+ }
70
+
71
+ a, button {
72
+ cursor: pointer;
73
+ }
74
+ */
75
+
76
+
77
+
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/ui-theme"
4
+ }
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@agorapulse/ui-theme",
3
+ "version": "0.0.1",
4
+ "description": "Agorapulse UI Theme Library",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/agorapulse/design.git"
8
+ },
9
+ "author": "Arnaud BUSO",
10
+ "license": "ISC",
11
+ "bugs": {
12
+ "url": "https://github.com/agorapulse/design/issues"
13
+ },
14
+ "homepage": "https://github.com/agorapulse/design#readme"
15
+ }