Skip to content

Commit

Permalink
XWIKI-21833: Provide better controls for editing the profile picture …
Browse files Browse the repository at this point in the history
…(avatar)

* Updated #avatar styles to keep it visually integrated with the button;
* Updated button styles using mixins and a few layout rules to keep alignment;
  • Loading branch information
tkrieck committed Feb 14, 2024
1 parent 6a9947e commit 1388fe5
Showing 1 changed file with 18 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,15 +448,21 @@ return XWiki;
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;
margin: 0 auto;
padding: 0.3em;
img{
border-radius: @border-radius-base @border-radius-base 0 0;
margin: 0 auto;
padding: 0.3em;
}

.attachment-picker {
border: @border-width solid @list-group-border;
border-radius: @border-radius-base;
}
}

.profile-menu .category-tab:before{
Expand Down Expand Up @@ -662,24 +668,10 @@ span#avatarUpload {
.attachment-picker {
.buttonwrapper {
a.button {
background-color: inherit;
background-image: none;
border-color: unset;
border-radius: unset;
border: unset;
color: @link-color;
cursor: pointer;
display: unset;
font-size: @font-size-small;
font-weight: normal;
line-height: unset;
margin: unset;
padding: unset;
text-align: center;
vertical-align: middle;
&:hover {
text-decoration: underline
};
.btn;
.btn-default;
width: ~"calc(100% - 0.6em)";
margin: 0 0.3em 0.3em 0.3em;
}
}
}
Expand Down

0 comments on commit 1388fe5

Please sign in to comment.