[Frontend] Inspector styling, in progress

open #90
This commit is contained in:
Charles Hacskaylo
2015-10-23 12:35:55 -07:00
parent 1d3870d07f
commit a7ea4c3c6e
8 changed files with 210 additions and 6473 deletions

View File

@@ -19,17 +19,55 @@
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/* Classes to be used for lists of properties and values */
/* Styles for the Inspector pane */
.properties {
.s-row {
border-top: 1px solid $colorInteriorBorder;
font-size: 0.8em;
&:first-child {
//.pane.right.t-inspect { @include test(green, 0.3); } // TEMP!
.t-inspector,
.t-inspector table tr td {
font-size: 0.7rem;
}
.t-inspector {
ul li,
em {
display: block;
position: relative;
}
ul li {
line-height: 130%;
margin-bottom: $interiorMarginLg * 2;
}
em {
@include border-radius($basicCr);
background-color: $colorInspectorSectionHeaderBg;
color: $colorInspectorSectionHeaderFg;
margin-bottom: $interiorMargin;
padding: $formTBPad $formLRPad;
text-transform: uppercase;
}
table tr {
td {
border: none;
border-top: 1px solid $colorInteriorBorder !important;
padding: 2px 0;
vertical-align: top;
&.label {
color: $colorInspectorPropName !important;
padding-right: $interiorMargin !important;
white-space: nowrap;
}
&.value {
//word-wrap: break-word; // Doesn't work in <td>?
word-break: break-all;
}
}
.s-value {
color: #fff;
&:first-child td {
border-top: none !important;
}
}
}

View File

@@ -30,7 +30,7 @@
@import "helpers/splitter";
@import "helpers/wait-spinner";
@import "messages";
@import "properties";
@import "inspector";
/********************************* CONTROLS */
@import "controls/breadcrumb";

View File

@@ -427,10 +427,6 @@
}
}
.pane.right.t-inspect {
@include test(orange, 0.3); // TEMP!
}
@include desktop {
.pane:not(.resizing) {
@include trans-prop-nice-resize-w(250ms);

View File

@@ -21,14 +21,17 @@
-->
<span ng-controller="ObjectInspectorController as controller">
<ul>
<li ng-repeat="data in metadata">
<em>{{ data.name }}</em>
{{ data.value }}
<li>
<em>Properties</em>
<table>
<tr ng-repeat="data in metadata">
<td class="label">{{ data.name }}</td>
<td class="value">{{ data.value }}</td>
</tr>
</table>
</li>
<li ng-if="contextutalParents.length > 0">
<em title="The location of this linked object.">
Location
</em>
<em title="The location of this linked object.">Location</em>
<span class="inspector-location"
ng-repeat="parent in contextutalParents">
<mct-representation key="'label'"
@@ -39,9 +42,7 @@
</span>
</li>
<li ng-if="primaryParents.length > 0">
<em title="The location of the object that this was linked from.">
Original Location
</em>
<em title="The location of the original object that this was linked from.">Original Location</em>
<span class="inspector-location"
ng-repeat="parent in primaryParents">
<mct-representation key="'label'"