Sha256: a93925734a1146cd77969c1813b76a2ffc172b5695e8dae25fb44d7599adc787

Contents?: true

Size: 1019 Bytes

Versions: 2

Compression:

Stored size: 1019 Bytes

Contents

// Cartilage Support ---------------------------------------------------------

@import "cartilage/mixins";
@import "cartilage/variables";

// Split View ----------------------------------------------------------------

.split-view
{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  > .first-view,
  > .second-view
  {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    overflow: auto;
  }

  &.horizontal
  {
    .first-view
    {
      height: 50%;
    }

    .second-view
    {
      top: 50%;
    }

    .drag-handle
    {
      position: absolute;
      left: 0;
      right: 0;

      top: 50%;
      height: 5px;
      z-index: 100;

      cursor: row-resize;
    }
  }

  &.vertical
  {
    .first-view
    {
      width: 50%;
    }

    .second-view
    {
      left: 50%;
    }

    .drag-handle
    {
      position: absolute;
      top: 0;
      bottom: 0;

      left: 50%;
      width: 5px;
      z-index: 100;

      cursor: col-resize;
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cartilage-0.1.2 app/assets/stylesheets/cartilage/views/split_view.css.scss
cartilage-0.1.1 app/assets/stylesheets/cartilage/views/split_view.css.scss