-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Metaboxes: Remove lingering useless code or mentions of iframe
- Loading branch information
1 parent
5115f4f
commit e7cf969
Showing
8 changed files
with
85 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ build | |
coverage | ||
vendor | ||
node_modules | ||
/assets/js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 0 additions & 93 deletions
93
editor/components/meta-boxes/meta-boxes-area/meta-box-area.scss
This file was deleted.
Oops, something went wrong.
108 changes: 82 additions & 26 deletions
108
editor/components/meta-boxes/meta-boxes-area/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,93 @@ | ||
.editor-meta-boxes-iframe { | ||
width: 100%; | ||
|
||
.editor-meta-boxes-area { | ||
position: relative; | ||
|
||
.is-updating { | ||
filter: blur( 5px ); | ||
/* Match width and positioning of the meta boxes. Override default styles. */ | ||
#poststuff { | ||
margin: 0 auto; | ||
padding-top: 0; | ||
min-width: auto; | ||
} | ||
|
||
#post { | ||
margin: 0; | ||
} | ||
|
||
/* Override Default meta box stylings */ | ||
|
||
#poststuff h3.hndle, | ||
#poststuff .stuffbox > h3, | ||
#poststuff h2.hndle { /* WordPress selectors yolo */ | ||
border-bottom: 1px solid $light-gray-500; | ||
box-sizing: border-box; | ||
color: $dark-gray-500; | ||
font-weight: 600; | ||
outline: none; | ||
padding: 15px; | ||
position: relative; | ||
width: 100%; | ||
} | ||
|
||
.postbox { | ||
border: 0; | ||
color: $dark-gray-500; | ||
margin-bottom: 0; | ||
} | ||
|
||
.postbox > .inside { | ||
border-bottom: 1px solid $light-gray-500; | ||
color: $dark-gray-500; | ||
padding: 15px; | ||
margin: 0; | ||
} | ||
|
||
input { | ||
max-width: 300px; | ||
} | ||
|
||
input, | ||
select, | ||
textarea { | ||
background: inherit; | ||
border: 1px solid $light-gray-500; | ||
border-radius: 4px; | ||
box-shadow: none; | ||
color: $dark-gray-800; | ||
display: inline-block; | ||
font-family: inherit; | ||
font-size: 13px; | ||
line-height: 24px; | ||
outline: none; | ||
padding: 4px; | ||
} | ||
|
||
.is-hidden { | ||
visibility: hidden; | ||
input:hover, | ||
select:hover, | ||
textarea:hover { | ||
border: 1px solid $light-gray-700; | ||
} | ||
|
||
.postbox .handlediv { | ||
height: 44px; | ||
width: 44px; | ||
} | ||
|
||
&.is-loading:before { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
content: ''; | ||
z-index: 1; | ||
background: transparent; | ||
z-index: z-index( '.editor-meta-boxes-area.is-loading:before'); | ||
} | ||
} | ||
|
||
.editor-meta-boxes-iframe__loading-overlay { | ||
background-color: rgba( 0, 0, 0, 0.6 ); | ||
display: none; | ||
position: absolute; | ||
height: 100%; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
z-index: 1; | ||
|
||
&.is-visible { | ||
align-items: center; | ||
display: flex; | ||
justify-content: center; | ||
.spinner { | ||
position: absolute; | ||
top: 10px; | ||
right: 20px; | ||
z-index: z-index( '.editor-meta-boxes-area .spinner'); | ||
} | ||
} | ||
|
||
.editor-meta-boxes-iframe__loading-overlay-text { | ||
color: $white; | ||
font-weight: 700; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
/** | ||
* These are the styles that are not loaded from within the iframe. | ||
*/ | ||
.editor-meta-boxes-panel { | ||
border: 0; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters