Sha256: 1951641bb4996ebfb94b5794d6a5791ffd205d45a051510b93722d48d1f883d9

Contents?: true

Size: 1.59 KB

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
active_admin-sortable_tree-1.0.0 app/assets/stylesheets/active_admin/sortable.sass
active_admin-sortable_tree-0.3.0 app/assets/stylesheets/active_admin/sortable.sass