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.4.27 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.4 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.26 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.3 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.25 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.2 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.24 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.1 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.23 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.22 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.0 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.21 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.5.0.beta.1 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.20 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.19 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.18 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.17 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.16 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.15 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss
workarea-admin-3.4.14 app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss