Skip to content

Commit 3c417c7

Browse files
author
Ghost1227
committed
Bring embedded sources up to date
1 parent 0f9f536 commit 3c417c7

File tree

102 files changed

+4633
-1059
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+4633
-1059
lines changed

assets/css/style.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ a{outline:0 !important}
4444
.redux-group-tab .form-table.no-border{border-top:none}
4545
.redux-group-tab .form-table tr{border-bottom:1px solid #e7e7e7}
4646
.redux-group-tab .form-table tr:last-child{border-bottom:none}
47-
.redux-group-tab .form-table tr th,.redux-group-tab .form-table tr td{p2adding:20px 20px 40px 20px;color:#333}
48-
.redux-group-tab .form-table tr th{font-weight:bold;font-size:1.1em;width:30%}
47+
.redux-group-tab .form-table tr th,.redux-group-tab .form-table tr td{color:#333}
48+
.redux-group-tab .form-table tr th{font-weight:bold;font-size:1.1em;width:30%;padding:20px 5px 20px 0}
4949
.redux-group-tab .form-table tr th span:first-child{font-weight:normal;display:block;color:#666}
5050
.redux-group-tab .form-table tr td .redux-th-warning{font-size:1em;color:#c09853;font-weight:normal;display:block}
5151
.redux-group-tab .form-table tr td .redux-field-warning{border-color:#c09853}
@@ -74,7 +74,7 @@ a{outline:0 !important}
7474
#redux-intro-text p{margin:0;font-family:"Lucida Grande",Sans-serif;color:#888}
7575
.mp6 #redux-container #info_bar{padding:6px 10px 6px 6px}
7676
.mp6 #redux-container #info_bar a{margin-top:2px}
77-
#redux-container #info_bar{background:#f3f3f3;border:solid #d8d8d8;border-bottom:1px solid #d8d8d8;border-width:0 1px 1px 1px;padding:6px 10px 6px 6px;text-align:right;-moz-box-shadow:inset 0 1px 0 #fcfcfc;-webkit-box-shadow:inset 0 1px 0 #fcfcfc;box-shadow:inset 0 1px 0 #fcfcfc}
77+
#redux-container #info_bar{background:#f3f3f3;border-color:#d8d8d8;border-style:solid;border-width:0 1px 1px 1px;padding:6px 10px 6px 6px;text-align:right;-moz-box-shadow:inset 0 1px 0 #fcfcfc;-webkit-box-shadow:inset 0 1px 0 #fcfcfc;box-shadow:inset 0 1px 0 #fcfcfc}
7878
#redux-container #expand_options{cursor:pointer;display:block;height:22px;width:21px;float:left;font-size:0;text-indent:-9999px;margin:0 0 0 5px;border:1px solid #bbb;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}
7979
#redux-container #expand_options{background:url(../img/toggle_tabs.png) no-repeat -2px -26px}
8080
#redux-container #expand_options.expanded{background:url(../img/toggle_tabs.png) no-repeat -2px -1px}
@@ -147,15 +147,19 @@ label.radio,label.multicheck{position:relative}
147147
#redux-main .input-append .add-on{border-top-right-radius:3px;border-bottom-right-radius:3px}
148148
#redux-main .input-prepend input{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:0}
149149
#redux-main .input-prepend .add-on{border-top-left-radius:3px;border-bottom-left-radius:3px}
150-
#redux-main td{padding:8px 0}
150+
#redux-main td{padding:20px 0}
151151
#redux-main .mini,#redux-main input[type=text].mini{width:50px;text-align:center}
152152
#redux-main .upload{width:80%}
153153
.wrap{margin-top:0}
154154
img{max-width:100%;max-height:100%}
155155
.showDefaults{display:block;font-weight:normal;font-size:.8em;color:#888}
156156
.select2-default{width:auto !important}
157-
@media screen and (max-width:1124px){#redux-sidebar{width:42px} #redux-main{margin-left:43px;width:auto;max-width:100%} .redux-group-tab-link-a{position:relative} .redux-group-tab-link-a i{position:inherit} .redux-group-tab-link-a span{display:none;position:absolute;top:0;left:44px;padding:12px;width:200px;background:#eee;border:1px solid #ccc;-webkit-box-shadow:2px 2px 8px rgba(0,0,0,0.2);-moz-box-shadow:2px 2px 8px rgba(0,0,0,0.2);box-shadow:2px 2px 8px rgba(0,0,0,0.2);border-width:1px 1px 1px 0;z-index:1} .redux-group-tab-link-a:hover>span{display:block} #redux-sidebar #redux-group-menu li a,#redux-sidebar #redux-group-menu li a:hover,#redux-sidebar #redux-group-menu li.active a,#redux-sidebar #redux-group-menu li.active a:hover{width:auto} table.form-table,.form-table>thead,.form-table>tbody,.form-table>tbody>tr>th,.form-table>tbody>tr>td,.form-table>tbody>tr{display:block !important;width:100% !important;padding:0 !important} .form-table>tbody>tr>th,.form-table>tbody>tr>td{padding:10px !important} .form-table>tbody>tr>th,.form-table>tbody>tr>td{padding:10px !important} .form-table>tbody>tr>th{min-width:35%}}@media screen and (max-width:783px){.mp6 #redux-container #info_bar{height:auto;padding-bottom:1px} .mp6 #redux-container #info_bar a{margin-top:5px}}.mp6 .icon-themes{display:none}
157+
@media screen and (max-width:1124px){#redux-sidebar{width:42px} #redux-main{margin-left:43px;width:auto;max-width:100%} .redux-group-tab-link-a{position:relative} .redux-group-tab-link-a i{position:inherit} .redux-group-tab-link-a span{display:none;position:absolute;top:0;left:44px;padding:12px;width:200px;background:#eee;border:1px solid #ccc;-webkit-box-shadow:2px 2px 8px rgba(0,0,0,0.2);-moz-box-shadow:2px 2px 8px rgba(0,0,0,0.2);box-shadow:2px 2px 8px rgba(0,0,0,0.2);border-width:1px 1px 1px 0;z-index:1} .redux-group-tab-link-a:hover>span{display:block} #redux-sidebar #redux-group-menu li a,#redux-sidebar #redux-group-menu li a:hover,#redux-sidebar #redux-group-menu li.active a,#redux-sidebar #redux-group-menu li.active a:hover{width:auto} table.form-table,.form-table>thead,.form-table>tbody,.form-table>tbody>tr>th,.form-table>tbody>tr>td,.form-table>tbody>tr{display:block;width:100% !important;padding:0 !important} .form-table>tbody>tr>th,.form-table>tbody>tr>td{padding:10px !important} .form-table>tbody>tr>th,.form-table>tbody>tr>td{padding:10px !important} .form-table>tbody>tr>th{width:35%}}@media screen and (max-width:783px){.mp6 #redux-container #info_bar{height:auto;padding-bottom:1px} .mp6 #redux-container #info_bar a{margin-top:5px}}.mp6 .icon-themes{display:none}
158158
#redux-object-browser{overflow:auto;word-wrap:break-word;max-height:600px;max-width:100%}
159159
#redux-main span.description{font-style:normal}
160160
#redux-main #redux-system-info textarea{min-height:730px}
161161
#redux-main .field-desc{clear:both}
162+
#redux-main .data-full li{width:100%}
163+
#redux-main .data-half li{width:50%;float:left}
164+
#redux-main .data-third li{width:33.3%;float:left}
165+
#redux-main .data-quarter li{width:25%;float:left}

assets/css/style.less

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,13 @@ border: 1px solid #e5e5e5;
351351
}
352352
.redux-group-tab .form-table tr th,
353353
.redux-group-tab .form-table tr td{
354-
p2adding:20px 20px 40px 20px;
355354
color:#333333;
356355
}
357356
.redux-group-tab .form-table tr th{
358357
font-weight:bold;
359358
font-size:1.1em;
360359
width:30%;
360+
padding:20px 5px 20px 0px;
361361
}
362362
.redux-group-tab .form-table tr th span:first-child{
363363
font-weight: normal;
@@ -527,19 +527,19 @@ border: 1px solid #e5e5e5;
527527
.mp6 #redux-container #info_bar a {
528528
margin-top: 2px;
529529
}
530+
530531
#redux-container #info_bar {
531-
background: #f3f3f3;
532-
border:solid #d8d8d8;
533-
border-bottom:1px solid #D8D8D8;
534-
border-width:0px 1px 1px 1px;
535-
padding: 6px 10px 6px 6px;
536-
text-align: right;
537-
-moz-box-shadow: inset 0 1px 0 #fcfcfc;
538-
-webkit-box-shadow: inset 0 1px 0 #fcfcfc;
539-
box-shadow: inset 0 1px 0 #fcfcfc;
532+
background: #f3f3f3;
533+
border-color: #d8d8d8;
534+
border-style: solid;
535+
border-width: 0px 1px 1px 1px;
536+
padding: 6px 10px 6px 6px;
537+
text-align: right;
538+
-moz-box-shadow: inset 0 1px 0 #fcfcfc;
539+
-webkit-box-shadow: inset 0 1px 0 #fcfcfc;
540+
box-shadow: inset 0 1px 0 #fcfcfc;
540541
}
541542

542-
543543
#redux-container #expand_options{
544544
cursor: pointer;
545545
display: block;
@@ -866,7 +866,7 @@ label.radio, label.multicheck {
866866
}
867867

868868
#redux-main td {
869-
padding: 8px 0;
869+
padding: 20px 0;
870870
}
871871

872872
#redux-main .mini, #redux-main input[type=text].mini {
@@ -940,7 +940,7 @@ img {
940940
}
941941

942942
table.form-table, .form-table > thead, .form-table > tbody, .form-table > tbody > tr > th, .form-table > tbody > tr > td, .form-table > tbody > tr {
943-
display: block !important;
943+
display: block;
944944
width: 100% !important;
945945
padding: 0px !important;
946946
}
@@ -951,7 +951,7 @@ img {
951951
padding: 10px !important;
952952
}
953953
.form-table > tbody > tr > th {
954-
min-width: 35%
954+
width: 35%
955955
}
956956
}
957957

@@ -984,3 +984,21 @@ img {
984984
#redux-main .field-desc {
985985
clear: both;
986986
}
987+
988+
#redux-main .data-full li{
989+
width: 100%;
990+
}
991+
992+
#redux-main .data-half li{
993+
width: 50%;
994+
float: left;
995+
}
996+
997+
#redux-main .data-third li{
998+
width: 33.3%;
999+
float: left;
1000+
}
1001+
#redux-main .data-quarter li{
1002+
width: 25%;
1003+
float: left;
1004+
}

assets/js/admin.js

Lines changed: 28 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*global jQuery, document, redux_opts, confirm, relid:true, console, jsonView */
22
(function($){
33
'use strict';
4-
54
$.redux = $.redux || {}
65

76
var the_body = $("body");
@@ -66,10 +65,13 @@
6665
$( ".fold" ).promise().done(function() {
6766
// Hide the fold elements on load
6867
$('.foldParent').each(function() {
68+
// in case of a radio input, take in consideration only the checked value
69+
if ( $(this).attr('type') =='radio' && $(this).attr('checked') !='checked' ) {
70+
return;
71+
}
6972
var id = $(this).parents('.redux-field:first').data('id');
7073
if ( redux_opts.folds[ id ] ) {
7174
if ( !redux_opts.folds[ id ].parent ) {
72-
7375
$.redux.verify_fold($(this));
7476
}
7577
}
@@ -78,7 +80,6 @@
7880

7981
the_body.on('change', '#redux-main select, #redux-main radio, #redux-main input[type=checkbox], #redux-main input[type=hidden]', function(e){
8082
$.redux.check_dependencies(e,this);
81-
8283
});
8384
}
8485

@@ -529,9 +530,9 @@ jQuery(document).ready(function($) {
529530
jQuery('#redux-export-link-value').toggle('fade');
530531
});
531532

532-
/**
533-
Show the sticky header bar and notes!
534-
**/
533+
/**
534+
BEGIN Sticky footer bar
535+
**/
535536
var stickyHeight = jQuery('#redux-footer').height();
536537
jQuery('#redux-sticky-padder').css({
537538
height: stickyHeight
@@ -569,44 +570,27 @@ jQuery(document).ready(function($) {
569570
jQuery('.redux-save').click(function() {
570571
window.onbeforeunload = null;
571572
});
572-
/*
573-
// Markdown Viewer for Theme Documentation
574-
if ($('#theme_docs_section_group').length !== 0) {
575-
var converter = new Showdown.converter();
576-
var text = jQuery('#theme_docs_section_group').html();
577-
text = converter.makeHtml(text);
578-
jQuery('#theme_docs_section_group').html(text);
579-
}
580-
*/
581-
// Hide the fold elements on load
582-
583-
/*jQuery('.fold').each(function() {
584-
jQuery(this).parents("tr:first").addClass('hiddenFold');
585-
jQuery(this).parents("tr:first").hide();
586-
});*/
587-
588-
589-
590-
/*jQuery( ".fold" ).promise().done(function() {
591-
// Hide the fold elements on load
592-
jQuery('.foldParent').each(function() {
593-
var id = jQuery(this).parents('.redux-field:first').data('id');
594-
if ( redux_opts.folds[ id ] ) {
595-
if ( !redux_opts.folds[ id ].parent ) {
596-
//verify_fold( jQuery( this ) );
597-
}
598-
}
599-
});
600-
});*/
573+
/**
574+
END Sticky footer bar
575+
**/
601576

577+
/**
578+
BEGIN dev_mode commands
579+
**/
602580
$('#consolePrintObject').on('click', function() {
603581
console.log(jQuery.parseJSON(jQuery("#redux-object-json").html()));
604582
});
605583

606584
if (typeof jsonView === 'function') {
607585
jsonView('#redux-object-json', '#redux-object-browser');
608586
}
587+
/**
588+
END dev_mode commands
589+
**/
609590

591+
/**
592+
BEGIN error and warning notices
593+
**/
610594
// Display errors on page load
611595
if (redux_opts.errors !== undefined) {
612596
jQuery("#redux-field-errors span").html(redux_opts.errors.total);
@@ -633,9 +617,15 @@ jQuery(document).ready(function($) {
633617
});
634618
});
635619
}
620+
/**
621+
END error and warning notices
622+
**/
636623

637624

638625

626+
/**
627+
BEGIN Control the tabs of the site to the left. Eventually (perhaps) across the top too.
628+
**/
639629
//jQuery( ".redux-section-tabs" ).tabs();
640630
jQuery('.redux-section-tabs div').hide();
641631
jQuery('.redux-section-tabs div:first').show();
@@ -649,6 +639,9 @@ jQuery(document).ready(function($) {
649639
jQuery(currentTab).fadeIn();
650640
return false;
651641
});
642+
/**
643+
END Control the tabs of the site to the left. Eventually (perhaps) across the top too.
644+
**/
652645

653646

654647
});

0 commit comments

Comments
 (0)