@agorapulse/ui-theme 22.0.8 → 22.0.9
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/agorapulse-ui-theme-22.0.9.tgz +0 -0
- package/assets/style/{css-ui/_helpers.scss → _helpers.scss} +5 -10
- package/assets/style/{css-ui/_typography.scss → _typography.scss} +8 -41
- package/assets/style/theme.scss +2 -2
- package/package.json +2 -9
- package/agorapulse-ui-theme-22.0.8.tgz +0 -0
- package/assets/style/css-ui/_accordion.scss +0 -56
- package/assets/style/css-ui/_action-dropdown.scss +0 -163
- package/assets/style/css-ui/_avatar-group.scss +0 -61
- package/assets/style/css-ui/_avatar.scss +0 -191
- package/assets/style/css-ui/_badge.scss +0 -28
- package/assets/style/css-ui/_button.scss +0 -265
- package/assets/style/css-ui/_card.scss +0 -17
- package/assets/style/css-ui/_checkbox.scss +0 -191
- package/assets/style/css-ui/_counter.scss +0 -76
- package/assets/style/css-ui/_datepicker.scss +0 -309
- package/assets/style/css-ui/_dialog.scss +0 -74
- package/assets/style/css-ui/_dot-stepper.scss +0 -68
- package/assets/style/css-ui/_icon-button.scss +0 -200
- package/assets/style/css-ui/_infobox.scss +0 -181
- package/assets/style/css-ui/_input.scss +0 -128
- package/assets/style/css-ui/_label.scss +0 -95
- package/assets/style/css-ui/_link.scss +0 -86
- package/assets/style/css-ui/_list-panel.scss +0 -73
- package/assets/style/css-ui/_loader.scss +0 -228
- package/assets/style/css-ui/_mixins.scss +0 -50
- package/assets/style/css-ui/_pagination.scss +0 -177
- package/assets/style/css-ui/_radio-card.scss +0 -200
- package/assets/style/css-ui/_radio.scss +0 -106
- package/assets/style/css-ui/_select.scss +0 -658
- package/assets/style/css-ui/_selection-dropdown.scss +0 -183
- package/assets/style/css-ui/_snackbar.scss +0 -181
- package/assets/style/css-ui/_split-button.scss +0 -74
- package/assets/style/css-ui/_status.scss +0 -83
- package/assets/style/css-ui/_stepper.scss +0 -113
- package/assets/style/css-ui/_table.scss +0 -323
- package/assets/style/css-ui/_tabs.scss +0 -189
- package/assets/style/css-ui/_tag.scss +0 -181
- package/assets/style/css-ui/_textarea.scss +0 -117
- package/assets/style/css-ui/_toggle.scss +0 -131
- package/assets/style/css-ui/_tooltip.scss +0 -134
- package/assets/style/css-ui/font-face.css +0 -43
- package/assets/style/css-ui/index.css +0 -4943
- package/assets/style/css-ui/index.css.map +0 -1
- package/assets/style/css-ui/index.scss +0 -39
|
Binary file
|
|
@@ -7,23 +7,19 @@ blockquote {
|
|
|
7
7
|
font-style: italic;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.divider
|
|
11
|
-
.ap-divider {
|
|
10
|
+
.divider {
|
|
12
11
|
height: 1px;
|
|
13
12
|
overflow: hidden;
|
|
14
13
|
background-color: var(--sys-color-border-color-default);
|
|
15
14
|
}
|
|
16
15
|
|
|
17
|
-
.left-align
|
|
18
|
-
.ap-text-left {
|
|
16
|
+
.left-align {
|
|
19
17
|
text-align: left;
|
|
20
18
|
}
|
|
21
|
-
.center-align
|
|
22
|
-
.ap-text-center {
|
|
19
|
+
.center-align {
|
|
23
20
|
text-align: center;
|
|
24
21
|
}
|
|
25
|
-
.right-align
|
|
26
|
-
.ap-text-right {
|
|
22
|
+
.right-align {
|
|
27
23
|
text-align: right;
|
|
28
24
|
}
|
|
29
25
|
|
|
@@ -32,8 +28,7 @@ blockquote {
|
|
|
32
28
|
display: flex;
|
|
33
29
|
}
|
|
34
30
|
|
|
35
|
-
.truncate
|
|
36
|
-
.ap-truncate {
|
|
31
|
+
.truncate {
|
|
37
32
|
display: block;
|
|
38
33
|
white-space: nowrap;
|
|
39
34
|
overflow: hidden;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use 'mixins';
|
|
2
|
-
|
|
3
1
|
// ── Tag-based rules (global styling) ──
|
|
4
2
|
|
|
5
3
|
h1,
|
|
@@ -33,51 +31,22 @@ p {
|
|
|
33
31
|
margin: 0 0 var(--ref-spacing-xs);
|
|
34
32
|
}
|
|
35
33
|
|
|
36
|
-
// ── Typography classes
|
|
37
|
-
|
|
38
|
-
.h0,
|
|
39
|
-
.ap-h0 {
|
|
40
|
-
@include mixins.text-style(h0);
|
|
41
|
-
}
|
|
34
|
+
// ── Typography classes ──
|
|
42
35
|
|
|
43
|
-
.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
@include mixins.text-style(h1);
|
|
49
|
-
}
|
|
50
|
-
.ap-h2 {
|
|
51
|
-
@include mixins.text-style(h2);
|
|
52
|
-
}
|
|
53
|
-
.ap-h3 {
|
|
54
|
-
@include mixins.text-style(h3);
|
|
55
|
-
}
|
|
56
|
-
.ap-h4 {
|
|
57
|
-
@include mixins.text-style(h4);
|
|
58
|
-
}
|
|
59
|
-
.ap-body {
|
|
60
|
-
@include mixins.text-style(body);
|
|
61
|
-
}
|
|
62
|
-
.ap-body-bold {
|
|
63
|
-
@include mixins.text-style(body-bold);
|
|
36
|
+
.h0 {
|
|
37
|
+
font-family: var(--sys-text-style-h0-font-family);
|
|
38
|
+
font-size: var(--sys-text-style-h0-size);
|
|
39
|
+
font-weight: var(--sys-text-style-h0-weight);
|
|
40
|
+
line-height: var(--sys-text-style-h0-line-height);
|
|
64
41
|
}
|
|
65
42
|
|
|
66
43
|
p.caption,
|
|
67
44
|
span.caption,
|
|
68
|
-
.ap-caption,
|
|
69
45
|
.mat-caption {
|
|
70
46
|
font-size: var(--sys-text-style-caption-size);
|
|
71
47
|
line-height: var(--sys-text-style-caption-line-height);
|
|
72
48
|
}
|
|
73
49
|
|
|
74
|
-
.ap-caption-bold {
|
|
75
|
-
@include mixins.text-style(caption-bold);
|
|
76
|
-
}
|
|
77
|
-
.ap-marketing {
|
|
78
|
-
@include mixins.text-style(marketing);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
50
|
p.large,
|
|
82
51
|
span.large {
|
|
83
52
|
font-size: 16px;
|
|
@@ -90,12 +59,10 @@ small {
|
|
|
90
59
|
line-height: 14px;
|
|
91
60
|
}
|
|
92
61
|
|
|
93
|
-
.bold
|
|
94
|
-
.ap-bold {
|
|
62
|
+
.bold {
|
|
95
63
|
font-weight: var(--sys-text-style-body-bold-weight);
|
|
96
64
|
}
|
|
97
65
|
|
|
98
|
-
.italic
|
|
99
|
-
.ap-italic {
|
|
66
|
+
.italic {
|
|
100
67
|
font-style: italic;
|
|
101
68
|
}
|
package/assets/style/theme.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agorapulse/ui-theme",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.9",
|
|
4
4
|
"description": "Agorapulse UI Theme Library",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
15
|
"generate-tokens": "cd src && node build.js && cd ../assets && git add mobile_variables.css && git add desktop_variables.css",
|
|
16
|
-
"build:theme": "sass --load-path=node_modules assets/style/theme.scss assets/style/theme.css"
|
|
17
|
-
"build:css-ui": "sass --load-path=.. assets/style/css-ui/index.scss assets/style/css-ui/index.css"
|
|
16
|
+
"build:theme": "sass --load-path=node_modules assets/style/theme.scss assets/style/theme.css"
|
|
18
17
|
},
|
|
19
18
|
"homepage": "https://github.com/agorapulse/design#readme",
|
|
20
19
|
"peerDependencies": {
|
|
@@ -28,12 +27,6 @@
|
|
|
28
27
|
"./assets/desktop_variables.css": {
|
|
29
28
|
"default": "./assets/desktop_variables.css"
|
|
30
29
|
},
|
|
31
|
-
"./assets/style/css-ui/font-face.css": {
|
|
32
|
-
"default": "./assets/style/css-ui/font-face.css"
|
|
33
|
-
},
|
|
34
|
-
"./assets/style/css-ui/index.css": {
|
|
35
|
-
"default": "./assets/style/css-ui/index.css"
|
|
36
|
-
},
|
|
37
30
|
"./assets/fonts/*": "./assets/fonts/*"
|
|
38
31
|
},
|
|
39
32
|
"overrides": {
|
|
Binary file
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// Agorapulse Accordion Styles
|
|
2
|
-
|
|
3
|
-
.ap-accordion {
|
|
4
|
-
background-color: var(--ref-color-white);
|
|
5
|
-
border: 1px solid var(--ref-color-grey-10);
|
|
6
|
-
border-radius: var(--ref-border-radius-md);
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.ap-accordion-header {
|
|
12
|
-
border-bottom: 1px solid var(--ref-color-grey-10);
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
gap: var(--ref-spacing-xxs);
|
|
16
|
-
padding: 6px var(--ref-spacing-xs) 6px var(--ref-spacing-sm);
|
|
17
|
-
|
|
18
|
-
> i {
|
|
19
|
-
flex-shrink: 0;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.ap-accordion-title {
|
|
24
|
-
flex: 1;
|
|
25
|
-
min-width: 0;
|
|
26
|
-
font-size: var(--ref-font-size-sm);
|
|
27
|
-
font-weight: var(--ref-font-weight-bold);
|
|
28
|
-
line-height: var(--ref-font-line-height-md);
|
|
29
|
-
color: var(--ref-color-grey-100);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.ap-accordion-toggle {
|
|
33
|
-
flex-shrink: 0;
|
|
34
|
-
transition: transform var(--ref-animation-short);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.ap-accordion-content {
|
|
38
|
-
display: flex;
|
|
39
|
-
flex-direction: column;
|
|
40
|
-
gap: var(--ref-spacing-sm);
|
|
41
|
-
padding: var(--ref-spacing-sm);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ap-accordion.collapsed {
|
|
45
|
-
.ap-accordion-header {
|
|
46
|
-
border-bottom: none;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.ap-accordion-toggle {
|
|
50
|
-
transform: rotate(180deg);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.ap-accordion-content {
|
|
54
|
-
display: none;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
// Agorapulse Action Dropdown Styles
|
|
2
|
-
@use 'mixins' as m;
|
|
3
|
-
|
|
4
|
-
// Container
|
|
5
|
-
.ap-action-dropdown {
|
|
6
|
-
background-color: var(--comp-action-dropdown-background-color, var(--ref-color-white));
|
|
7
|
-
border-radius: var(--comp-action-dropdown-border-radius, var(--ref-border-radius-md));
|
|
8
|
-
box-shadow: var(--comp-action-dropdown-box-shadow, 0 4px 25px -2px rgba(52, 69, 99, 0.15), 0 4px 6px -2px rgba(52, 69, 99, 0.15));
|
|
9
|
-
padding: var(--comp-action-dropdown-padding, var(--ref-spacing-xxs));
|
|
10
|
-
outline: none;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
z-index: 1000;
|
|
13
|
-
width: 250px;
|
|
14
|
-
|
|
15
|
-
&.large {
|
|
16
|
-
width: 340px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&:focus {
|
|
20
|
-
outline: 2px solid var(--comp-action-dropdown-item-background-color-focused, var(--ref-color-electric-blue-10));
|
|
21
|
-
outline-offset: 2px;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// Item
|
|
26
|
-
.ap-action-dropdown-item {
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
width: 100%;
|
|
30
|
-
height: 40px;
|
|
31
|
-
padding: var(--comp-action-dropdown-item-padding, var(--ref-spacing-xxs) var(--ref-spacing-xs));
|
|
32
|
-
border: none;
|
|
33
|
-
background: transparent;
|
|
34
|
-
color: var(--comp-action-dropdown-item-text-color, var(--ref-color-grey-100));
|
|
35
|
-
cursor: pointer;
|
|
36
|
-
font-family: var(--ref-font-family);
|
|
37
|
-
font-size: var(--comp-action-dropdown-item-text-size, var(--ref-font-size-sm));
|
|
38
|
-
line-height: var(--comp-action-dropdown-item-text-line-height, var(--ref-line-height-sm));
|
|
39
|
-
text-align: left;
|
|
40
|
-
box-sizing: border-box;
|
|
41
|
-
|
|
42
|
-
// Implicit icon styling via > i
|
|
43
|
-
> i {
|
|
44
|
-
@include m.fixed-size(16px);
|
|
45
|
-
flex-shrink: 0;
|
|
46
|
-
color: var(--ref-color-grey-100);
|
|
47
|
-
|
|
48
|
-
// Start icon = first child
|
|
49
|
-
&:first-child {
|
|
50
|
-
margin-right: var(--comp-action-dropdown-item-icon-spacing, var(--ref-spacing-xs));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// End icon = last child (but not the only child)
|
|
54
|
-
&:last-child:not(:first-child) {
|
|
55
|
-
margin-left: var(--comp-action-dropdown-item-icon-spacing, var(--ref-spacing-xs));
|
|
56
|
-
color: var(--ref-color-grey-60);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&:hover {
|
|
61
|
-
background-color: var(--comp-action-dropdown-item-background-color-hover, var(--ref-color-grey-05));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&:focus,
|
|
65
|
-
&.focused {
|
|
66
|
-
outline: none;
|
|
67
|
-
background-color: var(--comp-action-dropdown-item-background-color-focused, var(--ref-color-electric-blue-10));
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&:disabled {
|
|
71
|
-
cursor: not-allowed;
|
|
72
|
-
opacity: 0.4;
|
|
73
|
-
|
|
74
|
-
&:hover {
|
|
75
|
-
background-color: transparent;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// Item with description
|
|
80
|
-
&.has-description {
|
|
81
|
-
height: auto;
|
|
82
|
-
min-height: 50px;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// Red mode (destructive action)
|
|
86
|
-
&.red-mode {
|
|
87
|
-
color: var(--comp-action-dropdown-item-text-color-red-mode, var(--ref-color-red-100));
|
|
88
|
-
|
|
89
|
-
> i {
|
|
90
|
-
color: inherit;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&:hover {
|
|
94
|
-
background-color: var(--comp-action-dropdown-item-background-color-red-mode-hover, var(--ref-color-red-10));
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&:focus,
|
|
98
|
-
&.focused {
|
|
99
|
-
background-color: var(--comp-action-dropdown-item-background-color-red-mode-focused, var(--ref-color-red-10));
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// Feature lock
|
|
104
|
-
&.feature-lock {
|
|
105
|
-
> i:last-child {
|
|
106
|
-
color: var(--ref-color-purple-100);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:hover {
|
|
110
|
-
background-color: var(--comp-action-dropdown-item-background-color-feature-lock-hover, var(--ref-color-purple-10));
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&:focus,
|
|
114
|
-
&.focused {
|
|
115
|
-
background-color: var(--comp-action-dropdown-item-background-color-feature-lock-focused, var(--ref-color-purple-10));
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// Badge within dropdown item
|
|
120
|
-
.ap-badge {
|
|
121
|
-
flex-shrink: 0;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// Text container
|
|
126
|
-
.ap-action-dropdown-item-text {
|
|
127
|
-
display: flex;
|
|
128
|
-
flex-direction: column;
|
|
129
|
-
flex: 1;
|
|
130
|
-
min-width: 0;
|
|
131
|
-
gap: var(--ref-spacing-xxxs);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// Label container
|
|
135
|
-
.ap-action-dropdown-item-label-container {
|
|
136
|
-
display: flex;
|
|
137
|
-
align-items: center;
|
|
138
|
-
gap: var(--comp-action-dropdown-item-label-spacing, var(--ref-spacing-xs));
|
|
139
|
-
@include m.truncate;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// Label
|
|
143
|
-
.ap-action-dropdown-item-label {
|
|
144
|
-
@include m.truncate;
|
|
145
|
-
|
|
146
|
-
&.bold {
|
|
147
|
-
font-weight: var(--ref-font-weight-bold);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// Description
|
|
152
|
-
.ap-action-dropdown-item-description {
|
|
153
|
-
color: var(--comp-action-dropdown-item-description-color, var(--ref-color-grey-60));
|
|
154
|
-
font-size: var(--comp-action-dropdown-item-description-size, var(--ref-font-size-xs));
|
|
155
|
-
line-height: var(--comp-action-dropdown-item-description-line-height, var(--ref-line-height-xs));
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
// Divider
|
|
159
|
-
.ap-action-dropdown-divider {
|
|
160
|
-
height: 1px;
|
|
161
|
-
background-color: var(--comp-action-dropdown-divider-color, var(--ref-color-grey-10));
|
|
162
|
-
margin: var(--comp-action-dropdown-divider-margin, var(--ref-spacing-xxs) 0);
|
|
163
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
// Agorapulse Avatar Group Styles
|
|
2
|
-
@use 'mixins' as m;
|
|
3
|
-
|
|
4
|
-
// Avatar group container — uses row-reverse for correct z-stacking (first avatar on top)
|
|
5
|
-
// DOM order is reversed from visual order
|
|
6
|
-
.ap-avatar-group {
|
|
7
|
-
display: inline-flex;
|
|
8
|
-
flex-direction: row-reverse;
|
|
9
|
-
align-items: center;
|
|
10
|
-
padding-left: 2px; // compensate overlap offset
|
|
11
|
-
|
|
12
|
-
.ap-avatar,
|
|
13
|
-
.ap-avatar-group-overflow {
|
|
14
|
-
margin-inline-start: -2px;
|
|
15
|
-
cursor: default;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// Size variants set overflow counter dimensions
|
|
19
|
-
&.size-16 .ap-avatar-group-overflow {
|
|
20
|
-
width: 16px;
|
|
21
|
-
height: 16px;
|
|
22
|
-
font-size: 8px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.size-32 .ap-avatar-group-overflow {
|
|
26
|
-
width: 32px;
|
|
27
|
-
height: 32px;
|
|
28
|
-
font-size: 12px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Overflow counter badge
|
|
33
|
-
.ap-avatar-group-overflow {
|
|
34
|
-
display: flex;
|
|
35
|
-
align-items: center;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
background-color: var(--ref-color-grey-10);
|
|
38
|
-
border-radius: 24px;
|
|
39
|
-
transition: background-color var(--ref-animation-short);
|
|
40
|
-
width: 24px;
|
|
41
|
-
height: 24px;
|
|
42
|
-
font-family: var(--ref-font-family);
|
|
43
|
-
font-weight: 700;
|
|
44
|
-
font-size: 10px;
|
|
45
|
-
color: var(--ref-color-grey-80);
|
|
46
|
-
line-height: 1em;
|
|
47
|
-
|
|
48
|
-
&:hover {
|
|
49
|
-
background-color: var(--ref-color-grey-20);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&:active {
|
|
53
|
-
background-color: var(--ref-color-grey-40);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&:focus-visible {
|
|
57
|
-
background-color: var(--ref-color-grey-20);
|
|
58
|
-
outline: 3px solid var(--ref-color-electric-blue-100);
|
|
59
|
-
outline-offset: 1px;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
// Agorapulse Avatar Styles
|
|
2
|
-
@use 'mixins' as m;
|
|
3
|
-
|
|
4
|
-
.ap-avatar {
|
|
5
|
-
--ap-avatar-size: 40px;
|
|
6
|
-
--ap-avatar-border-radius: 100%;
|
|
7
|
-
--ap-avatar-initials-size: 14px;
|
|
8
|
-
--ap-avatar-symbol-size: 20px;
|
|
9
|
-
--ap-avatar-network-size: 16px;
|
|
10
|
-
--ap-avatar-online-icon-size: 10px;
|
|
11
|
-
|
|
12
|
-
display: flex;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
align-items: center;
|
|
15
|
-
@include m.fixed-size(var(--ap-avatar-size));
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
position: relative;
|
|
18
|
-
border-radius: var(--ap-avatar-border-radius);
|
|
19
|
-
background: var(--comp-avatar-background-color);
|
|
20
|
-
box-shadow: var(--comp-avatar-background-shadow);
|
|
21
|
-
// Size variants
|
|
22
|
-
&.size-16 {
|
|
23
|
-
--ap-avatar-size: 16px;
|
|
24
|
-
--ap-avatar-initials-size: 8px;
|
|
25
|
-
--ap-avatar-symbol-size: 8px;
|
|
26
|
-
--ap-avatar-network-size: 8px;
|
|
27
|
-
--ap-avatar-online-icon-size: 6px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&.size-24 {
|
|
31
|
-
--ap-avatar-size: 24px;
|
|
32
|
-
--ap-avatar-initials-size: 12px;
|
|
33
|
-
--ap-avatar-symbol-size: 12px;
|
|
34
|
-
--ap-avatar-network-size: 12px;
|
|
35
|
-
--ap-avatar-online-icon-size: 6px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.size-32 {
|
|
39
|
-
--ap-avatar-size: 32px;
|
|
40
|
-
--ap-avatar-initials-size: 16px;
|
|
41
|
-
--ap-avatar-symbol-size: 16px;
|
|
42
|
-
--ap-avatar-network-size: 12px;
|
|
43
|
-
--ap-avatar-online-icon-size: 8px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.size-36 {
|
|
47
|
-
--ap-avatar-size: 36px;
|
|
48
|
-
--ap-avatar-initials-size: 16px;
|
|
49
|
-
--ap-avatar-symbol-size: 18px;
|
|
50
|
-
--ap-avatar-network-size: 16px;
|
|
51
|
-
--ap-avatar-online-icon-size: 8px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.size-40 {
|
|
55
|
-
--ap-avatar-size: 40px;
|
|
56
|
-
--ap-avatar-initials-size: 20px;
|
|
57
|
-
--ap-avatar-symbol-size: 20px;
|
|
58
|
-
--ap-avatar-network-size: 16px;
|
|
59
|
-
--ap-avatar-online-icon-size: 12px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.size-48 {
|
|
63
|
-
--ap-avatar-size: 48px;
|
|
64
|
-
--ap-avatar-initials-size: 24px;
|
|
65
|
-
--ap-avatar-symbol-size: 24px;
|
|
66
|
-
--ap-avatar-network-size: 16px;
|
|
67
|
-
--ap-avatar-online-icon-size: 12px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&.size-56 {
|
|
71
|
-
--ap-avatar-size: 56px;
|
|
72
|
-
--ap-avatar-initials-size: 28px;
|
|
73
|
-
--ap-avatar-symbol-size: 28px;
|
|
74
|
-
--ap-avatar-network-size: 16px;
|
|
75
|
-
--ap-avatar-online-icon-size: 16px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// Square variant
|
|
79
|
-
&.square {
|
|
80
|
-
--ap-avatar-border-radius: var(--sys-border-radius-sm);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// Image — implicit > img
|
|
84
|
-
> img {
|
|
85
|
-
position: absolute;
|
|
86
|
-
inset: 0;
|
|
87
|
-
width: 100%;
|
|
88
|
-
height: 100%;
|
|
89
|
-
object-fit: cover;
|
|
90
|
-
border-radius: var(--ap-avatar-border-radius);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Initials
|
|
94
|
-
> .ap-avatar-initials {
|
|
95
|
-
font-weight: var(--comp-avatar-initials-weight);
|
|
96
|
-
font-size: var(--ap-avatar-initials-size);
|
|
97
|
-
font-family: 'Averta', sans-serif;
|
|
98
|
-
color: var(--comp-avatar-initials-color);
|
|
99
|
-
text-transform: uppercase;
|
|
100
|
-
user-select: none;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// Symbol/icon — implicit > i
|
|
104
|
-
> i {
|
|
105
|
-
color: var(--comp-avatar-symbol-color);
|
|
106
|
-
width: var(--ap-avatar-symbol-size);
|
|
107
|
-
height: var(--ap-avatar-symbol-size);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Big network variant — network icon fills the full avatar
|
|
111
|
-
&.big {
|
|
112
|
-
background: none;
|
|
113
|
-
box-shadow: none;
|
|
114
|
-
|
|
115
|
-
> i {
|
|
116
|
-
color: unset;
|
|
117
|
-
width: 100%;
|
|
118
|
-
height: 100%;
|
|
119
|
-
font-size: var(--ap-avatar-size);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Online indicator — via ::after pseudo-element when .online class is present
|
|
124
|
-
&.online::after {
|
|
125
|
-
content: '';
|
|
126
|
-
position: absolute;
|
|
127
|
-
bottom: 0;
|
|
128
|
-
right: 0;
|
|
129
|
-
@include m.fixed-size(var(--ap-avatar-online-icon-size));
|
|
130
|
-
border-radius: 100%;
|
|
131
|
-
border: 1px solid var(--comp-avatar-online-border-color);
|
|
132
|
-
background: var(--comp-avatar-online-background);
|
|
133
|
-
box-sizing: border-box;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Network overlay badge
|
|
138
|
-
.ap-avatar-network {
|
|
139
|
-
position: absolute;
|
|
140
|
-
bottom: 0;
|
|
141
|
-
right: 0;
|
|
142
|
-
display: flex;
|
|
143
|
-
align-items: center;
|
|
144
|
-
justify-content: center;
|
|
145
|
-
@include m.fixed-size(var(--ap-avatar-network-size));
|
|
146
|
-
overflow: hidden;
|
|
147
|
-
box-sizing: border-box;
|
|
148
|
-
box-shadow: var(--comp-avatar-background-shadow);
|
|
149
|
-
border-radius: 100%; // round by default (facebook, twitter, youtube…)
|
|
150
|
-
|
|
151
|
-
// Shape inferred from icon child
|
|
152
|
-
&:has(.ap-icon-instagram-official, .ap-icon-instagram) {
|
|
153
|
-
border-radius: 28%;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
&:has(.ap-icon-linkedin-official, .ap-icon-linkedin) {
|
|
157
|
-
border-radius: 6%;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&:has(.ap-icon-google, .ap-icon-meta) {
|
|
161
|
-
box-shadow: none;
|
|
162
|
-
border-radius: 0;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
&:has(.ap-icon-youtube-official, .ap-icon-youtube) {
|
|
166
|
-
box-shadow: none;
|
|
167
|
-
border-radius: 0;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
> i {
|
|
171
|
-
font-size: var(--ap-avatar-network-size);
|
|
172
|
-
width: var(--ap-avatar-network-size);
|
|
173
|
-
height: var(--ap-avatar-network-size);
|
|
174
|
-
|
|
175
|
-
// Monochrome icon fallback colors (when using ap-icon-{network} instead of -official)
|
|
176
|
-
&.ap-icon-facebook {
|
|
177
|
-
color: var(--ref-color-facebook-100);
|
|
178
|
-
}
|
|
179
|
-
&.ap-icon-instagram {
|
|
180
|
-
color: var(--ref-color-instagram-100);
|
|
181
|
-
}
|
|
182
|
-
&.ap-icon-linkedin {
|
|
183
|
-
color: var(--ref-color-linkedin-100);
|
|
184
|
-
}
|
|
185
|
-
&.ap-icon-youtube {
|
|
186
|
-
color: var(--ref-color-youtube-100);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
// Avatar group styles are in _avatar-group.scss
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// Agorapulse Badge Styles
|
|
2
|
-
|
|
3
|
-
.ap-badge {
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
padding: 0 var(--comp-badge-padding-right) 0 var(--comp-badge-padding-left);
|
|
8
|
-
font-weight: var(--comp-badge-text-style-font-weight);
|
|
9
|
-
font-family: var(--comp-badge-text-style-font-family);
|
|
10
|
-
line-height: var(--comp-badge-text-style-line-height);
|
|
11
|
-
font-size: var(--comp-badge-text-style-size);
|
|
12
|
-
height: var(--comp-badge-height);
|
|
13
|
-
max-height: var(--comp-badge-height);
|
|
14
|
-
border-radius: 2px;
|
|
15
|
-
white-space: nowrap;
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
|
|
18
|
-
&.blue {
|
|
19
|
-
background-color: var(--comp-badge-blue-background-color);
|
|
20
|
-
color: var(--comp-badge-blue-color);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&.orange {
|
|
24
|
-
text-transform: uppercase;
|
|
25
|
-
background-color: var(--comp-badge-orange-background-color);
|
|
26
|
-
color: var(--comp-badge-orange-color);
|
|
27
|
-
}
|
|
28
|
-
}
|