Merge pull request #1169 from taigaio/custom-fields-restyle
A small restyle of custom fields in detailsstable
commit
bcffb14ff1
|
@ -7,8 +7,10 @@ section.duty-custom-fields(ng-show="ctrl.customAttributes.length")
|
||||||
ng-click="toggleCollapse()"
|
ng-click="toggleCollapse()"
|
||||||
)
|
)
|
||||||
tg-svg(svg-icon="icon-arrow-down")
|
tg-svg(svg-icon="icon-arrow-down")
|
||||||
|
|
||||||
.custom-fields-body(
|
.custom-fields-body(
|
||||||
ng-show="!collapsed"
|
ng-show="!collapsed"
|
||||||
|
ng-class="{'collapse-fields': ctrl.customAttributes.length > 6}"
|
||||||
)
|
)
|
||||||
.custom-attribute(
|
.custom-attribute(
|
||||||
ng-repeat="attr in ctrl.customAttributes"
|
ng-repeat="attr in ctrl.customAttributes"
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
border-bottom: 1px solid $whitish;
|
border-bottom: 1px solid $whitish;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
padding: 1rem;
|
padding: .7rem;
|
||||||
&:hover {
|
&:hover {
|
||||||
.custom-field-options {
|
.custom-field-options {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
@ -85,3 +85,40 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.custom-fields-body {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
&.collapse-fields {
|
||||||
|
.custom-attribute {
|
||||||
|
flex-basis: 50%;
|
||||||
|
@include breakpoint(laptop) {
|
||||||
|
flex-basis: 100%;
|
||||||
|
&:nth-child(even) {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
&:nth-child(odd) {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:nth-child(even) {
|
||||||
|
padding: 0 0 0 2rem;
|
||||||
|
}
|
||||||
|
&:nth-child(odd) {
|
||||||
|
padding: 0 2rem 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.custom-attribute {
|
||||||
|
flex-basis: 100%;
|
||||||
|
&:nth-child(even) {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
&:nth-child(odd) {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.custom-field-single {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue