Sha256: c47525e4397385b727f562cd631a7a1c236a54082ee0bf18177ebf65ea3ca5b8

Contents?: true

Size: 774 Bytes

Versions: 10

Compression:

Stored size: 774 Bytes

Contents

$Private-Toolkit-Placeholders: (
);

//////////////////////////////
// Placeholder Get/Set
//////////////////////////////
@function toolkit-placeholder-set($id) {
  $unique-id: unique-id();
  $Private-Toolkit-Placeholders: map-merge($Private-Toolkit-Placeholders, ($id: $unique-id)) !global;
  @return $unique-id;
}

@function toolkit-placeholder-get($id) {
  @return map-get($Private-Toolkit-Placeholders, $id);
}

//////////////////////////////
// Generate Placeholder Class and Extend
//////////////////////////////
@mixin dynamic-extend($id) {
  $placeholder-id: toolkit-placeholder-get($id);

  @if $placeholder-id == null {
    $placeholder-id: toolkit-placeholder-set($id);
    @at-root %#{$placeholder-id} {
      @content;
    }
  }
  @extend %#{$placeholder-id};
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
toolkit-2.8.0 stylesheets/toolkit/_placeholders.scss
toolkit-2.7.0 stylesheets/toolkit/_placeholders.scss
toolkit-2.6.0 stylesheets/toolkit/_placeholders.scss
toolkit-2.5.2 stylesheets/toolkit/_placeholders.scss
toolkit-2.5.0 stylesheets/toolkit/_placeholders.scss
toolkit-2.4.0 stylesheets/toolkit/_placeholders.scss
toolkit-2.3.0 stylesheets/toolkit/_placeholders.scss
toolkit-2.2.0 stylesheets/toolkit/_placeholders.scss
toolkit-2.1.0 stylesheets/toolkit/_placeholders.scss
toolkit-2.0.1 stylesheets/toolkit/_placeholders.scss