Skip to content
This repository was archived by the owner on Oct 4, 2022. It is now read-only.

Tweak admin redesign #751

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/components/src/CardBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ import { colors } from "@yoast/style-guide";

const BannerContents = styled.span`
position: absolute;

top: 8px;
left: -8px;

font-weight: 500;
color: ${ props => props.textColor };
line-height: 16px;

background-color: ${ props => props.backgroundColor };
padding: 8px 16px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
`;

const BannerTriangle = styled.span`
position: absolute;

top: 40px;
left: -8px;

/* This code makes the triangle. */
border-top: 8px solid ${ colors.$color_purple_dark };
border-left: 8px solid transparent;
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/field-group/field-group.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
margin: 0 0 24px 0;
}

.yoast-field-group:last-of-type {
margin-bottom: 0;
}

.yoast-field-group__title {
display: flex;
align-items: center;
Expand Down
19 changes: 8 additions & 11 deletions packages/components/src/toggle/toggle.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
.yoast-feature {
max-width: 600px;
margin-right: 150px;
}

.yoast-toggle__item {
display: flex;
justify-content: space-between;
padding-bottom: 16px;
border-bottom: 1px solid var(--yoast-color-border);
margin-bottom: 16px;
padding-bottom: 8px;
margin-bottom: 8px;
}

.yoast-toggle__item-disabled {
position: relative;
}

.yoast-toggle__item-disabled .yoast-toggle {
display: none;
}

.yoast-toggle__item-disabled .yoast-button.yoast-button--buy {
position: absolute;
left: 100%;
margin-left: 32px;
white-space: nowrap;
}
Expand All @@ -29,8 +25,9 @@

.yoast-toggle__item-title {
display: flex;
font-weight: bold;
font-weight: 500;
align-items: center;
color: var(--yoast-color-default-darker);
}

input[type=checkbox].yoast-toggle__checkbox {
Expand Down
5 changes: 1 addition & 4 deletions packages/replacement-variable-editor/src/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,5 @@ export const TriggerReplacementVariableSuggestionsButton = styled( StandardButto
font-size: 13px;
width: 103px;
height: 28px;
& svg {
${ getDirectionalStyle( "margin-right", "margin-left" ) }: 7px;
fill: ${ colors.$color_grey_dark };
}
border-color: rgba(0, 0, 0, .2);
`;