Sha256: 1e74a47d51ed49d502c31a723b826115809f23ebbb81af44d2c20f73df8063b0

Contents?: true

Size: 698 Bytes

Versions: 124

Compression:

Stored size: 698 Bytes

Contents

/*------------------------------------*\
    #FOCUS-RING
\*------------------------------------*/

/// Provides a border and box-shadow for a focusable element. Useful when
/// creating custom, non-standard form control UIs.
///
/// @param {Color} $color [$focus-ring-color] - the color of the applied border
///
/// @example scss - Focus Ring mixin
///     $block-focus-border-color:  $blue;
///
///     .block {
///         &:focus {
///             @include focus-ring($block-focus-border-color);
///         }
///     }
@mixin focus-ring($color: $focus-ring-color) {
    border-color: $color;
    box-shadow: 0 0 0 2px $color;
    outline: none;
    transition: border 0.1s, box-shadow 0.1s;
}

Version data entries

124 entries across 124 versions & 2 rubygems

Version Path
workarea-storefront-3.5.27 app/assets/stylesheets/workarea/storefront/tools/_focus_ring.scss
workarea-admin-3.5.27 app/assets/stylesheets/workarea/admin/tools/_focus_ring.scss
workarea-storefront-3.5.26 app/assets/stylesheets/workarea/storefront/tools/_focus_ring.scss
workarea-admin-3.5.26 app/assets/stylesheets/workarea/admin/tools/_focus_ring.scss
workarea-storefront-3.4.45 app/assets/stylesheets/workarea/storefront/tools/_focus_ring.scss
workarea-admin-3.4.45 app/assets/stylesheets/workarea/admin/tools/_focus_ring.scss
workarea-storefront-3.5.25 app/assets/stylesheets/workarea/storefront/tools/_focus_ring.scss
workarea-admin-3.5.25 app/assets/stylesheets/workarea/admin/tools/_focus_ring.scss
workarea-storefront-3.5.23 app/assets/stylesheets/workarea/storefront/tools/_focus_ring.scss
workarea-admin-3.5.23 app/assets/stylesheets/workarea/admin/tools/_focus_ring.scss
workarea-storefront-3.4.44 app/assets/stylesheets/workarea/storefront/tools/_focus_ring.scss
workarea-admin-3.4.44 app/assets/stylesheets/workarea/admin/tools/_focus_ring.scss
workarea-storefront-3.5.22 app/assets/stylesheets/workarea/storefront/tools/_focus_ring.scss
workarea-admin-3.5.22 app/assets/stylesheets/workarea/admin/tools/_focus_ring.scss
workarea-storefront-3.4.43 app/assets/stylesheets/workarea/storefront/tools/_focus_ring.scss
workarea-admin-3.4.43 app/assets/stylesheets/workarea/admin/tools/_focus_ring.scss
workarea-storefront-3.5.21 app/assets/stylesheets/workarea/storefront/tools/_focus_ring.scss
workarea-admin-3.5.21 app/assets/stylesheets/workarea/admin/tools/_focus_ring.scss
workarea-storefront-3.4.42 app/assets/stylesheets/workarea/storefront/tools/_focus_ring.scss
workarea-admin-3.4.42 app/assets/stylesheets/workarea/admin/tools/_focus_ring.scss