Skip to content

Commit

Permalink
remove obsolete styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed May 15, 2023
1 parent 2517beb commit 3d139cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export default function NewTemplate( {
gap={ 4 }
align="flex-start"
justify="center"
className="edit-site-add-new-template__modal__contents"
className="edit-site-add-new-template__template-list__contents"
>
{ missingTemplates.map( ( template ) => {
const { title, description, slug, onClick } =
Expand Down
26 changes: 3 additions & 23 deletions packages/edit-site/src/components/add-new-template/style.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
.edit-site-new-template-dropdown {
.edit-site-new-template-dropdown__menu-groups {
@include break-small() {
min-width: 300px;
}
}

// The specificity is needed to override the default tooltip styles.
&__menu-item-tooltip.components-tooltip .components-popover__content {
max-width: 320px;
padding: $grid-unit-10 $grid-unit-15;
border-radius: 2px;
white-space: pre-wrap;
min-width: 0;
width: auto;
text-align: left;
}
}

.edit-site-custom-template-modal {
&__contents-wrapper {
height: 100%;
Expand Down Expand Up @@ -151,8 +132,7 @@
}
}

.edit-site-add-new-template__modal,
.edit-site-custom-template-modal {
.edit-site-add-new-template__modal {
max-width: $grid-unit-80 * 13;
width: calc(100% - #{$grid-unit-80});
height: calc(100% - #{$grid-unit-80});
Expand All @@ -170,7 +150,7 @@
}

.edit-site-custom-template-modal__contents,
.edit-site-add-new-template__modal__contents {
.edit-site-add-new-template__template-list__contents {
> .components-button {
padding: $grid-unit-30;
border-radius: $radius-block-ui;
Expand Down Expand Up @@ -214,7 +194,7 @@
}
}

.edit-site-add-new-template__modal__contents {
.edit-site-add-new-template__template-list__contents {
padding-bottom: $grid-unit-40;

> .components-button {
Expand Down

0 comments on commit 3d139cb

Please sign in to comment.