Git Product home page Git Product logo

acf-divider-field's People

Contributors

kreshnik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

acf-divider-field's Issues

Suggestion: CSS Changes to make field render more native.

Finding this very useful, but would prefer that it render more like native Wordpress UI. In addition, it doesn't align correctly when label placement is "Left Aligned".

My adjusted CSS is as follows:

/* Create a border above the field when editing the group. Idential to how Tabs works. */

    .acf-field-object + .acf-field-object-divider {
        margin-top: 6px;
    }
    .acf-field-object + .acf-field-object-divider:before {
        display: block;
        content: "";
        height: 1px;
        background: #F0F0F0;
        margin-top: -7px;
        width: 100%;
        position: absolute;
    }

/* Remove fields we don't need when editing this field. */

    .acf-field-list .acf-field-object-divider .handle ul li.li-field-name{
        visibility: hidden;
    }
    .acf-field-list .acf-field-object-divider tr[data-name="name"],
    .acf-field-list .acf-field-object-divider tr[data-name="instructions"],
    .acf-field-list .acf-field-object-divider tr[data-name="required"],
    .acf-field-list .acf-field-object-divider tr[data-name="wrapper"],
    .acf-field-list .acf-field-object-divider tr[data-name="conditional_logic"],
    .acf-field-list .acf-field-object-divider tr[data-name="warning"] {
        display: none !important;
    }


/* Basic field rendering changes. */

    .acf-field-divider .acf-label {
        display: none;
    }
    .acf-field-divider .acf-input {
        font-weight: bold;
        text-transform: uppercase;
    }
    .acf-fields > .acf-field-divider {
        padding: 2px 15px;
    }

/* Layout adjustments when Label Placement is "Left Aligned" */

    .acf-fields.-left > .acf-field-divider:before {
        display: none;
    }
    .acf-fields.-left > .acf-field-divider {
        padding: 2px 15px;
    }
    .acf-fields.-left > .acf-field-divider > .acf-input {
        padding-left: 0;
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.