Fixed mixin 'screen-md-up'
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / ui / userProfile.scss
CommitLineData
27db335a
AE
1.userProfileHeader.box {
2 margin: 0;
3}
4.userProfileCoverPhoto {
41ec911a 5 background-image: url('../images/user-profile-header.jpg'); // todo
c0053218 6 background-position: center;
41ec911a 7 background-size: cover;
c0053218 8
2c50c296
AE
9 /* adds a box-shadow on the top and bottom of the element to create perspective
10 and a clear separation if the images color is close to the surrounding elements */
11 box-shadow: inset 0 10px 10px -10px rgba(0, 0, 0, .6), inset 0 -10px 10px -10px rgba(0, 0, 0, .6);
12
f216765b 13 @include screen-md-up {
c0053218
AE
14 height: 200px;
15 }
16
f216765b 17 @include screen-sm-down {
c0053218
AE
18 height: 100px;
19 }
27db335a
AE
20}
21
22.userProfileUser {
80dd04db 23 background-color: $wcfHeaderMenuBackground;
41ec911a 24
27db335a
AE
25 > .layoutBoundary {
26 align-items: center;
27 display: flex;
80dd04db 28 padding: 0 10px 0 160px;
b8eab696 29 position: relative;
c0053218 30
f216765b 31 @include screen-sm-down {
c0053218
AE
32 padding-left: 90px;
33 }
41ec911a
MW
34 }
35
02a17ca6
AE
36 .contentHeader {
37 align-items: center;
38 color: $wcfHeaderText;
39 width: 100%;
40 }
41
42 .contentHeaderIcon {
80dd04db 43 background-color: $wcfHeaderMenuBackground;
27db335a
AE
44 border-radius: 50%;
45 left: 0;
46 padding: 10px;
47 position: absolute;
48 top: 50%;
49 transform: translateY(-50%);
c0053218 50
f216765b 51 @include screen-sm-down {
c0053218
AE
52 .userAvatarImage {
53 height: 64px !important;
54 width: 64px !important;
55 }
56 }
b8eab696 57 }
b8eab696 58
80dd04db
AE
59 .contentHeaderTitle {
60 align-items: center;
61 display: flex;
62
63 > .contentTitle {
64 flex: 0 0 auto;
65 }
66
67 > span {
68 border: 1px solid rgba(255, 255, 255, 1);
69 flex: 0 0 auto;
70 margin-left: 10px;
71 }
41ec911a
MW
72 }
73
80dd04db 74 .userProfileButtonContainer {
f216765b 75 @include screen-md-up {
80dd04db 76 display: flex;
c0053218
AE
77 flex: 0 0 auto;
78 margin-left: 10px;
27db335a 79
80dd04db
AE
80 > li {
81 flex: 0 0 auto;
82 position: relative;
83
84 > a {
85 background-color: $wcfHeaderMenuBackground;
86 color: $wcfHeaderMenuLink;
87 display: block;
88 padding: 10px;
89
90 .icon {
91 color: inherit;
92 }
93 }
94
95 > .userProfileButtonMenu {
96 background-color: $wcfHeaderMenuDropdownBackground;
7967ab19
AE
97 box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
98 border-radius: 0 0 3px 3px;
80dd04db
AE
99 padding: 5px 0;
100 position: absolute;
101 right: 0;
102 visibility: hidden;
103
104 > li {
105 &.divider:not(:first-child) {
106 border-top: 1px solid $wcfHeaderMenuDropdownBackgroundActive;
107 margin-top: 5px;
108 padding-top: 5px;
109 }
110
111 > a {
112 color: $wcfHeaderMenuDropdownLink;
113 }
114
115 > a,
116 > span {
117 display: block;
118 padding: 7px 20px;
119 white-space: nowrap;
120 text-align: right;
121 }
122
123 &.active > a,
124 > a:hover {
125 background-color: $wcfHeaderMenuDropdownBackgroundActive;
126 color: $wcfHeaderMenuDropdownLinkActive;
127 text-decoration: none;
128 }
129 }
130 }
c0053218 131
c0053218 132 &:hover {
80dd04db
AE
133 > a {
134 background-color: $wcfHeaderMenuBackgroundActive;
135 color: $wcfHeaderMenuLinkActive;
136 }
137
138 > .userProfileButtonMenu {
139 visibility: visible;
140 }
c0053218 141 }
41ec911a 142 }
b8eab696 143 }
c0053218 144
f216765b 145 @include screen-sm-down {
c0053218
AE
146 display: none;
147 }
b8eab696
AE
148 }
149}
929f7e47 150
27db335a
AE
151.userProfileDetails {
152 background-color: $wcfSidebarBackground;
4c12e5d1
AE
153 color: $wcfSidebarText;
154
155 a {
156 color: $wcfSidebarLink;
157
158 &:hover {
159 color: $wcfSidebarLinkActive;
160 }
161 }
27db335a
AE
162
163 > .layoutBoundary {
c0053218
AE
164 padding: 10px 10px 10px 160px;
165
f216765b 166 @include screen-sm-down {
c0053218
AE
167 padding: 20px 10px 10px;
168 }
27db335a
AE
169 }
170}
171
444623c3 172#tpl_wcf_user .main {
27db335a 173 padding-top: 0;
34208c98
AE
174
175 .userProfileContent,
176 .sidebar {
177 margin-top: 20px;
178 }
27db335a
AE
179}
180
cd358fd9
AE
181.userAvatarImage {
182 background-color: rgba(255, 255, 255, 1);
183 border-radius: 50%;
184}
185
929f7e47
MW
186.userAvatarList {
187 display: flex;
188 flex-wrap: wrap;
cd358fd9 189 margin-bottom: -10px;
929f7e47
MW
190
191 > li {
cd358fd9
AE
192 flex: 0 0 48px;
193 margin-bottom: 10px;
929f7e47
MW
194 text-align: center;
195
cd358fd9
AE
196 &:not(:last-child) {
197 margin-right: -12px;
198 }
199
929f7e47
MW
200 > a {
201 display: block;
cd358fd9
AE
202
203 > img {
204 padding: 2px;
205 }
929f7e47
MW
206 }
207 }
208}
209
210.userList {
211 .box48 {
212 align-items: center;
213 }
b8eab696 214}
06a511ea
MW
215
216.likeList {
217 > .likeTypeSelection {
218 text-align: right;
219
220 &:hover {
221 background-color: transparent;
222 }
223
224 > .buttonGroup {
225 display: inline-flex;
226
227 &:not(:first-child) {
228 margin-left: 5px;
229 }
230 }
231 }
232}
b3df3a4d
AE
233
234/* using `dl` + `.inlineDataList` to prevent styles applied to the
235 data list provided by the `userInformation` template */
236.userProfilePreview dl.inlineDataList {
237 margin-top: 10px;
238
239 @include wcfFontSmall;
240}