@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,104 @@
1
+ @use "sass:math";
2
+
3
+ @import 'colors';
4
+
5
+ $font-family: "Averta";
6
+ $font-family-header: "Averta";
7
+ $font-weight: 400;
8
+ $font-weight-semibold: 600;
9
+ $font-weight-bold: 700;
10
+ $font-weight-extra-bold: 800;
11
+ $font-weight-black: 900;
12
+ $font-size-h1: 28px;
13
+ $font-line-height-h1: 35px;
14
+ $font-size-h2: 24px;
15
+ $font-line-height-h2: 30px;
16
+ $font-size-h3: 18px;
17
+ $font-line-height-h3: 22px;
18
+ $font-size-h4: 16px;
19
+ $font-line-height-h4: 20px;
20
+ $font-size: 14px;
21
+ $font-line-height: 17px;
22
+ $font-size-icon: 16px;
23
+ $font-size-s: 12px;
24
+ $font-line-height-s: 15px;
25
+ $font-line-height-s: 18px;
26
+ $font-size-sl: 10px;
27
+ $font-line-height-sm: 14px;
28
+ $font-size-sm: 8px;
29
+
30
+ $font-color: map_get($colors-grey, 80);
31
+
32
+ $border-color: map_get($colors-grey, 20); //$color-pale-grey,
33
+ $border-radius: 4px;
34
+ $border-radius-l: 8px;
35
+ $border-radius-lg: 10px;
36
+
37
+ $color-error: map_get($colors-red, 100);
38
+ $color-info: map_get($colors-electric-blue, 100);
39
+ $color-success: map_get($colors-green, 100);
40
+ $color-warning: map_get($colors-yellow, 100);
41
+
42
+ $link-color: map_get($colors-electric-blue, 100);
43
+
44
+ $padding-xxl: 48px;
45
+ $padding-xl: 32px;
46
+ $padding-l: 24px;
47
+ $padding-m: 16px;
48
+ $padding-ml: 12px;
49
+ $padding-s: 8px;
50
+ $padding-sl: 6px;
51
+ $padding-sm: 4px;
52
+
53
+ // Forms controls
54
+ $form-control-selected-background-color: map_get($colors-electric-blue, 100);
55
+ $form-control-selected-border-color: map_get($colors-electric-blue, 100);
56
+ $form-control-selected-font-color: map_get($colors-grey, 100);
57
+ $form-control-default-background-color: map_get($colors-grey, 40);
58
+ $form-control-default-border-color: map_get($colors-grey, 40);
59
+ $form-control-default-font-color: map_get($colors-grey, 80);
60
+ $form-control-default-label-color: map_get($colors-grey, 60);
61
+ $form-control-disabled-background-color: map_get($colors-grey, 10);
62
+ $form-control-disabled-border-color: map_get($colors-grey, 20);
63
+ $form-control-disabled-font-color: map_get($colors-grey, 20);
64
+ $form-control-disabled-selected-background-color: map_get($colors-grey, 20);
65
+ $form-control-hover-border-color: map_get($colors-grey, 60);
66
+ $form-input-default-border-color: map_get($colors-grey, 20);
67
+ $form-input-disabled-background-color: map_get($colors-grey, 5);
68
+ $form-input-placeholder-font-color: map_get($colors-grey, 40);
69
+ $form-input-hover-border-color: map_get($colors-grey, 40);
70
+
71
+ // Avatar
72
+
73
+ $avatar-size-large: 64px;
74
+ $avatar-size-normal: 48px;
75
+ $avatar-size-medium: 40px;
76
+ $avatar-size-medium-sm: 36px;
77
+ $avatar-size-small: 32px;
78
+ $avatar-size-mini: 24px;
79
+ $avatar-size-mini-sm: 16px;
80
+ $avatar-size-micro: 12px;
81
+
82
+ $button-height: 32px;
83
+
84
+ // Responsive Media Query Ranges
85
+
86
+ $small-screen-up: 601px !default;
87
+ $medium-screen-up: 993px !default;
88
+ $large-screen-up: 1201px !default;
89
+ $small-screen: 600px !default;
90
+ $medium-screen: 992px !default;
91
+ $large-screen: 1200px !default;
92
+
93
+ $medium-and-up: "only screen and (min-width : #{$small-screen-up})" !default;
94
+ $large-and-up: "only screen and (min-width : #{$medium-screen-up})" !default;
95
+ $extra-large-and-up: "only screen and (min-width : #{$large-screen-up})" !default;
96
+ $small-and-down: "only screen and (max-width : #{$small-screen})" !default;
97
+ $medium-and-down: "only screen and (max-width : #{$medium-screen})" !default;
98
+ $medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})" !default;
99
+
100
+
101
+ // Grid
102
+
103
+ $num-cols: 12 !default;
104
+ $gutter-width: 1.5rem !default;
@@ -0,0 +1,35 @@
1
+ @import 'assets/lib-ui-theme/style/variables';
2
+
3
+ .alert {
4
+ font-weight: bold;
5
+ padding: $padding-m $padding-m;
6
+ position: relative;
7
+
8
+ a {
9
+ color: #fff;
10
+ text-decoration: underline;
11
+ &.alert-close {
12
+ position: absolute;
13
+ right: 16px;
14
+ top: 22px;
15
+ &:hover {
16
+ cursor: pointer;
17
+ }
18
+ }
19
+ }
20
+
21
+ &.error {
22
+ background-color: $color-error;
23
+ color: $color-white;
24
+ }
25
+
26
+ &.success {
27
+ background-color: $color-success;
28
+ color: $color-white;
29
+ }
30
+
31
+ &.warning {
32
+ background-color: map_get($colors-orange, 100);
33
+ color: $color-white;
34
+ }
35
+ }
@@ -0,0 +1,8 @@
1
+ @import 'assets/lib-ui-theme/style/variables';
2
+
3
+ span, a {
4
+ &.ap-clickable-text {
5
+ color: map_get($colors-electric-blue, 100);
6
+ cursor: pointer;
7
+ }
8
+ }
@@ -0,0 +1,35 @@
1
+ @import 'assets/lib-ui-theme/style/variables';
2
+
3
+ %small-font {
4
+ font-size: $font-size-s;
5
+ font-weight: normal;
6
+ line-height: 15px;
7
+ }
8
+
9
+ .form-field {
10
+ margin-bottom: $padding-m;
11
+
12
+ label:not(.mat-checkbox-layout):not(.mat-radio-label) {
13
+ @extend %small-font;
14
+ color: $form-control-default-label-color;
15
+ display: block;
16
+ margin-bottom: $padding-sm;
17
+ }
18
+ &.required label:not(.mat-radio-label):after {
19
+ content: '*';
20
+ }
21
+ }
22
+
23
+ .form-message,
24
+ .form-field-message {
25
+ @extend %small-font;
26
+ margin: $padding-sm 0;
27
+
28
+ &.invalid {
29
+ color: $color-error;
30
+ }
31
+
32
+ &.valid {
33
+ color: $color-success;
34
+ }
35
+ }
@@ -0,0 +1,7 @@
1
+ @import 'assets/lib-ui-theme/style/variables';
2
+
3
+ .ap-input-error {
4
+ color: map-get($colors-red, 100);
5
+ font-weight: $font-weight;
6
+ font-size: $font-size-s;
7
+ }
@@ -0,0 +1,127 @@
1
+ @import 'assets/lib-ui-theme/style/variables';
2
+
3
+ textarea, select, input, button {
4
+ outline: none;
5
+ &.full-width {
6
+ box-sizing: border-box;
7
+ width: 100%;
8
+ }
9
+ }
10
+
11
+ form.full-width {
12
+ textarea, select, input, button {
13
+ box-sizing: border-box;
14
+ width: 100%;
15
+ }
16
+ }
17
+
18
+ input, textarea {
19
+ border: 1px solid $form-input-default-border-color;
20
+ border-radius: $border-radius;
21
+ color: $form-control-selected-font-color;
22
+ font-family: $font-family;
23
+ font-size: $font-size;
24
+ font-weight: $font-weight;
25
+ padding: $padding-s $padding-m;
26
+ &::placeholder {
27
+ color: $form-input-placeholder-font-color;
28
+ }
29
+ // Disabled
30
+ &:disabled {
31
+ background: $form-input-disabled-background-color;
32
+ border-color: $form-control-disabled-border-color;
33
+ color: $form-input-placeholder-font-color;
34
+ }
35
+ // Focus
36
+ &:focus:not(.transparent) {
37
+ border-color: $form-control-selected-border-color;
38
+ }
39
+ // Invalid
40
+ &.invalid:not([disabled]):not(.transparent),
41
+ &.ng-invalid.ng-dirty.ng-touched:not([disabled]):not(.transparent) {
42
+ border: 1px solid $color-error;
43
+ }
44
+ // Valid
45
+ &.valid:not([disabled]):not(.transparent) {
46
+ border: 1px solid $color-success;
47
+ }
48
+
49
+ // Transparent
50
+ &.transparent {
51
+ border: 0;
52
+ background-color: transparent;
53
+
54
+ &:focus {
55
+ outline: none;
56
+ }
57
+ }
58
+
59
+ // Hover
60
+ &:not(.transparent):not(.valid):not(.invalid):not(:focus):not([disabled]):hover {
61
+ border-color: $form-input-hover-border-color
62
+ }
63
+ }
64
+
65
+ .input-group {
66
+ display: flex;
67
+ flex-direction: row;
68
+ width: 180px;
69
+ color: map_get($colors-grey, 100);
70
+
71
+ input {
72
+ box-sizing: border-box;
73
+ padding: $padding-s $padding-xl $padding-s $padding-m;
74
+ width: 100%;
75
+ }
76
+
77
+ .input-group-append {
78
+ position: relative;
79
+ top: 10px;
80
+ right: 26px;
81
+ height: 15px;
82
+ width: 0;
83
+ color: map_get($colors-grey, 60);
84
+ }
85
+
86
+ input:focus + .input-group-append {
87
+ color: map_get($colors-electric-blue, 100);
88
+ }
89
+
90
+ &.disabled {
91
+ color: map_get($colors-grey, 20);
92
+ background: map_get($colors-grey, 5);
93
+
94
+ .input-group-append {
95
+ background: map_get($colors-grey, 5);
96
+ color: map_get($colors-grey, 20);
97
+ }
98
+ }
99
+
100
+ &.full-width {
101
+ box-sizing: border-box;
102
+ width: 100%;
103
+ }
104
+ }
105
+
106
+ form.submitted {
107
+ input, textarea {
108
+ // Invalid
109
+ &.ng-invalid:not([disabled]):not(.transparent) {
110
+ border: 1px solid $color-error;
111
+ }
112
+ }
113
+ }
114
+
115
+
116
+ textarea {
117
+ resize: none;
118
+ }
119
+
120
+ /* Hide HTML5 Up and Down arrows on number inputs */
121
+ /*input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button {
122
+ -webkit-appearance: none;
123
+ margin: 0;
124
+ }
125
+ input[type="number"] {
126
+ -moz-appearance: textfield;
127
+ }*/
@@ -0,0 +1,68 @@
1
+ @import 'assets/lib-ui-theme/style/variables';
2
+
3
+ .mat-button-toggle-group {
4
+ height: 36px;
5
+ border-radius: 4px;
6
+ border:none;
7
+
8
+ .mat-button-toggle {
9
+ margin-left: -1px;
10
+ height: 34px;
11
+ line-height: 34px;
12
+ color: map_get($colors-grey, 100);
13
+ font-weight: bold;
14
+ border: 1px solid #D6DAE0;
15
+
16
+ &.mat-button-toggle-checked {
17
+ color: map_get($colors-electric-blue, 100);
18
+ border: 1px solid map_get($colors-electric-blue, 100);
19
+ background: white;
20
+ z-index: 1;
21
+
22
+ &:hover {
23
+ border: 1px solid map_get($colors-electric-blue, 100);
24
+ color: map_get($colors-electric-blue, 100);
25
+ background: white;
26
+ z-index: 1;
27
+ height: 100%;
28
+ }
29
+ }
30
+
31
+ &:hover {
32
+ background: white;
33
+ box-sizing: border-box;
34
+ border: 1px solid map_get($colors-electric-blue, 100);
35
+ color: map_get($colors-grey, 100);
36
+ height: 100%;
37
+ z-index: 1;
38
+ .mat-button-toggle-focus-overlay {
39
+ opacity: 0!important;
40
+ }
41
+ }
42
+
43
+ button {
44
+ margin-top: -2px;
45
+ height: 36px;
46
+ line-height: 36px;
47
+ }
48
+
49
+ span {
50
+ margin-top: -2px;
51
+ height: 36px;
52
+ line-height: 36px;
53
+ &.mat-button-toggle-focus-overlay {
54
+ opacity: 0;
55
+ }
56
+ }
57
+ }
58
+ .mat-button-toggle:first-of-type {
59
+ border-bottom-left-radius: $border-radius;
60
+ border-top-left-radius: $border-radius;
61
+ margin-left: 0px !important;
62
+ }
63
+ .mat-button-toggle:last-of-type {
64
+ border-bottom-right-radius: $border-radius;
65
+ border-top-right-radius: $border-radius;
66
+ }
67
+ }
68
+