mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Updated fix for staff user edit button using task button property
refs TryGhost/Ghost#11789 - Reverted28fbc341af
as we want to handle the state with css props instead of relying on specificity - Updates fix for change password button on staff user edit screen to use task button props -28fbc341af
This commit is contained in:
parent
a7eb66a50d
commit
a40706ed28
@ -141,6 +141,44 @@ fieldset[disabled] .gh-btn {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Green button
|
||||
/* ---------------------------------------------------------- */
|
||||
|
||||
/* The background of the button creates 1px gradient border */
|
||||
.gh-btn-green,
|
||||
.gh-btn-green:hover {
|
||||
border: 1px solid color-mod(var(--green) s(-5%));
|
||||
color: #fff;
|
||||
fill: #fff;
|
||||
box-shadow: none;
|
||||
transition-property: box-shadow;
|
||||
}
|
||||
|
||||
.gh-btn-green:hover {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* The background of the span is the main visual element */
|
||||
.gh-btn-green span {
|
||||
background: linear-gradient(color-mod(var(--green) l(+6%) s(-2%)), color-mod(var(--green) l(-8%) s(+5%)));
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.gh-btn-green:hover span {
|
||||
background: linear-gradient(color-mod(var(--green) l(+9%) s(-1%)), color-mod(var(--green) l(-3%) saturation(-3%)));
|
||||
}
|
||||
|
||||
/* When clicked or focused with keyboard */
|
||||
.gh-btn-green:active,
|
||||
.gh-btn-green:focus {
|
||||
background: color-mod(var(--green) l(-9%) saturation(-9%));
|
||||
}
|
||||
.gh-btn-green:active span,
|
||||
.gh-btn-green:focus span {
|
||||
background: color-mod(var(--green) l(-3%) saturation(-7%));
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
/* Red button
|
||||
/* ---------------------------------------------------------- */
|
||||
@ -185,44 +223,6 @@ fieldset[disabled] .gh-btn {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Green button
|
||||
/* ---------------------------------------------------------- */
|
||||
|
||||
/* The background of the button creates 1px gradient border */
|
||||
.gh-btn-green,
|
||||
.gh-btn-green:hover {
|
||||
border: 1px solid color-mod(var(--green) s(-5%));
|
||||
color: #fff;
|
||||
fill: #fff;
|
||||
box-shadow: none;
|
||||
transition-property: box-shadow;
|
||||
}
|
||||
|
||||
.gh-btn-green:hover {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* The background of the span is the main visual element */
|
||||
.gh-btn-green span {
|
||||
background: linear-gradient(color-mod(var(--green) l(+6%) s(-2%)), color-mod(var(--green) l(-8%) s(+5%)));
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.gh-btn-green:hover span {
|
||||
background: linear-gradient(color-mod(var(--green) l(+9%) s(-1%)), color-mod(var(--green) l(-3%) saturation(-3%)));
|
||||
}
|
||||
|
||||
/* When clicked or focused with keyboard */
|
||||
.gh-btn-green:active,
|
||||
.gh-btn-green:focus {
|
||||
background: color-mod(var(--green) l(-9%) saturation(-9%));
|
||||
}
|
||||
.gh-btn-green:active span,
|
||||
.gh-btn-green:focus span {
|
||||
background: color-mod(var(--green) l(-3%) saturation(-7%));
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Black button
|
||||
/* ---------------------------------------------------------- */
|
||||
|
||||
|
@ -338,7 +338,7 @@
|
||||
</GhFormGroup>
|
||||
|
||||
<div class="form-group">
|
||||
<GhTaskButton @buttonText="Change Password" @class="gh-btn gh-btn-red gh-btn-icon button-change-password" @task={{this.user.saveNewPassword}} data-test-save-pw-button="true" />
|
||||
<GhTaskButton @buttonText="Change Password" @idleClass="gh-btn-red" @class="gh-btn gh-btn-icon button-change-password" @task={{this.user.saveNewPassword}} data-test-save-pw-button="true" />
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user