Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed the node view theming

  • Loading branch information...
commit 97d552ddb8b1889acd96fd258d3c1b68d355897d 1 parent b7a18e8
@drclaw drclaw authored
Showing with 96 additions and 91 deletions.
  1. +95 −90 css/catalogue.css
  2. +1 −1  template.php
View
185 css/catalogue.css
@@ -1024,8 +1024,8 @@ div.deaccession_workflow_timeline {
width: 200px;
visibility: visible;
line-height: 20px;
- float: left;
text-transform: none;
+ vertical-align: top;
}
.page-node .field-label,
@@ -1037,8 +1037,8 @@ div.deaccession_workflow_timeline {
width: 200px;
visibility: visible;
line-height: 20px;
- float: left;
text-transform: none;
+ vertical-align: top;
}
.node .field-items .field-item {
@@ -1068,26 +1068,26 @@ div.deaccession_workflow_timeline {
-------------------------------------------------*/
-#node-form input,
-#node-form select {
+.page-node #content input,
+.page-node #content select {
margin-left:20px;
}
-#node-form .field-item label {
+.page-node #content .field-item label {
display: none;
}
/* Must come before next selector */
-#node-form .form-item {
+.page-node #content .form-item {
border: 0px;
}
-#node-form .field-type-text,
-#node-form .field-type-nodereference,
-#node-form .field-type-date,
-#node-form .field-type-content-taxonomy,
-#node-form .container-inline-date,
-#node-form .form-item {
+.page-node #content .field-type-text,
+.page-node #content .field-type-nodereference,
+.page-node #content .field-type-date,
+.page-node #content .field-type-content-taxonomy,
+.page-node #content .container-inline-date,
+.page-node #content .form-item {
border-bottom: 1px solid #F0F0F0;
padding: 10px 0 10px 10px;
margin: 0;
@@ -1095,137 +1095,143 @@ div.deaccession_workflow_timeline {
width: 99.3%;
-moz-box-shadow: none;
-webkit-box-shadow: none;
+ display: block;
}
-#node-form .form-checkboxes,
-#node-form .form-radios {
+.page-node #content .form-checkboxes,
+.page-node #content .form-radios {
display: inline-block;
}
-#node-form .form-checkboxes,
-#node-form .form-checkboxes .form-item,
-#node-form .form-radios,
-#node-form .form-radios .form-item {
+.page-node #content .form-checkboxes,
+.page-node #content .form-checkboxes .form-item,
+.page-node #content .form-radios,
+.page-node #content .form-radios .form-item {
padding: 0;
border:none;
}
-#node-form .form-item .form-text {
+.page-node #content .form-item .form-text {
width: 200px;
}
-#node-form fieldset,
+.page-node #content fieldset,
fieldset {
margin-bottom: 10px;
margin-top:20px;
}
-#node-form .fieldset.titled .fieldset-content {
+.page-node #content .fieldset.titled .fieldset-content {
padding-top: 0;
}
-#node-form .field:hover,
-#node-form .form-item:hover {
+.page-node #content .field:hover,
+.page-node #content .form-item:hover {
background-color: #fffff6;
}
-#node-form .content-add-more {
+.page-node #content .content-add-more {
margin:0 0 20px 0;
}
-#node-form .form-item label.option {
+.page-node #content .form-item label.option {
background:none;
color: #999999;
text-shadow: 0 1px 0 #EEEEEE;
}
-#node-form label.option {
+.page-node #content label.option {
float:none;
}
-#node-form div.warning {
+.page-node #content div.warning {
padding: 5px;
margin-top: 10px;
margin-bottom:10px;
}
-#node-form .buttons {
+.page-node #content .buttons {
margin-top: 25px;
clear:left;
}
-#node-form td.content-multiple-drag {
+.content-multiple-wrapper {
+ display:inline-block;
+ margin-left:4px;
+}
+
+.page-node #content td.content-multiple-drag {
padding:0;
width:15px;
vertical-align:middle;
text-align:center;
}
-#node-form table .form-item {
+.page-node #content table .form-item {
margin-right:0;
}
-#node-form .content-multiple-weight-header,
-#node-form .content-multiple-remove-header,
-#node-form .content-multiple-remove-cell,
-#node-form .content-multiple-table td.delta-order {
+.page-node #content .content-multiple-weight-header,
+.page-node #content .content-multiple-remove-header,
+.page-node #content .content-multiple-remove-cell,
+.page-node #content .content-multiple-table td.delta-order {
vertical-align:middle;
text-align:center;
width:30px;
}
-#node-form .content-multiple-remove-cell,
-#node-form .content-multiple-remove-cell .form-item {
+.page-node #content .content-multiple-remove-cell,
+.page-node #content .content-multiple-remove-cell .form-item {
margin-right:0;
}
-#node-form .content-multiple-table label {
+.page-node #content .content-multiple-table label {
color:#999;
}
-#node-form .content-multiple-table td:not(.content-multiple-remove-cell) .form-item {
+.page-node #content .content-multiple-table td:not(.content-multiple-remove-cell) .form-item {
min-width: 290px;
}
-#node-form .content-multiple-table td.content-multiple-remove-cell .form-item input,
-#node-form .content-multiple-table td.content-multiple-remove-cell .form-item a.content-multiple-remove-button {
+.page-node #content .content-multiple-table td.content-multiple-remove-cell .form-item input,
+.page-node #content .content-multiple-table td.content-multiple-remove-cell .form-item a.content-multiple-remove-button {
float:left;
}
-#node-form .resizable-textarea {
+.page-node #content .resizable-textarea {
width:100% !important;
}
-#node-form .date-clear-block.form-item {
+.page-node #content .date-clear-block.form-item {
clear:none;
}
-#node-form .container-inline-date.form-item {
+.page-node #content .container-inline-date.form-item {
clear:none;
}
-#node-form .noderelationships-nodereference-buttons-wrapper {
+.page-node #content .noderelationships-nodereference-buttons-wrapper {
top: 5px;
position: relative;
}
-#node-form fieldset.collapsed {
+.page-node #content fieldset.collapsed {
clear:left;
}
-#node-form fieldset.collapsible {
+.page-node #content fieldset.collapsible {
margin: 10px 0 5px 20px;
padding-bottom: 0;
}
-#node-form fieldset.collapsible .fieldset-title,
-#node-form fieldset.collapsible legend {
+.page-node #content fieldset.collapsible .fieldset-title,
+.page-node #content fieldset.collapsible legend {
border-bottom: 0;
margin-bottom: 0;
padding-bottom: 0;
}
-#node-form fieldset.collapsible .fieldset-content {
+.page-node #content fieldset.collapsible .fieldset-content {
border-right: 1px solid;
border-bottom: 1px solid;
border-left: 1px solid;
@@ -1233,113 +1239,99 @@ fieldset {
padding: 10px;
}
-#node-form div.warning {
+.page-node #content div.warning {
margin-top:0;
}
-#node-form .resizable-textarea span {
+.page-node #content .resizable-textarea span {
display:block;
padding-left:220px;
}
-#node-form .content-multiple-table .resizable-textarea span {
+.page-node #content .content-multiple-table .resizable-textarea span {
padding-left:0px;
}
-#node-form .content-multiple-table input,
-#node-form .content-multiple-table select,
-#node-form .hierarchical-select-wrapper.hierarchical-select-level-labels-style-none select {
+.page-node #content .content-multiple-table input,
+.page-node #content .content-multiple-table select,
+.page-node #content .hierarchical-select-wrapper.hierarchical-select-level-labels-style-none select {
margin-left:0px;
}
-.hierarchical-select-wrapper-wrapper {
- display:inline-block;
- width:996px;
-}
-
-.hierarchical-select-wrapper-wrapper .selects {
- width:100%;
-}
-
-.hierarchical-select-wrapper .hierarchical-select .selects .grippie {
- margin-right:0;
-}
-
-#node-form .form-item label {
+.page-node #content .form-item label {
padding-top: 3px;
}
-#node-form .fieldset-content {
+.page-node #content .fieldset-content {
border: none;
}
-#node-form .form-item table {
+.page-node #content .form-item table {
float: left;
width: 258px;
margin-right: 10px;
background-color: transparent;
}
-#node-form .form-item table td {
+.page-node #content .form-item table td {
border: none;
padding-bottom: 5px;
}
-#node-form .form-item table.content-multiple-drag {
+.page-node #content .form-item table.content-multiple-drag {
vertical-align: baseline;
padding-top: 5px;
padding-bottom: 0;
}
-#node-form .form-item table.content-multiple-table td .form-item,
-#node-form .form-item table.content-multiple-table td,
-#node-form .form-item .date-date .form-item,
-#node-form .date-clear-block .form-item {
+.page-node #content .form-item table.content-multiple-table td .form-item,
+.page-node #content .form-item table.content-multiple-table td,
+.page-node #content .form-item .date-date .form-item,
+.page-node #content .date-clear-block .form-item {
padding: 0;
}
-#node-form .form-item table.content-multiple-table td .form-item {
+.page-node #content .form-item table.content-multiple-table td .form-item {
margin-bottom: 5px;
}
-#node-form .form-item table .tabledrag-handle {
+.page-node #content .form-item table .tabledrag-handle {
margin: 0;
}
-#node-form .content-add-more {
+.page-node #content .content-add-more {
margin: 0;
clear: left;
- margin-left: 200px;
padding-top: 5px;
}
-#node-form .content-multiple-removed-warning {
+.page-node #content .content-multiple-removed-warning {
z-index: 100;
}
-#node-form textarea {
+.page-node #content textarea {
width: 350px;
height: 160px;
margin-right: 21px;
}
-#node-form .hierarchical-select-wrapper {
+.page-node #content .hierarchical-select-wrapper {
margin-left:20px;
}
-#node-form .hierarchical-select-wrapper,
-#node-form .date-date {
- float: left;
+.page-node #content .hierarchical-select-wrapper,
+.page-node #content .date-date {
+ display: inline-block;
}
-#node-form .form-item .form-item {
+.page-node #content .form-item .form-item {
width: auto;
clear: none;
border:none;
}
-#node-form .date-clear-block .form-item,
-#node-form .content-multiple-table .form-item {
+.page-node #content .date-clear-block .form-item,
+.page-node #content .content-multiple-table .form-item {
border:none;
}
@@ -1352,6 +1344,19 @@ fieldset {
display: inline-block;
}
+.hierarchical-select-wrapper-wrapper {
+ display:inline-block;
+ width:996px;
+}
+
+.hierarchical-select-wrapper-wrapper .selects {
+ width:100%;
+}
+
+.hierarchical-select-wrapper .hierarchical-select .selects .grippie {
+ margin-right:0;
+}
+
/*-------------------------------------------------*/
/* */
View
2  template.php
@@ -669,7 +669,7 @@ function catalogue_content_multiple_values($element) {
$rows[] = array('data' => $cells, 'class' => $row_class);
}
- $output .= '<div>';
+ $output .= '<div class="content-multiple-wrapper">';
$output .= theme('table', $header, $rows, array('id' => $table_id, 'class' => 'content-multiple-table'));
$output .= $element['#description'] ? '<div class="description">'. $element['#description'] .'</div>' : '';
$output .= drupal_render($element[$element['#field_name'] .'_add_more']) . '</div></div>';
Please sign in to comment.
Something went wrong with that request. Please try again.