Sha256: 78b58d0bc8c0756fcd8c982dbaa42ac4fd129850d1130f26444841a51a75b74f

Contents?: true

Size: 1.02 KB

Versions: 11

Compression:

Stored size: 1.02 KB

Contents

$pageflow-icon-link-icon-directory: "pageflow/admin/icons" !default;

$pageflow-icon-link-size: 25px !default;

$pageflow-icon-link-opacity: 0.7 !default;

$pageflow-active-icon-link-opacity: 1 !default;

.icon_link_to {
  a {
    display: inline-block;
    position: relative;
    vertical-align: bottom;

    &::before {
      content: "";
      display: block;
      width: $pageflow-icon-link-size;
      height: $pageflow-icon-link-size;
      background-size: $pageflow-icon-size;
      background-repeat: no-repeat;
      background-position: center;
      opacity: $pageflow-icon-link-opacity;
    }

    $dir: $pageflow-icon-link-icon-directory;

    &.editor::before {
      background-image: image-url("#{$dir}/editor.svg");
    }

    &.preview::before {
      background-image: image-url("#{$dir}/preview.svg");
    }

    &.show_public::before {
      background-image: image-url("#{$dir}/show_public.svg");
    }

    &:focus,
    &:hover {
      &::before {
        opacity: $pageflow-active-icon-link-opacity;
      }
    }
  }
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pageflow-17.0.4 app/assets/stylesheets/pageflow/admin/icon_link.scss
pageflow-17.0.3 app/assets/stylesheets/pageflow/admin/icon_link.scss
pageflow-17.0.2 app/assets/stylesheets/pageflow/admin/icon_link.scss
pageflow-17.0.1 app/assets/stylesheets/pageflow/admin/icon_link.scss
pageflow-17.0.0 app/assets/stylesheets/pageflow/admin/icon_link.scss
pageflow-16.2.0 app/assets/stylesheets/pageflow/admin/icon_link.scss
pageflow-16.1.0 app/assets/stylesheets/pageflow/admin/icon_link.scss
pageflow-16.0.0 app/assets/stylesheets/pageflow/admin/icon_link.scss
pageflow-15.8.0 app/assets/stylesheets/pageflow/admin/icon_link.scss
pageflow-15.7.1 app/assets/stylesheets/pageflow/admin/icon_link.scss
pageflow-15.7.0 app/assets/stylesheets/pageflow/admin/icon_link.scss