Skip to content

Commit

Permalink
External Media: Improve CSS namespacing (#16144)
Browse files Browse the repository at this point in the history
* External Media: Improve CSS namespacing

Fixes #16143.

* Use jetpack prefix

Props @gwwar.
  • Loading branch information
obenland authored Jun 15, 2020
1 parent 38b162f commit dd6c80b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions extensions/shared/external-media/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

$grid-size: 8px;

@keyframes loading-fade {
@keyframes jetpack-external-media-loading-fade {
0% {
opacity: 0.5;
}
Expand Down Expand Up @@ -72,7 +72,7 @@ $grid-size: 8px;
}

@media ( min-width: 600px ) {
.components-modal__content {
.jetpack-external-media-browser .components-modal__content {
width: 90vw;
height: 90vh;
}
Expand Down Expand Up @@ -196,7 +196,7 @@ $grid-size: 8px;
width: 100px;
height: 100px;
margin: $grid-size * 2;
animation: loading-fade 1.6s ease-in-out infinite;
animation: jetpack-external-media-loading-fade 1.6s ease-in-out infinite;
background-color: $light-gray-secondary;
border: 0;
}
Expand Down Expand Up @@ -358,6 +358,9 @@ $grid-size: 8px;
}

// Reset placeholder button margin.
.components-placeholder__fieldset .components-dropdown .components-button {
margin-right: 8px;
.components-placeholder__fieldset,
.editor-post-featured-image {
.components-dropdown .jetpack-external-media-browse-button {
margin-right: 8px;
}
}

0 comments on commit dd6c80b

Please sign in to comment.