.custom-field-options { margin-bottom: 1rem; text-align: right; } .custom-fields-table { margin-bottom: 2em; .row { border-bottom: 0; } .table-header { @include font-type(bold); border-bottom: 3px solid $whitish; .custom-name, .custom-description { padding-left: 1.1rem; } } .table-body { .row:hover { background: rgba($primary-light, .05); cursor: move; transition: background .2s linear; .icon-drag, .custom-options { opacity: 1; transition: opacity .2s linear; } } form { &.row:hover { background: none; cursor: default; } } } .single-custom-field { border-bottom: 1px solid $whitish; color: $gray; } .js-view-custom-field { padding: .75rem 0; .custom-extra-attr-wrapper { margin-left: 1em; } } .icon-drag { fill: $gray-light; opacity: 0; padding: 0 .25rem 0 .1rem; transition: color .2s linear; } .custom-name, .custom-description { margin-right: .5rem; } .custom-name { flex-basis: 25%; flex-shrink: 0; a { padding: .5em; } svg { height: 12px; width: 12px; } } .custom-description { @include ellipsis(100%); flex-basis: 50%; flex-grow: 8; } .custom-field-type { flex-basis: 12%; flex-grow: 0; flex-shrink: 0; } .custom-options { flex-basis: 100px; flex-grow: 0; flex-shrink: 0; opacity: 0; text-align: center; svg { cursor: pointer; fill: $gray-light; margin-right: .5rem; transition: color .2s linear; vertical-align: middle; &:hover { fill: $primary; transition: color .2s linear; } &.icon-trash, &.icon-close { fill: $red-light; } } } .custom-options-wrapper { opacity: 0; transition: opacity .3s linear; a { display: inline-block; } } .custom-field-extra { align-items: center; border-bottom: 1px solid $whitish; color: $gray-light; font-size: .95em; padding: .25em 1.5em; } .js-view-custom-field-extra { padding: .5em; } .js-edit-custom-field { margin-left: .4rem; } .custom-extra-attr-wrapper { flex-grow: 1; } .custom-extra-actions { padding: .5em; a { color: $primary; } svg { height: 10px; margin-right: .25em; width: 10px; } } .js-form { .custom-options-wrapper { opacity: 1; } } }