wecobble/Subtitles

View on GitHub
admin/assets/css/subtitles.css

Summary

Maintainability
Test Coverage
/**
 * Plugin Name: Subtitles
 * Plugin URI: http://wordpress.org/plugins/subtitles/
 * Description: Easily add subtitles into your WordPress posts, pages, custom post types, and themes.
 * Author: We Cobble
 * Author URI: https://wecobble.com/
 * Version: 4.0.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 */

#subtitlediv {
    position: relative;
    margin-bottom: 10px;
    margin-top: -5px;
}
.version-4-1 #subtitlediv {
    margin-bottom: 0;
    margin-top: 0;
}

#subtitlediv label {
    cursor: text;
}

#subtitles-not-supported {
    line-height: 24px;
    min-height: 25px; /* Yes, line-height + 1 */
    margin: 0;
    padding: 0 10px 5px;
    color: #666;
}

#subtitles-not-supported strong {
    background-color: #fffbcc;
    font-weight: 400;
}

#poststuff #subtitlewrap {
    border: 0;
    padding: 0;
}

#subtitlediv #subtitle {
    clear: both;
    display: block;
    padding: 3px 8px;
    font-size: 18px;
    line-height: 100%;
    height: 38px;
    width: 100%;
    outline: none;
    margin: 10px 0 0;
    background-color: #fff;
}

#subtitlediv #subtitle-prompt-text {
    color: #777;
    position: absolute;
    font-size: 18px;
    padding: 11px 10px;
}