`appendSession` is now deprecated
[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
c0053218
AE
13 @include large-screen-only {
14 height: 200px;
15 }
16
17 @include small-screen-only {
18 height: 100px;
19 }
27db335a
AE
20}
21
22.userProfileUser {
23 background-color: $wcfHeaderBackground;
41ec911a 24
27db335a
AE
25 > .layoutBoundary {
26 align-items: center;
27 display: flex;
c0053218 28 padding: 5px 10px 10px 160px;
b8eab696 29 position: relative;
c0053218
AE
30
31 @include small-screen-only {
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 {
27db335a
AE
43 background-color: $wcfHeaderBackground;
44 border-radius: 50%;
45 left: 0;
46 padding: 10px;
47 position: absolute;
48 top: 50%;
49 transform: translateY(-50%);
c0053218
AE
50
51 @include small-screen-only {
52 .userAvatarImage {
53 height: 64px !important;
54 width: 64px !important;
55 }
56 }
b8eab696 57 }
b8eab696 58
02a17ca6
AE
59 .contentTitle + span {
60 margin-top: 5px;
41ec911a
MW
61 }
62
41ec911a 63 .buttonGroupNavigation {
c0053218
AE
64 @include large-screen-only {
65 flex: 0 0 auto;
66 margin-left: 10px;
27db335a 67
c0053218
AE
68 .button {
69 background-color: $wcfHeaderMenuBackground;
70 color: $wcfHeaderMenuLink;
71
72 &.active,
73 &:hover {
74 background-color: $wcfHeaderMenuBackgroundActive;
75 color: $wcfHeaderMenuLinkActive;
76 }
41ec911a 77 }
b8eab696 78 }
c0053218
AE
79
80 @include small-screen-only {
81 display: none;
82 }
b8eab696
AE
83 }
84}
929f7e47 85
27db335a
AE
86.userProfileDetails {
87 background-color: $wcfSidebarBackground;
4c12e5d1
AE
88 color: $wcfSidebarText;
89
90 a {
91 color: $wcfSidebarLink;
92
93 &:hover {
94 color: $wcfSidebarLinkActive;
95 }
96 }
27db335a
AE
97
98 > .layoutBoundary {
c0053218
AE
99 padding: 10px 10px 10px 160px;
100
101 @include small-screen-only {
102 padding: 20px 10px 10px;
103 }
27db335a
AE
104 }
105}
106
107.userProfile .main {
108 padding-top: 0;
34208c98
AE
109
110 .userProfileContent,
111 .sidebar {
112 margin-top: 20px;
113 }
27db335a
AE
114}
115
929f7e47
MW
116.userAvatarList {
117 display: flex;
118 flex-wrap: wrap;
06a511ea 119 margin-bottom: -15px;
929f7e47
MW
120
121 > li {
122 flex: 0 0 25%;
06a511ea 123 margin-bottom: 15px;
929f7e47
MW
124 text-align: center;
125
126 > a {
127 display: block;
128 }
129 }
130}
131
132.userList {
133 .box48 {
134 align-items: center;
135 }
b8eab696 136}
06a511ea
MW
137
138.likeList {
139 > .likeTypeSelection {
140 text-align: right;
141
142 &:hover {
143 background-color: transparent;
144 }
145
146 > .buttonGroup {
147 display: inline-flex;
148
149 &:not(:first-child) {
150 margin-left: 5px;
151 }
152 }
153 }
154}
b3df3a4d
AE
155
156/* using `dl` + `.inlineDataList` to prevent styles applied to the
157 data list provided by the `userInformation` template */
158.userProfilePreview dl.inlineDataList {
159 margin-top: 10px;
160
161 @include wcfFontSmall;
162}