Sha256: 1032dc5c2d30a4666c850202134a188dc1fb93cd9fbef5e01aee1d1a0e1c346b

Contents?: true

Size: 1.44 KB

Versions: 36

Compression:

Stored size: 1.44 KB

Contents

/*
  POPUP
  -----

  A floating container that can anchor to any other on-screen element, and contain any content, including grid blocks or panels.
*/

/// @Foundation.settings
// Popup
$popup-width: rem-calc(300) !default;
$popup-background: #fff !default;
$popup-border: 0 !default;
$popup-radius: 0 !default;
$popup-shadow: 0 0 10px rgba(#000, 0.25) !default;
///

%popup {
  position: absolute;
  z-index: 1000;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.25s ease-out;
  pointer-events: none;

  &.tether-enabled {
    opacity: 1;
    pointer-events: auto;
  }
}

@mixin popup-layout(
  $width: $popup-width
) {
  width: $popup-width;
}
@mixin popup-style(
  $background: $popup-background,
  $color: #000,
  $radius: $popup-radius,
  $shadow: $popup-shadow,
  $border: $popup-border
) {
  background: $background;
  border-radius: $radius;
  box-shadow: $shadow;
  border: $border;
}

@mixin popup(
  $width: $popup-width,
  $background: $popup-background,
  $radius: $popup-radius,
  $shadow: $popup-shadow,
  $border: $popup-border
) {
  @extend %popup;
  @include popup-layout($width);
  @include popup-style($background, isitlight($background), $radius, $shadow, $border);
}

@include exports(popup) {
  .popup {
    @include popup;

    &.dark    { @include popup-style($dark-color, #fff); }
    &.primary { @include popup-style($primary-color, isitlight($primary-color)); }
  }
}

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
express_admin-1.7.5 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.7.4 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.7.3 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.7.2 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.7.1 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.6.13 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.6.12 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.6.11 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.6.10 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.6.9 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.6.8 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.6.7 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.6.4 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.6.3 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.6.2 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.6.1 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.6.0 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.5.0 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.4.11 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss
express_admin-1.4.10 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_popup.scss