Skip to content

Commit

Permalink
XWIKI-20435: Pencil icon in user profile can be displayed white over …
Browse files Browse the repository at this point in the history
…white and thus not be visible (#2728)

* Replaced the custom color mappings with a bootstrap standard class for the action-button
  • Loading branch information
Sereza7 authored Feb 27, 2024
1 parent 36dc906 commit 7461bac
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@
#if($xcontext.action == 'view' && $hasEdit)
<div class="editProfileCategory">
<a title="$escapetool.xml($services.localization.render('platform.core.profile.category.dashboard.edit'))"
href="$doc.getURL('edit', 'category=dashboard')" class="btn btn-xs">
<span class="action-icon">$services.icon.renderHTML('pencil')</span>
href="$doc.getURL('edit', 'category=dashboard')" class="btn btn-xs btn-default">
$services.icon.renderHTML('pencil')
<span class='sr-only'>$escapetool.xml($services.localization.render('platform.core.profile.category.dashboard.edit'))</span>
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@
#if ($xcontext.action == 'view' && $hasEdit)
<div class="editProfileCategory">
<a title="$!escapetool.xml($services.localization.render('platform.core.profile.category.preferences.edit'))"
href="$doc.getURL('edit', 'category=preferences')" class="btn btn-xs">
<span class="action-icon">$services.icon.renderHTML('pencil')</span>
href="$doc.getURL('edit', 'category=preferences')" class="btn btn-xs btn-default">
$services.icon.renderHTML('pencil')
<span class='sr-only'>$!escapetool.xml($services.localization.render(
'platform.core.profile.category.preferences.edit'))</span>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ $services.localization.render('platform.core.profile.category.profile.disabled')
#if($xcontext.action == 'view' && $hasEdit)
<div class='editProfileCategory'>
<a title="$escapetool.xml($services.localization.render('platform.core.profile.category.profile.edit'))"
href="$doc.getURL('edit', 'editor=inline&category=profile')" class="btn btn-xs">
<span class="action-icon">$services.icon.renderHTML('pencil')</span>
href="$doc.getURL('edit', 'editor=inline&category=profile')" class="btn btn-xs btn-default">
$services.icon.renderHTML('pencil')
<span class='sr-only'>$escapetool.xml($services.localization.render('platform.core.profile.category.profile.edit'))</span>
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,8 @@ return XWiki;
}

.column h1, .column h2 {
font-size:115%;
margin:10px 0;
font-size: 115%;
margin: 10px 0;
}

.column h3 {
Expand All @@ -536,7 +536,7 @@ div.userDashboard, #dashboardPane .dashboard {

/* ----- Profile ----- */
td.recentChangesLeft, .recentChangesMoreActions {
display:none;
display: none;
}

td.recentChangesRight {
Expand Down Expand Up @@ -574,22 +574,7 @@ div.userInfo input[type="text"], div.userInfo input[type="password"], div.userIn
}

div.editProfileCategory {
float:right;
}

div.editProfileCategory {
float:right;
a.btn-xs {
background-color: @xwiki-page-content-bg;
border: 1px solid @xwiki-border-color;
.action-icon {
font-size: larger;
color: @btn-default-color;
}
&:hover, &:active, &:focus {
border-color: darken(@dropdown-divider-bg, 10%);
}
}
float: right;
}


Expand All @@ -602,9 +587,9 @@ div.editProfileCategory {
}

span#avatarUpload {
display:block;
width:$tabswidth;
position:absolute;
display: block;
width: $tabswidth;
position: absolute;
font-size: 10px;
font-weight: bold;
background-color: white;
Expand All @@ -619,35 +604,43 @@ span#avatarUpload {
margin: 0;
padding: 0;
}

#networkPane .following li {
padding: 2px 20px 2px 2px;
}

#networkPane .following li:hover {
background-color: $theme.highlightColor;
}

#networkPane .following img {
float: left;
margin-right: 5px;
}

#networkPane .following .user-info {
float: left;
}

#networkPane .following .user-id {
font-size: .8em;
font-weight: 900;
}

#networkPane .following .unfollow {
float: right;
margin-right: -16px;
padding: 0;
}

## --------------------------------------
## Picker style
.attachment-picker {
position: relative;
margin: auto;
width: 100%;
}

.attachment-picker p {
padding: 0;
margin: 0;
Expand All @@ -656,6 +649,7 @@ span#avatarUpload {
.attachment-picker .picture {
z-index: -1;
}

.attachment-picker .buttonwrapper {
margin: 0;
}
Expand Down

0 comments on commit 7461bac

Please sign in to comment.