superdesk/superdesk-client-core

View on GitHub
styles/sass/jcrop-custom.scss

Summary

Maintainability
Test Coverage
$jcrop-handle-size: 12px;
$jcrop-handle-offset: -6px;

$jcrop-handle-size-small: 8px;
$jcrop-handle-offset-small: -4px;

.sd-photo-preview {
    .jcrop-handle {
        opacity: 1 !important;
        background-color: hsl(214, 13%, 20%);
        border: 1px hsl(214, 13%, 93%) solid;
        width: $jcrop-handle-size;
        height: $jcrop-handle-size;
        font-size: 1px;
        border-radius: 50%;
    }
    .jcrop-handle.ord-n {
        margin-inline-start: $jcrop-handle-offset;
        margin-block-start: $jcrop-handle-offset;
    }
    .jcrop-handle.ord-s {
        margin-block-end: $jcrop-handle-offset;
        margin-inline-start: $jcrop-handle-offset;
    }
    .jcrop-handle.ord-e {
        margin-inline-end: $jcrop-handle-offset;
        margin-block-start: $jcrop-handle-offset;
    }
    .jcrop-handle.ord-w {
        margin-inline-start: $jcrop-handle-offset;
        margin-block-start: $jcrop-handle-offset;
    }
    .jcrop-handle.ord-nw {
        margin-inline-start: $jcrop-handle-offset;
        margin-block-start: $jcrop-handle-offset;
    }
    .jcrop-handle.ord-ne {
        margin-inline-end: $jcrop-handle-offset;
        margin-block-start: $jcrop-handle-offset;
    }
    .jcrop-handle.ord-se {
        margin-block-end: $jcrop-handle-offset;
        margin-inline-end: $jcrop-handle-offset;
    }
    .jcrop-handle.ord-sw {
        margin-block-end: $jcrop-handle-offset;
        margin-inline-start: $jcrop-handle-offset;
    }
    .sd-grid-item {
        .jcrop-handle {
            width: $jcrop-handle-size-small;
            height: $jcrop-handle-size-small;
        }
        .jcrop-handle.ord-n {
            margin-inline-start: $jcrop-handle-offset-small;
            margin-block-start: $jcrop-handle-offset-small;
        }
        .jcrop-handle.ord-s {
            margin-block-end: $jcrop-handle-offset-small;
            margin-inline-start: $jcrop-handle-offset-small;
        }
        .jcrop-handle.ord-e {
            margin-inline-end: $jcrop-handle-offset-small;
            margin-block-start: $jcrop-handle-offset-small;
        }
        .jcrop-handle.ord-w {
            margin-inline-start: $jcrop-handle-offset-small;
            margin-block-start: $jcrop-handle-offset-small;
        }
        .jcrop-handle.ord-nw {
            margin-inline-start: $jcrop-handle-offset-small;
            margin-block-start: $jcrop-handle-offset-small;
        }
        .jcrop-handle.ord-ne {
            margin-inline-end: $jcrop-handle-offset-small;
            margin-block-start: $jcrop-handle-offset-small;
        }
        .jcrop-handle.ord-se {
            margin-block-end: $jcrop-handle-offset-small;
            margin-inline-end: $jcrop-handle-offset-small;
        }
        .jcrop-handle.ord-sw {
            margin-block-end: $jcrop-handle-offset-small;
            margin-inline-start: $jcrop-handle-offset-small;
        }
    }
      

    .jcrop-dark {
        .jcrop-handle {
            opacity: 1 !important;
            background-color: rgba(205, 205, 205, 0.5);
            border-color: white;
            border-radius: 50%;
        }
        .jcrop-vline, .jcrop-hline {
            background: rgba(255, 255, 255, 0.3);
            opacity: 1;
        }

        .jcrop-handle.ord-n, .jcrop-handle.ord-s, .jcrop-handle.ord-e, .jcrop-handle.ord-w {
            //opacity: 0.3 !important;
            display: none;
          }
    }
}