Modals: darken all overlays, update all box-shadows and headings, correct thickbox styling, make the link modal narrower and bring back the animation (css transition). Props avryl, see #26952

git-svn-id: https://develop.svn.wordpress.org/trunk@27532 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-03-14 05:54:16 +00:00
parent a33829d1d0
commit 83501070d5
8 changed files with 153 additions and 217 deletions

View File

@ -1423,27 +1423,6 @@ html.wp-toolbar {
padding: 0 5px;
}
#TB_window {
border: 1px solid #333;
}
#TB_window #TB_title {
background-color: #222;
color: #cfcfcf;
}
#TB_window #TB_title a.tb-theme-preview-link,
#TB_window #TB_title a.tb-theme-preview-link:visited {
color: #999;
font-weight: 600;
text-decoration: none;
}
#TB_window #TB_title a.tb-theme-preview-link:hover,
#TB_window #TB_title a.tb-theme-preview-link:focus {
color: #ccc;
}
/* @todo: what is this doing here */
#dashboard_right_now .versions .b,
#post-status-display,
@ -1994,17 +1973,6 @@ img {
content: '\f140';
}
#TB_ajaxContent #options {
position: absolute;
top: 20px;
right: 25px;
padding: 5px;
}
#TB_ajaxContent h3 {
margin-bottom: .25em;
}
.error a {
text-decoration: underline;
}
@ -2272,15 +2240,6 @@ img {
border-bottom: 1px solid #dfdfdf;
}
/* @todo: these seem misplaced */
.sticky-menu #TB_window {
background: #f1f1f1;
}
.sticky-menu #TB_window .updated {
margin: 16px 0 0;
}
/* =Media Queries
-------------------------------------------------------------- */

View File

@ -452,6 +452,8 @@ span.wp-media-buttons-icon:before {
width: 450px;
margin-left: -225px;
background: #fff;
-webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
line-height: 1.5;
z-index: 1000005;
}
@ -463,8 +465,8 @@ span.wp-media-buttons-icon:before {
right: 0;
bottom: 0;
background: #000;
opacity: 0.5;
filter: alpha(opacity=50);
opacity: 0.7;
filter: alpha(opacity=70);
z-index: 1000000;
}

View File

@ -234,6 +234,8 @@
.find-box {
background-color: #fff;
-webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
width: 600px;
overflow: hidden;
margin-left: -300px;
@ -247,11 +249,11 @@
.find-box-head {
background: #fcfcfc;
border-bottom: 1px solid #dfdfdf;
height: 42px;
font-size: 22px;
height: 36px;
font-size: 18px;
font-weight: 600;
line-height: 41px;
padding: 0 42px 0 16px;
line-height: 36px;
padding: 0 36px 0 16px;
position: absolute;
top: 0;
left: 0;
@ -263,7 +265,7 @@
padding: 16px;
background-color: #fff;
position: absolute;
top: 43px;
top: 37px;
bottom: 45px;
overflow-y: scroll;
width: 100%;
@ -300,8 +302,8 @@
}
#find-posts-close {
width: 42px;
height: 42px;
width: 36px;
height: 36px;
position: absolute;
top: 0;
right: 0;
@ -315,7 +317,7 @@
}
#find-posts-close:before {
font: normal 20px/42px 'dashicons';
font: normal 20px/36px 'dashicons';
vertical-align: top;
speak: none;
-webkit-font-smoothing: antialiased;
@ -360,6 +362,7 @@
bottom: 0;
background: #000;
opacity: 0.7;
filter: alpha(opacity=70);
z-index: 100100;
}

View File

@ -1060,7 +1060,7 @@ final class _WP_Editors {
<label><span><?php _e( 'Title' ); ?></span><input id="link-title-field" type="text" name="linktitle" /></label>
</div>
<div class="link-target">
<label><input type="checkbox" id="link-target-checkbox" /> <?php _e( 'Open link in a new window/tab' ); ?></label>
<label><span>&nbsp;</span><input type="checkbox" id="link-target-checkbox" /> <?php _e( 'Open link in a new window/tab' ); ?></label>
</div>
</div>
<p class="howto" id="wp-link-search-toggle"><?php _e( 'Or link to existing content' ); ?></p>
@ -1089,7 +1089,7 @@ final class _WP_Editors {
</div>
<div class="submitbox">
<div id="wp-link-update">
<input type="submit" value="<?php esc_attr_e( 'Add Link' ); ?>" class="button-primary" id="wp-link-submit" name="wp-link-submit">
<input type="submit" value="<?php esc_attr_e( 'Add Link' ); ?>" class="button button-primary" id="wp-link-submit" name="wp-link-submit">
</div>
<div id="wp-link-cancel">
<a class="submitdelete deletion" href="#"><?php _e( 'Cancel' ); ?></a>

View File

@ -13,13 +13,14 @@
/* TinyMCE windows */
#mce-modal-block.mce-in {
opacity: 0.7;
filter: alpha(opacity=70);
}
.mce-window {
-webkit-border-radius: 0;
border-radius: 0;
-webkit-box-shadow: 0 5px 15px rgba(0,0,0,0.7);
box-shadow: 0 5px 15px rgba(0,0,0,0.7);
-webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
-webkit-font-smoothing: subpixel-antialiased;
}
@ -35,7 +36,9 @@
}
.mce-window .mce-window-head .mce-title {
font-size: 20px;
color: #444;
font-family: 'Open Sans', sans-serif;
font-size: 18px;
font-weight: 600;
line-height: 36px;
margin: 0;
@ -898,15 +901,18 @@ i.mce-i-wp_page:before {
#wp-link-wrap {
display: none;
background-color: #fff;
width: 600px;
-webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
width: 500px;
height: 250px;
overflow: hidden;
margin-left: -300px;
margin-left: -250px;
margin-top: -125px;
position: fixed;
top: 50%;
left: 50%;
z-index: 100105;
transition: height 0.2s, margin-top 0.2s;
}
#wp-link-backdrop {
@ -919,6 +925,7 @@ i.mce-i-wp_page:before {
min-height: 360px;
background: #000;
opacity: 0.7;
filter: alpha(opacity=70);
z-index: 100100;
}
@ -936,7 +943,7 @@ i.mce-i-wp_page:before {
background: #fcfcfc;
border-bottom: 1px solid #dfdfdf;
height: 36px;
font-size: 20px;
font-size: 18px;
font-weight: 600;
line-height: 36px;
padding: 0 36px 0 16px;
@ -1013,7 +1020,7 @@ i.mce-i-wp_page:before {
}
#wp-link #link-options {
padding: 8px 0 14px;
padding: 8px 0 12px;
}
#wp-link p.howto {
@ -1025,9 +1032,8 @@ i.mce-i-wp_page:before {
}
#wp-link label input[type="text"] {
width: 400px;
margin-top: 5px;
max-width: 70%;
width: 70%;
}
#wp-link #link-options label span,
@ -1062,9 +1068,14 @@ i.mce-i-wp_page:before {
}
#wp-link .link-target {
width: auto;
padding: 3px 0 0;
margin: 0 0 0 87px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#wp-link .link-target label {
max-width: 70%;
}
#wp-link .query-results {
@ -1121,6 +1132,7 @@ i.mce-i-wp_page:before {
#wp-link .item-title {
display: inline-block;
width: 80%;
width: calc(100% - 68px);
}
#wp-link .item-info {
@ -1129,8 +1141,7 @@ i.mce-i-wp_page:before {
font-size: 11px;
position: absolute;
right: 5px;
top: 4px;
bottom: 0;
top: 5px;
}
#wp-link #search-results,
@ -1178,26 +1189,42 @@ i.mce-i-wp_page:before {
@media screen and ( max-width: 782px ) {
#wp-link-wrap {
height: 270px;
margin-top: -135px;
height: 280px;
margin-top: -140px;
}
#wp-link-wrap.search-panel-visible .query-results {
top: 235px;
}
#link-selector {
padding: 0 16px 60px;
}
#wp-link-wrap.search-panel-visible #link-selector {
bottom: 52px;
}
#wp-link-cancel {
line-height: 32px;
}
}
@media screen and ( max-width: 620px ) {
@media screen and ( max-width: 520px ) {
#wp-link-wrap {
width: auto;
margin-left: 0;
left: 10px;
right: 10px;
max-width: 600px;
max-width: 500px;
}
}
@media screen and ( max-height: 520px ) {
#wp-link-wrap {
transition: none;
}
#wp-link-wrap.search-panel-visible {
height: auto;
margin-top: 0;
@ -1225,7 +1252,7 @@ i.mce-i-wp_page:before {
#link-selector {
overflow: auto;
height: calc(100% - 92px);
padding-bottom: 10px;
padding-bottom: 2px;
}
#search-panel .query-results {

View File

@ -246,16 +246,18 @@
left: 0;
z-index: 100102;
background-color: #fff;
-webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
}
.ui-dialog-titlebar {
background: #fcfcfc;
border-bottom: 1px solid #dfdfdf;
height: 56px;
font-size: 22px;
height: 36px;
font-size: 18px;
font-weight: 600;
line-height: 56px;
padding: 0 40px 0 16px;
line-height: 36px;
padding: 0 36px 0 16px;
}
.ui-button.ui-dialog-titlebar-close {
@ -270,8 +272,8 @@
position: absolute;
top: 0;
right: 0;
width: 40px;
height: 40px;
width: 36px;
height: 36px;
text-align: center;
}
@ -281,9 +283,9 @@
speak: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
line-height: 40px;
width: 40px;
height: 40px;
line-height: 36px;
width: 36px;
height: 36px;
content: '\f158';
}
@ -327,5 +329,6 @@
min-height: 360px;
background: #000;
opacity: 0.7;
filter: alpha(opacity=70);
z-index: 100101;
}

View File

@ -13,8 +13,8 @@
left: 0;
right: 0;
background: #000;
opacity: 0.5;
filter: alpha(opacity=50);
opacity: 0.7;
filter: alpha(opacity=70);
z-index: 1000000;
}
@ -30,8 +30,8 @@
padding: 30px 0 0;
background-color: #eee;
z-index: 1000001;
-webkit-box-shadow: 0 3px 6px rgba(0,0,0,0.3);
box-shadow: 0 3px 6px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
}
#wp-auth-check-wrap.fallback #wp-auth-check {

View File

@ -1,82 +1,29 @@
/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/
#TB_window {
font: 12px "Open Sans", sans-serif;
color: #333333;
}
#TB_secondLine {
font: 10px "Open Sans", sans-serif;
color:#666666;
}
.rtl #TB_window,
.rtl #TB_secondLine {
font-family: Tahoma, sans-serif;
}
:lang(he-il) .rtl #TB_window,
:lang(he-il) .rtl #TB_secondLine {
font-family: Arial, sans-serif;
}
#TB_window a:link {color: #666666;}
#TB_window a:visited {color: #666666;}
#TB_window a:hover {color: #000;}
#TB_window a:active {color: #666666;}
#TB_window a:focus{color: #666666;}
/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> thickbox settings <<<-----------------------------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/
#TB_overlay {
background: #000;
opacity: 0.7;
filter: alpha(opacity=70);
position: fixed;
z-index:510; /* should overlap theme modal, which is 500 on mobile. */
top: 0px;
left: 0px;
height:100%;
width:100%;
}
.TB_overlayMacFFBGHack {background: url(macFFBgHack.png) repeat;}
.TB_overlayBG {
background-color:#000;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
filter:alpha(opacity=75);
-moz-opacity: 0.75;
opacity: 0.75;
}
* html #TB_overlay { /* ie6 hack */
position: absolute;
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 100050; /* Above DFW. */
}
#TB_window {
position: fixed;
background: #ffffff;
z-index: 510; /* should overlap theme modal, which is 500 on mobile. */
color:#000000;
background: #fff;
z-index: 100050; /* Above DFW. */
visibility: hidden;
text-align:left;
top:50%;
left:50%;
border: 1px solid #555;
-moz-box-shadow: rgba(0,0,0,1) 0 4px 30px;
-webkit-box-shadow: rgba(0,0,0,1) 0 4px 30px;
-khtml-box-shadow: rgba(0,0,0,1) 0 4px 30px;
box-shadow: rgba(0,0,0,1) 0 4px 30px;
}
* html #TB_window { /* ie6 hack */
position: absolute;
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
text-align: left;
top: 50%;
left: 50%;
-webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
}
#TB_window img#TB_Image {
display:block;
display: block;
margin: 15px 0 0 15px;
border-right: 1px solid #ccc;
border-bottom: 1px solid #ccc;
@ -85,112 +32,107 @@ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = d
}
#TB_caption{
height:25px;
padding:7px 30px 10px 25px;
float:left;
height: 25px;
padding: 7px 30px 10px 25px;
float: left;
}
#TB_closeWindow{
height:25px;
padding:11px 25px 10px 0;
float:right;
#TB_closeWindow {
height: 25px;
padding: 11px 25px 10px 0;
float: right;
}
#TB_closeAjaxWindow{
padding:6px 10px 0;
text-align:right;
float:right;
#TB_closeAjaxWindow {
float: right;
}
#TB_closeAjaxWindow a {
text-decoration: none;
}
#TB_ajaxWindowTitle{
float:left;
padding:6px 10px 0;
#TB_ajaxWindowTitle {
float: left;
font-weight: 600;
line-height: 29px;
overflow: hidden;
padding: 0 29px 0 10px;
text-overflow: ellipsis;
white-space: nowrap;
width: calc( 100% - 39px );
}
#TB_title{
background-color:#e8e8e8;
height:27px;
#TB_title {
background: #fcfcfc;
border-bottom: 1px solid #dfdfdf;
height: 29px;
}
#TB_ajaxContent{
clear:both;
padding:2px 15px 15px 15px;
overflow:auto;
text-align:left;
line-height:1.4em;
#TB_ajaxContent {
clear: both;
padding: 2px 15px 15px 15px;
overflow: auto;
text-align: left;
line-height: 1.4em;
}
#TB_ajaxContent.TB_modal{
padding:15px;
#TB_ajaxContent.TB_modal {
padding: 15px;
}
#TB_ajaxContent p{
padding:5px 0px 5px 0px;
#TB_ajaxContent p {
padding: 5px 0px 5px 0px;
}
#TB_load{
#TB_load {
position: fixed;
display:none;
z-index:103;
display: none;
z-index: 103;
top: 50%;
left: 50%;
background-color: #E8E8E8;
border: 1px solid #555;
margin: -45px 0pt 0pt -125px;
margin: -45px 0 0 -125px;
padding: 40px 15px 15px;
}
* html #TB_load { /* ie6 hack */
position: absolute;
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
}
#TB_HideSelect{
z-index:99;
position:fixed;
#TB_HideSelect {
z-index: 99;
position: fixed;
top: 0;
left: 0;
background-color:#fff;
border:none;
filter:alpha(opacity=0);
-moz-opacity: 0;
background-color: #fff;
border: none;
filter: alpha(opacity=0);
opacity: 0;
height:100%;
width:100%;
height: 100%;
width: 100%;
}
* html #TB_HideSelect { /* ie6 hack */
position: absolute;
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}
#TB_iframeContent{
clear:both;
border:none;
margin-bottom:-1px;
_margin-bottom:1px;
#TB_iframeContent {
clear: both;
border: none;
}
.tb-close-icon {
height: 16px;
margin: -3px -3px 0 0;
width: 16px;
color: #666;
text-align: center;
line-height: 29px;
width: 29px;
height: 29px;
position: absolute;
top: 0;
right: 0;
}
.tb-close-icon:before {
content: '\f158';
color: #ccc;
font: normal 20px/1 'dashicons';
font: normal 20px/29px 'dashicons';
speak: none;
vertical-align: middle;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.tb-close-icon:hover:before {
color: #fff;
}
.tb-close-icon:hover {
color: #2ea2cc;
}