Fix styling and quicktags error in press this, see #16695
git-svn-id: http://svn.automattic.com/wordpress/trunk@18619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e089db6cf4
commit
b9d9d11f4e
File diff suppressed because one or more lines are too long
|
@ -710,6 +710,17 @@ p.install-help {
|
||||||
2.0 - Forms
|
2.0 - Forms
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
||||||
|
.wp-admin select {
|
||||||
|
padding: 2px;
|
||||||
|
height: 2em;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-admin select[multiple] {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
textarea,
|
textarea,
|
||||||
input[type="text"],
|
input[type="text"],
|
||||||
input[type="password"],
|
input[type="password"],
|
||||||
|
@ -780,7 +791,8 @@ input.button-highlighted,
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea.all-options, input.all-options {
|
textarea.all-options,
|
||||||
|
input.all-options {
|
||||||
width: 250px;
|
width: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -817,13 +829,6 @@ input.small-text {
|
||||||
width: 170px;
|
width: 170px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpcontent select {
|
|
||||||
padding: 2px;
|
|
||||||
height: 2em;
|
|
||||||
font-size: 12px;
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#wpcontent option {
|
#wpcontent option {
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
}
|
}
|
||||||
|
@ -948,8 +953,6 @@ p.search-box {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#sticky-span {
|
#sticky-span {
|
||||||
margin-left: 18px;
|
margin-left: 18px;
|
||||||
}
|
}
|
||||||
|
@ -2864,17 +2867,9 @@ input#link_url {
|
||||||
margin:0;
|
margin:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#side-sortables .category-add input {
|
#side-sortables .category-add input[type="text"],
|
||||||
width: 94%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#side-sortables .category-add select {
|
#side-sortables .category-add select {
|
||||||
width: 100%;
|
width: 160px;
|
||||||
}
|
|
||||||
|
|
||||||
#side-sortables .category-add input.category-add-sumbit,
|
|
||||||
#post-body .category-add input.category-add input.category-add-sumbit {
|
|
||||||
width: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#post-body ul.category-tabs,
|
#post-body ul.category-tabs,
|
||||||
|
@ -3302,19 +3297,11 @@ table.diff .diff-deletedline del, table.diff .diff-addedline ins {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#post-body .category-add input, .category-add select {
|
#normal-sortables .category-add input[type="text"],
|
||||||
|
#normal-sortables .category-add select {
|
||||||
width: 30%;
|
width: 30%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#side-sortables .category-add select {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#side-sortables .category-add input.category-add-sumbit,
|
|
||||||
#post-body .category-add input.category-add input.category-add-sumbit {
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
#post-body ul.category-tabs,
|
#post-body ul.category-tabs,
|
||||||
#post-body ul.add-menu-item-tabs {
|
#post-body ul.add-menu-item-tabs {
|
||||||
float: left;
|
float: left;
|
||||||
|
@ -4811,7 +4798,6 @@ table.form-table td .updated {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.tagchecklist {
|
.tagchecklist {
|
||||||
margin-left: 14px;
|
margin-left: 14px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
@ -4864,7 +4850,8 @@ table.form-table td .updated {
|
||||||
margin: 6px 0 8px;
|
margin: 6px 0 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#post-visibility-select, #post-formats-select {
|
#post-visibility-select,
|
||||||
|
#post-formats-select {
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
}
|
}
|
||||||
|
@ -4887,11 +4874,6 @@ td.post-title p, td.plugin-title p {
|
||||||
margin: 6px 0;
|
margin: 6px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-hidden-children .wp-hidden-child,
|
|
||||||
.ui-tabs-hide {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#templateside ul li a {
|
#templateside ul li a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
@ -5596,6 +5578,7 @@ a.rsswidget {
|
||||||
body.login {
|
body.login {
|
||||||
padding: 30px 0 7em;
|
padding: 30px 0 7em;
|
||||||
background: #fbfbfb !important;
|
background: #fbfbfb !important;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login form {
|
.login form {
|
||||||
|
@ -6599,8 +6582,6 @@ div.star img {
|
||||||
|
|
||||||
/* press-this */
|
/* press-this */
|
||||||
body.press-this {
|
body.press-this {
|
||||||
font-size: 13px;
|
|
||||||
font-family: sans-serif;
|
|
||||||
color: #333;
|
color: #333;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -6628,63 +6609,59 @@ img {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wphead h1 {
|
.press-this-sidebar {
|
||||||
|
float: right;
|
||||||
|
width: 200px;
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.press-this #title {
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
-ms-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.press-this #wphead h1 {
|
||||||
font: normal 16px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
font: normal 16px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
||||||
padding: 6px 0 0;
|
padding: 6px 0 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wphead h1 a {
|
.press-this #wphead h1 a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
#wphead h1 a:hover {
|
|
||||||
|
.press-this #wphead h1 a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tagchecklist span a {
|
.press-this .tagchecklist span a {
|
||||||
background: transparent url(../images/xit.gif) no-repeat 0 0;
|
background: transparent url(../images/xit.gif) no-repeat 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#edButtonPreview,
|
.press-this #titlediv {
|
||||||
#edButtonHTML {
|
margin: 0;
|
||||||
height: 18px;
|
|
||||||
margin: 5px 5px 0 0;
|
|
||||||
padding: 4px 5px 2px;
|
|
||||||
float: right;
|
|
||||||
cursor: pointer;
|
|
||||||
border-width: 1px;
|
|
||||||
border-style: solid;
|
|
||||||
-moz-border-radius: 3px 3px 0 0;
|
|
||||||
-webkit-border-top-right-radius: 3px;
|
|
||||||
-webkit-border-top-left-radius: 3px;
|
|
||||||
-khtml-border-top-right-radius: 3px;
|
|
||||||
-khtml-border-top-left-radius: 3px;
|
|
||||||
border-top-right-radius: 3px;
|
|
||||||
border-top-left-radius: 3px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#poststuff #edButtonHTML {
|
.press-this #media-buttons {
|
||||||
margin-right: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#media-buttons {
|
|
||||||
cursor: default;
|
cursor: default;
|
||||||
padding: 8px 8px 0;
|
padding: 8px 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#media-buttons a {
|
.press-this #media-buttons a {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0 0 5px 10px;
|
padding: 0 0 5px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#media-buttons img,
|
.press-this #media-buttons img,
|
||||||
#submitpost #ajax-loading,
|
.press-this #submitpost #ajax-loading,
|
||||||
#submitpost .ajax-loading {
|
.press-this #submitpost .ajax-loading {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
.howto {
|
.press-this .howto {
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
margin-bottom: 3px;
|
margin-bottom: 3px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
@ -6692,14 +6669,14 @@ img {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
input.text {
|
.press-this input.text {
|
||||||
outline-color: -moz-use-text-color;
|
outline-color: -moz-use-text-color;
|
||||||
outline-style: none;
|
outline-style: none;
|
||||||
outline-width: medium;
|
outline-width: medium;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#message {
|
.press-this #message {
|
||||||
-moz-border-radius: 3px;
|
-moz-border-radius: 3px;
|
||||||
-khtml-border-radius: 3px;
|
-khtml-border-radius: 3px;
|
||||||
-webkit-border-radius: 3px;
|
-webkit-border-radius: 3px;
|
||||||
|
@ -6737,23 +6714,22 @@ div.zerosize {
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#poststuff .inside {
|
.press-this #submitdiv .inside {
|
||||||
font-size: 12px;
|
|
||||||
margin: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#submitdiv .inside {
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#submitdiv #publishing-actions {
|
.press-this #submitdiv p {
|
||||||
padding-left: 6px;
|
margin: 6px;
|
||||||
border-bottom: 1px solid #dfdfdf;
|
padding: 0 0 6px;
|
||||||
-webkit-box-shadow: 0 1px 0 #fff;
|
-webkit-box-shadow: 0 1px 0 #fff;
|
||||||
-moz-box-shadow: 0 1px 0 #fff;
|
-moz-box-shadow: 0 1px 0 #fff;
|
||||||
box-shadow: 0 1px 0 #fff;
|
box-shadow: 0 1px 0 #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.press-this #submitdiv #publishing-actions {
|
||||||
|
border-bottom: 1px solid #dfdfdf;
|
||||||
|
}
|
||||||
|
|
||||||
.press-this #publish {
|
.press-this #publish {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
@ -6761,13 +6737,7 @@ div.zerosize {
|
||||||
.press-this #poststuff h2,
|
.press-this #poststuff h2,
|
||||||
.press-this #poststuff h3 {
|
.press-this #poststuff h3 {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
|
||||||
font-weight: normal;
|
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
margin: 0;
|
|
||||||
padding: 7px 9px;
|
|
||||||
border-width: 0 0 1px 0;
|
|
||||||
border-style: solid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.press-this #tagsdiv-post_tag h3,
|
.press-this #tagsdiv-post_tag h3,
|
||||||
|
@ -6775,6 +6745,10 @@ div.zerosize {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.press-this #submitdiv h3 {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
h3.tb {
|
h3.tb {
|
||||||
text-shadow: 0 1px 0 #fff;
|
text-shadow: 0 1px 0 #fff;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@ -6793,13 +6767,7 @@ h3.tb {
|
||||||
.press-this .postbox,
|
.press-this .postbox,
|
||||||
.press-this .stuffbox {
|
.press-this .stuffbox {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
border-width: 1px;
|
min-width: 0;
|
||||||
border-style: solid;
|
|
||||||
line-height: 1;
|
|
||||||
-moz-border-radius: 3px;
|
|
||||||
-khtml-border-radius: 3px;
|
|
||||||
-webkit-border-radius: 3px;
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.postbox:hover .handlediv,
|
.postbox:hover .handlediv,
|
||||||
|
@ -6910,10 +6878,9 @@ h3.tb {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Categories */
|
/* Categories */
|
||||||
.press-this .category-add input {
|
.press-this .category-add input[type="text"],
|
||||||
width: 94%;
|
.press-this .category-add select {
|
||||||
font-family: sans-serif;
|
width: 100%;
|
||||||
font-size: 12px;
|
|
||||||
margin: 1px;
|
margin: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6926,7 +6893,7 @@ h3.tb {
|
||||||
}
|
}
|
||||||
|
|
||||||
.press-this .category-tabs li {
|
.press-this .category-tabs li {
|
||||||
padding: 0 8px 0 0;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.press-this .category-tabs a {
|
.press-this .category-tabs a {
|
||||||
|
@ -6935,6 +6902,11 @@ h3.tb {
|
||||||
|
|
||||||
.press-this ul.category-tabs {
|
.press-this ul.category-tabs {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
padding-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.press-this #category-adder h4 {
|
||||||
|
margin: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tags */
|
/* Tags */
|
||||||
|
|
|
@ -427,7 +427,7 @@ var photostorage = false;
|
||||||
<body class="press-this wp-admin">
|
<body class="press-this wp-admin">
|
||||||
<form action="press-this.php?action=post" method="post">
|
<form action="press-this.php?action=post" method="post">
|
||||||
<div id="poststuff" class="metabox-holder">
|
<div id="poststuff" class="metabox-holder">
|
||||||
<div id="side-info-column">
|
<div class="press-this-sidebar">
|
||||||
<div class="sleeve">
|
<div class="sleeve">
|
||||||
<?php wp_nonce_field('press-this') ?>
|
<?php wp_nonce_field('press-this') ?>
|
||||||
<input type="hidden" name="post_type" id="post_type" value="text"/>
|
<input type="hidden" name="post_type" id="post_type" value="text"/>
|
||||||
|
@ -527,14 +527,14 @@ var photostorage = false;
|
||||||
<h3><span><?php _e('Post Tags'); ?></span></h3>
|
<h3><span><?php _e('Post Tags'); ?></span></h3>
|
||||||
<div class="inside">
|
<div class="inside">
|
||||||
<div class="tagsdiv" id="post_tag">
|
<div class="tagsdiv" id="post_tag">
|
||||||
<p class="jaxtag">
|
<div class="jaxtag">
|
||||||
<label class="screen-reader-text" for="newtag"><?php _e('Post Tags'); ?></label>
|
<label class="screen-reader-text" for="newtag"><?php _e('Post Tags'); ?></label>
|
||||||
<input type="hidden" name="tax_input[post_tag]" class="the-tags" id="tax-input[post_tag]" value="" />
|
<input type="hidden" name="tax_input[post_tag]" class="the-tags" id="tax-input[post_tag]" value="" />
|
||||||
<div class="ajaxtag">
|
<div class="ajaxtag">
|
||||||
<input type="text" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="" />
|
<input type="text" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="" />
|
||||||
<input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3" />
|
<input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3" />
|
||||||
</div>
|
</div>
|
||||||
</p>
|
</div>
|
||||||
<div class="tagchecklist"></div>
|
<div class="tagchecklist"></div>
|
||||||
</div>
|
</div>
|
||||||
<p class="tagcloud-link"><a href="#titlediv" class="tagcloud-link" id="link-post_tag"><?php _e('Choose from the most used tags'); ?></a></p>
|
<p class="tagcloud-link"><a href="#titlediv" class="tagcloud-link" id="link-post_tag"><?php _e('Choose from the most used tags'); ?></a></p>
|
||||||
|
|
|
@ -152,7 +152,7 @@ function edButton(id, display, tagStart, tagEnd, access, open) {
|
||||||
t.canvas = canvas;
|
t.canvas = canvas;
|
||||||
t.settings = settings;
|
t.settings = settings;
|
||||||
|
|
||||||
if ( id == 'content' && adminpage && ( adminpage == 'post-new-php' || adminpage == 'post-php' ) ) {
|
if ( id == 'content' && typeof(adminpage) == 'string' && ( adminpage == 'post-new-php' || adminpage == 'post-php' ) ) {
|
||||||
// back compat hack :-(
|
// back compat hack :-(
|
||||||
edCanvas = canvas;
|
edCanvas = canvas;
|
||||||
toolbar_id = 'ed_toolbar';
|
toolbar_id = 'ed_toolbar';
|
||||||
|
@ -238,7 +238,7 @@ function edButton(id, display, tagStart, tagEnd, access, open) {
|
||||||
buttons[edButtons[i].id] = edButtons[i];
|
buttons[edButtons[i].id] = edButtons[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( id == 'content' && adminpage && ( adminpage == 'post-new-php' || adminpage == 'post-php' ) )
|
if ( id == 'content' && typeof(adminpage) == 'string' && ( adminpage == 'post-new-php' || adminpage == 'post-php' ) )
|
||||||
buttons['fullscreen'] = new qt.FullscreenButton();
|
buttons['fullscreen'] = new qt.FullscreenButton();
|
||||||
|
|
||||||
// add custom buttons
|
// add custom buttons
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -68,7 +68,7 @@ function wp_default_scripts( &$scripts ) {
|
||||||
|
|
||||||
$scripts->add( 'sack', "/wp-includes/js/tw-sack$suffix.js", false, '1.6.1', 1 );
|
$scripts->add( 'sack', "/wp-includes/js/tw-sack$suffix.js", false, '1.6.1', 1 );
|
||||||
|
|
||||||
$scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", false, '20110827', 1 );
|
$scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", false, '20110828', 1 );
|
||||||
$scripts->add_script_data( 'quicktags', 'quicktagsL10n', array(
|
$scripts->add_script_data( 'quicktags', 'quicktagsL10n', array(
|
||||||
'wordLookup' => __('Enter a word to look up:'),
|
'wordLookup' => __('Enter a word to look up:'),
|
||||||
'dictionaryLookup' => esc_attr(__('Dictionary lookup')),
|
'dictionaryLookup' => esc_attr(__('Dictionary lookup')),
|
||||||
|
@ -402,7 +402,7 @@ function wp_default_styles( &$styles ) {
|
||||||
// Any rtl stylesheets that don't have a .dev version for ltr
|
// Any rtl stylesheets that don't have a .dev version for ltr
|
||||||
$no_suffix = array( 'farbtastic' );
|
$no_suffix = array( 'farbtastic' );
|
||||||
|
|
||||||
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20110825' );
|
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20110828' );
|
||||||
|
|
||||||
$styles->add( 'ie', "/wp-admin/css/ie$suffix.css", array('wp-admin'), '20110711' );
|
$styles->add( 'ie', "/wp-admin/css/ie$suffix.css", array('wp-admin'), '20110711' );
|
||||||
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );
|
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );
|
||||||
|
|
Loading…
Reference in New Issue