updated plugin AudioIgniter
version 1.9.0
This commit is contained in:
@ -1,155 +1,640 @@
|
||||
@charset "UTF-8";
|
||||
@keyframes ai-spin { 0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); } }
|
||||
@keyframes backgroundPosition { 0% { background-position: -140px 0; }
|
||||
100% { background-position: 140px 0; } }
|
||||
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
|
||||
|
||||
.ai-row { margin-left: -15px; margin-right: -15px; box-sizing: border-box; }
|
||||
.ai-row::after { content: ""; display: table; clear: both; }
|
||||
@keyframes ai-spin {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
[class^="ai-col"] { float: left; padding-left: 15px; padding-right: 15px; width: 50%; box-sizing: border-box; }
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.ai-btn { display: inline-block; font-weight: normal; margin: 0; line-height: normal; border: 0; box-shadow: none; text-align: center; vertical-align: middle; cursor: pointer; white-space: nowrap; user-select: none; border-radius: 2px; width: auto; height: auto; background-image: none; padding: 11px 20px 11px; font-size: 12px; text-transform: uppercase; background-color: #1c4866; color: #ffffff; text-decoration: none; }
|
||||
.ai-btn:hover, .ai-btn:focus { color: #ffffff; background-color: #173a52; }
|
||||
@keyframes backgroundPosition {
|
||||
0% {
|
||||
background-position: -140px 0;
|
||||
}
|
||||
|
||||
.ai-btn-green { background-color: #14b552; }
|
||||
.ai-btn-green:hover, .ai-btn-green:focus { color: #ffffff; background-color: #119e48; }
|
||||
100% {
|
||||
background-position: 140px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.ai-brand-module { background-color: #1c4866; padding: 15px; color: #ffffff; font-size: 12px; }
|
||||
.ai-brand-module p { font-size: 12px; }
|
||||
.ai-brand-module a:not(.ai-btn) { color: #ffcc00; text-decoration: none; }
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.ai-brand-module-actions { text-align: right; }
|
||||
.ai-brand-module-actions p { margin: 0; }
|
||||
.ai-row {
|
||||
margin-left: -15px;
|
||||
margin-right: -15px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.ai-header { margin: 12px 0 -12px; height: 40px; }
|
||||
.ai-row::after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.ai-header-actions { text-align: right; }
|
||||
[class^="ai-col"] {
|
||||
float: left;
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
width: 50%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.ai-logo { display: inline-block; position: relative; top: -2px; }
|
||||
.ai-logo img { height: 44px; }
|
||||
.ai-btn {
|
||||
display: inline-block;
|
||||
font-weight: normal;
|
||||
margin: 0;
|
||||
line-height: normal;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
border-radius: 2px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
background-image: none;
|
||||
padding: 11px 20px 11px;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
background-color: #1c4866;
|
||||
color: #ffffff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.ai-note { font-style: italic; }
|
||||
.ai-btn:hover,
|
||||
.ai-btn:focus {
|
||||
color: #ffffff;
|
||||
background-color: #173a52;
|
||||
}
|
||||
|
||||
.ai-list-inline { margin: 0; padding: 0; list-style: none; }
|
||||
.ai-list-inline li { display: inline-block; margin: 0; }
|
||||
.ai-btn-green {
|
||||
background-color: #14b552;
|
||||
}
|
||||
|
||||
.ai-footer-links a::after { content: "\007c"; color: #ffffff; opacity: .5; margin: 0 7px; }
|
||||
.ai-footer-links li:last-child a::after { display: none; }
|
||||
.ai-btn-green:hover,
|
||||
.ai-btn-green:focus {
|
||||
color: #ffffff;
|
||||
background-color: #119e48;
|
||||
}
|
||||
|
||||
.ai-module { border: 1px solid #eeeeee; margin-top: 12px; padding: 15px; }
|
||||
.ai-module::after { content: ""; display: table; clear: both; }
|
||||
.ai-brand-module {
|
||||
background-color: #1c4866;
|
||||
padding: 15px;
|
||||
color: #ffffff;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ai-container { margin-top: 12px; }
|
||||
.ai-brand-module p {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ai-field-controls-wrap { padding: 15px; border: 1px solid #eeeeee; }
|
||||
.ai-field-controls-wrap::after { content: ""; display: table; clear: both; }
|
||||
.ai-brand-module a:not(.ai-btn) {
|
||||
color: #ffcc00;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.ai-field-controls { float: left; }
|
||||
.ai-field-controls .button { margin-right: 5px; }
|
||||
.ai-brand-module-actions {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.ai-field-controls-visibility { float: right; padding-top: 4px; }
|
||||
.ai-brand-module-actions p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ai-field-controls-visibility a { text-decoration: none; }
|
||||
.ai-header {
|
||||
margin: 12px 0 -12px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.ai-fields-expand-all { margin-right: 8px; padding-right: 6px; border-right: 1px solid #f1f1f1; }
|
||||
.ai-header-actions {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.ai-fields-container { padding: 15px; border-left: 1px solid #eeeeee; border-right: 1px solid #eeeeee; }
|
||||
.ai-logo {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
}
|
||||
|
||||
.ai-field-repeatable { margin-bottom: 15px; border: 1px solid #d7d7d7; box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.07); }
|
||||
.ai-field-repeatable:last-child { margin-bottom: 0; }
|
||||
.ai-field-repeatable:only-child .ai-remove-field { display: none; }
|
||||
.ai-logo img {
|
||||
height: 44px;
|
||||
}
|
||||
|
||||
.ai-field-container { padding: 15px; background-color: #ffffff; }
|
||||
.ai-field-container::after { content: ""; display: table; clear: both; }
|
||||
.ai-note {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.ai-field-head { padding: 8px 15px 5px; line-height: normal; background-color: #d7d7d7; background: linear-gradient(to bottom, #f1f1f1, #d7d7d7); border-bottom: 1px solid #cccccc; }
|
||||
.ai-field-head::after { content: ""; display: table; clear: both; }
|
||||
.ai-field-head .toggle-indicator { border-radius: 50%; }
|
||||
.ai-fields-sortable .ai-field-head { cursor: move; }
|
||||
.ai-list-inline {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.ai-field-sort-handle { position: relative; top: 1px; color: #0073aa; }
|
||||
.ai-field-sort-handle .dashicons { font-size: 18px; }
|
||||
.ai-list-inline li {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ai-field-title { font-weight: bold; font-size: 1.05em; margin-left: 8px; padding-top: 3px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 80%; display: inline-block; }
|
||||
.ai-footer-links a::after {
|
||||
content: "\007c";
|
||||
color: #ffffff;
|
||||
opacity: .5;
|
||||
margin: 0 7px;
|
||||
}
|
||||
|
||||
.ai-field-toggle { float: right; }
|
||||
.ai-footer-links li:last-child a::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ai-field-cover { float: left; width: 100px; height: 100px; margin-right: 15px; background-color: #eeeeee; border: 1px solid #cccccc; }
|
||||
.ai-module {
|
||||
border: 1px solid #eeeeee;
|
||||
margin-top: 12px;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.ai-field-split { float: left; width: calc(50% - 71px); margin-right: 15px; }
|
||||
.ai-field-split:nth-child(2n + 1) { margin-right: 0; }
|
||||
.ai-module::after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.ai-container .button .dashicons, .ai-module .button .dashicons { font-size: 1.2em; line-height: 1.7em; }
|
||||
.ai-container {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.ai-form-field-group { padding: 15px; border: 1px solid #f1f1f1; margin-bottom: 15px; }
|
||||
.ai-form-field-group :last-child { margin-bottom: 0; }
|
||||
.ai-form-field-group-title { margin-top: 0; }
|
||||
.ai-field-controls-wrap {
|
||||
padding: 15px;
|
||||
border: 1px solid #eeeeee;
|
||||
}
|
||||
|
||||
.ai-form-field { margin-bottom: 15px; }
|
||||
.ai-form-field label { display: inline-block; font-weight: bold; margin-bottom: 3px; }
|
||||
.ai-form-field input[type="text"], .ai-form-field input[type="url"], .ai-form-field input[type="search"], .ai-form-field input[type="email"], .ai-form-field input[type="password"], .ai-form-field input[type="number"], .ai-form-field input[type="tel"], .ai-form-field input[type="date"], .ai-form-field textarea { width: 100%; }
|
||||
.ai-form-field input[type="checkbox"], .ai-form-field input[type="radio"] { display: inline-block; position: relative; top: 1px; }
|
||||
.ai-field-controls-wrap::after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.ai-module-settings .ai-form-field input[type="text"], .ai-module-settings .ai-form-field input[type="url"], .ai-module-settings .ai-form-field input[type="search"], .ai-module-settings .ai-form-field input[type="email"], .ai-module-settings .ai-form-field input[type="password"], .ai-module-settings .ai-form-field input[type="number"], .ai-module-settings .ai-form-field input[type="tel"], .ai-module-settings .ai-form-field input[type="date"], .ai-module-settings .ai-form-field textarea, .ai-module-settings .ai-form-field select { width: 200px; max-width: 100%; display: block; }
|
||||
.ai-field-controls {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.ai-form-field-addon { position: relative; }
|
||||
.ai-form-field-addon input { padding-right: 80px; }
|
||||
.ai-form-field-addon button { position: absolute; top: 0; right: -2px; }
|
||||
.ai-field-controls .button {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.ai-field-help { margin: 5px 0 0; font-style: italic; color: #999; }
|
||||
.ai-field-controls-visibility {
|
||||
float: right;
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
.ai-remove-field { float: right; }
|
||||
.ai-field-controls-visibility a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.ai-field-upload-cover { display: block; position: relative; width: 100px; height: 100px; text-decoration: none; color: initial; overflow: hidden; }
|
||||
.ai-field-upload-cover img { max-width: 100%; display: none; }
|
||||
.ai-fields-expand-all {
|
||||
margin-right: 8px;
|
||||
padding-right: 6px;
|
||||
border-right: 1px solid #f1f1f1;
|
||||
}
|
||||
|
||||
.ai-has-cover .ai-remove-cover { display: block; }
|
||||
.ai-has-cover .ai-field-cover-placeholder { display: none; }
|
||||
.ai-has-cover img { display: inline-block; }
|
||||
.ai-fields-container {
|
||||
padding: 15px;
|
||||
border-left: 1px solid #eeeeee;
|
||||
border-right: 1px solid #eeeeee;
|
||||
}
|
||||
|
||||
.ai-field-cover-placeholder { text-align: center; font-style: normal; font-size: .9em; opacity: .8; padding-top: 28px; }
|
||||
.ai-field-cover-placeholder::before { content: ""; display: inline-block; font: 400 20px/1 dashicons; speak: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none !important; display: block; }
|
||||
.ai-track-loading .ai-field-cover-placeholder::before { content: "\f463"; animation: rotation 1.2s infinite linear; }
|
||||
.ai-field-repeatable {
|
||||
margin-bottom: 15px;
|
||||
border: 1px solid #d7d7d7;
|
||||
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.07);
|
||||
}
|
||||
|
||||
.ai-remove-cover { color: #ffffff; background-color: #ff0000; width: 16px; height: 16px; font-size: 12px; cursor: pointer; position: absolute; top: 0; right: 0; opacity: .9; transition: opacity 0.18s ease-in; display: none; text-align: center; }
|
||||
.ai-remove-cover:hover { opacity: 1; }
|
||||
.ai-remove-cover .dashicons { font-size: 16px; width: 100%; height: 100%; }
|
||||
.ai-field-repeatable:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.ai-remove-all-fields .dashicons, .ai-remove-field .dashicons { color: #ff0000; }
|
||||
.ai-field-repeatable:only-child .ai-remove-field {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ai-add-field-batch .dashicons, .ai-add-field .dashicons { color: #0073aa; }
|
||||
.ai-field-container {
|
||||
padding: 15px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.ai-info-box { background: #fffce6; color: #948832; font-size: 12px; border: solid 1px #eeeac9; padding: 15px; margin: 0 0 15px 0; }
|
||||
.ai-field-container::after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.ai-player-type-message { display: none; }
|
||||
.ai-field-container-links {
|
||||
display: flex;
|
||||
grid-gap: 20px;
|
||||
}
|
||||
|
||||
.ai-drop-placeholder { background-color: #f1f1f1; border: 2px dashed #cccccc; opacity: 0.5; margin-bottom: 15px; }
|
||||
.ai-field-container-links .ai-field-split {
|
||||
width: 50%;
|
||||
float: none;
|
||||
}
|
||||
|
||||
.ai-collapsed .ai-field-container { display: none; }
|
||||
.ai-collapsed .toggle-indicator::before { content: "\f140" !important; }
|
||||
.ai-field-head {
|
||||
padding: 8px 15px 5px;
|
||||
line-height: normal;
|
||||
background-color: #d7d7d7;
|
||||
background: linear-gradient(to bottom, #f1f1f1, #d7d7d7);
|
||||
border-bottom: 1px solid #cccccc;
|
||||
}
|
||||
|
||||
.ai-module-shortcode .code { display: block; width: 100%; margin-top: 3px; padding: 10px 10px 8px; font-weight: bold; background: #f1f1f1; }
|
||||
.ai-field-head::after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.ai-sync-soundcloud.button { display: none; }
|
||||
.ai-sync-soundcloud.button::before { content: "\f463"; color: #d54e21; display: inline-block; font: 400 19px/1 dashicons; speak: none; position: relative; left: -1px; top: 4px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; vertical-align: top; }
|
||||
.ai-track-loading .ai-sync-soundcloud.button::before { animation: rotation 1.2s infinite linear; }
|
||||
.ai-field-head .toggle-indicator {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.ai-soundcloud-track .ai-sync-soundcloud { display: inline-block; }
|
||||
.ai-soundcloud-track .ai-upload { display: none; }
|
||||
.ai-fields-sortable .ai-field-head {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) { .ai-field-controls, .ai-field-controls-visibility { margin: 0; float: none; width: 100%; }
|
||||
.ai-field-controls { margin-bottom: 5px; }
|
||||
.ai-field-split { float: none; width: 100%; }
|
||||
.ai-field-cover { margin-bottom: 15px; }
|
||||
.ai-footer { text-align: center; }
|
||||
.ai-footer .ai-brand-module-actions { text-align: center; margin-top: 10px; }
|
||||
.ai-footer [class^="ai-col"] { width: 100%; } }
|
||||
@media (max-width: 782px) { .ai-container .button .dashicons, .ai-module .button .dashicons { line-height: 1.2em; }
|
||||
.ai-form-field-addon .button { top: 2px; } }
|
||||
@media (max-width: 600px) { .ai-field-controls .button { width: 100%; }
|
||||
.ai-header { text-align: center; }
|
||||
.ai-header .ai-brand-module-actions { margin-top: 10px; }
|
||||
.ai-header .ai-btn { display: block; }
|
||||
.ai-header [class^="ai-col"] { width: 100%; } }
|
||||
.ai-field-sort-handle {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
color: #0073aa;
|
||||
}
|
||||
|
||||
.ai-field-sort-handle .dashicons {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.ai-field-title {
|
||||
font-weight: bold;
|
||||
font-size: 1.05em;
|
||||
margin-left: 8px;
|
||||
padding-top: 3px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
max-width: 80%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.ai-field-toggle {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.ai-field-cover {
|
||||
float: left;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin-right: 15px;
|
||||
background-color: #eeeeee;
|
||||
border: 1px solid #cccccc;
|
||||
}
|
||||
|
||||
.ai-field-split {
|
||||
float: left;
|
||||
width: calc(50% - 71px);
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.ai-field-split:nth-child(2n + 1) {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.ai-container .button .dashicons,
|
||||
.ai-module .button .dashicons {
|
||||
font-size: 1.2em;
|
||||
line-height: 1.7em;
|
||||
}
|
||||
|
||||
.ai-form-field-group {
|
||||
padding: 15px;
|
||||
border: 1px solid #f1f1f1;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.ai-form-field-group :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.ai-form-field-group-title {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.ai-form-field {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.ai-form-field label {
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
.ai-form-field input[type="text"],
|
||||
.ai-form-field input[type="url"],
|
||||
.ai-form-field input[type="search"],
|
||||
.ai-form-field input[type="email"],
|
||||
.ai-form-field input[type="password"],
|
||||
.ai-form-field input[type="number"],
|
||||
.ai-form-field input[type="tel"],
|
||||
.ai-form-field input[type="date"],
|
||||
.ai-form-field textarea,
|
||||
.ai-form-field select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ai-form-field input[type="checkbox"],
|
||||
.ai-form-field input[type="radio"] {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
|
||||
.ai-module-settings .ai-form-field input[type="text"],
|
||||
.ai-module-settings .ai-form-field input[type="url"],
|
||||
.ai-module-settings .ai-form-field input[type="search"],
|
||||
.ai-module-settings .ai-form-field input[type="email"],
|
||||
.ai-module-settings .ai-form-field input[type="password"],
|
||||
.ai-module-settings .ai-form-field input[type="number"],
|
||||
.ai-module-settings .ai-form-field input[type="tel"],
|
||||
.ai-module-settings .ai-form-field input[type="date"],
|
||||
.ai-module-settings .ai-form-field textarea,
|
||||
.ai-module-settings .ai-form-field select {
|
||||
width: 200px;
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ai-form-field-addon {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.ai-form-field-addon input {
|
||||
padding-right: 80px;
|
||||
}
|
||||
|
||||
.ai-form-field-addon button {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: -2px;
|
||||
}
|
||||
|
||||
.ai-field-help {
|
||||
margin: 5px 0 0;
|
||||
font-style: italic;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.ai-form-field-checkbox-secondary {
|
||||
margin-top: 7px;
|
||||
}
|
||||
|
||||
.ai-remove-field {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.ai-field-upload-cover {
|
||||
display: block;
|
||||
position: relative;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
text-decoration: none;
|
||||
color: initial;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ai-field-upload-cover img {
|
||||
max-width: 100%;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ai-has-cover .ai-remove-cover {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ai-has-cover .ai-field-cover-placeholder {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ai-has-cover img {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.ai-field-cover-placeholder {
|
||||
text-align: center;
|
||||
font-style: normal;
|
||||
font-size: .9em;
|
||||
opacity: .8;
|
||||
padding-top: 28px;
|
||||
}
|
||||
|
||||
.ai-field-cover-placeholder::before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
font: 400 20px/1 dashicons;
|
||||
speak: none;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-decoration: none !important;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ai-track-loading .ai-field-cover-placeholder::before {
|
||||
content: "\f463";
|
||||
animation: rotation 1.2s infinite linear;
|
||||
}
|
||||
|
||||
.ai-remove-cover {
|
||||
color: #ffffff;
|
||||
background-color: #ff0000;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
opacity: .9;
|
||||
transition: opacity 0.18s ease-in;
|
||||
display: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ai-remove-cover:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.ai-remove-cover .dashicons {
|
||||
font-size: 16px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.ai-remove-all-fields .dashicons,
|
||||
.ai-remove-field .dashicons {
|
||||
color: #ff0000;
|
||||
}
|
||||
|
||||
.ai-add-field-batch .dashicons,
|
||||
.ai-add-field .dashicons {
|
||||
color: #0073aa;
|
||||
}
|
||||
|
||||
.ai-info-box {
|
||||
background: #fffce6;
|
||||
color: #948832;
|
||||
font-size: 12px;
|
||||
border: solid 1px #eeeac9;
|
||||
padding: 15px;
|
||||
margin: 0 0 15px 0;
|
||||
}
|
||||
|
||||
.ai-player-type-message {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ai-drop-placeholder {
|
||||
background-color: #f1f1f1;
|
||||
border: 2px dashed #cccccc;
|
||||
opacity: 0.5;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.ai-collapsed .ai-field-container {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ai-collapsed .toggle-indicator::before {
|
||||
content: "\f140" !important;
|
||||
}
|
||||
|
||||
.ai-module-shortcode .code {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-top: 3px;
|
||||
padding: 10px 10px 8px;
|
||||
font-weight: bold;
|
||||
background: #f1f1f1;
|
||||
}
|
||||
|
||||
.ai-sync-soundcloud.button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ai-sync-soundcloud.button::before {
|
||||
content: "\f463";
|
||||
color: #d54e21;
|
||||
display: inline-block;
|
||||
font: 400 19px/1 dashicons;
|
||||
speak: none;
|
||||
position: relative;
|
||||
left: -1px;
|
||||
top: 4px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.ai-track-loading .ai-sync-soundcloud.button::before {
|
||||
animation: rotation 1.2s infinite linear;
|
||||
}
|
||||
|
||||
.ai-soundcloud-track .ai-sync-soundcloud {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.ai-soundcloud-track .ai-upload {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.ai-field-controls,
|
||||
.ai-field-controls-visibility {
|
||||
margin: 0;
|
||||
float: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ai-field-controls {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.ai-field-container-links {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ai-field-container-links .ai-field-split,
|
||||
.ai-field-split {
|
||||
float: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ai-field-cover {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.ai-footer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ai-footer .ai-brand-module-actions {
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.ai-footer [class^="ai-col"] {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 782px) {
|
||||
.ai-container .button .dashicons,
|
||||
.ai-module .button .dashicons {
|
||||
line-height: 1.2em;
|
||||
}
|
||||
|
||||
.ai-form-field-addon .button {
|
||||
top: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.ai-field-controls .button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ai-header {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ai-header .ai-brand-module-actions {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.ai-header .ai-btn {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ai-header [class^="ai-col"] {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -241,6 +241,16 @@ $border-color: $lighter-grey !default;
|
||||
background-color: $white;
|
||||
}
|
||||
|
||||
.ai-field-container-links {
|
||||
display: flex;
|
||||
grid-gap: 20px;
|
||||
|
||||
.ai-field-split {
|
||||
width: 50%;
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
|
||||
.ai-field-head {
|
||||
@include clearfix;
|
||||
padding: 8px $base-pad 5px;
|
||||
@ -347,7 +357,8 @@ $border-color: $lighter-grey !default;
|
||||
input[type="number"],
|
||||
input[type="tel"],
|
||||
input[type="date"],
|
||||
textarea {
|
||||
textarea,
|
||||
select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@ -398,6 +409,10 @@ $border-color: $lighter-grey !default;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.ai-form-field-checkbox-secondary {
|
||||
margin-top: 7px;
|
||||
}
|
||||
|
||||
.ai-remove-field {
|
||||
float: right;
|
||||
}
|
||||
@ -595,6 +610,11 @@ $border-color: $lighter-grey !default;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.ai-field-container-links {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ai-field-container-links .ai-field-split,
|
||||
.ai-field-split {
|
||||
float: none;
|
||||
width: 100%;
|
||||
|
@ -19,6 +19,7 @@ jQuery(function($) {
|
||||
removeFieldButtonClassName: ".ai-remove-field",
|
||||
$removeAllTracksButton: $(".ai-remove-all-fields"),
|
||||
$batchUploadButton: $(".ai-add-field-batch"),
|
||||
$trackDownloadUsesTrackUrlButton: $(".ai-use-track-url-download"),
|
||||
audioUploadButtonClassName: ".ai-upload",
|
||||
coverUploadButtonClassName: ".ai-field-upload-cover",
|
||||
coverRemoveClassName: ".ai-remove-cover",
|
||||
@ -27,6 +28,8 @@ jQuery(function($) {
|
||||
trackArtistClassName: ".ai-track-artist",
|
||||
trackLyricsClassName: ".ai-track-lyrics",
|
||||
trackUrlClassName: ".ai-track-url",
|
||||
trackDownloadUrlClassName: ".ai-track-download-url",
|
||||
trackDownloadUsesTrackUrlClassName: ".ai-track-download-uses-track-url",
|
||||
hasCoverClass: "ai-has-cover",
|
||||
fieldHeadClassName: ".ai-field-head",
|
||||
fieldCollapsedClass: "ai-collapsed",
|
||||
@ -113,7 +116,7 @@ jQuery(function($) {
|
||||
|
||||
$field.attr("data-uid", newHash);
|
||||
$field
|
||||
.find("input, textarea")
|
||||
.find("input, textarea, select")
|
||||
.not(":button")
|
||||
.each(function() {
|
||||
var $this = $(this);
|
||||
@ -154,17 +157,20 @@ jQuery(function($) {
|
||||
* and appends it back after resetting it
|
||||
*
|
||||
* @param {string} [hash] - UUID or random hash
|
||||
* @param {jQuery} [$container] - A jQuery element as the container
|
||||
*
|
||||
* return {Object} - jQuery object
|
||||
*/
|
||||
function getNewTrackField(hash) {
|
||||
function getNewTrackField(hash, $container) {
|
||||
var newHash = hash || uuid();
|
||||
var $clone = el.$trackContainer
|
||||
var $parent = $container || el.$trackContainer;
|
||||
|
||||
var $clone = $parent
|
||||
.find(el.trackFieldClassName)
|
||||
.first()
|
||||
.clone()
|
||||
.hide()
|
||||
.fadeIn();
|
||||
.show();
|
||||
resetField($clone, newHash);
|
||||
|
||||
return $clone;
|
||||
@ -312,12 +318,22 @@ jQuery(function($) {
|
||||
});
|
||||
|
||||
el.$expandAllButton.on("click", function(e) {
|
||||
expandField(el.$trackContainer.find(el.trackFieldClassName));
|
||||
var $this = $(this);
|
||||
var $container = $this
|
||||
.closest(".ai-container")
|
||||
.find(".ai-fields-container");
|
||||
|
||||
expandField($container.find(el.trackFieldClassName));
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
el.$collapseAllButton.on("click", function(e) {
|
||||
collapseField(el.$trackContainer.find(el.trackFieldClassName));
|
||||
var $this = $(this);
|
||||
var $container = $this
|
||||
.closest(".ai-container")
|
||||
.find(".ai-fields-container");
|
||||
|
||||
collapseField($container.find(el.trackFieldClassName));
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
@ -335,14 +351,23 @@ jQuery(function($) {
|
||||
$fieldTitle.text($this.val());
|
||||
});
|
||||
|
||||
/* Add Track Top*/
|
||||
/* Add Field Top */
|
||||
el.$addTrackButtonTop.on("click", function() {
|
||||
el.$trackContainer.prepend(getNewTrackField());
|
||||
var $this = $(this);
|
||||
var $container = $this
|
||||
.closest(".ai-container")
|
||||
.find(".ai-fields-container");
|
||||
$container.prepend(getNewTrackField(undefined, $container));
|
||||
});
|
||||
|
||||
/* Add Track Bottom*/
|
||||
el.$addTrackButtonBottom.on("click", function () {
|
||||
el.$trackContainer.append(getNewTrackField());
|
||||
/* Add Field Bottom */
|
||||
el.$addTrackButtonBottom.on("click", function() {
|
||||
var $this = $(this);
|
||||
var $container = $this
|
||||
.closest(".ai-container")
|
||||
.find(".ai-fields-container");
|
||||
|
||||
$container.append(getNewTrackField(undefined, $container));
|
||||
});
|
||||
|
||||
/* Remove Track */
|
||||
@ -353,7 +378,11 @@ jQuery(function($) {
|
||||
|
||||
/* Remove All Tracks */
|
||||
el.$removeAllTracksButton.on("click", function() {
|
||||
var $trackFields = el.$trackContainer.find(el.trackFieldClassName);
|
||||
var $this = $(this);
|
||||
var $container = $this
|
||||
.closest(".ai-container")
|
||||
.find(".ai-fields-container");
|
||||
var $trackFields = $container.find(el.trackFieldClassName);
|
||||
|
||||
if (window.confirm(ai_scripts.messages.confirm_clear_tracks)) {
|
||||
if ($trackFields.length > 1) {
|
||||
@ -402,7 +431,9 @@ jQuery(function($) {
|
||||
onMediaSelect: function(media) {
|
||||
setTrackFieldCover($this.parents(el.trackFieldClassName), {
|
||||
id: media.id,
|
||||
url: media.sizes.thumbnail.url,
|
||||
url: media.sizes.thumbnail
|
||||
? media.sizes.thumbnail.url
|
||||
: media.sizes.full.url,
|
||||
alt: media.alt
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user