Fixed missing style variable
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / ui / userProfile.scss
CommitLineData
2901b096 1.userProfileUser {
07c80400
MW
2 .contentHeaderIcon {
3 position: relative;
4
5 a {
6 display: block;
7 }
8
9 .badgeOnline {
10 left: 0;
11 pointer-events: none;
12 position: absolute;
13
14 @include screen-md-up {
15 bottom: 0;
16 }
17
18 @include screen-sm-down {
19 color: transparent;
20 padding: 0;
21 top: 0;
22 width: 0;
23
24 &::before {
25 background-color: inherit;
26 border: 1px solid rgba(255, 255, 255, 1);
27 border-radius: 50%;
28 content: "";
29 height: 16px;
30 left: 34px; /* 48px (avatar) - 16px (width) - 2px (border-left + border-right) */
31 position: absolute;
32 width: 16px;
33 }
34 }
35 }
36 }
37
2772d4eb
MW
38 .contentHeaderIcon a {
39 display: block;
2901b096
MW
40 }
41
42 .contentDescription {
34208c98
AE
43 margin-top: 20px;
44 }
91918c8f 45
07c80400 46 @include screen-sm-down {
91918c8f
MW
47 display: flex;
48 flex-wrap: wrap;
49
50 .contentHeaderIcon {
51 display: block;
52 flex: 0 0 48px;
53 margin-right: 10px;
54
55 img {
56 width: 48px !important;
57 height: 48px !important;
58 }
59 }
60
61 .contentHeaderTitle {
62 flex: 0 0 calc(100% - 58px);
63 max-width: calc(100% - 58px);
64 }
07c80400
MW
65 }
66
67 @include screen-xs {
91918c8f
MW
68 .contentHeaderNavigation {
69 flex: 0 0 100%;
70
71 .userProfileButtonContainer {
72 display: flex;
73
74 > li {
75 flex: 1 1 auto;
76 margin-top: 0 !important;
5d9e3dd0
MW
77
78 &:not(:last-child) {
79 margin-right: 1px;
80 }
91918c8f
MW
81 }
82 }
83 }
84 }
85
86 @include screen-md-up {
87 .contentHeaderIcon {
88 flex: 0 0 128px;
89 margin-right: 20px;
90 }
91 }
27db335a
AE
92}
93
1bcbab84
MW
94.userTitleBadge {
95 max-width: 154px;
96 overflow: hidden;
97 text-overflow: ellipsis;
98}
99
cd358fd9 100.userAvatarImage {
1f633a6b 101 background-color: #fff;
cd358fd9
AE
102 border-radius: 50%;
103}
104
929f7e47
MW
105.userAvatarList {
106 display: flex;
107 flex-wrap: wrap;
cd358fd9 108 margin-bottom: -10px;
929f7e47
MW
109
110 > li {
cd358fd9
AE
111 flex: 0 0 48px;
112 margin-bottom: 10px;
929f7e47
MW
113 text-align: center;
114
cd358fd9
AE
115 &:not(:last-child) {
116 margin-right: -12px;
117 }
118
929f7e47
MW
119 > a {
120 display: block;
cd358fd9
AE
121
122 > img {
7b27189d 123 border: 2px solid #fff;
cd358fd9 124 }
929f7e47
MW
125 }
126 }
98618a3e
MW
127
128 &.small {
129 > li {
130 flex: 0 0 24px;
131
132 &:not(:last-child) {
133 margin-right: -6px;
134 }
135
136 > a {
137 > img {
7b27189d 138 border: 1px solid #fff;
98618a3e
MW
139 }
140 }
c5dd767e 141 }
98618a3e 142 }
929f7e47
MW
143}
144
145.userList {
146 .box48 {
147 align-items: center;
148 }
b8eab696 149}
06a511ea 150
e41f8bc3
MW
151.userProfilePreview {
152 position: relative;
153
154 .userInformation {
155 padding-bottom: 16px;
156 }
157
158 .buttonGroupNavigation {
159 position: absolute;
160 bottom: 0;
161 right: 0;
162 }
163}
164
b3df3a4d
AE
165/* using `dl` + `.inlineDataList` to prevent styles applied to the
166 data list provided by the `userInformation` template */
167.userProfilePreview dl.inlineDataList {
168 margin-top: 10px;
169
170 @include wcfFontSmall;
171}
98618a3e
MW
172
173/* user notifications */
174.userNotificationItemList > .notificationItem {
175 &.notificationUnconfirmed {
176 align-items: center;
177 display: flex;
178
179 > .box32 {
180 flex: 1 1 auto;
181 }
182
183 > .notificationItemMarkAsConfirmed {
184 flex: 0 0 auto;
185 }
186 }
187}