-
-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XWIKI 21833 - Provide better controls for editing the profile picture (avatar) #2862
Changes from all commits
10c083b
ed91fe4
6a9947e
1388fe5
2b2162f
df059ae
7029496
62f55fe
bcfb5ba
c7dfa8e
05c2f19
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -442,50 +442,58 @@ return XWiki; | |
<code>#template("colorThemeInit.vm") | ||
#set($tabswidth = "130px") | ||
/* ----- User menu ----- */ | ||
#user-menu-col{ | ||
#user-menu-col { | ||
float: left; | ||
width: 13em; | ||
} | ||
|
||
#avatar p { | ||
text-align: center; | ||
} | ||
#avatar { | ||
|
||
p { | ||
text-align: center; | ||
} | ||
|
||
#avatar img { | ||
border: 1px solid $theme.borderColor; | ||
border-radius: 8px 8px 8px 8px; | ||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); | ||
margin: 0 auto; | ||
padding: 0.3em; | ||
width: 95%; | ||
img { | ||
border-top: @border-width solid @list-group-border; | ||
border-left: @border-width solid @list-group-border; | ||
border-right: @border-width solid @list-group-border; | ||
border-bottom: 0; | ||
border-radius: @border-radius-base @border-radius-base 0 0; | ||
tkrieck marked this conversation as resolved.
Show resolved
Hide resolved
|
||
margin: 0 auto; | ||
} | ||
|
||
.attachment-picker { | ||
border-radius: @border-radius-base; | ||
padding: @border-width; | ||
} | ||
} | ||
|
||
.profile-menu .category-tab:before{ | ||
.profile-menu .category-tab:before { | ||
float: left; | ||
margin: 5px 0 0 5px; | ||
} | ||
|
||
.profile-menu .user-menu-profile:before{ | ||
.profile-menu .user-menu-profile:before { | ||
content: url("$xwiki.getSkinFile('icons/silk/vcard.png')"); | ||
} | ||
|
||
.profile-menu .user-menu-preferences:before{ | ||
.profile-menu .user-menu-preferences:before { | ||
content: url("$xwiki.getSkinFile('icons/silk/wrench.png')"); | ||
} | ||
|
||
.profile-menu .user-menu-watchlist:before{ | ||
.profile-menu .user-menu-watchlist:before { | ||
content: url("$xwiki.getSkinFile('icons/silk/star.png')"); | ||
} | ||
|
||
.profile-menu .user-menu-network:before{ | ||
.profile-menu .user-menu-network:before { | ||
content: url("$xwiki.getSkinFile('icons/silk/group.png')"); | ||
} | ||
|
||
.profile-menu .user-menu-dashboard:before{ | ||
.profile-menu .user-menu-dashboard:before { | ||
content: url("$xwiki.getSkinFile('icons/silk/application_view_tile.png')"); | ||
} | ||
|
||
.profile-menu .user-menu-wikis:before{ | ||
.profile-menu .user-menu-wikis:before { | ||
content: url("$xwiki.getSkinFile('icons/silk/chart_organisation.png')"); | ||
} | ||
|
||
|
@@ -504,12 +512,12 @@ return XWiki; | |
background-position: 7px 50%,top center; | ||
} | ||
|
||
.user-menu-title a:hover{ | ||
.user-menu-title a:hover { | ||
color: $theme.panelHeaderTextColor !important; | ||
} | ||
|
||
/* ----- Page content ---- */ | ||
#user-page-content{ | ||
#user-page-content { | ||
margin-left: 14em; | ||
} | ||
|
||
|
@@ -636,37 +644,41 @@ span#avatarUpload { | |
|
||
## -------------------------------------- | ||
## Picker style | ||
.attachment-picker { | ||
|
||
#user-menu-col .attachment-picker { | ||
position: relative; | ||
margin: auto; | ||
width: 100%; | ||
} | ||
|
||
.attachment-picker p { | ||
#user-menu-col .attachment-picker p { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.attachment-picker .picture { | ||
#user-menu-col .attachment-picker .picture { | ||
z-index: -1; | ||
} | ||
|
||
.attachment-picker .buttonwrapper { | ||
#user-menu-col .attachment-picker .buttonwrapper { | ||
margin: 0; | ||
} | ||
|
||
.attachment-picker-start { | ||
background: url("$xwiki.getSkinFile('icons/silk/picture_edit.png')") no-repeat center center $theme.pageContentBackgroundColor !important; | ||
border: 0 none !important; | ||
border-bottom-left-radius: 8px; | ||
height: 18px; | ||
position: absolute; | ||
right: 0; | ||
text-align: left; | ||
text-indent: -9999px; | ||
top: 1px; | ||
width: 18px !important; | ||
z-index: 1; | ||
#user-menu-col .attachment-picker { | ||
.buttonwrapper { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an unchanged style rule for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It's not intentional, from what I can see there's no reason to not include it in my changed code and remove from the first one. I'll do it. Regarding the generality of rules, maybe we can add a general prefix to all rules and make them more specific. I will do some tests on this. Thanks for the feedback. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tkrieck Do you still plan to add these changes to this PR, or shall we merge it without them? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
.wikilink { | ||
display: flex; | ||
flex-flow: column; | ||
} | ||
|
||
a.button { | ||
.btn; | ||
.btn-default; | ||
border-radius: 0 0 @border-radius-base @border-radius-base; | ||
flex-grow: 1; | ||
margin: 0; | ||
} | ||
} | ||
} | ||
|
||
## -------------------------------------- | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rulesets that are next to each other should be separated with an empty line. Here, this would mean adding back a line between the
p
ruleset and theimg
one :)From https://dev.xwiki.org/xwiki/bin/view/Community/CodeStyle/XhtmlCssCodeStyle/
PS: It's a pretty new rule in the codestyle, so if you notice it's not followed somewhere, you're welcome to propose a fix for the file :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjusted with df059ae