Big style update for the new show builder screen

* Restyled the tables
* Blue currently playing track
* Labels for library view buttons
This commit is contained in:
Albert Santoni 2015-08-07 19:08:17 -04:00
parent 133db1c6a6
commit cdc9f88c1c
8 changed files with 1661 additions and 60 deletions

View file

@ -13,6 +13,8 @@ class ShowBuilderController extends Zend_Controller_Action {
$this->view->headScript()->appendScript("localStorage.setItem( 'user-type', '$userType' );");
$this->view->headScript()->appendScript(Application_Common_GoogleAnalytics::generateGoogleTagManagerDataLayerJavaScript());
$this->view->headLink()->appendStylesheet($baseUrl . 'css/redmond/_jquery-ui-1.8.8.custom.css?' . $CC_CONFIG['airtime_version']);
$this->view->headScript()->appendFile($baseUrl.'js/contextmenu/jquery.contextMenu.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
$this->view->headScript()->appendFile($baseUrl.'js/datatables/js/jquery.dataTables.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.pluginAPI.js?'.$CC_CONFIG['airtime_version'],'text/javascript');

View file

@ -211,6 +211,16 @@ div.ColVis_collectionBackground {
color: #efefef;
}
#library_content .icon-white {
margin-right: 4px;
}
div.btn > span
{
color: red;
}
.fg-toolbar.ui-toolbar.ui-widget-header.ui-corner-bl.ui-corner-br.ui-helper-clearfix {
position: absolute;
right: 0;
@ -559,7 +569,7 @@ textarea {
width: 130px;
flex: 1 auto;
padding: 4px;
padding: 0px;
/*margin-right: 10px;*/
/*text-align: center;*/
@ -572,9 +582,10 @@ textarea {
box-shadow: 0 2px 5px rgba(0,0,0,.35);
z-index: 100;
text-align: left;
}
#media_type_nav div {
#media_type_nav .btn-group {
padding: 4px;
}
@ -589,28 +600,31 @@ textarea {
font-family: Roboto, "Open Sans", sans-serif;
font-size: 16px;
font-weight: 400;
margin: 10px 10px 0 0;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
/*margin: 20px 20px 0 5px;*/
padding: 10px 10px 10px 10px;
-webkit-transition: color 0.2s linear;
-moz-transition: color 0.2s linear;
-o-transition: color 0.2s linear;
transition: color 0.2s linear;
-webkit-transition: color 0.1s linear;
-moz-transition: color 0.1s linear;
-o-transition: color 0.1s linear;
transition: color 0.1s linear;
}
.media_type_selector.selected {
color: #fff;
-webkit-transition: color 0.2s linear;
-moz-transition: color 0.2s linear;
-o-transition: color 0.2s linear;
transition: color 0.2s linear;
background-color: #444;
-webkit-transition: color 0.1s linear;
-moz-transition: color 0.1s linear;
-o-transition: color 0.1s linear;
transition: color 0.1s linear;
}
.media_type_selector:hover {
color: #fff;
-webkit-transition: color 0.2s linear;
-moz-transition: color 0.2s linear;
-o-transition: color 0.2s linear;
transition: color 0.2s linear;
-webkit-transition: color 0.1s linear;
-moz-transition: color 0.1s linear;
-o-transition: color 0.1s linear;
transition: color 0.1s linear;
}
/* DataTables */
@ -657,8 +671,9 @@ textarea {
}
/* ~~~~~~~~~~~~~~~~ */
.datatable tr, .datatable td {
border: none !important;
border: none;
}
/* This is so dragged items show up above the layout */
@ -688,3 +703,56 @@ textarea {
.dropzone .dz-message {
margin: 0;
}
/* jQuery UI overrides */
.ui-widget {
font-family: Helvetica, Arial, sans-serif;
font-size: 1.2em;
}
.ui-widget .ui-widget {
font-size: 1em;
}
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
}
.ui-widget-content {
border: 1px solid #5b5b5b;
background: #aaaaaa url(images/ui-bg_default_aaaaaa.png) repeat-x 0 0;
color: #1c1c1c;
}
.ui-widget-content a {
color: #444444;
}
.ui-widget-header {
border: 1px solid #5b5b5b;
background: #4a4a4a url(images/ui-bg_highlight.png) 0 0 repeat-x;
color: #CCC;
font-weight: bold;
}
.ui-widget-header a {
color: #444444;
}
/* Bootstrap.css overrides */
.btn {
border-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.55)
}
/* showbuilder.css overrides */
.sb-now-playing, tr.sb-now-playing > td {
background-color: #1adeff;/* #1aff60; */ /* #5b1aff; */
color: #000;
}
tr.ui-state-error > td {
color: #d00000;
}
tr.ui-state-highlight > td {
color: #65a539;
}
#show_builder_table tr.sb-footer {
border-top: 10px solid #000;
}

File diff suppressed because it is too large Load diff

View file

@ -116,7 +116,7 @@
}
.ui-widget-header {
border: 1px solid #5b5b5b;
background: #9a9a9a url(images/ui-bg_highlight.png) 0 0 repeat-x;
background: #4a4a4a url(images/ui-bg_highlight.png) 0 0 repeat-x;
color: #444444;
font-weight: bold;
}
@ -1127,7 +1127,7 @@ button.ui-button.::-moz-focus-inner {
padding: 0;
}
/* reset extra padding in Firefox */
/* reset extra padding in Firefox */
/*
* jQuery UI Dialog 1.8.6
*

View file

@ -201,15 +201,17 @@ table.dataTable td.sb-image {
table.datatable tr.sb-header.odd td, table.datatable tr.sb-header.even td,
table.datatable tr.sb-header.odd:hover td, table.datatable tr.sb-header.even:hover td{
background: #555;
/*
background: -moz-linear-gradient(top, #a4a4a4 0, #bcbcbc 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #a4a4a4), color-stop(100%, #bcbcbc));
background: linear-gradient(top, #a4a4a4 0, #bcbcbc 100%);
*/
border-top-color:#6b6a6a !important;
}
.sb-content tr:last-child td {
border-bottom-width: 1px !important;
border-bottom-color:#6b6a6a !important;
.datatable .ui-state-error {
color: #d00000 !important;
}
.sb-header div.ui-state-default {

View file

@ -859,25 +859,24 @@ dl.inline-list dd {
}
.datatable tr td, .datatable tr th {
border-color: #b1b1b1;
border-style: solid;
border-width: 1px 0 0 1px;
font-size: 13px;
padding: 5px 5px;
color: #CCC;
}
.odd {
background-color: #d8d8d8;
background-color: #282828;
}
.even {
background-color:#c7c7c7;
background-color: #2f2f2f;
}
.datatable tr.even.selected td {
.datatable tr .selected td {
background-color: #abcfe2;
}
/*
.datatable tr.odd.selected td {
background-color: #c5deeb;
}
}*/
/*.datatable tr.odd:hover td, .datatable tr.even:hover td {*/
/*background-color: #95d5f7 !important;*/
/*}*/
@ -971,7 +970,6 @@ dl.inline-list dd {
float: left;
padding: 10px;
font-size:12px;
color:#555555;
font-weight:normal;
}

View file

@ -116,16 +116,19 @@ var AIRTIME = (function(AIRTIME) {
mod.createToolbarButtons = function () {
$menu = $("<div class='btn-toolbar' />");
$menu
.append("<div class='btn-group'>" +
"<button class='btn btn-small dropdown-toggle' data-toggle='dropdown'>" +
$.i18n._("Select") + " <span class='caret'></span>" +
.append("<div class='btn-group' title=" + $.i18n._('New') + ">" +
"<button class='btn btn-small' id='sb-new'>" +
"<i class='icon-white icon-plus'></i>" +
"<span>" + $.i18n._('New') + "</span>" +
"</button>" +
"<ul class='dropdown-menu'>" +
"<li id='sb-select-page'><a href='#'>" + $.i18n._("Select this page") + "</a></li>" +
"<li id='sb-dselect-page'><a href='#'>" + $.i18n._("Deselect this page") + "</a></li>" +
"<li id='sb-dselect-all'><a href='#'>" + $.i18n._("Deselect all") + "</a></li>" +
"</ul>" +
"</div>")
.append("<div class='btn-group' title=" + $.i18n._('Edit') + ">" +
"<button class='btn btn-small' id='sb-edit'>" +
"<i class='icon-white icon-pencil'></i>" +
"<span>" + $.i18n._('Edit') + "</span>" +
"</button>" +
"</div>")
.append("<div class='btn-group'>" +
"<button class='btn btn-small' id='library-plus'>" +
"<i class='icon-white icon-plus'></i>" +
@ -135,17 +138,18 @@ var AIRTIME = (function(AIRTIME) {
.append("<div class='btn-group' title=" + $.i18n._('Delete') + ">" +
"<button class='btn btn-small' id='sb-trash'>" +
"<i class='icon-white icon-trash'></i>" +
"<span>" + $.i18n._('Delete') + "</span>" +
"</button>" +
"</div>")
.append("<div class='btn-group' title=" + $.i18n._('Edit') + ">" +
"<button class='btn btn-small' id='sb-edit'>" +
"<i class='icon-white icon-pencil'></i>" +
"</button>" +
"</div>")
.append("<div class='btn-group' title=" + $.i18n._('New') + ">" +
"<button class='btn btn-small' id='sb-new'>" +
"<i class='icon-white icon-plus'></i>" +
.append("<div class='btn-group'>" +
"<button class='btn btn-small dropdown-toggle' data-toggle='dropdown'>" +
$.i18n._("Select") + " <span class='caret'></span>" +
"</button>" +
"<ul class='dropdown-menu'>" +
"<li id='sb-select-page'><a href='#'>" + $.i18n._("Select this page") + "</a></li>" +
"<li id='sb-dselect-page'><a href='#'>" + $.i18n._("Deselect this page") + "</a></li>" +
"<li id='sb-dselect-all'><a href='#'>" + $.i18n._("Deselect all") + "</a></li>" +
"</ul>" +
"</div>");
};

View file

@ -37,12 +37,12 @@ var AIRTIME = (function(AIRTIME) {
} else {
var objType = $('.active-tab .obj_type').val();
if (objType === 'block') {
btnText = ' ' + $.i18n._('Add to current smart block');
btnText = $.i18n._('Add to current smart block');
} else {
btnText = ' ' + $.i18n._('Add to current playlist');
btnText = $.i18n._('Add to current playlist');
}
}
AIRTIME.library.changeAddButtonText($('.btn-group #library-plus #lib-plus-text'), ' '+ btnText);
AIRTIME.library.changeAddButtonText($('.btn-group #library-plus #lib-plus-text'), btnText);
};
mod.fnRowCallback = function(nRow, aData, iDisplayIndex, iDisplayIndexFull) {