1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

[system_tracking] Highlight rows on hover/with diffs

This commit is contained in:
Joe Fiorini 2015-06-10 10:40:58 -04:00
parent fc361336da
commit cca0b08f68
5 changed files with 25 additions and 14 deletions

View File

@ -9,14 +9,13 @@
@import 'shared/text-label.less';
.FactDataGroup {
&-header {
display: flex;
&--new {
&:after {
.include-text-label(#676767; white; "new");
align-self: center;
font-size: 1rem;
}
&-headings {
&:hover {
background-color: #fff;
border-color: transparent;
}
}
&-header {
padding: 0;
}
}

View File

@ -1,7 +1,7 @@
/** @define FactDataTable */
.FactDataTable {
&-row, &-headingRow {
&-row, &-headingRow, &-groupHeadingRow {
display: flex;
}
@ -9,7 +9,8 @@
margin-bottom: 0.5em;
align-items: center;
transition: background-color 100ms, border-color 100ms;
border: solid 1px transparent;
max-height: 36px;
border: solid 1px #fff;
&:hover {
background-color: #ebebeb;
border-color: #adadad;
@ -22,7 +23,7 @@
}
&-column {
padding: 0.5em 0;
padding: 8px;
flex: 1;
white-space: nowrap;
&--offsetLeft {

View File

@ -2,6 +2,17 @@
.FactDatum {
&--divergent {
font-style: italic;
margin-bottom: 0;
background-color: #ffb2ae;
border: none;
&:hover {
background-color: #ffb2ae;
border: none;
}
.FactDataTable-column:first-child {
background-color: #fff;
}
}
}

View File

@ -18,7 +18,7 @@
@media screen and (max-width: 750px) {
flex-basis: 50%;
}
&--isActive {
&--isActive, &:active, &:focus {
// copied from bootstrap's .btn:focus
background-color: @enabled-item-background;
border-color: @enabled-item-border;

View File

@ -67,7 +67,7 @@
<div class="FactDataTable-factGroup FactDataGroup" ng-repeat="group in factData | orderBy: 'displayKeyPath'">
<div class="FactDataTable-row FactDataGroup-headings" ng-switch="group.nestingLevel">
<div class="FactDataTable-groupHeadingRow" ng-switch="group.nestingLevel" ng-if="group.displayKeyPath">
<h2 class="FactDataTable-column FactDataTable-column--full FactDataGroup-header" ng-switch-when="0">
{{group.displayKeyPath}}
</h2>