Skip to content

Commit

Permalink
Merge pull request #404 from ccnmtl/fix-panel-css-conflict
Browse files Browse the repository at this point in the history
Fix panel css conflict
  • Loading branch information
sdreher committed Nov 4, 2015
2 parents 13c6abb + 4561c14 commit e685a88
Show file tree
Hide file tree
Showing 23 changed files with 79 additions and 77 deletions.
84 changes: 42 additions & 42 deletions media/css/mediathread.css
Original file line number Diff line number Diff line change
Expand Up @@ -1018,31 +1018,31 @@ table#sliding-content-container tr td.panel-container {
border-left: none;
}

table#sliding-content-container tr td.panel-container div.panel {
table#sliding-content-container tr td.panel-container div.mediathread-panel {
margin: 0;
padding: 0px;
border: none;
min-height: 180px;
height: 100%;
}

table#sliding-content-container tr td.panel-container div.panel.composition {
table#sliding-content-container tr td.panel-container div.mediathread-panel.composition {
border: 1px solid #3A84BE;
background-color: #f0f5fa !important;
}

table#sliding-content-container tr td.panel-container div.panel.feedback,
table#sliding-content-container tr td.panel-container div.panel.discussion {
table#sliding-content-container tr td.panel-container div.mediathread-panel.feedback,
table#sliding-content-container tr td.panel-container div.mediathread-panel.discussion {
border: 1px solid black;
background-color: #ededed;
}

table#sliding-content-container tr td.panel-container div.panel.assignment {
table#sliding-content-container tr td.panel-container div.mediathread-panel.assignment {
border: 1px solid #175D35;
background-color: #DAE7E0 !important;
}

table#sliding-content-container tr td.panel-container div.panel form {
table#sliding-content-container tr td.panel-container div.mediathread-panel form {
height: 100%;
}

Expand Down Expand Up @@ -1281,29 +1281,29 @@ td.panel-container.asset-workspace {
overflow-x: hidden !important;
}

div.panel.asset-workspace-dialog table.panel-subcontainer {
div.mediathread-panel.asset-workspace-dialog table.panel-subcontainer {
margin: 0 0 0 10px;
width: 500px;
}

div.panel.asset-workspace-dialog td.panel-container.asset.fixed,
div.panel.asset-workspace-dialog td.panel-container.asset.fixed div.asset-view-container {
div.mediathread-panel.asset-workspace-dialog td.panel-container.asset.fixed,
div.mediathread-panel.asset-workspace-dialog td.panel-container.asset.fixed div.asset-view-container {
width: 825px;
min-width: 825px;
}

div.panel.asset-workspace-dialog div.asset-view-title {
div.mediathread-panel.asset-workspace-dialog div.asset-view-title {
margin: 10px 0 0 0;
}

div.panel.asset-workspace-dialog div.asset-view-published {
div.mediathread-panel.asset-workspace-dialog div.asset-view-published {
border: 0;
width: 500px !important;
height: 450px;
margin-left: 0;
}

div.panel.asset-workspace-dialog div.asset-view-tabs {
div.mediathread-panel.asset-workspace-dialog div.asset-view-tabs {
margin-left: 5px;
height: 450px;
width: 285px;
Expand All @@ -1328,9 +1328,9 @@ form#edit-global-annotation-form input[name="asset-title"],
margin-top: 10px !important;
}

div.panel.asset-workspace-dialog #asset-global-annotation,
div.panel.asset-workspace-dialog #annotation-current,
div.panel.asset-workspace-dialog #asset-details-annotations-current {
div.mediathread-panel.asset-workspace-dialog #asset-global-annotation,
div.mediathread-panel.asset-workspace-dialog #annotation-current,
div.mediathread-panel.asset-workspace-dialog #asset-details-annotations-current {
border: none;
}

Expand Down Expand Up @@ -1967,29 +1967,29 @@ div.homepage-column-info {


/* composition, assignment, discussion space */
.panel.assignment td.panel-container.collection .filter-widget,
.panel.composition td.panel-container.collection .filter-widget,
.panel.discussion td.panel-container.collection .filter-widget {
.mediathread-panel.assignment td.panel-container.collection .filter-widget,
.mediathread-panel.composition td.panel-container.collection .filter-widget,
.mediathread-panel.discussion td.panel-container.collection .filter-widget {
width: 370px;
padding: 5px;
}

.panel.discussion td.panel-container.collection .filter-widget .collection-col-3,
.panel.discussion td.panel-container.collection .filter-widget .collection-col-2,
.panel.composition td.panel-container.collection .filter-widget .collection-col-3,
.panel.composition td.panel-container.collection .filter-widget .collection-col-2,
.panel.assignment td.panel-container.collection .filter-widget .collection-col-3,
.panel.assignment td.panel-container.collection .filter-widget .collection-col-2 {
.mediathread-panel.discussion td.panel-container.collection .filter-widget .collection-col-3,
.mediathread-panel.discussion td.panel-container.collection .filter-widget .collection-col-2,
.mediathread-panel.composition td.panel-container.collection .filter-widget .collection-col-3,
.mediathread-panel.composition td.panel-container.collection .filter-widget .collection-col-2,
.mediathread-panel.assignment td.panel-container.collection .filter-widget .collection-col-3,
.mediathread-panel.assignment td.panel-container.collection .filter-widget .collection-col-2 {
min-width: 370px;
}

/* asset workspace */
.panel.asset-workspace td.panel-container.collection.minimized .filter-widget {
.mediathread-panel.asset-workspace td.panel-container.collection.minimized .filter-widget {
width: 245px !important;
}

.panel.asset-workspace td.panel-container.collection.minimized .filter-widget .collection-col-3,
.panel.asset-workspace td.panel-container.collection.minimized .filter-widget .collection-col-2 {
.mediathread-panel.asset-workspace td.panel-container.collection.minimized .filter-widget .collection-col-3,
.mediathread-panel.asset-workspace td.panel-container.collection.minimized .filter-widget .collection-col-2 {
min-width: 245px !important;
}

Expand Down Expand Up @@ -2270,8 +2270,8 @@ ul li {
margin: 0 0 5px 0;
}

.panel {
text-align:center;
.mediathread-panel {
text-align: center;
box-shadow: none;
-webkit-box-shadow: none;
}
Expand Down Expand Up @@ -3026,7 +3026,7 @@ div.materials.column-contents {
padding-top: 0px;
}

div.panel.asset-workspace div.materials h4 a {
div.mediathread-panel.asset-workspace div.materials h4 a {
margin-left: 0px;
}

Expand Down Expand Up @@ -3853,32 +3853,32 @@ div.feature-help div.feature-help-instructions img {

/* Full Collection View styles and overrides */

div.panel.asset-workspace table.panel-subcontainer {
div.mediathread-panel.asset-workspace table.panel-subcontainer {
margin: 0;
width: 100%;
}

div.panel.asset-workspace td.panel-container.collection.minimized div.media_gallery {
div.mediathread-panel.asset-workspace td.panel-container.collection.minimized div.media_gallery {
width: 250px;
}

div.panel.asset-workspace td.panel-container.collection {
div.mediathread-panel.asset-workspace td.panel-container.collection {
border: none;
background-color: white;
}

div.panel.asset-workspace td.panel-container.collection.maximized {
div.mediathread-panel.asset-workspace td.panel-container.collection.maximized {
background-color: #ededed;
padding: 5px !important;
}

div.panel.asset-workspace td.panel-container.collection.minimized {
div.mediathread-panel.asset-workspace td.panel-container.collection.minimized {
width: 250px;
background-color: #ededed;
padding: 5px 0 0 5px !important;
}

div.panel.asset-workspace td.panel-container.collection.minimized div.collection-assets {
div.mediathread-panel.asset-workspace td.panel-container.collection.minimized div.collection-assets {
float: left;
width: 250px;
}
Expand All @@ -3888,28 +3888,28 @@ div.panel.asset-workspace td.panel-container.collection.maximized div.collection
overflow: auto;
}

div.panel.asset-workspace td.panel-container.asset-details.fixed {
div.mediathread-panel.asset-workspace td.panel-container.asset-details.fixed {
width: 350px;
padding: 10px;
}

div.panel.asset-workspace td.panel-container.collection div.collection-date-filter,
div.panel.asset-workspace td.panel-container.collection div.collection-filter,
div.panel.asset-workspace td.panel-container.collection div.collection-chooser {
div.mediathread-panel.asset-workspace td.panel-container.collection div.collection-date-filter,
div.mediathread-panel.asset-workspace td.panel-container.collection div.collection-filter,
div.mediathread-panel.asset-workspace td.panel-container.collection div.collection-chooser {
width: 100%;
}

/* Project View overrides */

/** Project Dialogs **/

div.panel.composition form div.ui-dialog div.ui-dialog-titlebar {
div.mediathread-panel.composition form div.ui-dialog div.ui-dialog-titlebar {
background-image: none;
background-color: #3A84BF;
color: white;
}

div.panel.assignment form div.ui-dialog div.ui-dialog-titlebar {
div.mediathread-panel.assignment form div.ui-dialog div.ui-dialog-titlebar {
background-image: none;
background-color: #175D35;
color: white;
Expand Down
8 changes: 5 additions & 3 deletions media/js/app/assetmgr/assetpanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,15 @@ AssetPanelHandler.prototype.resize = function() {
jQuery('td.collection-view-header').hide();
}

q = 'div.panel.asset-workspace div.pantab.collection:visible';
q = 'div.mediathread-panel.asset-workspace div.pantab.collection:visible';
var pantab = jQuery(self.el).find(q);
if (pantab.length > 0) {
q = 'div.panel.asset-workspace td.panhandle-stripe.collection';
q = 'div.mediathread-panel.asset-workspace ' +
'td.panhandle-stripe.collection';
jQuery(q).show();
} else {
q = 'div.panel.asset-workspace td.panhandle-stripe.collection';
q = 'div.mediathread-panel.asset-workspace ' +
'td.panhandle-stripe.collection';
jQuery(q).hide();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</fieldset>
</div>

<div id="appearance_panel" class="panel">
<div id="appearance_panel" class="mediathread-panel">
<fieldset>
<legend>{#advimage_dlg.tab_appearance}</legend>

Expand Down Expand Up @@ -141,7 +141,7 @@
</fieldset>
</div>

<div id="advanced_panel" class="panel">
<div id="advanced_panel" class="mediathread-panel">
<fieldset>
<legend>{#advimage_dlg.swap_image}</legend>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
</fieldset>
</div>

<div id="popup_panel" class="panel">
<div id="popup_panel" class="mediathread-panel">
<fieldset>
<legend>{#advlink_dlg.popup_props}</legend>

Expand Down Expand Up @@ -140,7 +140,7 @@
</fieldset>
</div>

<div id="advanced_panel" class="panel">
<div id="advanced_panel" class="mediathread-panel">
<fieldset>
<legend>{#advlink_dlg.advanced_props}</legend>

Expand Down Expand Up @@ -260,7 +260,7 @@
</fieldset>
</div>

<div id="events_panel" class="panel">
<div id="events_panel" class="mediathread-panel">
<fieldset>
<legend>{#advlink_dlg.event_props}</legend>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
</fieldset>
</div>

<div id="appearance_panel" class="panel">
<div id="appearance_panel" class="mediathread-panel">
<fieldset>
<legend>{#fullpage_dlg.appearance_textprops}</legend>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
</fieldset>
</div>

<div id="advanced_panel" class="panel">
<div id="advanced_panel" class="mediathread-panel">
<fieldset>
<legend>{#media_dlg.advanced}</legend>

Expand Down Expand Up @@ -905,7 +905,7 @@
</fieldset>
</div>

<div id="source_panel" class="panel">
<div id="source_panel" class="mediathread-panel">
<fieldset>
<legend>{#media_dlg.source}</legend>
<textarea id="source" style="width: 99%; height: 390px"></textarea>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</div>

<div class="panel_wrapper">
<div id="search_panel" class="panel">
<div id="search_panel" class="mediathread-panel">
<table role="presentation" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><label for="search_panel_searchstring">{#searchreplace_dlg.findwhat}</label></td>
Expand Down Expand Up @@ -51,7 +51,7 @@
</table>
</div>

<div id="replace_panel" class="panel">
<div id="replace_panel" class="mediathread-panel">
<table role="presentation" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><label for="replace_panel_searchstring">{#searchreplace_dlg.findwhat}</label></td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
</fieldset>
</div>

<div id="background_panel" class="panel">
<div id="background_panel" class="mediathread-panel">
<fieldset>
<legend>{#style_dlg.background}</legend>
<table role="presentation" border="0">
Expand Down Expand Up @@ -200,7 +200,7 @@
</fieldset>
</div>

<div id="block_panel" class="panel">
<div id="block_panel" class="mediathread-panel">
<fieldset>
<legend>{#style_dlg.block}</legend>
<table role="presentation" border="0">
Expand Down Expand Up @@ -276,7 +276,7 @@
</fieldset>
</div>

<div id="box_panel" class="panel">
<div id="box_panel" class="mediathread-panel">
<fieldset>
<legend>{#style_dlg.box}</legend>
<table role="presentation" border="0">
Expand Down Expand Up @@ -466,7 +466,7 @@
<br style="clear: both" />
</div>

<div id="border_panel" class="panel">
<div id="border_panel" class="mediathread-panel">
<fieldset>
<legend>{#style_dlg.border}</legend>
<table role="presentation" border="0" cellspacing="0" cellpadding="0" width="100%">
Expand Down Expand Up @@ -605,7 +605,7 @@
</fieldset>
</div>

<div id="list_panel" class="panel">
<div id="list_panel" class="mediathread-panel">
<fieldset>
<legend>{#style_dlg.list}</legend>
<table role="presentation" border="0">
Expand All @@ -627,7 +627,7 @@
</fieldset>
</div>

<div id="positioning_panel" class="panel">
<div id="positioning_panel" class="mediathread-panel">
<fieldset>
<legend>{#style_dlg.position}</legend>
<table role="presentation" border="0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
</fieldset>
</div>

<div id="advanced_panel" class="panel">
<div id="advanced_panel" class="mediathread-panel">
<fieldset>
<legend>{#table_dlg.advanced_props}</legend>

Expand Down
Loading

0 comments on commit e685a88

Please sign in to comment.