Sha256: f7f447120f450d6d39f9dd8818087021fa607db871e5636254c2833c804bbbaf

Contents?: true

Size: 1.59 KB

Versions: 1

Compression:

Stored size: 1.59 KB

Contents

$cOddRowBackground: #f4f5f5
$cRowBorder: #e8e8e8
$cRowSelected: #d9e4ec
$cRowError: rgb(255,87,87)

@import bourbon

body.active_admin
  .disclose
    cursor: pointer
    width: 10px
    display: none

  .index_as_sortable
    .resource_selection_toggle_panel
      padding-left: 12px

    > ol
      margin: 16px 0

    ol
      list-style-type: none
      padding: 0

      li
        cursor: default !important

        &.placeholder
          height: 3em
          background: lighten($cOddRowBackground, 10%)
          border: 1px dashed $cRowSelected
          +box-sizing(border-box)

          &.cantdoit
            border: 1px dashed $cRowError

        .item
          width: 100%
          border-top: 1px solid $cRowBorder
          border-bottom: 1px solid $cRowBorder
          +clearfix

          &.even
            background: white

          &.odd
            background: $cOddRowBackground

          .cell
            margin: 0
            padding: 10px 12px 8px 12px

          h3.cell
            font-size: 16px
            line-height: 14px
            color: black

      &.ui-sortable
        li .item:hover
          cursor: move
          background-color: $cRowSelected

      > li > ol
        margin-left: 30px

      li.mjs-nestedSortable-collapsed > ol
        display: none

      li.mjs-nestedSortable-branch > div > .disclose
        display: block
        float: left
        padding: 10px 5px 8px 5px

      li.mjs-nestedSortable-collapsed > div > .disclose > span:before
        content: '+ '

      li.mjs-nestedSortable-expanded > div > .disclose > span:before
        content: '- '

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_admin-sortable_tree-0.2.1 app/assets/stylesheets/active_admin/sortable.css.sass