First commit.
This commit is contained in:
commit
b7977e1c28
2 changed files with 28081 additions and 0 deletions
38
sass/components/hidden/_hidden.scss
Normal file
38
sass/components/hidden/_hidden.scss
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
// Hidden
|
||||
//
|
||||
// Hide elements from all users. Compare to the visually-hidden component.
|
||||
//
|
||||
// Used for elements which should not be immediately displayed to any user. An
|
||||
// example would be a collapsible fieldset that will be expanded with a click
|
||||
// from a user.
|
||||
//
|
||||
// For anything you want to hide on page load when JavaScript is enabled, use
|
||||
// the `.js-hidden` class.
|
||||
//
|
||||
// Markup: hidden.twig
|
||||
//
|
||||
// Style guide: components.hidden
|
||||
|
||||
.hidden,
|
||||
%hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.js-hidden,
|
||||
%js-hidden {
|
||||
html.js & {
|
||||
@extend %hidden;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Drupal selectors.
|
||||
//
|
||||
|
||||
.element-hidden {
|
||||
@extend %js-hidden;
|
||||
}
|
||||
|
||||
.js-hide {
|
||||
@extend %js-hidden;
|
||||
}
|
||||
3
sass/components/hidden/hidden.twig
Normal file
3
sass/components/hidden/hidden.twig
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<div class="hidden {{modifier_class}}">
|
||||
This content is hidden.
|
||||
</div>
|
||||
Loading…
Reference in a new issue