Sha256: 32112a52d6460accdd1c7ef3f7d451b5179f0d067174468d1b9c7b82b2f2c111

Contents?: true

Size: 1.21 KB

Versions: 7

Compression:

Stored size: 1.21 KB

Contents

.selectable_link {
  .arrow {
    fill: none;
    stroke-width: $stroke-width;
    pointer-events: none;
  }

  &.placeholder {
    .arrow {
      display: none;
    }
  }

  .selection_highlight {
    fill: none;
    stroke: transparent;
    stroke-width: 4px;
    pointer-events: none;
  }

  .selection_target {
    fill: none;
    stroke: transparent;
    stroke-width: 10px;
    pointer-events: stroke;
  }

  .drag_target {
    display: none;
    fill: none;
    cursor: move;
    pointer-events: all;
  }

  &.placeholder {
    .drag_target {
      display: block;
      fill: rgba(0, 0, 0, 0.4);
    }
  }

  .text_label {
    opacity: 0;
    @include transition(opacity 0.3s ease);
  }

  &.highlight {
    .text_label {
      opacity: 1;
    }
  }
}

&.editor_mode .selectable_link {
  &.dragged {
    .arrow {
      display: block;
    }
  }

  &.dragged,
  &.highlight {
    .arrow {
      stroke: $highlight-color;
      stroke-width: 2px;
    }
  }

  &.dragged {
    .drag_target {
      fill: none;
    }
  }

  &.selected .selection_highlight {
    stroke: $selection-color;
  }

  &.dragged .selection_highlight {
    stroke: transparent;
  }
}

&.selection_mode .selectable_link {
  .drag_target {
    display: none;
  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pageflow-sitemap-1.5.0 app/assets/stylesheets/pageflow/sitemap/editor/selectable_links.scss
pageflow-sitemap-1.4.0 app/assets/stylesheets/pageflow/sitemap/editor/selectable_links.scss
pageflow-sitemap-1.3.0 app/assets/stylesheets/pageflow/sitemap/editor/selectable_links.scss
pageflow-sitemap-1.2.0 app/assets/stylesheets/pageflow/sitemap/editor/selectable_links.scss
pageflow-sitemap-1.1.0 app/assets/stylesheets/pageflow/sitemap/editor/selectable_links.scss
pageflow-sitemap-1.0.0 app/assets/stylesheets/pageflow/sitemap/editor/selectable_links.scss
pageflow-sitemap-0.1.0 app/assets/stylesheets/pageflow/sitemap/editor/selectable_links.scss