Sha256: c8cef64e4fcfba5873b09ab8b6d63dbd8a11bab63076026e8b5d4d7315d4417c

Contents?: true

Size: 1.24 KB

Versions: 4

Compression:

Stored size: 1.24 KB

Contents

// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

////
/// @group dropdown
////

/// Padding for dropdown panes.
/// @type List
$dropdown-padding: 1rem !default;

/// Border for dropdown panes.
/// @type List
$dropdown-border: 1px solid $medium-gray !default;

/// Font size for dropdown panes.
/// @type List
$dropdown-font-size: 16rem !default;

/// Width for dropdown panes.
/// @type Number
$dropdown-width: 300px !default;

/// Border radius dropdown panes.
/// @type Number
$dropdown-radius: $global-radius !default;

/// Sizes for dropdown panes. Each size is a CSS class you can apply.
/// @type Map
$dropdown-sizes: (
  tiny: 100px,
  small: 200px,
  large: 400px,
) !default;

/// Applies styles for a basic dropdown.
@mixin dropdown-container {
  background-color: $body-background;
  border: $dropdown-border;
  display: block;
  padding: $dropdown-padding;
  position: absolute;
  visibility: hidden;
  width: $dropdown-width;
  z-index: 10;
  border-radius: $dropdown-radius;

  &.is-open {
    visibility: visible;
  }
}

@mixin foundation-dropdown {
  .dropdown-pane {
    @include dropdown-container;
  }

  @each $name, $size in $dropdown-sizes {
    .dropdown-pane.#{$name} {
      width: $size;
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foundation-rails-6.1.1.3 vendor/assets/scss/components/_dropdown.scss
foundation-rails-6.1.1.2 vendor/assets/scss/components/_dropdown.scss
foundation-rails-6.1.1.1 vendor/assets/scss/components/_dropdown.scss
foundation-rails-6.1.1.0 vendor/assets/scss/components/_dropdown.scss