Sha256: 936f9642455b57d9ef3bb0a34ce481352980751b9b79bdd9e4f14fc116b830b1

Contents?: true

Size: 1.27 KB

Versions: 4

Compression:

Stored size: 1.27 KB

Contents

/* Nested Forms ------------------------------------------- */

.nested-forms {
  & > .label {
    margin-bottom : .25em;
  }

  & > ul {
    margin  : 0;
    padding : 0;
  }

  & > ul > li {
    @include position(relative);
    list-style-type : none;
    margin-top      : 1em;
    border          : 1px solid $formagic-border-color;

    &:first-child {
      margin-top : 0;
    }
  }

  & > ul > li > .icon-reorder {
    @include reorder-icon-base();
    right: 0;
    top: 20px;
    margin-right: -30px;
    line-height: 40px;
    width: 30px;
    color: $formagic-secondary-color;

    &:hover {
      color: $formagic-positive-color;
    }
  }

  & > ul li.reorderable {
    margin-right: 0.75em;
    background-color : white;
  }
}

.nested-form-new {
  margin-top: 1.4em;
  font-size: 0.9em;
}

.nested-forms ul:empty + .nested-form-new {
  margin-top: 0;
}

.nested-form-delete {
  @include position(absolute, 0 -1.5em null null);
  @include hide-text;

  border-radius: 1em;
  height: 1.25em;
  width: 1.25em;
  z-index: 1;
  line-height: 1;

  &:before {
    @include position(absolute, null .325em null null);
    content: '\00d7';
    color: $formagic-label-color;
  }

  &:hover {
    background-color : $formagic-assertive-color;

    &:before {
      color : white;
    }
  }
}




Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
formagic-0.3.10 app/assets/stylesheets/formagic/documents.scss
formagic-0.3.9 app/assets/stylesheets/formagic/nested-form.scss
formagic-0.3.8 app/assets/stylesheets/formagic/nested-form.scss
formagic-0.3.7 app/assets/stylesheets/formagic/nested-form.scss