Sha256: 89141777f220b6a00ce2411f7cb9c731318322d37ed18718ec7953a36b37435a

Contents?: true

Size: 1.27 KB

Versions: 70

Compression:

Stored size: 1.27 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: 1rem !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;
  border-radius: $dropdown-radius;
  display: block;
  font-size: $dropdown-font-size;
  padding: $dropdown-padding;
  position: absolute;
  visibility: hidden;
  width: $dropdown-width;
  z-index: 10;

  &.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

70 entries across 70 versions & 2 rubygems

Version Path
jekyll-theme-pirati-7.7.1 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-7.7.0 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-7.6.2 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-7.6.1 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-7.6.0 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-7.5.0 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-7.4.0 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-7.3.0 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-7.2.0 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-7.1.1 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-7.0.0 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-6.9.0 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-6.8.0 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-6.7.2 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-6.7.0 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-6.6.2 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-6.6.1 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-6.6.0 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-6.5.0 _sass/foundation-sites/scss/components/_dropdown.scss
jekyll-theme-pirati-6.4.0 _sass/foundation-sites/scss/components/_dropdown.scss