Commit 47ae6718 by Ali Arshad

WP Added

WP updated to 4.8.4
parent 0a008275
FROM alpine
###################################################### Update APK #######################################################
RUN apk update
###################################################### Install zip mailx & cron #######################################################
RUN apk add --update \
mysql-client \
zip \
bash \
curl \
openssl \
heirloom-mailx
#################################################### Setting up backups ####################################################
ADD backup.sh /backup.sh
RUN chmod u+x /backup.sh
RUN touch /var/log/cron.log
RUN echo "0 8 * * * bash /backup.sh >> /var/log/cron.log 2>&1 \n\
" >> /crontab.txt
RUN /usr/bin/crontab /crontab.txt
#################################################### Setting up cron ####################################################
CMD /usr/sbin/crond && tail -f /var/log/cron.log
\ No newline at end of file
#!/bin/bash
function encodeURL()
{
local -r url="${1}"
local i=0
local walker=''
for ((i = 0; i < ${#url}; i++))
do
walker="${url:i:1}"
case "${walker}" in
[a-zA-Z0-9.~_-])
printf "${walker}"
;;
' ')
printf +
;;
*)
printf '%%%X' "'${walker}"
;;
esac
done
}
function trimString()
{
local -r string="${1}"
sed 's,^[[:blank:]]*,,' <<< "${string}" | sed 's,[[:blank:]]*$,,'
}
function isEmptyString()
{
local -r string="${1}"
if [[ "$(trimString "${string}")" = '' ]]
then
echo 'true'
else
echo 'false'
fi
}
#Project name
project="wp_template"
project_dir="/var/www"
#S3 info
S3KEY="AKIAISAUYAT4BMFLKVFA"
S3SECRET="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"
bucket='vqode-clients-backups'
# Database credentials
user=${MYSQL_USER}
password=${MYSQL_PASSWORD}
host=${MYSQL_HOST}
db_name=${MYSQL_DATABASE}
# Email SMTP
mail_user="bonjour@lumiiq.com"
mail_password="dbvp7H,3D%^&s56"
mail_host="mx.vqode.com"
mail_port="2525"
mail_to="ali.arshad.gem@gmail.com"
# Other options
backup_path="/var/www/dbBackups"
date=$(date +"%a-%d-%b-%Y-%T")
mkdir -p $backup_path
# Set default file permissions
umask 177
# Deleting old backups
find $backup_path/* -exec rm {} \;
# Dump database into SQL file
echo "Generating SQL Backup"
mysqldump --user=$user --password=$password --host=$host $db_name > $backup_path/$db_name-$date.sql
# Delete files older than 30 days
# find $backup_path/* -mtime +30 -exec rm {} \;
#make the archive
echo "Creating zip"
zip -r $project-$date.zip $project_dir/*
#Lets upload to s3
function putS3
{
path=$1
file=$2
aws_path=$3
date_aws=$(date +"%a, %d %b %Y %T %z")
acl="x-amz-acl:private"
content_type='application/zip'
string="PUT\n\n$content_type\n$date_aws\n$acl\n/$bucket$aws_path$file"
signature=$(echo -en "${string}" | openssl sha1 -hmac "${S3SECRET}" -binary | base64)
curl -X PUT -T "$path/$file" \
-H "Host: $bucket.s3.amazonaws.com" \
-H "Date: $date_aws" \
-H "Content-Type: $content_type" \
-H "$acl" \
-H "Authorization: AWS ${S3KEY}:$signature" \
"https://$bucket.s3.amazonaws.com$aws_path$file"
}
echo "Uploading to S3"
putS3 "." "$project-$date.zip" "/backups/$project/"
#Lets generate signed URL
function generateSignURL()
{
awsAccessKeyID=${S3KEY}
awsSecretAccessKey=${S3SECRET}
region="us-east-1"
local -r filePath="${1}"
local -r method="GET"
local -r minuteExpire=2880
if [[ "${region}" = 'us-east-1' ]]
then
region=''
fi
local -r endPoint="$("$(isEmptyString "${region}")" = 'true' && echo 's3.amazonaws.com' || echo "s3-${region}.amazonaws.com")"
local -r expire="$(($(date +'%s') + minuteExpire * 60))"
local -r signature="$(
echo -en "${method}\n\n\n${expire}\n/${bucket}/${filePath}" |
openssl dgst -sha1 -binary -hmac "${awsSecretAccessKey}" |
openssl base64
)"
local -r query="AWSAccessKeyId=$(encodeURL "${awsAccessKeyID}")&Expires=${expire}&Signature=$(encodeURL "${signature}")"
signed_url="https://${endPoint}/${bucket}/${filePath}?${query}"
}
generateSignURL "backups/$project/$project-$date.zip"
#Lets remove the zip
echo "Removing zip file"
rm $project-$date.zip
echo "Sending notification email"
body="Backup ($project-$date.zip) generated and uploaded to S3. Download link: $signed_url"
subject="$project backup generated"
(echo $body) | mailx -v -s "$subject" -S smtp-use-starttls -S smtp="$mail_host:$mail_port" -S smtp-auth="login" -S smtp-auth-user=$mail_user -S smtp-auth-password=$mail_password -S from=$mail_user $mail_to
\ No newline at end of file
FROM ubuntu:latest FROM ubuntu:latest
#################################################### Adding new user and group ####################################################
###################################################### Update APT ####################################################### ENV myuser=ali
RUN apt-get update -y ENV myuserid=501
ENV mygroup=ali
###################################################### Utilities ####################################################### ENV mygroupid=501
#install which (required by Maven), wget, curl and unzip RUN groupadd $mygroup -g $mygroupid
RUN apt-get install -y git curl wget unzip nano && \ RUN useradd -u $myuserid -g $mygroupid $myuser
apt-get -y clean all
###################################################### Update APT #######################################################
######################################################### Apache ######################################################### RUN apt-get update -y
RUN apt-get install -y apache2 && \ ###################################################### Utilities #######################################################
apt-get -y clean all
#install git curl wget zip unzip nano
######################################################### PHP ######################################################### RUN apt-get install -y git curl wget zip unzip nano && \
apt-get -y clean all
RUN apt-get install -y php-mysql php-curl php-json php-cgi php libapache2-mod-php && \
apt-get -y clean all ######################################################### Apache #########################################################
######################################################### Apache Configs ######################################################### RUN apt-get install -y apache2 && \
## Enabling Mod_Rewrite apt-get -y clean all
RUN a2enmod rewrite
RUN a2enmod headers ######################################################### PHP #########################################################
RUN a2enmod expires
RUN a2enmod deflate RUN apt-get install -y php7.0-fpm php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-fastcgi && \
apt-get -y clean all
## Fixing localhost error.
RUN echo "ServerName localhost" >> /etc/apache2/conf-available/servername.conf ######################################################### Apache Configs #########################################################
RUN a2enconf servername ## Enabling Mod_Rewrite
RUN a2enmod actions fastcgi
RUN echo "<VirtualHost *:80> \n\ RUN a2enmod rewrite
ServerAdmin webmaster@localhost \n\ RUN a2enmod headers
DocumentRoot /var/www/html \n\ RUN a2enmod expires
\n\ RUN a2enmod deflate
ErrorLog ${APACHE_LOG_DIR}/error.log \n\
CustomLog ${APACHE_LOG_DIR}/access.log combined \n\ ## Fixing localhost error.
\n\ RUN echo "ServerName localhost" >> /etc/apache2/conf-available/servername.conf
<Directory /var/www/html> \n\ RUN a2enconf servername
Options Indexes FollowSymLinks MultiViews \n\
AllowOverride All \n\ RUN rm /etc/apache2/sites-enabled/000-default.conf
Order allow,deny \n\ RUN echo "<VirtualHost *:80> \n\
allow from all \n\ ServerAdmin webmaster@localhost \n\
</Directory> \n\ DocumentRoot /var/www/html \n\
</VirtualHost>" >> /etc/apache2/sites-enabled/000-default.conf \n\
ErrorLog ${APACHE_LOG_DIR}/error.log \n\
#################################################### Autograder JAR #################################################### CustomLog ${APACHE_LOG_DIR}/access.log combined \n\
\n\
ADD start.sh /start.sh <Directory /var/www/html> \n\
RUN chmod +x /start.sh Options Indexes FollowSymLinks MultiViews \n\
AllowOverride All \n\
EXPOSE 80 Order allow,deny \n\
allow from all \n\
</Directory> \n\
<IfModule mod_fastcgi.c> \n\
AddHandler php7-fcgi .php \n\
Action php7-fcgi /php7-fcgi \n\
Alias /php7-fcgi /usr/lib/cgi-bin/php7-fcgi \n\
FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -socket /run/php/php7.0-fpm.sock -pass-header Authorization \n\
<FilesMatch '.+\.ph(p[345]?|t|tml)$'> \n\
SetHandler php7-fcgi \n\
</FilesMatch> \n\
<Directory '/usr/lib/cgi-bin'> \n\
Require all granted \n\
</Directory> \n\
</IfModule> \n\
</VirtualHost>" >> /etc/apache2/sites-enabled/000-default.conf
RUN x=";clear_env = no" && y="clear_env = no" && sed -i -e "s/$x/$y/g" /etc/php/7.0/fpm/pool.d/www.conf
#################################################### php should run as my user ####################################################
RUN x="user = www-data" && y="user = $myuser" && sed -i -e "s/$x/$y/g" /etc/php/7.0/fpm/pool.d/www.conf
RUN x="group = www-data" && y="group = $mygroup" && sed -i -e "s/$x/$y/g" /etc/php/7.0/fpm/pool.d/www.conf
#################################################### allow 1gb upload size ####################################################
RUN x="upload_max_filesize = 2M" && y="upload_max_filesize = 1024M" && sed -i -e "s/$x/$y/g" /etc/php/7.0/fpm/php.ini
RUN x="post_max_size = 8M" && y="post_max_size = 1024M" && sed -i -e "s/$x/$y/g" /etc/php/7.0/fpm/php.ini
#################################################### Setting up apache ####################################################
ADD start.sh /start.sh
RUN chmod u+x /start.sh
EXPOSE 80
ENTRYPOINT ["/start.sh"] ENTRYPOINT ["/start.sh"]
\ No newline at end of file
*
!.gitignore
\ No newline at end of file
...@@ -7,6 +7,7 @@ RewriteCond %{REQUEST_FILENAME} !-f ...@@ -7,6 +7,7 @@ RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L] RewriteRule . /index.php [L]
</IfModule> </IfModule>
# END WordPress # END WordPress
# Enable Compression # Enable Compression
......
<?php
phpinfo();
\ No newline at end of file
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
<body> <body>
<h1 id="logo"> <h1 id="logo">
<a href="https://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" /></a> <a href="https://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" /></a>
<br /> Version 4.7
</h1> </h1>
<p style="text-align: center">Semantic Personal Publishing Platform</p> <p style="text-align: center">Semantic Personal Publishing Platform</p>
......
...@@ -64,7 +64,7 @@ $core_actions_post = array( ...@@ -64,7 +64,7 @@ $core_actions_post = array(
'parse-media-shortcode', 'destroy-sessions', 'install-plugin', 'update-plugin', 'press-this-save-post', 'parse-media-shortcode', 'destroy-sessions', 'install-plugin', 'update-plugin', 'press-this-save-post',
'press-this-add-category', 'crop-image', 'generate-password', 'save-wporg-username', 'delete-plugin', 'press-this-add-category', 'crop-image', 'generate-password', 'save-wporg-username', 'delete-plugin',
'search-plugins', 'search-install-plugins', 'activate-plugin', 'update-theme', 'delete-theme', 'search-plugins', 'search-install-plugins', 'activate-plugin', 'update-theme', 'delete-theme',
'install-theme', 'get-post-thumbnail-html', 'install-theme', 'get-post-thumbnail-html', 'get-community-events',
); );
// Deprecated // Deprecated
......
...@@ -78,10 +78,6 @@ do_action( 'admin_footer', '' ); ...@@ -78,10 +78,6 @@ do_action( 'admin_footer', '' );
* refers to the global hook suffix of the current page. * refers to the global hook suffix of the current page.
* *
* @since 4.6.0 * @since 4.6.0
*
* @global string $hook_suffix
*
* @param string $hook_suffix The current admin page.
*/ */
do_action( "admin_print_footer_scripts-{$hook_suffix}" ); do_action( "admin_print_footer_scripts-{$hook_suffix}" );
...@@ -99,9 +95,6 @@ do_action( 'admin_print_footer_scripts' ); ...@@ -99,9 +95,6 @@ do_action( 'admin_print_footer_scripts' );
* refers to the global hook suffix of the current page. * refers to the global hook suffix of the current page.
* *
* @since 2.8.0 * @since 2.8.0
*
* @global string $hook_suffix
* @param string $hook_suffix The current admin page.
*/ */
do_action( "admin_footer-{$hook_suffix}" ); do_action( "admin_footer-{$hook_suffix}" );
......
...@@ -221,8 +221,9 @@ if ( isset($plugin_page) ) { ...@@ -221,8 +221,9 @@ if ( isset($plugin_page) ) {
*/ */
do_action( $page_hook ); do_action( $page_hook );
} else { } else {
if ( validate_file($plugin_page) ) if ( validate_file( $plugin_page ) ) {
wp_die(__('Invalid plugin page')); wp_die( __( 'Invalid plugin page.' ) );
}
if ( !( file_exists(WP_PLUGIN_DIR . "/$plugin_page") && is_file(WP_PLUGIN_DIR . "/$plugin_page") ) && !( file_exists(WPMU_PLUGIN_DIR . "/$plugin_page") && is_file(WPMU_PLUGIN_DIR . "/$plugin_page") ) ) if ( !( file_exists(WP_PLUGIN_DIR . "/$plugin_page") && is_file(WP_PLUGIN_DIR . "/$plugin_page") ) && !( file_exists(WPMU_PLUGIN_DIR . "/$plugin_page") && is_file(WPMU_PLUGIN_DIR . "/$plugin_page") ) )
wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page))); wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page)));
......
...@@ -52,7 +52,7 @@ if ( ! current_user_can( 'upload_files' ) ) { ...@@ -52,7 +52,7 @@ if ( ! current_user_can( 'upload_files' ) ) {
if ( isset($_REQUEST['attachment_id']) && ($id = intval($_REQUEST['attachment_id'])) && $_REQUEST['fetch'] ) { if ( isset($_REQUEST['attachment_id']) && ($id = intval($_REQUEST['attachment_id'])) && $_REQUEST['fetch'] ) {
$post = get_post( $id ); $post = get_post( $id );
if ( 'attachment' != $post->post_type ) if ( 'attachment' != $post->post_type )
wp_die( __( 'Unknown post type.' ) ); wp_die( __( 'Invalid post type.' ) );
if ( ! current_user_can( 'edit_post', $id ) ) if ( ! current_user_can( 'edit_post', $id ) )
wp_die( __( 'Sorry, you are not allowed to edit this item.' ) ); wp_die( __( 'Sorry, you are not allowed to edit this item.' ) );
......
...@@ -20,7 +20,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' ); ...@@ -20,7 +20,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
<p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s helps you get your site set up the way you want it.' ), $display_version ); ?></p> <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s adds more ways for you to express yourself and represent your brand.' ), $display_version ); ?></p>
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
max-width: 100%; max-width: 100%;
height: auto; height: auto;
vertical-align: middle; vertical-align: middle;
border: 1px solid rgba(0, 0, 0, 0.1);
} }
.about-wrap .jetpack-video-wrapper { .about-wrap .jetpack-video-wrapper {
...@@ -161,43 +160,55 @@ ...@@ -161,43 +160,55 @@
/* 1.2 - Structure */ /* 1.2 - Structure */
.about-wrap [class$=col] .col { .about-wrap [class$="-col"] {
float: right; display: -ms-flexbox;
position: relative; display: -webkit-flex;
} display: -webkit-box;
display: -moz-box;
.about-wrap .two-col .col { display: flex;
margin-left: 4.799999999%; -webkit-box-pack: justify;
width: 47.6%; -webkit-justify-content: space-between;
-moz-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.about-wrap .feature-section.one-col {
margin: 0 auto;
max-width: 700px;
} }
.about-wrap .two-col img { .about-wrap [class$="-col"] .col {
margin-bottom: 1.5em; -webkit-flex: 1;
-ms-flex: 1;
-webkit-box-flex: 1;
-moz-box-flex: 1;
flex: 1;
} }
.about-wrap .feature-section.two-col .col { .about-wrap .two-col .col {
display: inline-block; min-width: 47%;
float: none; max-width: 47%;
margin-top: 1em;
margin-left: 4.799999999%;
width: -webkit-calc( 47.6% - 4px );
width: calc( 47.6% - 4px );
vertical-align: top;
} }
.about-wrap .three-col .col { .about-wrap .three-col .col {
margin-left: 4.999999999%; -webkit-align-self: flex-start;
width: 29.95%; -ms-flex-item-align: start;
align-self: flex-start;
min-width: 31%;
max-width: 31%;
} }
.about-wrap .two-col .col:nth-of-type(2n), .about-wrap .two-col img {
.about-wrap .three-col .col:nth-of-type(3n) { margin-bottom: 1.5em;
margin-left: 0;
}
.about-wrap .under-the-hood {
clear: both;
overflow: hidden;
} }
.about-wrap .feature-video .mejs-controls { .about-wrap .feature-video .mejs-controls {
...@@ -298,11 +309,6 @@ ...@@ -298,11 +309,6 @@
padding-top: 35px; padding-top: 35px;
} }
.about-wrap .headline-feature {
margin: 0 auto;
max-width: 80%;
}
.about-wrap .feature-section .media-container { .about-wrap .feature-section .media-container {
overflow: hidden; overflow: hidden;
} }
...@@ -446,6 +452,11 @@ ...@@ -446,6 +452,11 @@
column-count: 1; column-count: 1;
} }
.about-wrap .two-col .col,
.about-wrap .three-col .col {
min-width: 48% !important;
}
.about-wrap .three-col img { .about-wrap .three-col img {
display: block; display: block;
margin: 0 auto; margin: 0 auto;
...@@ -475,8 +486,7 @@ ...@@ -475,8 +486,7 @@
.about-wrap .two-col .col, .about-wrap .two-col .col,
.about-wrap .three-col .col { .about-wrap .three-col .col {
width: 100% !important; min-width: 100% !important;
float: none !important;
} }
.about-wrap .under-the-hood.three-col .col, .about-wrap .under-the-hood.three-col .col,
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
max-width: 100%; max-width: 100%;
height: auto; height: auto;
vertical-align: middle; vertical-align: middle;
border: 1px solid rgba(0, 0, 0, 0.1);
} }
.about-wrap .jetpack-video-wrapper { .about-wrap .jetpack-video-wrapper {
...@@ -161,43 +160,55 @@ ...@@ -161,43 +160,55 @@
/* 1.2 - Structure */ /* 1.2 - Structure */
.about-wrap [class$=col] .col { .about-wrap [class$="-col"] {
float: left; display: -ms-flexbox;
position: relative; display: -webkit-flex;
} display: -webkit-box;
display: -moz-box;
.about-wrap .two-col .col { display: flex;
margin-right: 4.799999999%; -webkit-box-pack: justify;
width: 47.6%; -webkit-justify-content: space-between;
-moz-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.about-wrap .feature-section.one-col {
margin: 0 auto;
max-width: 700px;
} }
.about-wrap .two-col img { .about-wrap [class$="-col"] .col {
margin-bottom: 1.5em; -webkit-flex: 1;
-ms-flex: 1;
-webkit-box-flex: 1;
-moz-box-flex: 1;
flex: 1;
} }
.about-wrap .feature-section.two-col .col { .about-wrap .two-col .col {
display: inline-block; min-width: 47%;
float: none; max-width: 47%;
margin-top: 1em;
margin-right: 4.799999999%;
width: -webkit-calc( 47.6% - 4px );
width: calc( 47.6% - 4px );
vertical-align: top;
} }
.about-wrap .three-col .col { .about-wrap .three-col .col {
margin-right: 4.999999999%; -webkit-align-self: flex-start;
width: 29.95%; -ms-flex-item-align: start;
align-self: flex-start;
min-width: 31%;
max-width: 31%;
} }
.about-wrap .two-col .col:nth-of-type(2n), .about-wrap .two-col img {
.about-wrap .three-col .col:nth-of-type(3n) { margin-bottom: 1.5em;
margin-right: 0;
}
.about-wrap .under-the-hood {
clear: both;
overflow: hidden;
} }
.about-wrap .feature-video .mejs-controls { .about-wrap .feature-video .mejs-controls {
...@@ -298,11 +309,6 @@ ...@@ -298,11 +309,6 @@
padding-top: 35px; padding-top: 35px;
} }
.about-wrap .headline-feature {
margin: 0 auto;
max-width: 80%;
}
.about-wrap .feature-section .media-container { .about-wrap .feature-section .media-container {
overflow: hidden; overflow: hidden;
} }
...@@ -446,6 +452,11 @@ ...@@ -446,6 +452,11 @@
column-count: 1; column-count: 1;
} }
.about-wrap .two-col .col,
.about-wrap .three-col .col {
min-width: 48% !important;
}
.about-wrap .three-col img { .about-wrap .three-col img {
display: block; display: block;
margin: 0 auto; margin: 0 auto;
...@@ -475,8 +486,7 @@ ...@@ -475,8 +486,7 @@
.about-wrap .two-col .col, .about-wrap .two-col .col,
.about-wrap .three-col .col { .about-wrap .three-col .col {
width: 100% !important; min-width: 100% !important;
float: none !important;
} }
.about-wrap .under-the-hood.three-col .col, .about-wrap .under-the-hood.three-col .col,
......
...@@ -133,4 +133,11 @@ ...@@ -133,4 +133,11 @@
box-shadow: box-shadow:
0 0 0 1px #5b9dd9, 0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8); 0 0 2px 1px rgba(30, 140, 190, .8);
} }
\ No newline at end of file
@media screen and ( max-width: 782px ) {
.wp-picker-container input[type="text"].wp-color-picker {
margin-left: 6px;
padding: 3px 5px;
}
}
.wp-color-picker{width:80px}.wp-picker-container .hidden{display:none}.wp-color-result{background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;height:22px;margin:0 0 6px 6px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;display:inline-block;padding-right:30px;-webkit-box-shadow:0 1px 0 #ccc;box-shadow:0 1px 0 #ccc;top:0}.wp-color-result:after{background:#f7f7f7;-webkit-border-radius:2px 0 0 2px;border-radius:2px 0 0 2px;border-right:1px solid #ccc;color:#555;content:attr(title);display:block;font-size:11px;line-height:22px;padding:0 6px;position:relative;left:0;text-align:center;top:0}.wp-color-result:focus,.wp-color-result:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#23282d;border-color:#a0a5aa;border-right:1px solid #999}.wp-color-result.wp-picker-open:after{content:attr(data-current)}.wp-picker-container,.wp-picker-container:active{display:inline-block;outline:0}.wp-color-result:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 3px rgba(0,115,170,.8);box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-container .button{margin-right:6px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#555}.wp-picker-container .iris-picker{-webkit-border-radius:0;border-radius:0;border-color:#ddd;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:65px;font-size:12px;font-family:monospace;line-height:16px;margin:0}.wp-color-picker::-webkit-input-placeholder{color:#72777c}.wp-color-picker::-moz-placeholder{color:#72777c;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#72777c}.wp-picker-container input[type=text].iris-error{background-color:#ffebe8;border-color:#c00;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)} .wp-color-picker{width:80px}.wp-picker-container .hidden{display:none}.wp-color-result{background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;height:22px;margin:0 0 6px 6px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;display:inline-block;padding-right:30px;-webkit-box-shadow:0 1px 0 #ccc;box-shadow:0 1px 0 #ccc;top:0}.wp-color-result:after{background:#f7f7f7;-webkit-border-radius:2px 0 0 2px;border-radius:2px 0 0 2px;border-right:1px solid #ccc;color:#555;content:attr(title);display:block;font-size:11px;line-height:22px;padding:0 6px;position:relative;left:0;text-align:center;top:0}.wp-color-result:focus,.wp-color-result:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#23282d;border-color:#a0a5aa;border-right:1px solid #999}.wp-color-result.wp-picker-open:after{content:attr(data-current)}.wp-picker-container,.wp-picker-container:active{display:inline-block;outline:0}.wp-color-result:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 3px rgba(0,115,170,.8);box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-container .button{margin-right:6px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#555}.wp-picker-container .iris-picker{-webkit-border-radius:0;border-radius:0;border-color:#ddd;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:65px;font-size:12px;font-family:monospace;line-height:16px;margin:0}.wp-color-picker::-webkit-input-placeholder{color:#72777c}.wp-color-picker::-moz-placeholder{color:#72777c;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#72777c}.wp-picker-container input[type=text].iris-error{background-color:#ffebe8;border-color:#c00;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{margin-left:6px;padding:3px 5px}}
\ No newline at end of file \ No newline at end of file
...@@ -133,4 +133,11 @@ ...@@ -133,4 +133,11 @@
box-shadow: box-shadow:
0 0 0 1px #5b9dd9, 0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8); 0 0 2px 1px rgba(30, 140, 190, .8);
} }
\ No newline at end of file
@media screen and ( max-width: 782px ) {
.wp-picker-container input[type="text"].wp-color-picker {
margin-right: 6px;
padding: 3px 5px;
}
}
.wp-color-picker{width:80px}.wp-picker-container .hidden{display:none}.wp-color-result{background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;height:22px;margin:0 6px 6px 0;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;display:inline-block;padding-left:30px;-webkit-box-shadow:0 1px 0 #ccc;box-shadow:0 1px 0 #ccc;top:0}.wp-color-result:after{background:#f7f7f7;-webkit-border-radius:0 2px 2px 0;border-radius:0 2px 2px 0;border-left:1px solid #ccc;color:#555;content:attr(title);display:block;font-size:11px;line-height:22px;padding:0 6px;position:relative;right:0;text-align:center;top:0}.wp-color-result:focus,.wp-color-result:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#23282d;border-color:#a0a5aa;border-left:1px solid #999}.wp-color-result.wp-picker-open:after{content:attr(data-current)}.wp-picker-container,.wp-picker-container:active{display:inline-block;outline:0}.wp-color-result:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 3px rgba(0,115,170,.8);box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-container .button{margin-left:6px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#555}.wp-picker-container .iris-picker{-webkit-border-radius:0;border-radius:0;border-color:#ddd;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:65px;font-size:12px;font-family:monospace;line-height:16px;margin:0}.wp-color-picker::-webkit-input-placeholder{color:#72777c}.wp-color-picker::-moz-placeholder{color:#72777c;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#72777c}.wp-picker-container input[type=text].iris-error{background-color:#ffebe8;border-color:#c00;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)} .wp-color-picker{width:80px}.wp-picker-container .hidden{display:none}.wp-color-result{background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;height:22px;margin:0 6px 6px 0;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;display:inline-block;padding-left:30px;-webkit-box-shadow:0 1px 0 #ccc;box-shadow:0 1px 0 #ccc;top:0}.wp-color-result:after{background:#f7f7f7;-webkit-border-radius:0 2px 2px 0;border-radius:0 2px 2px 0;border-left:1px solid #ccc;color:#555;content:attr(title);display:block;font-size:11px;line-height:22px;padding:0 6px;position:relative;right:0;text-align:center;top:0}.wp-color-result:focus,.wp-color-result:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#23282d;border-color:#a0a5aa;border-left:1px solid #999}.wp-color-result.wp-picker-open:after{content:attr(data-current)}.wp-picker-container,.wp-picker-container:active{display:inline-block;outline:0}.wp-color-result:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 3px rgba(0,115,170,.8);box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-container .button{margin-left:6px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#555}.wp-picker-container .iris-picker{-webkit-border-radius:0;border-radius:0;border-color:#ddd;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:65px;font-size:12px;font-family:monospace;line-height:16px;margin:0}.wp-color-picker::-webkit-input-placeholder{color:#72777c}.wp-color-picker::-moz-placeholder{color:#72777c;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#72777c}.wp-picker-container input[type=text].iris-error{background-color:#ffebe8;border-color:#c00;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{margin-right:6px;padding:3px 5px}}
\ No newline at end of file \ No newline at end of file
...@@ -408,12 +408,7 @@ ul#adminmenu > li.current > a.current:after { ...@@ -408,12 +408,7 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: box-shadow: 0 0 0 1px #fff, 0 0 0 3px $highlight-color;
0px 0px 0px 1px #fff,
0px 0px 0px 3px $highlight-color;
box-shadow:
0px 0px 0px 1px #fff,
0px 0px 0px 3px $highlight-color;
} }
......
...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after { ...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #096484; -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #096484;
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #096484; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #096484;
} }
/* Themes */ /* Themes */
......
...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after { ...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #096484; -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #096484;
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #096484; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #096484;
} }
/* Themes */ /* Themes */
......
...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after { ...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #c7a589; -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #c7a589;
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #c7a589; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #c7a589;
} }
/* Themes */ /* Themes */
......
...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after { ...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #c7a589; -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #c7a589;
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #c7a589; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #c7a589;
} }
/* Themes */ /* Themes */
......
...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after { ...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #a3b745; -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #a3b745;
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #a3b745; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #a3b745;
} }
/* Themes */ /* Themes */
......
...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after { ...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #a3b745; -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #a3b745;
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #a3b745; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #a3b745;
} }
/* Themes */ /* Themes */
......
...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after { ...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #04a4cc; -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #04a4cc;
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #04a4cc; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #04a4cc;
} }
/* Themes */ /* Themes */
......
...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after { ...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #04a4cc; -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #04a4cc;
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #04a4cc; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #04a4cc;
} }
/* Themes */ /* Themes */
......
...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after { ...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #e14d43; -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e14d43;
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #e14d43; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e14d43;
} }
/* Themes */ /* Themes */
......
...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after { ...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #e14d43; -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e14d43;
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #e14d43; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e14d43;
} }
/* Themes */ /* Themes */
......
...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after { ...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #9ebaa0; -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #9ebaa0;
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #9ebaa0; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #9ebaa0;
} }
/* Themes */ /* Themes */
......
...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after { ...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #9ebaa0; -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #9ebaa0;
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #9ebaa0; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #9ebaa0;
} }
/* Themes */ /* Themes */
......
...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after { ...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #dd823b; -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #dd823b;
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #dd823b; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #dd823b;
} }
/* Themes */ /* Themes */
......
...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after { ...@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
} }
.media-selection .attachment.selection.details .thumbnail { .media-selection .attachment.selection.details .thumbnail {
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #dd823b; -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #dd823b;
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #dd823b; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #dd823b;
} }
/* Themes */ /* Themes */
......
...@@ -244,6 +244,7 @@ td { ...@@ -244,6 +244,7 @@ td {
line-height: inherit; line-height: inherit;
} }
/* Any change to the default link style must be applied to button-link too. */
a { a {
color: #0073aa; color: #0073aa;
-webkit-transition-property: border, background, color; -webkit-transition-property: border, background, color;
...@@ -464,7 +465,8 @@ code { ...@@ -464,7 +465,8 @@ code {
word-wrap: break-word; word-wrap: break-word;
} }
.widefat a { .widefat a,
.widefat button.button-link {
text-decoration: none; text-decoration: none;
} }
...@@ -777,7 +779,7 @@ img.emoji { ...@@ -777,7 +779,7 @@ img.emoji {
#bulk-titles div a:before, #bulk-titles div a:before,
.notice-dismiss:before { .notice-dismiss:before {
background: none; background: none;
color: #b4b9be; color: #72777c;
content: "\f153"; content: "\f153";
display: block; display: block;
font: normal 16px/20px dashicons; font: normal 16px/20px dashicons;
...@@ -863,8 +865,6 @@ hr { ...@@ -863,8 +865,6 @@ hr {
border-bottom: 1px solid #fafafa; border-bottom: 1px solid #fafafa;
} }
.widget-control-remove,
.widget-control-remove:focus,
.row-actions span.delete a, .row-actions span.delete a,
.row-actions span.trash a, .row-actions span.trash a,
.row-actions span.spam a, .row-actions span.spam a,
...@@ -874,7 +874,8 @@ hr { ...@@ -874,7 +874,8 @@ hr {
.submitbox .submitdelete, .submitbox .submitdelete,
#media-items a.delete, #media-items a.delete,
#media-items a.delete-permanently, #media-items a.delete-permanently,
#nav-menu-footer .menu-delete { #nav-menu-footer .menu-delete,
#delete-link a.delete {
color: #a00; color: #a00;
} }
...@@ -890,15 +891,12 @@ span.required, ...@@ -890,15 +891,12 @@ span.required,
.submitbox .submitdelete:hover, .submitbox .submitdelete:hover,
#media-items a.delete:hover, #media-items a.delete:hover,
#media-items a.delete-permanently:hover, #media-items a.delete-permanently:hover,
#nav-menu-footer .menu-delete:hover { #nav-menu-footer .menu-delete:hover,
color: #f00; #delete-link a.delete:hover {
color: #dc3232;
border: none; border: none;
} }
.widget-control-remove:hover {
color: #f00;
}
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
3.0 - Actions 3.0 - Actions
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
...@@ -915,6 +913,17 @@ span.required, ...@@ -915,6 +913,17 @@ span.required,
line-height: 28px; line-height: 28px;
} }
#delete-link {
line-height: 28px;
vertical-align: middle;
text-align: right;
margin-right: 8px;
}
#delete-link a {
text-decoration: none;
}
#publishing-action { #publishing-action {
text-align: left; text-align: left;
float: left; float: left;
...@@ -1133,34 +1142,21 @@ th.action-links { ...@@ -1133,34 +1142,21 @@ th.action-links {
color: #fff; color: #fff;
} }
.filter-drawer,
.wp-filter .favorites-form { .wp-filter .favorites-form {
display: none; display: none;
margin: 0 -20px; margin: 0 -20px 0 -10px;
padding: 20px; padding: 20px;
border-top: 1px solid #eee; border-top: 1px solid #eee;
background: #fafafa; background: #fafafa;
overflow: hidden; overflow: hidden;
width: 100%;
} }
.show-filters .filter-drawer,
.show-favorites-form .favorites-form { .show-favorites-form .favorites-form {
display: block; display: block;
} }
.filter-drawer {
display: none;
margin: 0 -20px;
padding: 20px;
border-top: 1px solid #eee;
background: #fafafa;
}
.show-filters .filter-drawer {
display: block;
overflow: hidden;
width: 100%;
}
.show-filters .filter-links a.current { .show-filters .filter-links a.current {
border-bottom: none; border-bottom: none;
} }
...@@ -1242,20 +1238,10 @@ th.action-links { ...@@ -1242,20 +1238,10 @@ th.action-links {
} }
.wp-filter .button-link.edit-filters { .wp-filter .button-link.edit-filters {
color: #0073aa;
text-decoration: underline;
padding: 0 5px; padding: 0 5px;
line-height: 28px; line-height: 28px;
} }
.wp-filter .button-link.edit-filters:hover {
color: #00a0d2;
}
.wp-filter .button-link.edit-filters:focus {
color: #124964;
}
.filtered-by { .filtered-by {
display: none; display: none;
margin: 0; margin: 0;
...@@ -1431,7 +1417,7 @@ div.error p, ...@@ -1431,7 +1417,7 @@ div.error p,
margin: 0; margin: 0;
padding: 9px; padding: 9px;
background: none; background: none;
color: #b4b9be; color: #72777c;
cursor: pointer; cursor: pointer;
} }
...@@ -1607,8 +1593,7 @@ form.upgrade .hint { ...@@ -1607,8 +1593,7 @@ form.upgrade .hint {
color: #66c6e4; color: #66c6e4;
} }
.button.updated-message, .button.updated-message {
.notice .button-link {
-webkit-transition-property: border, background, color; -webkit-transition-property: border, background, color;
transition-property: border, background, color; transition-property: border, background, color;
-webkit-transition-duration: .05s; -webkit-transition-duration: .05s;
...@@ -1617,15 +1602,6 @@ form.upgrade .hint { ...@@ -1617,15 +1602,6 @@ form.upgrade .hint {
transition-timing-function: ease-in-out; transition-timing-function: ease-in-out;
} }
.notice .button-link {
color: #0073aa;
}
.notice .button-link:hover,
.notice .button-link:active {
color: #00a0d2;
}
@media aural { @media aural {
.wrap .notice p:before, .wrap .notice p:before,
.button.installing:before, .button.installing:before,
...@@ -2064,7 +2040,11 @@ html.wp-toolbar { ...@@ -2064,7 +2040,11 @@ html.wp-toolbar {
float: left; float: left;
width: 36px; width: 36px;
height: 36px; height: 36px;
margin: 0;
padding: 0; padding: 0;
border: 0;
background: none;
cursor: pointer;
} }
.js .postbox .handlediv { .js .postbox .handlediv {
...@@ -2542,25 +2522,18 @@ div.action-links { ...@@ -2542,25 +2522,18 @@ div.action-links {
} }
#plugin-information-title { #plugin-information-title {
padding: 0 20px; padding: 0 26px;
background: #f5f5f5; background: #f5f5f5;
font-size: 22px; font-size: 22px;
font-weight: 600; font-weight: 600;
line-height: 56px; line-height: 56px;
position: relative; position: relative;
top: 0;
left: 0;
right: 0;
height: 56px; height: 56px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
#plugin-information-title.with-banner { #plugin-information-title.with-banner {
margin-left: 0; margin-left: 0;
height: 250px; height: 250px;
bottom: 250px;
-webkit-background-size: cover; -webkit-background-size: cover;
background-size: cover; background-size: cover;
} }
...@@ -2570,19 +2543,23 @@ div.action-links { ...@@ -2570,19 +2543,23 @@ div.action-links {
font-weight: 600; font-weight: 600;
padding: 0; padding: 0;
margin: 0; margin: 0;
max-width: 680px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
#plugin-information-title.with-banner h2 { #plugin-information-title.with-banner h2 {
position: relative;
font-family: "Helvetica Neue", sans-serif; font-family: "Helvetica Neue", sans-serif;
display: inline-block; display: inline-block;
font-size: 30px; font-size: 30px;
line-height: 50px; line-height: 50px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
max-width: 100%;
padding: 0 15px; padding: 0 15px;
margin: 174px 10px 0 0; margin-top: 174px;
color: #fff; color: #fff;
background: rgba( 30, 30, 30, 0.9 ); background: rgba( 30, 30, 30, 0.9 );
text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.4 ); text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.4 );
...@@ -2597,12 +2574,12 @@ div.action-links { ...@@ -2597,12 +2574,12 @@ div.action-links {
} }
#plugin-information-title.with-banner div.vignette { #plugin-information-title.with-banner div.vignette {
position: absolute;
display: block; display: block;
float: left;
top: 0; top: 0;
right: 0;
height: 250px; height: 250px;
width: 772px; width: 100%;
margin: 0 -20px;
background: transparent; background: transparent;
-webkit-box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 ); -webkit-box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 );
box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 ); box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 );
...@@ -2837,6 +2814,14 @@ div.action-links { ...@@ -2837,6 +2814,14 @@ div.action-links {
border: 1px solid #ccc; border: 1px solid #ccc;
} }
#plugin-information blockquote {
border-right: 2px solid #ddd;
color: #666;
font-style: italic;
margin: 1em 0;
padding: 0 1em 0 0;
}
/* rtl:ignore */ /* rtl:ignore */
#plugin-information .review { #plugin-information .review {
overflow: hidden; /* clearfix */ overflow: hidden; /* clearfix */
...@@ -2897,7 +2882,6 @@ div.action-links { ...@@ -2897,7 +2882,6 @@ div.action-links {
@media screen and ( max-width: 771px ) { @media screen and ( max-width: 771px ) {
#plugin-information-title.with-banner { #plugin-information-title.with-banner {
height: 100px; height: 100px;
bottom: 100px;
} }
#plugin-information-title.with-banner h2 { #plugin-information-title.with-banner h2 {
...@@ -2909,8 +2893,6 @@ div.action-links { ...@@ -2909,8 +2893,6 @@ div.action-links {
#plugin-information-title.with-banner div.vignette { #plugin-information-title.with-banner div.vignette {
height: 100px; height: 100px;
bottom: 100px;
width: 800%;
} }
#plugin-information-tabs { #plugin-information-tabs {
...@@ -3178,7 +3160,9 @@ img { ...@@ -3178,7 +3160,9 @@ img {
font-size: 13px; font-size: 13px;
width: 97%; width: 97%;
background: #f9f9f9; background: #f9f9f9;
outline: none; -moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
} }
/* rtl:ignore */ /* rtl:ignore */
...@@ -3256,26 +3240,26 @@ img { ...@@ -3256,26 +3240,26 @@ img {
/* @todo: can we use a common class for these? */ /* @todo: can we use a common class for these? */
.nav-menus-php .item-edit:before, .nav-menus-php .item-edit:before,
.widget-top a.widget-action:after, .widget-top .widget-action .toggle-indicator:before,
.control-section .accordion-section-title:after, .control-section .accordion-section-title:after,
.accordion-section-title:after { .accordion-section-title:after {
left: 0;
content: "\f140"; content: "\f140";
border: none;
background: none;
font: normal 20px/1 dashicons; font: normal 20px/1 dashicons;
speak: none; speak: none;
display: block; display: block;
padding: 0;
text-indent: 0;
text-align: center;
position: relative;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
text-decoration: none !important; text-decoration: none !important;
} }
.widget-top .widget-action .toggle-indicator:before {
padding: 1px 0px 1px 2px;
-webkit-border-radius: 50%;
border-radius: 50%;
}
.handlediv, .handlediv,
.postbox .handlediv.button-link,
.item-edit, .item-edit,
.sidebar-name-arrow, .sidebar-name-arrow,
.accordion-section-title:after { .accordion-section-title:after {
...@@ -3290,6 +3274,8 @@ img { ...@@ -3290,6 +3274,8 @@ img {
.widget-action:focus, .widget-action:focus,
.handlediv:hover, .handlediv:hover,
.handlediv:focus, .handlediv:focus,
.postbox .handlediv.button-link:hover,
.postbox .handlediv.button-link:focus,
.item-edit:hover, .item-edit:hover,
.item-edit:focus, .item-edit:focus,
.sidebar-name:hover .sidebar-name-arrow, .sidebar-name:hover .sidebar-name-arrow,
...@@ -3297,15 +3283,7 @@ img { ...@@ -3297,15 +3283,7 @@ img {
color: #23282d; color: #23282d;
} }
.widget-top a.widget-action:after { .widget-top .widget-action:focus .toggle-indicator:before {
padding: 1px 0px 1px 2px;
margin-top: 10px;
margin-left: 10px;
-webkit-border-radius: 50%;
border-radius: 50%;
}
.widget-top a.widget-action:focus:after {
-webkit-box-shadow: -webkit-box-shadow:
0 0 0 1px #5b9dd9, 0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30,140,190,.8); 0 0 2px 1px rgba(30,140,190,.8);
...@@ -3324,7 +3302,7 @@ img { ...@@ -3324,7 +3302,7 @@ img {
.control-section.open .accordion-section-title:after, .control-section.open .accordion-section-title:after,
#customize-info.open .accordion-section-title:after, #customize-info.open .accordion-section-title:after,
.nav-menus-php .menu-item-edit-active .item-edit:before, .nav-menus-php .menu-item-edit-active .item-edit:before,
.widget.open .widget-top a.widget-action:after { .widget.open .widget-top .widget-action .toggle-indicator:before {
content: "\f142"; content: "\f142";
} }
...@@ -3603,8 +3581,8 @@ img { ...@@ -3603,8 +3581,8 @@ img {
/* @todo: evaluate - most of these were likely replaced by dashicons */ /* @todo: evaluate - most of these were likely replaced by dashicons */
.curtime #timestamp, .curtime #timestamp,
#screen-meta-links a.show-settings, #screen-meta-links a.show-settings,
.widget-top a.widget-action, .widget-top .widget-action,
.widget-top a.widget-action:hover, .widget-top .widget-action:hover,
.sidebar-name-arrow, .sidebar-name-arrow,
.sidebar-name:hover .sidebar-name-arrow, .sidebar-name:hover .sidebar-name-arrow,
.meta-box-sortables .postbox:hover .handlediv, .meta-box-sortables .postbox:hover .handlediv,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -244,6 +244,7 @@ td { ...@@ -244,6 +244,7 @@ td {
line-height: inherit; line-height: inherit;
} }
/* Any change to the default link style must be applied to button-link too. */
a { a {
color: #0073aa; color: #0073aa;
-webkit-transition-property: border, background, color; -webkit-transition-property: border, background, color;
...@@ -464,7 +465,8 @@ code { ...@@ -464,7 +465,8 @@ code {
word-wrap: break-word; word-wrap: break-word;
} }
.widefat a { .widefat a,
.widefat button.button-link {
text-decoration: none; text-decoration: none;
} }
...@@ -777,7 +779,7 @@ img.emoji { ...@@ -777,7 +779,7 @@ img.emoji {
#bulk-titles div a:before, #bulk-titles div a:before,
.notice-dismiss:before { .notice-dismiss:before {
background: none; background: none;
color: #b4b9be; color: #72777c;
content: "\f153"; content: "\f153";
display: block; display: block;
font: normal 16px/20px dashicons; font: normal 16px/20px dashicons;
...@@ -863,8 +865,6 @@ hr { ...@@ -863,8 +865,6 @@ hr {
border-bottom: 1px solid #fafafa; border-bottom: 1px solid #fafafa;
} }
.widget-control-remove,
.widget-control-remove:focus,
.row-actions span.delete a, .row-actions span.delete a,
.row-actions span.trash a, .row-actions span.trash a,
.row-actions span.spam a, .row-actions span.spam a,
...@@ -874,7 +874,8 @@ hr { ...@@ -874,7 +874,8 @@ hr {
.submitbox .submitdelete, .submitbox .submitdelete,
#media-items a.delete, #media-items a.delete,
#media-items a.delete-permanently, #media-items a.delete-permanently,
#nav-menu-footer .menu-delete { #nav-menu-footer .menu-delete,
#delete-link a.delete {
color: #a00; color: #a00;
} }
...@@ -890,15 +891,12 @@ span.required, ...@@ -890,15 +891,12 @@ span.required,
.submitbox .submitdelete:hover, .submitbox .submitdelete:hover,
#media-items a.delete:hover, #media-items a.delete:hover,
#media-items a.delete-permanently:hover, #media-items a.delete-permanently:hover,
#nav-menu-footer .menu-delete:hover { #nav-menu-footer .menu-delete:hover,
color: #f00; #delete-link a.delete:hover {
color: #dc3232;
border: none; border: none;
} }
.widget-control-remove:hover {
color: #f00;
}
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
3.0 - Actions 3.0 - Actions
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
...@@ -915,6 +913,17 @@ span.required, ...@@ -915,6 +913,17 @@ span.required,
line-height: 28px; line-height: 28px;
} }
#delete-link {
line-height: 28px;
vertical-align: middle;
text-align: left;
margin-left: 8px;
}
#delete-link a {
text-decoration: none;
}
#publishing-action { #publishing-action {
text-align: right; text-align: right;
float: right; float: right;
...@@ -1133,34 +1142,21 @@ th.action-links { ...@@ -1133,34 +1142,21 @@ th.action-links {
color: #fff; color: #fff;
} }
.filter-drawer,
.wp-filter .favorites-form { .wp-filter .favorites-form {
display: none; display: none;
margin: 0 -20px; margin: 0 -10px 0 -20px;
padding: 20px; padding: 20px;
border-top: 1px solid #eee; border-top: 1px solid #eee;
background: #fafafa; background: #fafafa;
overflow: hidden; overflow: hidden;
width: 100%;
} }
.show-filters .filter-drawer,
.show-favorites-form .favorites-form { .show-favorites-form .favorites-form {
display: block; display: block;
} }
.filter-drawer {
display: none;
margin: 0 -20px;
padding: 20px;
border-top: 1px solid #eee;
background: #fafafa;
}
.show-filters .filter-drawer {
display: block;
overflow: hidden;
width: 100%;
}
.show-filters .filter-links a.current { .show-filters .filter-links a.current {
border-bottom: none; border-bottom: none;
} }
...@@ -1242,20 +1238,10 @@ th.action-links { ...@@ -1242,20 +1238,10 @@ th.action-links {
} }
.wp-filter .button-link.edit-filters { .wp-filter .button-link.edit-filters {
color: #0073aa;
text-decoration: underline;
padding: 0 5px; padding: 0 5px;
line-height: 28px; line-height: 28px;
} }
.wp-filter .button-link.edit-filters:hover {
color: #00a0d2;
}
.wp-filter .button-link.edit-filters:focus {
color: #124964;
}
.filtered-by { .filtered-by {
display: none; display: none;
margin: 0; margin: 0;
...@@ -1431,7 +1417,7 @@ div.error p, ...@@ -1431,7 +1417,7 @@ div.error p,
margin: 0; margin: 0;
padding: 9px; padding: 9px;
background: none; background: none;
color: #b4b9be; color: #72777c;
cursor: pointer; cursor: pointer;
} }
...@@ -1607,8 +1593,7 @@ form.upgrade .hint { ...@@ -1607,8 +1593,7 @@ form.upgrade .hint {
color: #66c6e4; color: #66c6e4;
} }
.button.updated-message, .button.updated-message {
.notice .button-link {
-webkit-transition-property: border, background, color; -webkit-transition-property: border, background, color;
transition-property: border, background, color; transition-property: border, background, color;
-webkit-transition-duration: .05s; -webkit-transition-duration: .05s;
...@@ -1617,15 +1602,6 @@ form.upgrade .hint { ...@@ -1617,15 +1602,6 @@ form.upgrade .hint {
transition-timing-function: ease-in-out; transition-timing-function: ease-in-out;
} }
.notice .button-link {
color: #0073aa;
}
.notice .button-link:hover,
.notice .button-link:active {
color: #00a0d2;
}
@media aural { @media aural {
.wrap .notice p:before, .wrap .notice p:before,
.button.installing:before, .button.installing:before,
...@@ -2064,7 +2040,11 @@ html.wp-toolbar { ...@@ -2064,7 +2040,11 @@ html.wp-toolbar {
float: right; float: right;
width: 36px; width: 36px;
height: 36px; height: 36px;
margin: 0;
padding: 0; padding: 0;
border: 0;
background: none;
cursor: pointer;
} }
.js .postbox .handlediv { .js .postbox .handlediv {
...@@ -2542,25 +2522,18 @@ div.action-links { ...@@ -2542,25 +2522,18 @@ div.action-links {
} }
#plugin-information-title { #plugin-information-title {
padding: 0 20px; padding: 0 26px;
background: #f5f5f5; background: #f5f5f5;
font-size: 22px; font-size: 22px;
font-weight: 600; font-weight: 600;
line-height: 56px; line-height: 56px;
position: relative; position: relative;
top: 0;
right: 0;
left: 0;
height: 56px; height: 56px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
#plugin-information-title.with-banner { #plugin-information-title.with-banner {
margin-right: 0; margin-right: 0;
height: 250px; height: 250px;
bottom: 250px;
-webkit-background-size: cover; -webkit-background-size: cover;
background-size: cover; background-size: cover;
} }
...@@ -2570,19 +2543,23 @@ div.action-links { ...@@ -2570,19 +2543,23 @@ div.action-links {
font-weight: 600; font-weight: 600;
padding: 0; padding: 0;
margin: 0; margin: 0;
max-width: 680px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
#plugin-information-title.with-banner h2 { #plugin-information-title.with-banner h2 {
position: relative;
font-family: "Helvetica Neue", sans-serif; font-family: "Helvetica Neue", sans-serif;
display: inline-block; display: inline-block;
font-size: 30px; font-size: 30px;
line-height: 50px; line-height: 50px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
max-width: 100%;
padding: 0 15px; padding: 0 15px;
margin: 174px 0 0 10px; margin-top: 174px;
color: #fff; color: #fff;
background: rgba( 30, 30, 30, 0.9 ); background: rgba( 30, 30, 30, 0.9 );
text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.4 ); text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.4 );
...@@ -2597,12 +2574,12 @@ div.action-links { ...@@ -2597,12 +2574,12 @@ div.action-links {
} }
#plugin-information-title.with-banner div.vignette { #plugin-information-title.with-banner div.vignette {
position: absolute;
display: block; display: block;
float: right;
top: 0; top: 0;
left: 0;
height: 250px; height: 250px;
width: 772px; width: 100%;
margin: 0 -20px;
background: transparent; background: transparent;
-webkit-box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 ); -webkit-box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 );
box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 ); box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 );
...@@ -2837,6 +2814,14 @@ div.action-links { ...@@ -2837,6 +2814,14 @@ div.action-links {
border: 1px solid #ccc; border: 1px solid #ccc;
} }
#plugin-information blockquote {
border-left: 2px solid #ddd;
color: #666;
font-style: italic;
margin: 1em 0;
padding: 0 0 0 1em;
}
/* rtl:ignore */ /* rtl:ignore */
#plugin-information .review { #plugin-information .review {
overflow: hidden; /* clearfix */ overflow: hidden; /* clearfix */
...@@ -2897,7 +2882,6 @@ div.action-links { ...@@ -2897,7 +2882,6 @@ div.action-links {
@media screen and ( max-width: 771px ) { @media screen and ( max-width: 771px ) {
#plugin-information-title.with-banner { #plugin-information-title.with-banner {
height: 100px; height: 100px;
bottom: 100px;
} }
#plugin-information-title.with-banner h2 { #plugin-information-title.with-banner h2 {
...@@ -2909,8 +2893,6 @@ div.action-links { ...@@ -2909,8 +2893,6 @@ div.action-links {
#plugin-information-title.with-banner div.vignette { #plugin-information-title.with-banner div.vignette {
height: 100px; height: 100px;
bottom: 100px;
width: 800%;
} }
#plugin-information-tabs { #plugin-information-tabs {
...@@ -3178,7 +3160,9 @@ img { ...@@ -3178,7 +3160,9 @@ img {
font-size: 13px; font-size: 13px;
width: 97%; width: 97%;
background: #f9f9f9; background: #f9f9f9;
outline: none; -moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
} }
/* rtl:ignore */ /* rtl:ignore */
...@@ -3256,26 +3240,26 @@ img { ...@@ -3256,26 +3240,26 @@ img {
/* @todo: can we use a common class for these? */ /* @todo: can we use a common class for these? */
.nav-menus-php .item-edit:before, .nav-menus-php .item-edit:before,
.widget-top a.widget-action:after, .widget-top .widget-action .toggle-indicator:before,
.control-section .accordion-section-title:after, .control-section .accordion-section-title:after,
.accordion-section-title:after { .accordion-section-title:after {
right: 0;
content: "\f140"; content: "\f140";
border: none;
background: none;
font: normal 20px/1 dashicons; font: normal 20px/1 dashicons;
speak: none; speak: none;
display: block; display: block;
padding: 0;
text-indent: 0;
text-align: center;
position: relative;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
text-decoration: none !important; text-decoration: none !important;
} }
.widget-top .widget-action .toggle-indicator:before {
padding: 1px 2px 1px 0px;
-webkit-border-radius: 50%;
border-radius: 50%;
}
.handlediv, .handlediv,
.postbox .handlediv.button-link,
.item-edit, .item-edit,
.sidebar-name-arrow, .sidebar-name-arrow,
.accordion-section-title:after { .accordion-section-title:after {
...@@ -3290,6 +3274,8 @@ img { ...@@ -3290,6 +3274,8 @@ img {
.widget-action:focus, .widget-action:focus,
.handlediv:hover, .handlediv:hover,
.handlediv:focus, .handlediv:focus,
.postbox .handlediv.button-link:hover,
.postbox .handlediv.button-link:focus,
.item-edit:hover, .item-edit:hover,
.item-edit:focus, .item-edit:focus,
.sidebar-name:hover .sidebar-name-arrow, .sidebar-name:hover .sidebar-name-arrow,
...@@ -3297,15 +3283,7 @@ img { ...@@ -3297,15 +3283,7 @@ img {
color: #23282d; color: #23282d;
} }
.widget-top a.widget-action:after { .widget-top .widget-action:focus .toggle-indicator:before {
padding: 1px 2px 1px 0px;
margin-top: 10px;
margin-right: 10px;
-webkit-border-radius: 50%;
border-radius: 50%;
}
.widget-top a.widget-action:focus:after {
-webkit-box-shadow: -webkit-box-shadow:
0 0 0 1px #5b9dd9, 0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30,140,190,.8); 0 0 2px 1px rgba(30,140,190,.8);
...@@ -3324,7 +3302,7 @@ img { ...@@ -3324,7 +3302,7 @@ img {
.control-section.open .accordion-section-title:after, .control-section.open .accordion-section-title:after,
#customize-info.open .accordion-section-title:after, #customize-info.open .accordion-section-title:after,
.nav-menus-php .menu-item-edit-active .item-edit:before, .nav-menus-php .menu-item-edit-active .item-edit:before,
.widget.open .widget-top a.widget-action:after { .widget.open .widget-top .widget-action .toggle-indicator:before {
content: "\f142"; content: "\f142";
} }
...@@ -3603,8 +3581,8 @@ img { ...@@ -3603,8 +3581,8 @@ img {
/* @todo: evaluate - most of these were likely replaced by dashicons */ /* @todo: evaluate - most of these were likely replaced by dashicons */
.curtime #timestamp, .curtime #timestamp,
#screen-meta-links a.show-settings, #screen-meta-links a.show-settings,
.widget-top a.widget-action, .widget-top .widget-action,
.widget-top a.widget-action:hover, .widget-top .widget-action:hover,
.sidebar-name-arrow, .sidebar-name-arrow,
.sidebar-name:hover .sidebar-name-arrow, .sidebar-name:hover .sidebar-name-arrow,
.meta-box-sortables .postbox:hover .handlediv, .meta-box-sortables .postbox:hover .handlediv,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -163,6 +163,15 @@ body { ...@@ -163,6 +163,15 @@ body {
#customize-controls .customize-info .customize-panel-description.open + .no-widget-areas-rendered-notice { #customize-controls .customize-info .customize-panel-description.open + .no-widget-areas-rendered-notice {
border-top: none; border-top: none;
} }
.no-widget-areas-rendered-notice {
font-style: italic;
}
.no-widget-areas-rendered-notice p:first-child {
margin-top: 0;
}
.no-widget-areas-rendered-notice p:last-child {
margin-bottom: 0;
}
#customize-controls .customize-info .customize-section-description { #customize-controls .customize-info .customize-section-description {
margin-bottom: 15px; margin-bottom: 15px;
...@@ -294,6 +303,11 @@ body { ...@@ -294,6 +303,11 @@ body {
transition: 0.18s transform cubic-bezier(0.645, 0.045, 0.355, 1), 0.18s -webkit-transform cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */ transition: 0.18s transform cubic-bezier(0.645, 0.045, 0.355, 1), 0.18s -webkit-transform cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */
} }
#customize-theme-controls .customize-pane-child.skip-transition {
-webkit-transition: none;
transition: none;
}
#customize-info, #customize-info,
#customize-theme-controls .customize-pane-parent { #customize-theme-controls .customize-pane-parent {
position: relative; position: relative;
...@@ -603,7 +617,6 @@ p.customize-section-description { ...@@ -603,7 +617,6 @@ p.customize-section-description {
.customize-control select { .customize-control select {
width: 100%; width: 100%;
max-width: 300px;
height: 28px; height: 28px;
line-height: 28px; line-height: 28px;
} }
...@@ -697,10 +710,18 @@ p.customize-section-description { ...@@ -697,10 +710,18 @@ p.customize-section-description {
padding-top: 7px; padding-top: 7px;
} }
.customize-control .thumbnail-image { /* Remove descender space. */
.customize-control .thumbnail-image,
.customize-control-header .current,
.customize-control .wp-media-wrapper.wp-video {
line-height: 0; line-height: 0;
} }
/* Remove descender space. */
.customize-control-site_icon .favicon-preview .browser-preview {
vertical-align: top;
}
.customize-control .thumbnail-image img { .customize-control .thumbnail-image img {
cursor: pointer; cursor: pointer;
} }
...@@ -730,7 +751,6 @@ p.customize-section-description { ...@@ -730,7 +751,6 @@ p.customize-section-description {
.customize-control-dropdown-pages .new-content-item { .customize-control-dropdown-pages .new-content-item {
width: 100%; width: 100%;
max-width: 300px;
padding: 5px 1px 5px 0; padding: 5px 1px 5px 0;
position: relative; position: relative;
} }
...@@ -762,19 +782,8 @@ p.customize-section-description { ...@@ -762,19 +782,8 @@ p.customize-section-description {
.customize-control-dropdown-pages .add-new-toggle { .customize-control-dropdown-pages .add-new-toggle {
margin-right: 1px; margin-right: 1px;
color: #0073aa;
font-weight: 600; font-weight: 600;
line-height: 28px; line-height: 28px;
text-decoration: underline;
}
.customize-control-dropdown-pages .add-new-toggle:hover,
.customize-control-dropdown-pages .add-new-toggle:active {
color: #00a0d2;
}
.customize-control-dropdown-pages .add-new-toggle:focus {
color: #124964;
} }
#customize-preview iframe { #customize-preview iframe {
...@@ -931,12 +940,8 @@ p.customize-section-description { ...@@ -931,12 +940,8 @@ p.customize-section-description {
/* Media controls */ /* Media controls */
.customize-control .attachment-media-view .actions { .customize-control .actions .button {
margin-top: 8px; margin-top: 12px;
}
.customize-control-header .current {
margin-bottom: 8px;
} }
.customize-control-header .actions, .customize-control-header .actions,
...@@ -964,9 +969,9 @@ p.customize-section-description { ...@@ -964,9 +969,9 @@ p.customize-section-description {
.customize-control .attachment-media-view .upload-button, .customize-control .attachment-media-view .upload-button,
.customize-control-header button.new, .customize-control-header button.new,
.customize-control-header button.remove { .customize-control-header button.remove {
white-space: normal; width: auto;
width: 48%;
height: auto; height: auto;
white-space: normal;
} }
.customize-control .attachment-media-view .thumbnail, .customize-control .attachment-media-view .thumbnail,
...@@ -1012,7 +1017,7 @@ p.customize-section-description { ...@@ -1012,7 +1017,7 @@ p.customize-section-description {
.customize-control-header .header-view { .customize-control-header .header-view {
position: relative; position: relative;
width: 100%; width: 100%;
margin-bottom: 5px; margin-bottom: 12px;
} }
.customize-control-header .header-view:last-child { .customize-control-header .header-view:last-child {
...@@ -1136,13 +1141,7 @@ p.customize-section-description { ...@@ -1136,13 +1141,7 @@ p.customize-section-description {
.customize-control .attachment-media-view .remove-button, .customize-control .attachment-media-view .remove-button,
.customize-control .attachment-media-view .default-button, .customize-control .attachment-media-view .default-button,
.customize-control-header .remove { .customize-control-header .remove {
float: right; margin-left: 8px;
margin-left: 3px;
}
.customize-control .attachment-media-view .upload-button,
.customize-control-header .new {
float: left;
} }
/* Background position control */ /* Background position control */
...@@ -1186,20 +1185,18 @@ p.customize-section-description { ...@@ -1186,20 +1185,18 @@ p.customize-section-description {
.customize-section-description-container + #customize-control-custom_css:last-child { .customize-section-description-container + #customize-control-custom_css:last-child {
margin-right: -12px; margin-right: -12px;
width: 299px; width: 299px;
width: -webkit-calc( 100% + 24px );
width: calc( 100% + 24px );
margin-bottom: -12px; margin-bottom: -12px;
} }
@media screen and ( max-width: 640px ) { @media screen and ( max-width: 640px ) {
.customize-section-description-container + #customize-control-custom_css:last-child { .customize-section-description-container + #customize-control-custom_css:last-child {
margin-right: 0;
margin-left: 0; margin-left: 0;
width: 100%;
} }
.customize-section-description-container + #customize-control-custom_css:last-child textarea { .customize-section-description-container + #customize-control-custom_css:last-child textarea {
height: -webkit-calc( 100vh - 140px ); height: -webkit-calc( 100vh - 140px );
height: calc( 100vh - 140px ); height: calc( 100vh - 140px );
width: 100%;
border: solid 1px #ddd;
} }
} }
...@@ -1473,24 +1470,11 @@ body.cheatin p { ...@@ -1473,24 +1470,11 @@ body.cheatin p {
/* Reordering */ /* Reordering */
.reorder-toggle { .reorder-toggle {
color: #0073aa;
float: left; float: left;
padding: 5px 8px; padding: 5px 8px;
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
outline: none; outline: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.reorder-toggle:hover {
color: #00a0d2;
}
.reorder-toggle:focus {
outline: 1px dotted;
} }
.reorder, .reorder,
...@@ -1502,13 +1486,6 @@ body.cheatin p { ...@@ -1502,13 +1486,6 @@ body.cheatin p {
.reorder-done, .reorder-done,
.reordering .reorder { .reordering .reorder {
display: none; display: none;
color: #0073aa;
}
.reorder-toggle:hover .reorder-done,
.reorder-toggle:active .reorder-done,
.reorder-toggle:focus .reorder-done {
color: #00a0d2;
} }
.widget-reorder-nav span, .widget-reorder-nav span,
......
...@@ -163,6 +163,15 @@ body { ...@@ -163,6 +163,15 @@ body {
#customize-controls .customize-info .customize-panel-description.open + .no-widget-areas-rendered-notice { #customize-controls .customize-info .customize-panel-description.open + .no-widget-areas-rendered-notice {
border-top: none; border-top: none;
} }
.no-widget-areas-rendered-notice {
font-style: italic;
}
.no-widget-areas-rendered-notice p:first-child {
margin-top: 0;
}
.no-widget-areas-rendered-notice p:last-child {
margin-bottom: 0;
}
#customize-controls .customize-info .customize-section-description { #customize-controls .customize-info .customize-section-description {
margin-bottom: 15px; margin-bottom: 15px;
...@@ -294,6 +303,11 @@ body { ...@@ -294,6 +303,11 @@ body {
transition: 0.18s transform cubic-bezier(0.645, 0.045, 0.355, 1), 0.18s -webkit-transform cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */ transition: 0.18s transform cubic-bezier(0.645, 0.045, 0.355, 1), 0.18s -webkit-transform cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */
} }
#customize-theme-controls .customize-pane-child.skip-transition {
-webkit-transition: none;
transition: none;
}
#customize-info, #customize-info,
#customize-theme-controls .customize-pane-parent { #customize-theme-controls .customize-pane-parent {
position: relative; position: relative;
...@@ -603,7 +617,6 @@ p.customize-section-description { ...@@ -603,7 +617,6 @@ p.customize-section-description {
.customize-control select { .customize-control select {
width: 100%; width: 100%;
max-width: 300px;
height: 28px; height: 28px;
line-height: 28px; line-height: 28px;
} }
...@@ -697,10 +710,18 @@ p.customize-section-description { ...@@ -697,10 +710,18 @@ p.customize-section-description {
padding-top: 7px; padding-top: 7px;
} }
.customize-control .thumbnail-image { /* Remove descender space. */
.customize-control .thumbnail-image,
.customize-control-header .current,
.customize-control .wp-media-wrapper.wp-video {
line-height: 0; line-height: 0;
} }
/* Remove descender space. */
.customize-control-site_icon .favicon-preview .browser-preview {
vertical-align: top;
}
.customize-control .thumbnail-image img { .customize-control .thumbnail-image img {
cursor: pointer; cursor: pointer;
} }
...@@ -730,7 +751,6 @@ p.customize-section-description { ...@@ -730,7 +751,6 @@ p.customize-section-description {
.customize-control-dropdown-pages .new-content-item { .customize-control-dropdown-pages .new-content-item {
width: 100%; width: 100%;
max-width: 300px;
padding: 5px 0 5px 1px; padding: 5px 0 5px 1px;
position: relative; position: relative;
} }
...@@ -762,19 +782,8 @@ p.customize-section-description { ...@@ -762,19 +782,8 @@ p.customize-section-description {
.customize-control-dropdown-pages .add-new-toggle { .customize-control-dropdown-pages .add-new-toggle {
margin-left: 1px; margin-left: 1px;
color: #0073aa;
font-weight: 600; font-weight: 600;
line-height: 28px; line-height: 28px;
text-decoration: underline;
}
.customize-control-dropdown-pages .add-new-toggle:hover,
.customize-control-dropdown-pages .add-new-toggle:active {
color: #00a0d2;
}
.customize-control-dropdown-pages .add-new-toggle:focus {
color: #124964;
} }
#customize-preview iframe { #customize-preview iframe {
...@@ -931,12 +940,8 @@ p.customize-section-description { ...@@ -931,12 +940,8 @@ p.customize-section-description {
/* Media controls */ /* Media controls */
.customize-control .attachment-media-view .actions { .customize-control .actions .button {
margin-top: 8px; margin-top: 12px;
}
.customize-control-header .current {
margin-bottom: 8px;
} }
.customize-control-header .actions, .customize-control-header .actions,
...@@ -964,9 +969,9 @@ p.customize-section-description { ...@@ -964,9 +969,9 @@ p.customize-section-description {
.customize-control .attachment-media-view .upload-button, .customize-control .attachment-media-view .upload-button,
.customize-control-header button.new, .customize-control-header button.new,
.customize-control-header button.remove { .customize-control-header button.remove {
white-space: normal; width: auto;
width: 48%;
height: auto; height: auto;
white-space: normal;
} }
.customize-control .attachment-media-view .thumbnail, .customize-control .attachment-media-view .thumbnail,
...@@ -1012,7 +1017,7 @@ p.customize-section-description { ...@@ -1012,7 +1017,7 @@ p.customize-section-description {
.customize-control-header .header-view { .customize-control-header .header-view {
position: relative; position: relative;
width: 100%; width: 100%;
margin-bottom: 5px; margin-bottom: 12px;
} }
.customize-control-header .header-view:last-child { .customize-control-header .header-view:last-child {
...@@ -1136,13 +1141,7 @@ p.customize-section-description { ...@@ -1136,13 +1141,7 @@ p.customize-section-description {
.customize-control .attachment-media-view .remove-button, .customize-control .attachment-media-view .remove-button,
.customize-control .attachment-media-view .default-button, .customize-control .attachment-media-view .default-button,
.customize-control-header .remove { .customize-control-header .remove {
float: left; margin-right: 8px;
margin-right: 3px;
}
.customize-control .attachment-media-view .upload-button,
.customize-control-header .new {
float: right;
} }
/* Background position control */ /* Background position control */
...@@ -1186,20 +1185,18 @@ p.customize-section-description { ...@@ -1186,20 +1185,18 @@ p.customize-section-description {
.customize-section-description-container + #customize-control-custom_css:last-child { .customize-section-description-container + #customize-control-custom_css:last-child {
margin-left: -12px; margin-left: -12px;
width: 299px; width: 299px;
width: -webkit-calc( 100% + 24px );
width: calc( 100% + 24px );
margin-bottom: -12px; margin-bottom: -12px;
} }
@media screen and ( max-width: 640px ) { @media screen and ( max-width: 640px ) {
.customize-section-description-container + #customize-control-custom_css:last-child { .customize-section-description-container + #customize-control-custom_css:last-child {
margin-left: 0;
margin-right: 0; margin-right: 0;
width: 100%;
} }
.customize-section-description-container + #customize-control-custom_css:last-child textarea { .customize-section-description-container + #customize-control-custom_css:last-child textarea {
height: -webkit-calc( 100vh - 140px ); height: -webkit-calc( 100vh - 140px );
height: calc( 100vh - 140px ); height: calc( 100vh - 140px );
width: 100%;
border: solid 1px #ddd;
} }
} }
...@@ -1473,24 +1470,11 @@ body.cheatin p { ...@@ -1473,24 +1470,11 @@ body.cheatin p {
/* Reordering */ /* Reordering */
.reorder-toggle { .reorder-toggle {
color: #0073aa;
float: right; float: right;
padding: 5px 8px; padding: 5px 8px;
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
outline: none; outline: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.reorder-toggle:hover {
color: #00a0d2;
}
.reorder-toggle:focus {
outline: 1px dotted;
} }
.reorder, .reorder,
...@@ -1502,13 +1486,6 @@ body.cheatin p { ...@@ -1502,13 +1486,6 @@ body.cheatin p {
.reorder-done, .reorder-done,
.reordering .reorder { .reordering .reorder {
display: none; display: none;
color: #0073aa;
}
.reorder-toggle:hover .reorder-done,
.reorder-toggle:active .reorder-done,
.reorder-toggle:focus .reorder-done {
color: #00a0d2;
} }
.widget-reorder-nav span, .widget-reorder-nav span,
......
...@@ -25,17 +25,6 @@ ...@@ -25,17 +25,6 @@
margin-right: 6px; margin-right: 6px;
vertical-align: middle; vertical-align: middle;
line-height: 28px; line-height: 28px;
color: #0073aa;
text-decoration: underline;
}
.customize-control-nav_menu_location .edit-menu:hover,
.customize-control-nav_menu_location .edit-menu:active {
color: #00a0d2;
}
.customize-control-nav_menu_location .edit-menu:focus {
color: #124964;
} }
.wp-customizer .menu-item-bar .menu-item-handle, .wp-customizer .menu-item-bar .menu-item-handle,
...@@ -161,9 +150,10 @@ ...@@ -161,9 +150,10 @@
outline: none; outline: none;
overflow: hidden; overflow: hidden;
cursor: pointer; cursor: pointer;
text-align: center;
} }
.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after { .wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:before {
content: "\f142"; content: "\f142";
} }
...@@ -281,17 +271,18 @@ ...@@ -281,17 +271,18 @@
display: inline-block; display: inline-block;
font-size: 20px; font-size: 20px;
line-height: 1; line-height: 1;
text-indent: -1px; /* account for the dashicon alignment */
} }
.rtl .wp-customizer .toggle-indicator { .rtl .wp-customizer .toggle-indicator {
text-indent: 1px; /* account for the dashicon alignment */ text-indent: 1px; /* account for the dashicon alignment */
} }
.wp-customizer .toggle-indicator:after { .wp-customizer .menu-item .item-edit .toggle-indicator:before,
#available-menu-items .accordion-section-title .toggle-indicator:before {
content: "\f140"; content: "\f140";
display: block;
padding: 1px 0px 1px 2px;
speak: none; speak: none;
vertical-align: top;
-webkit-border-radius: 50%; -webkit-border-radius: 50%;
border-radius: 50%; border-radius: 50%;
color: #72777c; color: #72777c;
...@@ -504,13 +495,13 @@ ...@@ -504,13 +495,13 @@
content: none !important; content: none !important;
} }
#available-menu-items .accordion-section-title:hover .toggle-indicator:after, #available-menu-items .accordion-section-title:hover .toggle-indicator:before,
#available-menu-items .button-link:hover .toggle-indicator:after, #available-menu-items .button-link:hover .toggle-indicator:before,
#available-menu-items .button-link:focus .toggle-indicator:after { #available-menu-items .button-link:focus .toggle-indicator:before {
color: #23282d; color: #23282d;
} }
#available-menu-items .open .accordion-section-title .toggle-indicator:after { #available-menu-items .open .accordion-section-title .toggle-indicator:before {
content: "\f142"; content: "\f142";
color: #23282d; color: #23282d;
} }
...@@ -532,6 +523,7 @@ ...@@ -532,6 +523,7 @@
box-shadow: none; box-shadow: none;
outline: none; outline: none;
cursor: pointer; cursor: pointer;
text-align: center;
} }
#available-menu-items .accordion-section-title .no-items, #available-menu-items .accordion-section-title .no-items,
...@@ -623,6 +615,7 @@ ...@@ -623,6 +615,7 @@
box-shadow: none; box-shadow: none;
outline: none; outline: none;
cursor: pointer; cursor: pointer;
text-align: center;
} }
#available-menu-items .menu-item-handle .item-add:focus { #available-menu-items .menu-item-handle .item-add:focus {
...@@ -719,6 +712,10 @@ body.adding-menu-items #customize-preview { ...@@ -719,6 +712,10 @@ body.adding-menu-items #customize-preview {
opacity: 0.4; opacity: 0.4;
} }
body.adding-menu-items #customize-preview iframe {
pointer-events: none;
}
.menu-item-handle .spinner { .menu-item-handle .spinner {
display: none; display: none;
float: right; float: right;
...@@ -802,17 +799,6 @@ li.assigned-to-menu-location .add-new-menu-item { ...@@ -802,17 +799,6 @@ li.assigned-to-menu-location .add-new-menu-item {
margin-bottom: 1em; margin-bottom: 1em;
} }
.menu-delete {
color: #a00;
cursor: pointer;
text-decoration: underline;
}
.menu-delete:hover,
.menu-delete:focus {
color: #f00;
}
.menu-item-handle { .menu-item-handle {
margin-top: -1px; margin-top: -1px;
} }
...@@ -852,7 +838,7 @@ li.assigned-to-menu-location .add-new-menu-item { ...@@ -852,7 +838,7 @@ li.assigned-to-menu-location .add-new-menu-item {
.wp-customizer .menu-item .submitbox .submitdelete:focus, .wp-customizer .menu-item .submitbox .submitdelete:focus,
.customize-screen-options-toggle:focus:before, .customize-screen-options-toggle:focus:before,
#customize-controls .customize-info .customize-help-toggle:focus:before, #customize-controls .customize-info .customize-help-toggle:focus:before,
.wp-customizer button:focus .toggle-indicator:after, .wp-customizer button:focus .toggle-indicator:before,
.menu-delete:focus, .menu-delete:focus,
.menu-item-bar .item-delete:focus:before, .menu-item-bar .item-delete:focus:before,
#available-menu-items .item-add:focus:before { #available-menu-items .item-add:focus:before {
......
...@@ -25,17 +25,6 @@ ...@@ -25,17 +25,6 @@
margin-left: 6px; margin-left: 6px;
vertical-align: middle; vertical-align: middle;
line-height: 28px; line-height: 28px;
color: #0073aa;
text-decoration: underline;
}
.customize-control-nav_menu_location .edit-menu:hover,
.customize-control-nav_menu_location .edit-menu:active {
color: #00a0d2;
}
.customize-control-nav_menu_location .edit-menu:focus {
color: #124964;
} }
.wp-customizer .menu-item-bar .menu-item-handle, .wp-customizer .menu-item-bar .menu-item-handle,
...@@ -161,9 +150,10 @@ ...@@ -161,9 +150,10 @@
outline: none; outline: none;
overflow: hidden; overflow: hidden;
cursor: pointer; cursor: pointer;
text-align: center;
} }
.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after { .wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:before {
content: "\f142"; content: "\f142";
} }
...@@ -281,17 +271,18 @@ ...@@ -281,17 +271,18 @@
display: inline-block; display: inline-block;
font-size: 20px; font-size: 20px;
line-height: 1; line-height: 1;
text-indent: -1px; /* account for the dashicon alignment */
} }
.rtl .wp-customizer .toggle-indicator { .rtl .wp-customizer .toggle-indicator {
text-indent: 1px; /* account for the dashicon alignment */ text-indent: 1px; /* account for the dashicon alignment */
} }
.wp-customizer .toggle-indicator:after { .wp-customizer .menu-item .item-edit .toggle-indicator:before,
#available-menu-items .accordion-section-title .toggle-indicator:before {
content: "\f140"; content: "\f140";
display: block;
padding: 1px 2px 1px 0px;
speak: none; speak: none;
vertical-align: top;
-webkit-border-radius: 50%; -webkit-border-radius: 50%;
border-radius: 50%; border-radius: 50%;
color: #72777c; color: #72777c;
...@@ -504,13 +495,13 @@ ...@@ -504,13 +495,13 @@
content: none !important; content: none !important;
} }
#available-menu-items .accordion-section-title:hover .toggle-indicator:after, #available-menu-items .accordion-section-title:hover .toggle-indicator:before,
#available-menu-items .button-link:hover .toggle-indicator:after, #available-menu-items .button-link:hover .toggle-indicator:before,
#available-menu-items .button-link:focus .toggle-indicator:after { #available-menu-items .button-link:focus .toggle-indicator:before {
color: #23282d; color: #23282d;
} }
#available-menu-items .open .accordion-section-title .toggle-indicator:after { #available-menu-items .open .accordion-section-title .toggle-indicator:before {
content: "\f142"; content: "\f142";
color: #23282d; color: #23282d;
} }
...@@ -532,6 +523,7 @@ ...@@ -532,6 +523,7 @@
box-shadow: none; box-shadow: none;
outline: none; outline: none;
cursor: pointer; cursor: pointer;
text-align: center;
} }
#available-menu-items .accordion-section-title .no-items, #available-menu-items .accordion-section-title .no-items,
...@@ -623,6 +615,7 @@ ...@@ -623,6 +615,7 @@
box-shadow: none; box-shadow: none;
outline: none; outline: none;
cursor: pointer; cursor: pointer;
text-align: center;
} }
#available-menu-items .menu-item-handle .item-add:focus { #available-menu-items .menu-item-handle .item-add:focus {
...@@ -719,6 +712,10 @@ body.adding-menu-items #customize-preview { ...@@ -719,6 +712,10 @@ body.adding-menu-items #customize-preview {
opacity: 0.4; opacity: 0.4;
} }
body.adding-menu-items #customize-preview iframe {
pointer-events: none;
}
.menu-item-handle .spinner { .menu-item-handle .spinner {
display: none; display: none;
float: left; float: left;
...@@ -802,17 +799,6 @@ li.assigned-to-menu-location .add-new-menu-item { ...@@ -802,17 +799,6 @@ li.assigned-to-menu-location .add-new-menu-item {
margin-bottom: 1em; margin-bottom: 1em;
} }
.menu-delete {
color: #a00;
cursor: pointer;
text-decoration: underline;
}
.menu-delete:hover,
.menu-delete:focus {
color: #f00;
}
.menu-item-handle { .menu-item-handle {
margin-top: -1px; margin-top: -1px;
} }
...@@ -852,7 +838,7 @@ li.assigned-to-menu-location .add-new-menu-item { ...@@ -852,7 +838,7 @@ li.assigned-to-menu-location .add-new-menu-item {
.wp-customizer .menu-item .submitbox .submitdelete:focus, .wp-customizer .menu-item .submitbox .submitdelete:focus,
.customize-screen-options-toggle:focus:before, .customize-screen-options-toggle:focus:before,
#customize-controls .customize-info .customize-help-toggle:focus:before, #customize-controls .customize-info .customize-help-toggle:focus:before,
.wp-customizer button:focus .toggle-indicator:after, .wp-customizer button:focus .toggle-indicator:before,
.menu-delete:focus, .menu-delete:focus,
.menu-item-bar .item-delete:focus:before, .menu-item-bar .item-delete:focus:before,
#available-menu-items .item-add:focus:before { #available-menu-items .item-add:focus:before {
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
overflow: visible; overflow: visible;
} }
/* Note: widget-tops are more compact when (max-height: 700px) and (min-width: 981px). */
.customize-control-widget_form .widget-top { .customize-control-widget_form .widget-top {
background: #fff; background: #fff;
-webkit-transition: opacity 0.5s; -webkit-transition: opacity 0.5s;
...@@ -89,15 +90,15 @@ ...@@ -89,15 +90,15 @@
line-height: 16px; line-height: 16px;
} }
.customize-control-widget_form.expanded a.widget-action:after { .customize-control-widget_form.expanded .widget-action .toggle-indicator:before {
content: "\f142"; content: "\f142";
} }
.customize-control-widget_form.wide-widget-control a.widget-action:after { .customize-control-widget_form.wide-widget-control .widget-action .toggle-indicator:before {
content: "\f141"; content: "\f141";
} }
.customize-control-widget_form.wide-widget-control.expanded a.widget-action:after { .customize-control-widget_form.wide-widget-control.expanded .widget-action .toggle-indicator:before {
content: "\f139"; content: "\f139";
} }
...@@ -212,6 +213,21 @@ ...@@ -212,6 +213,21 @@
display: block; display: block;
} }
/* Text Widget */
.wp-customizer div.mce-inline-toolbar-grp,
.wp-customizer div.mce-tooltip {
z-index: 500100 !important;
}
.wp-customizer .ui-autocomplete.wplink-autocomplete {
z-index: 500110; /* originally 100110, but z-index of .wp-full-overlay is 500000 */
}
.wp-customizer #wp-link-backdrop {
z-index: 500100; /* originally 100100, but z-index of .wp-full-overlay is 500000 */
}
.wp-customizer #wp-link-wrap {
z-index: 500105; /* originally 100105, but z-index of .wp-full-overlay is 500000 */
}
/** /**
* Styles for new widget addition panel * Styles for new widget addition panel
*/ */
...@@ -423,33 +439,47 @@ body.adding-widget #customize-preview { ...@@ -423,33 +439,47 @@ body.adding-widget #customize-preview {
#available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; } #available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; }
@media screen and (max-height: 700px) and (min-width: 981px) { @media screen and (max-height: 700px) and (min-width: 981px) {
.customize-control-widget { /* Compact widget-tops on smaller laptops, but not tablets. See ticket #27112#comment:4 */
.customize-control-widget_form {
margin-bottom: 0; margin-bottom: 0;
} }
.widget-top { .widget-top {
-webkit-box-shadow: none; -webkit-box-shadow: none;
box-shadow: none; box-shadow: none;
margin-top: -1px; margin-top: -1px;
} }
.widget-top:hover { .widget-top:hover {
position: relative; position: relative;
z-index: 1; z-index: 1;
} }
.last-widget { .last-widget {
margin-bottom: 15px; margin-bottom: 15px;
} }
.widget-title h3 { .widget-title h3 {
padding: 13px 15px; padding: 13px 15px;
} }
.widget-top .widget-action {
padding: 8px 10px;
}
.widget-reorder-nav span { .widget-reorder-nav span {
height: 39px; height: 39px;
} }
.widget-reorder-nav span:before { .widget-reorder-nav span:before {
line-height: 39px; line-height: 39px;
} }
/* Compact the move widget areas. */
#customize-theme-controls .widget-area-select li { #customize-theme-controls .widget-area-select li {
padding: 9px 42px 11px 15px; padding: 9px 42px 11px 15px;
} }
#customize-theme-controls .widget-area-select li:before { #customize-theme-controls .widget-area-select li:before {
top: 8px; top: 8px;
} }
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
overflow: visible; overflow: visible;
} }
/* Note: widget-tops are more compact when (max-height: 700px) and (min-width: 981px). */
.customize-control-widget_form .widget-top { .customize-control-widget_form .widget-top {
background: #fff; background: #fff;
-webkit-transition: opacity 0.5s; -webkit-transition: opacity 0.5s;
...@@ -89,15 +90,15 @@ ...@@ -89,15 +90,15 @@
line-height: 16px; line-height: 16px;
} }
.customize-control-widget_form.expanded a.widget-action:after { .customize-control-widget_form.expanded .widget-action .toggle-indicator:before {
content: "\f142"; content: "\f142";
} }
.customize-control-widget_form.wide-widget-control a.widget-action:after { .customize-control-widget_form.wide-widget-control .widget-action .toggle-indicator:before {
content: "\f139"; content: "\f139";
} }
.customize-control-widget_form.wide-widget-control.expanded a.widget-action:after { .customize-control-widget_form.wide-widget-control.expanded .widget-action .toggle-indicator:before {
content: "\f141"; content: "\f141";
} }
...@@ -212,6 +213,21 @@ ...@@ -212,6 +213,21 @@
display: block; display: block;
} }
/* Text Widget */
.wp-customizer div.mce-inline-toolbar-grp,
.wp-customizer div.mce-tooltip {
z-index: 500100 !important;
}
.wp-customizer .ui-autocomplete.wplink-autocomplete {
z-index: 500110; /* originally 100110, but z-index of .wp-full-overlay is 500000 */
}
.wp-customizer #wp-link-backdrop {
z-index: 500100; /* originally 100100, but z-index of .wp-full-overlay is 500000 */
}
.wp-customizer #wp-link-wrap {
z-index: 500105; /* originally 100105, but z-index of .wp-full-overlay is 500000 */
}
/** /**
* Styles for new widget addition panel * Styles for new widget addition panel
*/ */
...@@ -423,33 +439,47 @@ body.adding-widget #customize-preview { ...@@ -423,33 +439,47 @@ body.adding-widget #customize-preview {
#available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; } #available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; }
@media screen and (max-height: 700px) and (min-width: 981px) { @media screen and (max-height: 700px) and (min-width: 981px) {
.customize-control-widget { /* Compact widget-tops on smaller laptops, but not tablets. See ticket #27112#comment:4 */
.customize-control-widget_form {
margin-bottom: 0; margin-bottom: 0;
} }
.widget-top { .widget-top {
-webkit-box-shadow: none; -webkit-box-shadow: none;
box-shadow: none; box-shadow: none;
margin-top: -1px; margin-top: -1px;
} }
.widget-top:hover { .widget-top:hover {
position: relative; position: relative;
z-index: 1; z-index: 1;
} }
.last-widget { .last-widget {
margin-bottom: 15px; margin-bottom: 15px;
} }
.widget-title h3 { .widget-title h3 {
padding: 13px 15px; padding: 13px 15px;
} }
.widget-top .widget-action {
padding: 8px 10px;
}
.widget-reorder-nav span { .widget-reorder-nav span {
height: 39px; height: 39px;
} }
.widget-reorder-nav span:before { .widget-reorder-nav span:before {
line-height: 39px; line-height: 39px;
} }
/* Compact the move widget areas. */
#customize-theme-controls .widget-area-select li { #customize-theme-controls .widget-area-select li {
padding: 9px 15px 11px 42px; padding: 9px 15px 11px 42px;
} }
#customize-theme-controls .widget-area-select li:before { #customize-theme-controls .widget-area-select li:before {
top: 8px; top: 8px;
} }
......
...@@ -301,6 +301,158 @@ ...@@ -301,6 +301,158 @@
content: "\f153"; content: "\f153";
} }
/* Dashboard WordPress events */
.community-events-errors {
margin: 0;
}
.community-events-loading {
padding: 10px 12px 8px;
}
.community-events {
margin-bottom: 6px;
padding: 0 12px;
}
.community-events .spinner {
float: none;
margin: 5px 2px 0;
vertical-align: top;
}
.community-events-errors[aria-hidden="true"],
.community-events-errors [aria-hidden="true"],
.community-events-loading[aria-hidden="true"],
.community-events[aria-hidden="true"],
.community-events [aria-hidden="true"] {
display: none;
}
.community-events .activity-block:first-child,
.community-events h2 {
padding-top: 12px;
padding-bottom: 10px;
}
.community-events-form {
margin: 15px 0 5px;
}
.community-events-form .regular-text {
width: 40%;
height: 29px;
margin: 0;
vertical-align: top;
}
.community-events li.event-none {
border-right: 4px solid #00a0d2;
}
.community-events-form label {
display: inline-block;
vertical-align: top;
line-height: 28px;
height: 28px;
}
.community-events .activity-block > p {
margin-bottom: 0;
display: inline;
}
.community-events-toggle-location {
vertical-align: middle;
}
#community-events-submit {
margin-right: 3px;
margin-left: 3px;
}
/* Needs higher specificity than #dashboard-widgets .button-link */
#dashboard-widgets .community-events-cancel.button-link {
vertical-align: top;
/* Same properties as the submit button for cross-browsers alignment. */
line-height: 26px;
height: 28px;
text-decoration: underline;
}
.community-events ul {
background-color: #fafafa;
padding-right: 0;
padding-left: 0;
padding-bottom: 0;
}
.community-events li {
margin: 0;
padding: 8px 12px;
color: #72777c;
}
.community-events li:first-child {
border-top: 1px solid #eee;
}
.community-events li ~ li {
border-top: 1px solid #eee;
}
.community-events .activity-block.last {
border-bottom: 1px solid #eee;
padding-top: 0;
margin-top: -1px;
}
.community-events .event-info {
display: block;
}
.event-icon {
height: 18px;
padding-left: 10px;
width: 18px;
display: none; /* Hide on smaller screens */
}
.event-icon:before {
color: #82878C;
font-size: 18px;
}
.event-meetup .event-icon:before {
content: "\f484";
}
.event-wordcamp .event-icon:before {
content: "\f486";
}
.community-events .event-title {
font-weight: 600;
display: block;
}
.community-events .event-date,
.community-events .event-time {
display: block;
}
.community-events-footer {
margin-top: 0;
margin-bottom: 0;
padding: 12px;
border-top: 1px solid #eee;
color: #ddd;
}
/* Safari 10 + VoiceOver specific: without this, the hidden text gets read out before the link. */
.community-events-footer .screen-reader-text {
height: inherit;
white-space: nowrap;
}
/* Dashboard WordPress news */ /* Dashboard WordPress news */
#dashboard_primary .inside { #dashboard_primary .inside {
...@@ -308,19 +460,21 @@ ...@@ -308,19 +460,21 @@
padding: 0; padding: 0;
} }
#dashboard_primary .widget-loading, #dashboard_primary .widget-loading {
#dashboard_primary .dashboard-widget-control-form {
padding: 12px 12px 0; padding: 12px 12px 0;
margin-bottom: 1em !important; /* Needs to override `.postbox .inside > p:last-child` in common.css */
} }
body #dashboard-widgets .postbox form .submit { /* Notice when JS is off. */
#dashboard_primary .inside .notice {
margin: 0; margin: 0;
} }
.dashboard-widget-control-form { body #dashboard-widgets .postbox form .submit {
overflow: hidden; margin: 0;
} }
/* Used only for configurable widgets. */
.dashboard-widget-control-form p { .dashboard-widget-control-form p {
margin-top: 0; margin-top: 0;
} }
...@@ -331,9 +485,8 @@ body #dashboard-widgets .postbox form .submit { ...@@ -331,9 +485,8 @@ body #dashboard-widgets .postbox form .submit {
} }
#dashboard_primary .rss-widget { #dashboard_primary .rss-widget {
border-bottom: 1px solid #eee;
font-size: 13px; font-size: 13px;
padding: 8px 12px 10px; padding: 0 12px 0;
} }
#dashboard_primary .rss-widget:last-child { #dashboard_primary .rss-widget:last-child {
...@@ -355,7 +508,8 @@ body #dashboard-widgets .postbox form .submit { ...@@ -355,7 +508,8 @@ body #dashboard-widgets .postbox form .submit {
} }
#dashboard_primary .rss-widget ul li { #dashboard_primary .rss-widget ul li {
margin-bottom: 8px; padding: 4px 0;
margin: 0;
} }
/* Dashboard right now */ /* Dashboard right now */
...@@ -771,7 +925,8 @@ form.initial-form.quickpress-open input#title { ...@@ -771,7 +925,8 @@ form.initial-form.quickpress-open input#title {
min-width: 0; min-width: 0;
} }
#dashboard-widgets a { #dashboard-widgets a,
#dashboard-widgets .button-link {
text-decoration: none; text-decoration: none;
} }
...@@ -871,9 +1026,9 @@ form.initial-form.quickpress-open input#title { ...@@ -871,9 +1026,9 @@ form.initial-form.quickpress-open input#title {
} }
a.rsswidget { a.rsswidget {
font-size: 14px; font-size: 13px;
font-weight: 600; font-weight: 600;
line-height: 1.7em; line-height: 1.4em;
} }
.rss-widget ul li { .rss-widget ul li {
...@@ -1084,6 +1239,35 @@ a.rsswidget { ...@@ -1084,6 +1239,35 @@ a.rsswidget {
width: 30px; width: 30px;
margin: 4px 0 5px 10px; margin: 4px 0 5px 10px;
} }
.community-events-toggle-location {
height: 38px;
vertical-align: baseline;
}
.community-events-form .regular-text {
height: 32px;
}
#community-events-submit {
margin-bottom: 0;
/* Override .wp-core-ui .button */
vertical-align: top;
}
.community-events-form label,
#dashboard-widgets .community-events-cancel.button-link {
/* Same properties as the submit button for cross-browsers alignment. */
font-size: 14px;
line-height: normal;
height: auto;
padding: 6px 0;
border: 1px solid transparent;
}
.community-events .spinner {
margin-top: 7px;
}
} }
/* Smartphone */ /* Smartphone */
...@@ -1107,3 +1291,30 @@ a.rsswidget { ...@@ -1107,3 +1291,30 @@ a.rsswidget {
right: -35px; right: -35px;
} }
} }
@media screen and (min-width: 355px) {
.community-events .event-info {
display: table-row;
float: right;
max-width: 59%;
}
.event-icon,
.event-icon[aria-hidden="true"] {
display: table-cell;
}
.event-info-inner {
display: table-cell;
}
.community-events .event-date-time {
float: left;
max-width: 39%;
}
.community-events .event-date,
.community-events .event-time {
text-align: left;
}
}
...@@ -301,6 +301,158 @@ ...@@ -301,6 +301,158 @@
content: "\f153"; content: "\f153";
} }
/* Dashboard WordPress events */
.community-events-errors {
margin: 0;
}
.community-events-loading {
padding: 10px 12px 8px;
}
.community-events {
margin-bottom: 6px;
padding: 0 12px;
}
.community-events .spinner {
float: none;
margin: 5px 2px 0;
vertical-align: top;
}
.community-events-errors[aria-hidden="true"],
.community-events-errors [aria-hidden="true"],
.community-events-loading[aria-hidden="true"],
.community-events[aria-hidden="true"],
.community-events [aria-hidden="true"] {
display: none;
}
.community-events .activity-block:first-child,
.community-events h2 {
padding-top: 12px;
padding-bottom: 10px;
}
.community-events-form {
margin: 15px 0 5px;
}
.community-events-form .regular-text {
width: 40%;
height: 29px;
margin: 0;
vertical-align: top;
}
.community-events li.event-none {
border-left: 4px solid #00a0d2;
}
.community-events-form label {
display: inline-block;
vertical-align: top;
line-height: 28px;
height: 28px;
}
.community-events .activity-block > p {
margin-bottom: 0;
display: inline;
}
.community-events-toggle-location {
vertical-align: middle;
}
#community-events-submit {
margin-left: 3px;
margin-right: 3px;
}
/* Needs higher specificity than #dashboard-widgets .button-link */
#dashboard-widgets .community-events-cancel.button-link {
vertical-align: top;
/* Same properties as the submit button for cross-browsers alignment. */
line-height: 26px;
height: 28px;
text-decoration: underline;
}
.community-events ul {
background-color: #fafafa;
padding-left: 0;
padding-right: 0;
padding-bottom: 0;
}
.community-events li {
margin: 0;
padding: 8px 12px;
color: #72777c;
}
.community-events li:first-child {
border-top: 1px solid #eee;
}
.community-events li ~ li {
border-top: 1px solid #eee;
}
.community-events .activity-block.last {
border-bottom: 1px solid #eee;
padding-top: 0;
margin-top: -1px;
}
.community-events .event-info {
display: block;
}
.event-icon {
height: 18px;
padding-right: 10px;
width: 18px;
display: none; /* Hide on smaller screens */
}
.event-icon:before {
color: #82878C;
font-size: 18px;
}
.event-meetup .event-icon:before {
content: "\f484";
}
.event-wordcamp .event-icon:before {
content: "\f486";
}
.community-events .event-title {
font-weight: 600;
display: block;
}
.community-events .event-date,
.community-events .event-time {
display: block;
}
.community-events-footer {
margin-top: 0;
margin-bottom: 0;
padding: 12px;
border-top: 1px solid #eee;
color: #ddd;
}
/* Safari 10 + VoiceOver specific: without this, the hidden text gets read out before the link. */
.community-events-footer .screen-reader-text {
height: inherit;
white-space: nowrap;
}
/* Dashboard WordPress news */ /* Dashboard WordPress news */
#dashboard_primary .inside { #dashboard_primary .inside {
...@@ -308,19 +460,21 @@ ...@@ -308,19 +460,21 @@
padding: 0; padding: 0;
} }
#dashboard_primary .widget-loading, #dashboard_primary .widget-loading {
#dashboard_primary .dashboard-widget-control-form {
padding: 12px 12px 0; padding: 12px 12px 0;
margin-bottom: 1em !important; /* Needs to override `.postbox .inside > p:last-child` in common.css */
} }
body #dashboard-widgets .postbox form .submit { /* Notice when JS is off. */
#dashboard_primary .inside .notice {
margin: 0; margin: 0;
} }
.dashboard-widget-control-form { body #dashboard-widgets .postbox form .submit {
overflow: hidden; margin: 0;
} }
/* Used only for configurable widgets. */
.dashboard-widget-control-form p { .dashboard-widget-control-form p {
margin-top: 0; margin-top: 0;
} }
...@@ -331,9 +485,8 @@ body #dashboard-widgets .postbox form .submit { ...@@ -331,9 +485,8 @@ body #dashboard-widgets .postbox form .submit {
} }
#dashboard_primary .rss-widget { #dashboard_primary .rss-widget {
border-bottom: 1px solid #eee;
font-size: 13px; font-size: 13px;
padding: 8px 12px 10px; padding: 0 12px 0;
} }
#dashboard_primary .rss-widget:last-child { #dashboard_primary .rss-widget:last-child {
...@@ -355,7 +508,8 @@ body #dashboard-widgets .postbox form .submit { ...@@ -355,7 +508,8 @@ body #dashboard-widgets .postbox form .submit {
} }
#dashboard_primary .rss-widget ul li { #dashboard_primary .rss-widget ul li {
margin-bottom: 8px; padding: 4px 0;
margin: 0;
} }
/* Dashboard right now */ /* Dashboard right now */
...@@ -771,7 +925,8 @@ form.initial-form.quickpress-open input#title { ...@@ -771,7 +925,8 @@ form.initial-form.quickpress-open input#title {
min-width: 0; min-width: 0;
} }
#dashboard-widgets a { #dashboard-widgets a,
#dashboard-widgets .button-link {
text-decoration: none; text-decoration: none;
} }
...@@ -871,9 +1026,9 @@ form.initial-form.quickpress-open input#title { ...@@ -871,9 +1026,9 @@ form.initial-form.quickpress-open input#title {
} }
a.rsswidget { a.rsswidget {
font-size: 14px; font-size: 13px;
font-weight: 600; font-weight: 600;
line-height: 1.7em; line-height: 1.4em;
} }
.rss-widget ul li { .rss-widget ul li {
...@@ -1084,6 +1239,35 @@ a.rsswidget { ...@@ -1084,6 +1239,35 @@ a.rsswidget {
width: 30px; width: 30px;
margin: 4px 10px 5px 0; margin: 4px 10px 5px 0;
} }
.community-events-toggle-location {
height: 38px;
vertical-align: baseline;
}
.community-events-form .regular-text {
height: 32px;
}
#community-events-submit {
margin-bottom: 0;
/* Override .wp-core-ui .button */
vertical-align: top;
}
.community-events-form label,
#dashboard-widgets .community-events-cancel.button-link {
/* Same properties as the submit button for cross-browsers alignment. */
font-size: 14px;
line-height: normal;
height: auto;
padding: 6px 0;
border: 1px solid transparent;
}
.community-events .spinner {
margin-top: 7px;
}
} }
/* Smartphone */ /* Smartphone */
...@@ -1107,3 +1291,30 @@ a.rsswidget { ...@@ -1107,3 +1291,30 @@ a.rsswidget {
left: -35px; left: -35px;
} }
} }
@media screen and (min-width: 355px) {
.community-events .event-info {
display: table-row;
float: left;
max-width: 59%;
}
.event-icon,
.event-icon[aria-hidden="true"] {
display: table-cell;
}
.event-info-inner {
display: table-cell;
}
.community-events .event-date-time {
float: right;
max-width: 39%;
}
.community-events .event-date,
.community-events .event-time {
text-align: right;
}
}
...@@ -100,8 +100,6 @@ input#link_url { ...@@ -100,8 +100,6 @@ input#link_url {
margin-left: 10px; margin-left: 10px;
padding: 0; padding: 0;
font-size: 11px; font-size: 11px;
text-decoration: underline;
color: #0073aa;
} }
#comment-link-box { #comment-link-box {
...@@ -120,7 +118,7 @@ input#link_url { ...@@ -120,7 +118,7 @@ input#link_url {
#editable-post-name input { #editable-post-name input {
font-size: 13px; font-size: 13px;
font-weight: 400; font-weight: 400;
height: 22px; height: 24px;
margin: 0; margin: 0;
width: 16em; width: 16em;
} }
...@@ -1035,25 +1033,6 @@ span.description, ...@@ -1035,25 +1033,6 @@ span.description,
width: 260px; width: 260px;
} }
.tagcloud-link.button-link {
color: #0073aa;
text-decoration: underline;
}
.tagcloud-link.button-link:hover {
color: #00a0d2;
}
.tagcloud-link.button-link:focus {
color: #124964;
-webkit-box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8);
box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8);
}
#post-body-content .tagsdiv .the-tags { #post-body-content .tagsdiv .the-tags {
margin: 0 5px; margin: 0 5px;
} }
...@@ -1113,6 +1092,17 @@ p.popular-tags a { ...@@ -1113,6 +1092,17 @@ p.popular-tags a {
text-decoration: underline; text-decoration: underline;
} }
#edittag {
max-width: 800px;
}
.edit-tag-actions {
margin-top: 20px;
overflow: hidden;
padding: 10px;
margin-left: 10px;
}
/* Comments */ /* Comments */
.comment-php .wp-editor-area { .comment-php .wp-editor-area {
...@@ -1369,6 +1359,10 @@ table.links-table { ...@@ -1369,6 +1359,10 @@ table.links-table {
} }
@media screen and ( max-width: 782px ) { @media screen and ( max-width: 782px ) {
.wp-core-ui .edit-tag-actions .button-primary {
margin-bottom: 0;
}
#post-body-content { #post-body-content {
min-width: 0; min-width: 0;
} }
......
...@@ -100,8 +100,6 @@ input#link_url { ...@@ -100,8 +100,6 @@ input#link_url {
margin-right: 10px; margin-right: 10px;
padding: 0; padding: 0;
font-size: 11px; font-size: 11px;
text-decoration: underline;
color: #0073aa;
} }
#comment-link-box { #comment-link-box {
...@@ -120,7 +118,7 @@ input#link_url { ...@@ -120,7 +118,7 @@ input#link_url {
#editable-post-name input { #editable-post-name input {
font-size: 13px; font-size: 13px;
font-weight: 400; font-weight: 400;
height: 22px; height: 24px;
margin: 0; margin: 0;
width: 16em; width: 16em;
} }
...@@ -1035,25 +1033,6 @@ span.description, ...@@ -1035,25 +1033,6 @@ span.description,
width: 260px; width: 260px;
} }
.tagcloud-link.button-link {
color: #0073aa;
text-decoration: underline;
}
.tagcloud-link.button-link:hover {
color: #00a0d2;
}
.tagcloud-link.button-link:focus {
color: #124964;
-webkit-box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8);
box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8);
}
#post-body-content .tagsdiv .the-tags { #post-body-content .tagsdiv .the-tags {
margin: 0 5px; margin: 0 5px;
} }
...@@ -1113,6 +1092,17 @@ p.popular-tags a { ...@@ -1113,6 +1092,17 @@ p.popular-tags a {
text-decoration: underline; text-decoration: underline;
} }
#edittag {
max-width: 800px;
}
.edit-tag-actions {
margin-top: 20px;
overflow: hidden;
padding: 10px;
margin-right: 10px;
}
/* Comments */ /* Comments */
.comment-php .wp-editor-area { .comment-php .wp-editor-area {
...@@ -1369,6 +1359,10 @@ table.links-table { ...@@ -1369,6 +1359,10 @@ table.links-table {
} }
@media screen and ( max-width: 782px ) { @media screen and ( max-width: 782px ) {
.wp-core-ui .edit-tag-actions .button-primary {
margin-bottom: 0;
}
#post-body-content { #post-body-content {
min-width: 0; min-width: 0;
} }
......
...@@ -650,8 +650,10 @@ ul#add-to-blog-users { ...@@ -650,8 +650,10 @@ ul#add-to-blog-users {
font-weight: 600; font-weight: 600;
} }
.form-table th.th-full { .form-table th.th-full, /* Not used by core. Back-compat for pre-4.8 */
.form-table .td-full {
width: auto; width: auto;
padding: 20px 0 20px 10px;
font-weight: 400; font-weight: 400;
} }
......
...@@ -650,8 +650,10 @@ ul#add-to-blog-users { ...@@ -650,8 +650,10 @@ ul#add-to-blog-users {
font-weight: 600; font-weight: 600;
} }
.form-table th.th-full { .form-table th.th-full, /* Not used by core. Back-compat for pre-4.8 */
.form-table .td-full {
width: auto; width: auto;
padding: 20px 10px 20px 0;
font-weight: 400; font-weight: 400;
} }
......
...@@ -59,6 +59,7 @@ p { ...@@ -59,6 +59,7 @@ p {
border-right: 4px solid #00a0d2; border-right: 4px solid #00a0d2;
padding: 12px; padding: 12px;
margin-right: 0; margin-right: 0;
margin-bottom: 20px;
background-color: #fff; background-color: #fff;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
......
...@@ -59,6 +59,7 @@ p { ...@@ -59,6 +59,7 @@ p {
border-left: 4px solid #00a0d2; border-left: 4px solid #00a0d2;
padding: 12px; padding: 12px;
margin-left: 0; margin-left: 0;
margin-bottom: 20px;
background-color: #fff; background-color: #fff;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
......
...@@ -469,7 +469,7 @@ border color while dragging a file over the uploader drop area */ ...@@ -469,7 +469,7 @@ border color while dragging a file over the uploader drop area */
.upload-php .mode-grid .media-sidebar { .upload-php .mode-grid .media-sidebar {
position: relative; position: relative;
width: auto; width: auto;
margin-bottom: 16px; margin-top: 12px;
padding: 0 16px; padding: 0 16px;
border-right: 4px solid #dd3d36; border-right: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
...@@ -506,7 +506,7 @@ border color while dragging a file over the uploader drop area */ ...@@ -506,7 +506,7 @@ border color while dragging a file over the uploader drop area */
content: "\f153"; content: "\f153";
display: block; display: block;
font: normal 16px/1 dashicons; font: normal 16px/1 dashicons;
color: #b4b9be; color: #72777c;
} }
.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:focus:before, .upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:focus:before,
...@@ -526,7 +526,7 @@ border color while dragging a file over the uploader drop area */ ...@@ -526,7 +526,7 @@ border color while dragging a file over the uploader drop area */
right: auto; right: auto;
bottom: auto; bottom: auto;
padding-top: 0; padding-top: 0;
margin-top: 0; margin-top: 20px;
border: 4px dashed #b4b9be; border: 4px dashed #b4b9be;
} }
...@@ -1066,9 +1066,9 @@ border color while dragging a file over the uploader drop area */ ...@@ -1066,9 +1066,9 @@ border color while dragging a file over the uploader drop area */
line-height: 1.4; line-height: 1.4;
} }
.imgedit-group-top h3 a, /* Back-compat for pre-4.4 */ #poststuff .imgedit-group-top .button-link {
.imgedit-group-top h2 a {
text-decoration: none; text-decoration: none;
color: #23282d;
} }
.imgedit-applyto .imgedit-label { .imgedit-applyto .imgedit-label {
......
...@@ -469,7 +469,7 @@ border color while dragging a file over the uploader drop area */ ...@@ -469,7 +469,7 @@ border color while dragging a file over the uploader drop area */
.upload-php .mode-grid .media-sidebar { .upload-php .mode-grid .media-sidebar {
position: relative; position: relative;
width: auto; width: auto;
margin-bottom: 16px; margin-top: 12px;
padding: 0 16px; padding: 0 16px;
border-left: 4px solid #dd3d36; border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
...@@ -506,7 +506,7 @@ border color while dragging a file over the uploader drop area */ ...@@ -506,7 +506,7 @@ border color while dragging a file over the uploader drop area */
content: "\f153"; content: "\f153";
display: block; display: block;
font: normal 16px/1 dashicons; font: normal 16px/1 dashicons;
color: #b4b9be; color: #72777c;
} }
.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:focus:before, .upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:focus:before,
...@@ -526,7 +526,7 @@ border color while dragging a file over the uploader drop area */ ...@@ -526,7 +526,7 @@ border color while dragging a file over the uploader drop area */
left: auto; left: auto;
bottom: auto; bottom: auto;
padding-top: 0; padding-top: 0;
margin-top: 0; margin-top: 20px;
border: 4px dashed #b4b9be; border: 4px dashed #b4b9be;
} }
...@@ -1066,9 +1066,9 @@ border color while dragging a file over the uploader drop area */ ...@@ -1066,9 +1066,9 @@ border color while dragging a file over the uploader drop area */
line-height: 1.4; line-height: 1.4;
} }
.imgedit-group-top h3 a, /* Back-compat for pre-4.4 */ #poststuff .imgedit-group-top .button-link {
.imgedit-group-top h2 a {
text-decoration: none; text-decoration: none;
color: #23282d;
} }
.imgedit-applyto .imgedit-label { .imgedit-applyto .imgedit-label {
......
...@@ -664,24 +664,7 @@ body.menu-max-depth-11 { min-width: 1280px !important; } ...@@ -664,24 +664,7 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
.menu-item-settings .field-move .button-link { .menu-item-settings .field-move .button-link {
display: none; display: none;
margin: 0 2px; margin: 0 2px;
color: #0073aa;
font-style: italic; font-style: italic;
text-decoration: underline;
}
.menu-item-settings .field-move .button-link:hover,
.menu-item-settings .field-move .button-link:active {
color: #00a0d2;
}
.menu-item-settings .field-move .button-link:focus {
color: #124964;
-webkit-box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8);
box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8);
} }
.menu-item-edit-active .menu-item-settings { .menu-item-edit-active .menu-item-settings {
......
...@@ -664,24 +664,7 @@ body.menu-max-depth-11 { min-width: 1280px !important; } ...@@ -664,24 +664,7 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
.menu-item-settings .field-move .button-link { .menu-item-settings .field-move .button-link {
display: none; display: none;
margin: 0 2px; margin: 0 2px;
color: #0073aa;
font-style: italic; font-style: italic;
text-decoration: underline;
}
.menu-item-settings .field-move .button-link:hover,
.menu-item-settings .field-move .button-link:active {
color: #00a0d2;
}
.menu-item-settings .field-move .button-link:focus {
color: #124964;
-webkit-box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8);
box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8);
} }
.menu-item-edit-active .menu-item-settings { .menu-item-edit-active .menu-item-settings {
......
...@@ -393,8 +393,20 @@ strong { ...@@ -393,8 +393,20 @@ strong {
padding: 5px 15px; padding: 5px 15px;
margin: 0; margin: 0;
width: 100%; width: 100%;
border: 0;
text-align: right; text-align: right;
line-height: 2; line-height: 2;
background: none;
color: inherit;
text-decoration: none;
outline: none;
-webkit-transition: none;
transition: none;
}
.split-button-body .split-button-option:hover,
.split-button-body .split-button-option:active {
color: inherit;
} }
.is-open .split-button-body { .is-open .split-button-body {
...@@ -689,28 +701,36 @@ dd { ...@@ -689,28 +701,36 @@ dd {
content: "\f123"; content: "\f123";
} }
.post-format-image:before { .post-format-chat:before {
content: "\f128"; content: "\f125";
} }
.post-format-video:before { .post-format-gallery:before {
content: "\f126"; content: "\f161";
} }
.post-format-audio:before { .post-format-link:before {
content: "\f127"; content: "\f103";
}
.post-format-image:before {
content: "\f128";
} }
.post-format-quote:before { .post-format-quote:before {
content: "\f122"; content: "\f122";
} }
.post-format-link:before { .post-format-status:before {
content: "\f103"; content: "\f130";
} }
.post-format-gallery:before { .post-format-video:before {
content: "\f161"; content: "\f126";
}
.post-format-audio:before {
content: "\f127";
} }
...@@ -860,6 +880,12 @@ dd { ...@@ -860,6 +880,12 @@ dd {
padding: 0; padding: 0;
text-decoration: none; text-decoration: none;
outline: 0; outline: 0;
color: inherit;
}
.press-this .tagcloud-link:hover,
.press-this .tagcloud-link:active {
color: inherit;
} }
.tagcloud-link:focus { .tagcloud-link:focus {
...@@ -930,10 +956,12 @@ input[type="search"].categories-search, ...@@ -930,10 +956,12 @@ input[type="search"].categories-search,
line-height: 20px; line-height: 20px;
padding: 12px 10px 8px; padding: 12px 10px 8px;
color: #0073aa; color: #0073aa;
text-decoration: none;
-webkit-transition: none;
transition: none;
} }
.press-this .add-cat-toggle:focus { .press-this .add-cat-toggle:focus {
text-decoration: none;
color: #00a0d2; color: #00a0d2;
} }
...@@ -1202,6 +1230,9 @@ html { ...@@ -1202,6 +1230,9 @@ html {
margin-top: -13px; margin-top: -13px;
padding: 0 10px 1px; padding: 0 10px 1px;
font-size: 13px; font-size: 13px;
text-decoration: none;
-webkit-transition: none;
transition: none;
} }
@media (max-width: 320px) { @media (max-width: 320px) {
...@@ -1764,7 +1795,6 @@ html { ...@@ -1764,7 +1795,6 @@ html {
margin: 0; margin: 0;
padding: 0; padding: 0;
border: 0; border: 0;
border-left: 1px solid #e5e5e5;
-webkit-border-radius: 0; -webkit-border-radius: 0;
border-radius: 0; border-radius: 0;
background: none; background: none;
...@@ -1776,9 +1806,6 @@ html { ...@@ -1776,9 +1806,6 @@ html {
.insert-media:hover, .insert-media:hover,
.insert-media:focus, .insert-media:focus,
.insert-media:active { .insert-media:active {
margin: 0;
background: none;
border-color: #e5e5e5;
color: #23282d; color: #23282d;
} }
...@@ -1786,7 +1813,12 @@ html { ...@@ -1786,7 +1813,12 @@ html {
.insert-media:active { .insert-media:active {
outline: 0; outline: 0;
color: #00a0d2; color: #00a0d2;
text-decoration: none; -webkit-box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8);
box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8);
} }
.insert-media .dashicons { .insert-media .dashicons {
...@@ -2012,10 +2044,13 @@ html { ...@@ -2012,10 +2044,13 @@ html {
.post-options .post-option { .post-options .post-option {
display: block; display: block;
width: 100%; width: 100%;
margin: 0;
padding: 13px 14px 13px 37px; padding: 13px 14px 13px 37px;
border: 0;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
text-decoration: none; text-decoration: none;
text-align: right; text-align: right;
background: none;
color: #9ea7af; color: #9ea7af;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
...@@ -2091,7 +2126,9 @@ html { ...@@ -2091,7 +2126,9 @@ html {
display: block; display: block;
width: 100%; width: 100%;
padding: 13px 14px; padding: 13px 14px;
border: 0;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
background: none;
color: #00a0d2; color: #00a0d2;
text-decoration: none; text-decoration: none;
text-align: right; text-align: right;
......
...@@ -393,8 +393,20 @@ strong { ...@@ -393,8 +393,20 @@ strong {
padding: 5px 15px; padding: 5px 15px;
margin: 0; margin: 0;
width: 100%; width: 100%;
border: 0;
text-align: left; text-align: left;
line-height: 2; line-height: 2;
background: none;
color: inherit;
text-decoration: none;
outline: none;
-webkit-transition: none;
transition: none;
}
.split-button-body .split-button-option:hover,
.split-button-body .split-button-option:active {
color: inherit;
} }
.is-open .split-button-body { .is-open .split-button-body {
...@@ -689,28 +701,36 @@ dd { ...@@ -689,28 +701,36 @@ dd {
content: "\f123"; content: "\f123";
} }
.post-format-image:before { .post-format-chat:before {
content: "\f128"; content: "\f125";
} }
.post-format-video:before { .post-format-gallery:before {
content: "\f126"; content: "\f161";
} }
.post-format-audio:before { .post-format-link:before {
content: "\f127"; content: "\f103";
}
.post-format-image:before {
content: "\f128";
} }
.post-format-quote:before { .post-format-quote:before {
content: "\f122"; content: "\f122";
} }
.post-format-link:before { .post-format-status:before {
content: "\f103"; content: "\f130";
} }
.post-format-gallery:before { .post-format-video:before {
content: "\f161"; content: "\f126";
}
.post-format-audio:before {
content: "\f127";
} }
...@@ -860,6 +880,12 @@ dd { ...@@ -860,6 +880,12 @@ dd {
padding: 0; padding: 0;
text-decoration: none; text-decoration: none;
outline: 0; outline: 0;
color: inherit;
}
.press-this .tagcloud-link:hover,
.press-this .tagcloud-link:active {
color: inherit;
} }
.tagcloud-link:focus { .tagcloud-link:focus {
...@@ -930,10 +956,12 @@ input[type="search"].categories-search, ...@@ -930,10 +956,12 @@ input[type="search"].categories-search,
line-height: 20px; line-height: 20px;
padding: 12px 10px 8px; padding: 12px 10px 8px;
color: #0073aa; color: #0073aa;
text-decoration: none;
-webkit-transition: none;
transition: none;
} }
.press-this .add-cat-toggle:focus { .press-this .add-cat-toggle:focus {
text-decoration: none;
color: #00a0d2; color: #00a0d2;
} }
...@@ -1202,6 +1230,9 @@ html { ...@@ -1202,6 +1230,9 @@ html {
margin-top: -13px; margin-top: -13px;
padding: 0 10px 1px; padding: 0 10px 1px;
font-size: 13px; font-size: 13px;
text-decoration: none;
-webkit-transition: none;
transition: none;
} }
@media (max-width: 320px) { @media (max-width: 320px) {
...@@ -1764,7 +1795,6 @@ html { ...@@ -1764,7 +1795,6 @@ html {
margin: 0; margin: 0;
padding: 0; padding: 0;
border: 0; border: 0;
border-right: 1px solid #e5e5e5;
-webkit-border-radius: 0; -webkit-border-radius: 0;
border-radius: 0; border-radius: 0;
background: none; background: none;
...@@ -1776,9 +1806,6 @@ html { ...@@ -1776,9 +1806,6 @@ html {
.insert-media:hover, .insert-media:hover,
.insert-media:focus, .insert-media:focus,
.insert-media:active { .insert-media:active {
margin: 0;
background: none;
border-color: #e5e5e5;
color: #23282d; color: #23282d;
} }
...@@ -1786,7 +1813,12 @@ html { ...@@ -1786,7 +1813,12 @@ html {
.insert-media:active { .insert-media:active {
outline: 0; outline: 0;
color: #00a0d2; color: #00a0d2;
text-decoration: none; -webkit-box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8);
box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8);
} }
.insert-media .dashicons { .insert-media .dashicons {
...@@ -2012,10 +2044,13 @@ html { ...@@ -2012,10 +2044,13 @@ html {
.post-options .post-option { .post-options .post-option {
display: block; display: block;
width: 100%; width: 100%;
margin: 0;
padding: 13px 37px 13px 14px; padding: 13px 37px 13px 14px;
border: 0;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
text-decoration: none; text-decoration: none;
text-align: left; text-align: left;
background: none;
color: #9ea7af; color: #9ea7af;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
...@@ -2091,7 +2126,9 @@ html { ...@@ -2091,7 +2126,9 @@ html {
display: block; display: block;
width: 100%; width: 100%;
padding: 13px 14px; padding: 13px 14px;
border: 0;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
background: none;
color: #00a0d2; color: #00a0d2;
text-decoration: none; text-decoration: none;
text-align: left; text-align: left;
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
} }
/* Search form */ /* Search form */
.themes-php .search-form {
display: inline;
}
.themes-php .wp-filter-search { .themes-php .wp-filter-search {
position: relative; position: relative;
top: -2px; top: -2px;
...@@ -949,9 +953,8 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap { ...@@ -949,9 +953,8 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
float: none; float: none;
clear: both; clear: both;
right: 0; right: 0;
top: 0;
left: 0; left: 0;
margin: 10px 0; margin: -5px 0 20px 0;
width: 100%; width: 100%;
max-width: 280px; max-width: 280px;
} }
...@@ -1333,7 +1336,9 @@ body.full-overlay-active { ...@@ -1333,7 +1336,9 @@ body.full-overlay-active {
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
position: fixed; position: fixed;
width: 300px; min-width: 300px;
max-width: 600px;
width: 18%;
height: 100%; height: 100%;
top: 0; top: 0;
bottom: 0; bottom: 0;
...@@ -1362,6 +1367,26 @@ body.full-overlay-active { ...@@ -1362,6 +1367,26 @@ body.full-overlay-active {
margin-right: -300px; margin-right: -300px;
} }
@media screen and (min-width: 1667px) {
.wp-full-overlay.expanded {
margin-right: 18%;
}
.wp-full-overlay.collapsed .wp-full-overlay-sidebar {
margin-right: -18%;
}
}
@media screen and (min-width: 3333px) {
.wp-full-overlay.expanded {
margin-right: 600px;
}
.wp-full-overlay.collapsed .wp-full-overlay-sidebar {
margin-right: -600px;
}
}
.wp-full-overlay-sidebar:after { .wp-full-overlay-sidebar:after {
content: ""; content: "";
display: block; display: block;
...@@ -1521,7 +1546,6 @@ body.full-overlay-active { ...@@ -1521,7 +1546,6 @@ body.full-overlay-active {
box-shadow: none !important; box-shadow: none !important;
-webkit-border-radius: 0 !important; -webkit-border-radius: 0 !important;
border-radius: 0 !important; border-radius: 0 !important;
z-index: -1; /* Below device buttons */
} }
.wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:hover,
...@@ -1617,14 +1641,22 @@ body.full-overlay-active { ...@@ -1617,14 +1641,22 @@ body.full-overlay-active {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
right: 0; right: 0;
width: 299px; min-width: 299px;
max-width: 599px;
width: 18%;
width: -webkit-calc( 18% - 1px );
width: calc( 18% - 1px );
height: 45px; height: 45px;
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
background: #eee; background: #eee;
} }
.wp-full-overlay-footer .devices { .wp-full-overlay-footer .devices-wrapper {
float: left; float: left;
}
.wp-full-overlay-footer .devices {
position: relative;
background: #eee; background: #eee;
-webkit-box-shadow: 20px 0 10px -5px #eee; -webkit-box-shadow: 20px 0 10px -5px #eee;
box-shadow: 20px 0 10px -5px #eee; box-shadow: 20px 0 10px -5px #eee;
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
} }
/* Search form */ /* Search form */
.themes-php .search-form {
display: inline;
}
.themes-php .wp-filter-search { .themes-php .wp-filter-search {
position: relative; position: relative;
top: -2px; top: -2px;
...@@ -949,9 +953,8 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap { ...@@ -949,9 +953,8 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
float: none; float: none;
clear: both; clear: both;
left: 0; left: 0;
top: 0;
right: 0; right: 0;
margin: 10px 0; margin: -5px 0 20px 0;
width: 100%; width: 100%;
max-width: 280px; max-width: 280px;
} }
...@@ -1333,7 +1336,9 @@ body.full-overlay-active { ...@@ -1333,7 +1336,9 @@ body.full-overlay-active {
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
position: fixed; position: fixed;
width: 300px; min-width: 300px;
max-width: 600px;
width: 18%;
height: 100%; height: 100%;
top: 0; top: 0;
bottom: 0; bottom: 0;
...@@ -1362,6 +1367,26 @@ body.full-overlay-active { ...@@ -1362,6 +1367,26 @@ body.full-overlay-active {
margin-left: -300px; margin-left: -300px;
} }
@media screen and (min-width: 1667px) {
.wp-full-overlay.expanded {
margin-left: 18%;
}
.wp-full-overlay.collapsed .wp-full-overlay-sidebar {
margin-left: -18%;
}
}
@media screen and (min-width: 3333px) {
.wp-full-overlay.expanded {
margin-left: 600px;
}
.wp-full-overlay.collapsed .wp-full-overlay-sidebar {
margin-left: -600px;
}
}
.wp-full-overlay-sidebar:after { .wp-full-overlay-sidebar:after {
content: ""; content: "";
display: block; display: block;
...@@ -1521,7 +1546,6 @@ body.full-overlay-active { ...@@ -1521,7 +1546,6 @@ body.full-overlay-active {
box-shadow: none !important; box-shadow: none !important;
-webkit-border-radius: 0 !important; -webkit-border-radius: 0 !important;
border-radius: 0 !important; border-radius: 0 !important;
z-index: -1; /* Below device buttons */
} }
.wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:hover,
...@@ -1617,14 +1641,22 @@ body.full-overlay-active { ...@@ -1617,14 +1641,22 @@ body.full-overlay-active {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
left: 0; left: 0;
width: 299px; min-width: 299px;
max-width: 599px;
width: 18%;
width: -webkit-calc( 18% - 1px );
width: calc( 18% - 1px );
height: 45px; height: 45px;
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
background: #eee; background: #eee;
} }
.wp-full-overlay-footer .devices { .wp-full-overlay-footer .devices-wrapper {
float: right; float: right;
}
.wp-full-overlay-footer .devices {
position: relative;
background: #eee; background: #eee;
-webkit-box-shadow: -20px 0 10px -5px #eee; -webkit-box-shadow: -20px 0 10px -5px #eee;
box-shadow: -20px 0 10px -5px #eee; box-shadow: -20px 0 10px -5px #eee;
......
...@@ -14,12 +14,13 @@ ...@@ -14,12 +14,13 @@
background: #f7f7f7; background: #f7f7f7;
} }
.widget-top a.widget-action, .widget-top .widget-action {
.widget-top a.widget-action:hover { border: 0;
-webkit-box-shadow: none; margin: 0;
box-shadow: none; padding: 10px;
background: none;
cursor: pointer;
outline: none; outline: none;
text-decoration: none;
} }
.widget-title h3, .widget-title h3,
...@@ -50,10 +51,111 @@ ...@@ -50,10 +51,111 @@
} }
.deleting .widget-title, .deleting .widget-title,
.deleting .widget-top a.widget-action:after { .deleting .widget-top .widget-action .toggle-indicator:before {
color: #a0a5aa; color: #a0a5aa;
} }
/* Media Widgets */
.wp-core-ui .media-widget-control.selected .placeholder,
.wp-core-ui .media-widget-control.selected .not-selected,
.wp-core-ui .media-widget-control .selected {
display: none;
}
.media-widget-control.selected .selected {
display: inline-block;
}
.media-widget-buttons {
text-align: right;
margin-top: 0;
}
.media-widget-control .media-widget-buttons .button {
width: auto;
height: auto;
margin-top: 12px;
white-space: normal;
}
.media-widget-buttons .button:first-child {
margin-left: 8px;
}
.media-widget-control .placeholder {
border: 1px dashed #b4b9be;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
cursor: default;
line-height: 20px;
padding: 9px 0;
position: relative;
text-align: center;
width: 100%;
}
.media-widget-control .media-widget-preview {
text-align: center;
}
.media-widget-control .media-widget-preview .notice {
text-align: initial;
}
.media-frame .media-widget-embed-notice p code,
.media-widget-control .notice p code {
padding: 0 0 0 3px;
}
.media-frame .media-widget-embed-notice {
margin-top: 16px;
}
.media-widget-control .media-widget-preview img {
max-width: 100%;
}
.media-widget-control .media-widget-preview .wp-video-shortcode {
background: #000;
}
.media-frame.media-widget .media-toolbar-secondary {
min-width: 300px;
}
.media-frame.media-widget .image-details .embed-media-settings .setting.align,
.media-frame.media-widget .attachment-display-settings .setting.align,
.media-frame.media-widget .embed-media-settings .setting.align,
.media-frame.media-widget .embed-link-settings .setting.link-text,
.media-frame.media-widget .replace-attachment,
.media-frame.media-widget .checkbox-setting.autoplay {
display: none;
}
.media-widget-video-preview {
width: 100%;
}
.media-widget-video-link {
display: inline-block;
min-height: 132px;
width: 100%;
background: black;
}
.media-widget-video-link .dashicons {
font: normal 60px/1 'dashicons';
position: relative;
width: 100%;
top: -90px;
color: white;
text-decoration: none;
}
.media-widget-video-link.no-poster .dashicons {
top: 30px;
}
.media-frame #embed-url-field.invalid {
border: 1px solid #f00;
}
/* Widget Dragging Helpers */ /* Widget Dragging Helpers */
.widget.ui-draggable-dragging { .widget.ui-draggable-dragging {
min-width: 100%; min-width: 100%;
...@@ -517,6 +619,29 @@ div#widgets-right .widget-top:hover, ...@@ -517,6 +619,29 @@ div#widgets-right .widget-top:hover,
cursor: move; cursor: move;
} }
/* =Specific widget styling
-------------------------------------------------------------- */
.text-widget-fields {
position: relative;
}
.text-widget-fields [hidden] {
display: none;
}
.text-widget-fields .wp-pointer.wp-pointer-top {
position: absolute;
z-index: 3;
top: 100px;
left: 10px;
right: 10px;
}
.text-widget-fields .wp-pointer .wp-pointer-arrow {
right: auto;
left: 15px;
}
.text-widget-fields .wp-pointer .wp-pointer-buttons {
line-height: 1.4em;
}
/* =Media Queries /* =Media Queries
-------------------------------------------------------------- */ -------------------------------------------------------------- */
......
...@@ -14,12 +14,13 @@ ...@@ -14,12 +14,13 @@
background: #f7f7f7; background: #f7f7f7;
} }
.widget-top a.widget-action, .widget-top .widget-action {
.widget-top a.widget-action:hover { border: 0;
-webkit-box-shadow: none; margin: 0;
box-shadow: none; padding: 10px;
background: none;
cursor: pointer;
outline: none; outline: none;
text-decoration: none;
} }
.widget-title h3, .widget-title h3,
...@@ -50,10 +51,111 @@ ...@@ -50,10 +51,111 @@
} }
.deleting .widget-title, .deleting .widget-title,
.deleting .widget-top a.widget-action:after { .deleting .widget-top .widget-action .toggle-indicator:before {
color: #a0a5aa; color: #a0a5aa;
} }
/* Media Widgets */
.wp-core-ui .media-widget-control.selected .placeholder,
.wp-core-ui .media-widget-control.selected .not-selected,
.wp-core-ui .media-widget-control .selected {
display: none;
}
.media-widget-control.selected .selected {
display: inline-block;
}
.media-widget-buttons {
text-align: left;
margin-top: 0;
}
.media-widget-control .media-widget-buttons .button {
width: auto;
height: auto;
margin-top: 12px;
white-space: normal;
}
.media-widget-buttons .button:first-child {
margin-right: 8px;
}
.media-widget-control .placeholder {
border: 1px dashed #b4b9be;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
cursor: default;
line-height: 20px;
padding: 9px 0;
position: relative;
text-align: center;
width: 100%;
}
.media-widget-control .media-widget-preview {
text-align: center;
}
.media-widget-control .media-widget-preview .notice {
text-align: initial;
}
.media-frame .media-widget-embed-notice p code,
.media-widget-control .notice p code {
padding: 0 3px 0 0;
}
.media-frame .media-widget-embed-notice {
margin-top: 16px;
}
.media-widget-control .media-widget-preview img {
max-width: 100%;
}
.media-widget-control .media-widget-preview .wp-video-shortcode {
background: #000;
}
.media-frame.media-widget .media-toolbar-secondary {
min-width: 300px;
}
.media-frame.media-widget .image-details .embed-media-settings .setting.align,
.media-frame.media-widget .attachment-display-settings .setting.align,
.media-frame.media-widget .embed-media-settings .setting.align,
.media-frame.media-widget .embed-link-settings .setting.link-text,
.media-frame.media-widget .replace-attachment,
.media-frame.media-widget .checkbox-setting.autoplay {
display: none;
}
.media-widget-video-preview {
width: 100%;
}
.media-widget-video-link {
display: inline-block;
min-height: 132px;
width: 100%;
background: black;
}
.media-widget-video-link .dashicons {
font: normal 60px/1 'dashicons';
position: relative;
width: 100%;
top: -90px;
color: white;
text-decoration: none;
}
.media-widget-video-link.no-poster .dashicons {
top: 30px;
}
.media-frame #embed-url-field.invalid {
border: 1px solid #f00;
}
/* Widget Dragging Helpers */ /* Widget Dragging Helpers */
.widget.ui-draggable-dragging { .widget.ui-draggable-dragging {
min-width: 100%; min-width: 100%;
...@@ -517,6 +619,29 @@ div#widgets-right .widget-top:hover, ...@@ -517,6 +619,29 @@ div#widgets-right .widget-top:hover,
cursor: move; cursor: move;
} }
/* =Specific widget styling
-------------------------------------------------------------- */
.text-widget-fields {
position: relative;
}
.text-widget-fields [hidden] {
display: none;
}
.text-widget-fields .wp-pointer.wp-pointer-top {
position: absolute;
z-index: 3;
top: 100px;
right: 10px;
left: 10px;
}
.text-widget-fields .wp-pointer .wp-pointer-arrow {
left: auto;
right: 15px;
}
.text-widget-fields .wp-pointer .wp-pointer-buttons {
line-height: 1.4em;
}
/* =Media Queries /* =Media Queries
-------------------------------------------------------------- */ -------------------------------------------------------------- */
......
...@@ -42,7 +42,7 @@ class Custom_Image_Header { ...@@ -42,7 +42,7 @@ class Custom_Image_Header {
/** /**
* Used to trigger a success message when settings updated and set to true. * Used to trigger a success message when settings updated and set to true.
* *
* @since 3.0.0 * @since 3.0.0
* @access private * @access private
* @var bool * @var bool
...@@ -1097,6 +1097,8 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> ...@@ -1097,6 +1097,8 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
/** /**
* Calculate width and height based on what the currently selected theme supports. * Calculate width and height based on what the currently selected theme supports.
* *
* @since 3.9.0
*
* @param array $dimensions * @param array $dimensions
* @return array dst_height and dst_width of header image. * @return array dst_height and dst_width of header image.
*/ */
...@@ -1147,9 +1149,10 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> ...@@ -1147,9 +1149,10 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
/** /**
* Create an attachment 'object'. * Create an attachment 'object'.
* *
* @since 3.9.0
*
* @param string $cropped Cropped image URL. * @param string $cropped Cropped image URL.
* @param int $parent_attachment_id Attachment ID of parent image. * @param int $parent_attachment_id Attachment ID of parent image.
*
* @return array Attachment object. * @return array Attachment object.
*/ */
final public function create_attachment_object( $cropped, $parent_attachment_id ) { final public function create_attachment_object( $cropped, $parent_attachment_id ) {
...@@ -1174,9 +1177,10 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> ...@@ -1174,9 +1177,10 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
/** /**
* Insert an attachment and its metadata. * Insert an attachment and its metadata.
* *
* @since 3.9.0
*
* @param array $object Attachment object. * @param array $object Attachment object.
* @param string $cropped Cropped image URL. * @param string $cropped Cropped image URL.
*
* @return int Attachment ID. * @return int Attachment ID.
*/ */
final public function insert_attachment( $object, $cropped ) { final public function insert_attachment( $object, $cropped ) {
...@@ -1199,6 +1203,8 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> ...@@ -1199,6 +1203,8 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
/** /**
* Gets attachment uploaded by Media Manager, crops it, then saves it as a * Gets attachment uploaded by Media Manager, crops it, then saves it as a
* new object. Returns JSON-encoded object details. * new object. Returns JSON-encoded object details.
*
* @since 3.9.0
*/ */
public function ajax_header_crop() { public function ajax_header_crop() {
check_ajax_referer( 'image_editor-' . $_POST['id'], 'nonce' ); check_ajax_referer( 'image_editor-' . $_POST['id'], 'nonce' );
...@@ -1257,6 +1263,8 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> ...@@ -1257,6 +1263,8 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
* *
* Triggered when the user tries adds a new header image from the * Triggered when the user tries adds a new header image from the
* Media Manager, even if s/he doesn't save that change. * Media Manager, even if s/he doesn't save that change.
*
* @since 3.9.0
*/ */
public function ajax_header_add() { public function ajax_header_add() {
check_ajax_referer( 'header-add', 'nonce' ); check_ajax_referer( 'header-add', 'nonce' );
...@@ -1283,6 +1291,8 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> ...@@ -1283,6 +1291,8 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
* *
* Triggered when the user clicks the overlay "X" button next to each image * Triggered when the user clicks the overlay "X" button next to each image
* choice in the Customizer's Header tool. * choice in the Customizer's Header tool.
*
* @since 3.9.0
*/ */
public function ajax_header_remove() { public function ajax_header_remove() {
check_ajax_referer( 'header-remove', 'nonce' ); check_ajax_referer( 'header-remove', 'nonce' );
...@@ -1304,8 +1314,11 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> ...@@ -1304,8 +1314,11 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
} }
/** /**
* Updates the last-used postmeta on a header image attachment after saving a new header image via the Customizer.
* *
* @param WP_Customize_Manager $wp_customize * @since 3.9.0
*
* @param WP_Customize_Manager $wp_customize Customize manager.
*/ */
public function customize_set_last_used( $wp_customize ) { public function customize_set_last_used( $wp_customize ) {
$data = $wp_customize->get_setting( 'header_image_data' )->post_value(); $data = $wp_customize->get_setting( 'header_image_data' )->post_value();
...@@ -1320,8 +1333,11 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> ...@@ -1320,8 +1333,11 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
} }
/** /**
* Gets the details of default header images if defined.
*
* @since 3.9.0
* *
* @return array * @return array Default header images.
*/ */
public function get_default_header_images() { public function get_default_header_images() {
$this->process_default_headers(); $this->process_default_headers();
...@@ -1360,8 +1376,11 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> ...@@ -1360,8 +1376,11 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
} }
/** /**
* Gets the previously uploaded header images.
*
* @since 3.9.0
* *
* @return array * @return array Uploaded header images.
*/ */
public function get_uploaded_header_images() { public function get_uploaded_header_images() {
$header_images = get_uploaded_header_images(); $header_images = get_uploaded_header_images();
......
...@@ -102,7 +102,7 @@ if ( $wp_customize->is_ios() ) { ...@@ -102,7 +102,7 @@ if ( $wp_customize->is_ios() ) {
if ( is_rtl() ) { if ( is_rtl() ) {
$body_class .= ' rtl'; $body_class .= ' rtl';
} }
$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) ); $body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) );
$admin_title = sprintf( $wp_customize->get_document_title_template(), __( 'Loading&hellip;' ) ); $admin_title = sprintf( $wp_customize->get_document_title_template(), __( 'Loading&hellip;' ) );
...@@ -155,7 +155,7 @@ do_action( 'customize_controls_print_scripts' ); ...@@ -155,7 +155,7 @@ do_action( 'customize_controls_print_scripts' );
<div id="customize-info" class="accordion-section customize-info"> <div id="customize-info" class="accordion-section customize-info">
<div class="accordion-section-title"> <div class="accordion-section-title">
<span class="preview-notice"><?php <span class="preview-notice"><?php
echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name' ) . '</strong>' ); echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name', 'display' ) . '</strong>' );
?></span> ?></span>
<button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button> <button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>
</div> </div>
...@@ -171,30 +171,32 @@ do_action( 'customize_controls_print_scripts' ); ...@@ -171,30 +171,32 @@ do_action( 'customize_controls_print_scripts' );
</div> </div>
<div id="customize-footer-actions" class="wp-full-overlay-footer"> <div id="customize-footer-actions" class="wp-full-overlay-footer">
<?php $previewable_devices = $wp_customize->get_previewable_devices(); ?>
<?php if ( ! empty( $previewable_devices ) ) : ?>
<div class="devices">
<?php foreach ( (array) $previewable_devices as $device => $settings ) : ?>
<?php
if ( empty( $settings['label'] ) ) {
continue;
}
$active = ! empty( $settings['default'] );
$class = 'preview-' . $device;
if ( $active ) {
$class .= ' active';
}
?>
<button type="button" class="<?php echo esc_attr( $class ); ?>" aria-pressed="<?php echo esc_attr( $active ) ?>" data-device="<?php echo esc_attr( $device ); ?>">
<span class="screen-reader-text"><?php echo esc_html( $settings['label'] ); ?></span>
</button>
<?php endforeach; ?>
</div>
<?php endif; ?>
<button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php echo esc_attr( _x( 'Hide Controls', 'label for hide controls button without length constraints' ) ); ?>"> <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php echo esc_attr( _x( 'Hide Controls', 'label for hide controls button without length constraints' ) ); ?>">
<span class="collapse-sidebar-arrow"></span> <span class="collapse-sidebar-arrow"></span>
<span class="collapse-sidebar-label"><?php _ex( 'Hide Controls', 'short (~12 characters) label for hide controls button' ); ?></span> <span class="collapse-sidebar-label"><?php _ex( 'Hide Controls', 'short (~12 characters) label for hide controls button' ); ?></span>
</button> </button>
<?php $previewable_devices = $wp_customize->get_previewable_devices(); ?>
<?php if ( ! empty( $previewable_devices ) ) : ?>
<div class="devices-wrapper">
<div class="devices">
<?php foreach ( (array) $previewable_devices as $device => $settings ) : ?>
<?php
if ( empty( $settings['label'] ) ) {
continue;
}
$active = ! empty( $settings['default'] );
$class = 'preview-' . $device;
if ( $active ) {
$class .= ' active';
}
?>
<button type="button" class="<?php echo esc_attr( $class ); ?>" aria-pressed="<?php echo esc_attr( $active ) ?>" data-device="<?php echo esc_attr( $device ); ?>">
<span class="screen-reader-text"><?php echo esc_html( $settings['label'] ); ?></span>
</button>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>
</div> </div>
</form> </form>
<div id="customize-preview" class="wp-full-overlay-main"></div> <div id="customize-preview" class="wp-full-overlay-main"></div>
......
...@@ -83,19 +83,23 @@ if ( $doaction ) { ...@@ -83,19 +83,23 @@ if ( $doaction ) {
} }
if ( ! in_array( $doaction, array( 'approve', 'unapprove', 'spam', 'unspam', 'trash', 'delete' ), true ) ) { if ( ! in_array( $doaction, array( 'approve', 'unapprove', 'spam', 'unspam', 'trash', 'delete' ), true ) ) {
$screen = get_current_screen()->id;
/** /**
* Fires when a custom bulk action should be handled. * Fires when a custom bulk action should be handled.
* *
* The redirect link should be modified with success or failure feedback * The redirect link should be modified with success or failure feedback
* from the action to be used to display feedback to the user. * from the action to be used to display feedback to the user.
* *
* The dynamic portion of the hook name, `$screen`, refers to the current screen ID.
*
* @since 4.7.0 * @since 4.7.0
* *
* @param string $redirect_url The redirect URL. * @param string $redirect_url The redirect URL.
* @param string $doaction The action being taken. * @param string $doaction The action being taken.
* @param array $items The items to take the action on. * @param array $items The items to take the action on.
*/ */
$redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $comment_ids ); $redirect_to = apply_filters( "handle_bulk_actions-{$screen}", $redirect_to, $doaction, $comment_ids );
} }
wp_defer_comment_counting( false ); wp_defer_comment_counting( false );
...@@ -194,7 +198,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ...@@ -194,7 +198,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
?> ?>
<div class="wrap"> <div class="wrap">
<h1><?php <h1 class="wp-heading-inline"><?php
if ( $post_id ) { if ( $post_id ) {
/* translators: %s: link to post */ /* translators: %s: link to post */
printf( __( 'Comments on &#8220;%s&#8221;' ), printf( __( 'Comments on &#8220;%s&#8221;' ),
...@@ -206,7 +210,9 @@ if ( $post_id ) { ...@@ -206,7 +210,9 @@ if ( $post_id ) {
} else { } else {
_e( 'Comments' ); _e( 'Comments' );
} }
?></h1>
<?php
if ( isset($_REQUEST['s']) && strlen( $_REQUEST['s'] ) ) { if ( isset($_REQUEST['s']) && strlen( $_REQUEST['s'] ) ) {
echo '<span class="subtitle">'; echo '<span class="subtitle">';
/* translators: %s: search keywords */ /* translators: %s: search keywords */
...@@ -215,7 +221,9 @@ if ( isset($_REQUEST['s']) && strlen( $_REQUEST['s'] ) ) { ...@@ -215,7 +221,9 @@ if ( isset($_REQUEST['s']) && strlen( $_REQUEST['s'] ) ) {
); );
echo '</span>'; echo '</span>';
} }
?></h1> ?>
<hr class="wp-header-end">
<?php <?php
if ( isset( $_REQUEST['error'] ) ) { if ( isset( $_REQUEST['error'] ) ) {
......
...@@ -308,9 +308,8 @@ if ( in_array( get_post_status( $post ), $stati ) ) { ...@@ -308,9 +308,8 @@ if ( in_array( get_post_status( $post ), $stati ) ) {
if ( ! ( 'pending' == get_post_status( $post ) && ! current_user_can( $post_type_object->cap->publish_posts ) ) ) if ( ! ( 'pending' == get_post_status( $post ) && ! current_user_can( $post_type_object->cap->publish_posts ) ) )
add_meta_box('slugdiv', __('Slug'), 'post_slug_meta_box', null, 'normal', 'core'); add_meta_box('slugdiv', __('Slug'), 'post_slug_meta_box', null, 'normal', 'core');
if ( post_type_supports($post_type, 'author') ) { if ( post_type_supports( $post_type, 'author' ) && current_user_can( $post_type_object->cap->edit_others_posts ) ) {
if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) add_meta_box( 'authordiv', __( 'Author' ), 'post_author_meta_box', null, 'normal', 'core' );
add_meta_box('authordiv', __('Author'), 'post_author_meta_box', null, 'normal', 'core');
} }
/** /**
...@@ -583,7 +582,7 @@ if ( has_filter( 'pre_get_shortlink' ) || has_filter( 'get_shortlink' ) ) { ...@@ -583,7 +582,7 @@ if ( has_filter( 'pre_get_shortlink' ) || has_filter( 'get_shortlink' ) ) {
$shortlink = wp_get_shortlink($post->ID, 'post'); $shortlink = wp_get_shortlink($post->ID, 'post');
if ( !empty( $shortlink ) && $shortlink !== $permalink && $permalink !== home_url('?page_id=' . $post->ID) ) { if ( !empty( $shortlink ) && $shortlink !== $permalink && $permalink !== home_url('?page_id=' . $post->ID) ) {
$sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr($shortlink) . '" /><a href="#" class="button button-small" onclick="prompt(&#39;URL:&#39;, jQuery(\'#shortlink\').val()); return false;">' . __('Get Shortlink') . '</a>'; $sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr( $shortlink ) . '" /><button type="button" class="button button-small" onclick="prompt(&#39;URL:&#39;, jQuery(\'#shortlink\').val());">' . __( 'Get Shortlink' ) . '</button>';
} }
} }
......
...@@ -70,7 +70,13 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ...@@ -70,7 +70,13 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
?> ?>
<div class="wrap"> <div class="wrap">
<h1><?php echo esc_html( $title ); ?> <a href="link-add.php" class="page-title-action"><?php echo esc_html_x('Add New', 'link'); ?></a></h1> <h1 class="wp-heading-inline"><?php
echo esc_html( $title );
?></h1>
<a href="link-add.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'link' ); ?></a>
<hr class="wp-header-end">
<?php if ( isset( $_GET['added'] ) ) : ?> <?php if ( isset( $_GET['added'] ) ) : ?>
<div id="message" class="updated notice is-dismissible"><p><?php _e('Link added.'); ?></p></div> <div id="message" class="updated notice is-dismissible"><p><?php _e('Link added.'); ?></p></div>
......
...@@ -74,7 +74,7 @@ do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?> ...@@ -74,7 +74,7 @@ do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
<div id="message" class="updated"> <div id="message" class="updated">
<p><strong><?php echo $message; ?></strong></p> <p><strong><?php echo $message; ?></strong></p>
<?php if ( $wp_http_referer ) { ?> <?php if ( $wp_http_referer ) { ?>
<p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php <p><a href="<?php echo esc_url( wp_validate_redirect( esc_url_raw( $wp_http_referer ), admin_url( 'term.php?taxonomy=' . $taxonomy ) ) ); ?>"><?php
/* translators: %s: taxonomy name */ /* translators: %s: taxonomy name */
printf( _x( '&larr; Back to %s', 'admin screen' ), $tax->labels->name ); printf( _x( '&larr; Back to %s', 'admin screen' ), $tax->labels->name );
?></a></p> ?></a></p>
...@@ -146,7 +146,7 @@ do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy ); ...@@ -146,7 +146,7 @@ do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy );
<?php } ?> <?php } ?>
<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?> <?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
<tr class="form-field term-parent-wrap"> <tr class="form-field term-parent-wrap">
<th scope="row"><label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label></th> <th scope="row"><label for="parent"><?php echo esc_html( $tax->labels->parent_item ); ?></label></th>
<td> <td>
<?php <?php
$dropdown_args = array( $dropdown_args = array(
...@@ -165,7 +165,9 @@ do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy ); ...@@ -165,7 +165,9 @@ do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy );
$dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' ); $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' );
wp_dropdown_categories( $dropdown_args ); ?> wp_dropdown_categories( $dropdown_args ); ?>
<?php if ( 'category' == $taxonomy ) : ?> <?php if ( 'category' == $taxonomy ) : ?>
<p class="description"><?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?></p> <p class="description"><?php _e( 'Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.' ); ?></p>
<?php else : ?>
<p class="description"><?php _e( 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.' ); ?></p>
<?php endif; ?> <?php endif; ?>
</td> </td>
</tr> </tr>
...@@ -252,9 +254,20 @@ if ( 'category' == $taxonomy ) { ...@@ -252,9 +254,20 @@ if ( 'category' == $taxonomy ) {
* @param string $taxonomy Current taxonomy slug. * @param string $taxonomy Current taxonomy slug.
*/ */
do_action( "{$taxonomy}_edit_form", $tag, $taxonomy ); do_action( "{$taxonomy}_edit_form", $tag, $taxonomy );
submit_button( __('Update') );
?> ?>
<div class="edit-tag-actions">
<?php submit_button( __( 'Update' ), 'primary', null, false ); ?>
<?php if ( current_user_can( 'delete_term', $tag->term_id ) ) : ?>
<span id="delete-link">
<a class="delete" href="<?php echo admin_url( wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) ) ?>"><?php _e( 'Delete' ); ?></a>
</span>
<?php endif; ?>
</div>
</form> </form>
</div> </div>
......
...@@ -65,7 +65,6 @@ if ( ! $referer ) { // For POST requests. ...@@ -65,7 +65,6 @@ if ( ! $referer ) { // For POST requests.
$referer = wp_unslash( $_SERVER['REQUEST_URI'] ); $referer = wp_unslash( $_SERVER['REQUEST_URI'] );
} }
$referer = remove_query_arg( array( '_wp_http_referer', '_wpnonce', 'error', 'message', 'paged' ), $referer ); $referer = remove_query_arg( array( '_wp_http_referer', '_wpnonce', 'error', 'message', 'paged' ), $referer );
switch ( $wp_list_table->current_action() ) { switch ( $wp_list_table->current_action() ) {
case 'add-tag': case 'add-tag':
...@@ -107,6 +106,9 @@ case 'delete': ...@@ -107,6 +106,9 @@ case 'delete':
$location = add_query_arg( 'message', 2, $referer ); $location = add_query_arg( 'message', 2, $referer );
// When deleting a term, prevent the action from redirecting back to a term that no longer exists.
$location = remove_query_arg( array( 'tag_ID', 'action' ), $location );
break; break;
case 'bulk-delete': case 'bulk-delete':
...@@ -290,13 +292,16 @@ if ( is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ) { ...@@ -290,13 +292,16 @@ if ( is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ) {
?> ?>
<div class="wrap nosubsub"> <div class="wrap nosubsub">
<h1><?php echo esc_html( $title ); <h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
<?php
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
/* translators: %s: search keywords */ /* translators: %s: search keywords */
printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( wp_unslash( $_REQUEST['s'] ) ) ); printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( wp_unslash( $_REQUEST['s'] ) ) );
} }
?> ?>
</h1>
<hr class="wp-header-end">
<?php if ( $message ) : ?> <?php if ( $message ) : ?>
<div id="message" class="<?php echo $class; ?> notice is-dismissible"><p><?php echo $message; ?></p></div> <div id="message" class="<?php echo $class; ?> notice is-dismissible"><p><?php echo $message; ?></p></div>
...@@ -396,7 +401,7 @@ do_action( "{$taxonomy}_term_new_form_tag" ); ...@@ -396,7 +401,7 @@ do_action( "{$taxonomy}_term_new_form_tag" );
<?php endif; // global_terms_enabled() ?> <?php endif; // global_terms_enabled() ?>
<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?> <?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
<div class="form-field term-parent-wrap"> <div class="form-field term-parent-wrap">
<label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label> <label for="parent"><?php echo esc_html( $tax->labels->parent_item ); ?></label>
<?php <?php
$dropdown_args = array( $dropdown_args = array(
'hide_empty' => 0, 'hide_empty' => 0,
...@@ -433,8 +438,10 @@ do_action( "{$taxonomy}_term_new_form_tag" ); ...@@ -433,8 +438,10 @@ do_action( "{$taxonomy}_term_new_form_tag" );
wp_dropdown_categories( $dropdown_args ); wp_dropdown_categories( $dropdown_args );
?> ?>
<?php if ( 'category' == $taxonomy ) : // @todo: Generic text for hierarchical taxonomies ?> <?php if ( 'category' == $taxonomy ) : ?>
<p><?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?></p> <p><?php _e( 'Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.' ); ?></p>
<?php else : ?>
<p><?php _e( 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.' ); ?></p>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php endif; // is_taxonomy_hierarchical() ?> <?php endif; // is_taxonomy_hierarchical() ?>
......
...@@ -350,6 +350,11 @@ $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'locked', 'skipped', 'updated ...@@ -350,6 +350,11 @@ $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'locked', 'skipped', 'updated
<input type="hidden" name="post_status" class="post_status_page" value="<?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?>" /> <input type="hidden" name="post_status" class="post_status_page" value="<?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?>" />
<input type="hidden" name="post_type" class="post_type_page" value="<?php echo $post_type; ?>" /> <input type="hidden" name="post_type" class="post_type_page" value="<?php echo $post_type; ?>" />
<?php if ( ! empty( $_REQUEST['author'] ) ) { ?>
<input type="hidden" name="author" value="<?php echo esc_attr( $_REQUEST['author'] ); ?>" />
<?php } ?>
<?php if ( ! empty( $_REQUEST['show_sticky'] ) ) { ?> <?php if ( ! empty( $_REQUEST['show_sticky'] ) ) { ?>
<input type="hidden" name="show_sticky" value="1" /> <input type="hidden" name="show_sticky" value="1" />
<?php } ?> <?php } ?>
......
...@@ -19,7 +19,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' ); ...@@ -19,7 +19,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
<p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s helps you get your site set up the way you want it.' ), $display_version ); ?></p> <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s adds more ways for you to express yourself and represent your brand.' ), $display_version ); ?></p>
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
......
...@@ -246,7 +246,7 @@ function wp_ajax_autocomplete_user() { ...@@ -246,7 +246,7 @@ function wp_ajax_autocomplete_user() {
wp_die( -1 ); wp_die( -1 );
/** This filter is documented in wp-admin/user-new.php */ /** This filter is documented in wp-admin/user-new.php */
if ( ! is_super_admin() && ! apply_filters( 'autocomplete_users_for_site_admins', false ) ) if ( ! current_user_can( 'manage_network_users' ) && ! apply_filters( 'autocomplete_users_for_site_admins', false ) )
wp_die( -1 ); wp_die( -1 );
$return = array(); $return = array();
...@@ -297,6 +297,56 @@ function wp_ajax_autocomplete_user() { ...@@ -297,6 +297,56 @@ function wp_ajax_autocomplete_user() {
} }
/** /**
* Handles AJAX requests for community events
*
* @since 4.8.0
*/
function wp_ajax_get_community_events() {
require_once( ABSPATH . 'wp-admin/includes/class-wp-community-events.php' );
check_ajax_referer( 'community_events' );
$search = isset( $_POST['location'] ) ? wp_unslash( $_POST['location'] ) : '';
$timezone = isset( $_POST['timezone'] ) ? wp_unslash( $_POST['timezone'] ) : '';
$user_id = get_current_user_id();
$saved_location = get_user_option( 'community-events-location', $user_id );
$events_client = new WP_Community_Events( $user_id, $saved_location );
$events = $events_client->get_events( $search, $timezone );
$ip_changed = false;
if ( is_wp_error( $events ) ) {
wp_send_json_error( array(
'error' => $events->get_error_message(),
) );
} else {
if ( empty( $saved_location['ip'] ) && ! empty( $events['location']['ip'] ) ) {
$ip_changed = true;
} elseif ( isset( $saved_location['ip'] ) && ! empty( $events['location']['ip'] ) && $saved_location['ip'] !== $events['location']['ip'] ) {
$ip_changed = true;
}
/*
* The location should only be updated when it changes. The API doesn't always return
* a full location; sometimes it's missing the description or country. The location
* that was saved during the initial request is known to be good and complete, though.
* It should be left in tact until the user explicitly changes it (either by manually
* searching for a new location, or by changing their IP address).
*
* If the location were updated with an incomplete response from the API, then it could
* break assumptions that the UI makes (e.g., that there will always be a description
* that corresponds to a latitude/longitude location).
*
* The location is stored network-wide, so that the user doesn't have to set it on each site.
*/
if ( $ip_changed || $search ) {
update_user_option( $user_id, 'community-events-location', $events['location'], true );
}
wp_send_json_success( $events );
}
}
/**
* Ajax handler for dashboard widgets. * Ajax handler for dashboard widgets.
* *
* @since 3.4.0 * @since 3.4.0
...@@ -472,11 +522,11 @@ function _wp_ajax_add_hierarchical_term() { ...@@ -472,11 +522,11 @@ function _wp_ajax_add_hierarchical_term() {
$category_nicename = sanitize_title($cat_name); $category_nicename = sanitize_title($cat_name);
if ( '' === $category_nicename ) if ( '' === $category_nicename )
continue; continue;
if ( !$cat_id = term_exists( $cat_name, $taxonomy->name, $parent ) )
$cat_id = wp_insert_term( $cat_name, $taxonomy->name, array( 'parent' => $parent ) ); $cat_id = wp_insert_term( $cat_name, $taxonomy->name, array( 'parent' => $parent ) );
if ( is_wp_error( $cat_id ) ) { if ( ! $cat_id || is_wp_error( $cat_id ) ) {
continue; continue;
} elseif ( is_array( $cat_id ) ) { } else {
$cat_id = $cat_id['term_id']; $cat_id = $cat_id['term_id'];
} }
$checked_categories[] = $cat_id; $checked_categories[] = $cat_id;
...@@ -806,11 +856,11 @@ function wp_ajax_add_link_category( $action ) { ...@@ -806,11 +856,11 @@ function wp_ajax_add_link_category( $action ) {
$slug = sanitize_title($cat_name); $slug = sanitize_title($cat_name);
if ( '' === $slug ) if ( '' === $slug )
continue; continue;
if ( !$cat_id = term_exists( $cat_name, 'link_category' ) )
$cat_id = wp_insert_term( $cat_name, 'link_category' ); $cat_id = wp_insert_term( $cat_name, 'link_category' );
if ( is_wp_error( $cat_id ) ) { if ( ! $cat_id || is_wp_error( $cat_id ) ) {
continue; continue;
} elseif ( is_array( $cat_id ) ) { } else {
$cat_id = $cat_id['term_id']; $cat_id = $cat_id['term_id'];
} }
$cat_name = esc_html( $cat_name ); $cat_name = esc_html( $cat_name );
...@@ -1497,7 +1547,10 @@ function wp_ajax_wp_link_ajax() { ...@@ -1497,7 +1547,10 @@ function wp_ajax_wp_link_ajax() {
$args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1; $args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
require(ABSPATH . WPINC . '/class-wp-editor.php'); if ( ! class_exists( '_WP_Editors', false ) ) {
require( ABSPATH . WPINC . '/class-wp-editor.php' );
}
$results = _WP_Editors::wp_link_query( $args ); $results = _WP_Editors::wp_link_query( $args );
if ( ! isset( $results ) ) if ( ! isset( $results ) )
...@@ -1598,6 +1651,8 @@ function wp_ajax_sample_permalink() { ...@@ -1598,6 +1651,8 @@ function wp_ajax_sample_permalink() {
* Ajax handler for Quick Edit saving a post from a list table. * Ajax handler for Quick Edit saving a post from a list table.
* *
* @since 3.1.0 * @since 3.1.0
*
* @global string $mode List table view mode.
*/ */
function wp_ajax_inline_save() { function wp_ajax_inline_save() {
global $mode; global $mode;
...@@ -1966,9 +2021,11 @@ function wp_ajax_delete_inactive_widgets() { ...@@ -1966,9 +2021,11 @@ function wp_ajax_delete_inactive_widgets() {
} }
unset( $_POST['removeinactivewidgets'], $_POST['action'] ); unset( $_POST['removeinactivewidgets'], $_POST['action'] );
/** This action is documented in wp-admin/includes/ajax-actions.php */
do_action( 'load-widgets.php' ); do_action( 'load-widgets.php' );
/** This action is documented in wp-admin/includes/ajax-actions.php */
do_action( 'widgets.php' ); do_action( 'widgets.php' );
/** This action is documented in wp-admin/widgets.php */
do_action( 'sidebar_admin_setup' ); do_action( 'sidebar_admin_setup' );
$sidebars_widgets = wp_get_sidebars_widgets(); $sidebars_widgets = wp_get_sidebars_widgets();
...@@ -2702,7 +2759,7 @@ function wp_ajax_send_link_to_editor() { ...@@ -2702,7 +2759,7 @@ function wp_ajax_send_link_to_editor() {
$type = $ext_type; $type = $ext_type;
/** This filter is documented in wp-admin/includes/media.php */ /** This filter is documented in wp-admin/includes/media.php */
$html = apply_filters( $type . '_send_to_editor_url', $html, $src, $link_text ); $html = apply_filters( "{$type}_send_to_editor_url", $html, $src, $link_text );
wp_send_json_success( $html ); wp_send_json_success( $html );
} }
...@@ -3002,7 +3059,6 @@ function wp_ajax_parse_embed() { ...@@ -3002,7 +3059,6 @@ function wp_ajax_parse_embed() {
$parsed = $styles . $html . $scripts; $parsed = $styles . $html . $scripts;
} }
if ( ! empty( $no_ssl_support ) || ( is_ssl() && ( preg_match( '%<(iframe|script|embed) [^>]*src="http://%', $parsed ) || if ( ! empty( $no_ssl_support ) || ( is_ssl() && ( preg_match( '%<(iframe|script|embed) [^>]*src="http://%', $parsed ) ||
preg_match( '%<link [^>]*href="http://%', $parsed ) ) ) ) { preg_match( '%<link [^>]*href="http://%', $parsed ) ) ) ) {
// Admin is ssl and the embed is not. Iframes, scripts, and other "active content" will be blocked. // Admin is ssl and the embed is not. Iframes, scripts, and other "active content" will be blocked.
...@@ -3012,10 +3068,23 @@ function wp_ajax_parse_embed() { ...@@ -3012,10 +3068,23 @@ function wp_ajax_parse_embed() {
) ); ) );
} }
wp_send_json_success( array( $return = array(
'body' => $parsed, 'body' => $parsed,
'attr' => $wp_embed->last_attr 'attr' => $wp_embed->last_attr
) ); );
if ( strpos( $parsed, 'class="wp-embedded-content' ) ) {
if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
$script_src = includes_url( 'js/wp-embed.js' );
} else {
$script_src = includes_url( 'js/wp-embed.min.js' );
}
$return['head'] = '<script src="' . $script_src . '"></script>';
$return['sandbox'] = true;
}
wp_send_json_success( $return );
} }
/** /**
...@@ -3112,7 +3181,7 @@ function wp_ajax_destroy_sessions() { ...@@ -3112,7 +3181,7 @@ function wp_ajax_destroy_sessions() {
$message = __( 'You are now logged out everywhere else.' ); $message = __( 'You are now logged out everywhere else.' );
} else { } else {
$sessions->destroy_all(); $sessions->destroy_all();
/* translators: 1: User's display name. */ /* translators: %s: User's display name. */
$message = sprintf( __( '%s has been logged out.' ), $user->display_name ); $message = sprintf( __( '%s has been logged out.' ), $user->display_name );
} }
......
...@@ -43,7 +43,7 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { ...@@ -43,7 +43,7 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
/* translators: 1: Title of an update */ /* translators: 1: Title of an update */
$this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.'); $this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.');
/* translators: 1: Title of an update */ /* translators: 1: Title of an update */
$this->upgrader->strings['skin_update_successful'] = __( '%1$s updated successfully.' ) . ' <a onclick="%2$s" href="#" class="hide-if-no-js"><span>' . __( 'Show Details' ) . '</span><span class="hidden">' . __( 'Hide Details' ) . '</span></a>'; $this->upgrader->strings['skin_update_successful'] = __( '%1$s updated successfully.' );
$this->upgrader->strings['skin_upgrade_end'] = __('All updates have been completed.'); $this->upgrader->strings['skin_upgrade_end'] = __('All updates have been completed.');
} }
...@@ -128,6 +128,7 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { ...@@ -128,6 +128,7 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
$this->in_loop = true; $this->in_loop = true;
printf( '<h2>' . $this->upgrader->strings['skin_before_update_header'] . ' <span class="spinner waiting-' . $this->upgrader->update_current . '"></span></h2>', $title, $this->upgrader->update_current, $this->upgrader->update_count ); printf( '<h2>' . $this->upgrader->strings['skin_before_update_header'] . ' <span class="spinner waiting-' . $this->upgrader->update_current . '"></span></h2>', $title, $this->upgrader->update_current, $this->upgrader->update_count );
echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').css("display", "inline-block");</script>'; echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').css("display", "inline-block");</script>';
// This progress messages div gets moved via JavaScript when clicking on "Show details.".
echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr($this->upgrader->update_current) . '"><p>'; echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr($this->upgrader->update_current) . '"><p>';
$this->flush_output(); $this->flush_output();
} }
...@@ -148,8 +149,13 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { ...@@ -148,8 +149,13 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
echo '<script type="text/javascript">jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').show();</script>'; echo '<script type="text/javascript">jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').show();</script>';
} }
if ( $this->result && ! is_wp_error( $this->result ) ) { if ( $this->result && ! is_wp_error( $this->result ) ) {
if ( ! $this->error ) if ( ! $this->error ) {
echo '<div class="updated"><p>' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').toggle();jQuery(\'span\', this).toggle(); return false;') . '</p></div>'; echo '<div class="updated js-update-details" data-update-details="progress-' . esc_attr( $this->upgrader->update_current ) . '">' .
'<p>' . sprintf( $this->upgrader->strings['skin_update_successful'], $title ) .
' <button type="button" class="hide-if-no-js button-link js-update-details-toggle" aria-expanded="false">' . __( 'Show details.' ) . '</button>' .
'</p></div>';
}
echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>'; echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>';
} }
......
...@@ -406,7 +406,7 @@ class Plugin_Upgrader extends WP_Upgrader { ...@@ -406,7 +406,7 @@ class Plugin_Upgrader extends WP_Upgrader {
return $return; return $return;
// When in cron (background updates) don't deactivate the plugin, as we require a browser to reactivate it // When in cron (background updates) don't deactivate the plugin, as we require a browser to reactivate it
if ( defined( 'DOING_CRON' ) && DOING_CRON ) if ( wp_doing_cron() )
return $return; return $return;
$plugin = isset($plugin['plugin']) ? $plugin['plugin'] : ''; $plugin = isset($plugin['plugin']) ? $plugin['plugin'] : '';
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment