Sha256: bf89d5a2f3e4eeb4c08a26d29f0519bd0ce26aeb68d2262cff114a694d246790

Contents?: true

Size: 1.05 KB

Versions: 62

Compression:

Stored size: 1.05 KB

Contents

/*------------------------------------*\
    #GLOBAL-BOX-SHADOW
\*------------------------------------*/

/// Provides control over the global box shadows for the site.
///
/// @param {Color} $color [$shadow-color] - the box shadow color
/// @param {String} $lighting [center] - choose to 'light' the UI from a
///     direction. `top`, `bottom`, and `tight` are options. All other values
///     will result in the lighting being centered.
///
/// @example scss - Global Box Shadow mixin
///     $block-hover-color:  $green !default;
///
///     .block {
///         @include global-box-shadow($lighting: top);
///
///         &:hover {
///             @include global-box-shadow($block-hover-color, top)
///         }
///     }
@mixin global-box-shadow($color: $shadow-color, $lighting: center) {
    @if $lighting == top {
        box-shadow: 0 2px 5px 0 $color;
    } @else if $lighting == bottom {
        box-shadow: 0 -2px 5px 0 $color;
    } @else if $lighting == tight {
        box-shadow: 0 0 2px 0 $color;
    } @else {
        box-shadow: 0 0 5px 0 $color;
    }
}

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.5.15 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.36 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.14 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.35 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.13 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.34 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.12 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.33 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.11 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.10 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.32 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.9 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.31 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.8 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.30 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.7 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.29 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.6 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.28 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.5 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss