This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(overlay): add new dc-overlay atom
BREAKING CHANGES: dc-dialog__overlay as internal part of dc-dialog has been removed, use dc-overlay externally instead Change your code from this: ```html <div class="dc-dialog"> <div class="dc-dialog__overlay"></div> ... ``` To this: ```html <div class="dc-overlay"></div> <div class="dc-dialog> ... ```
- Loading branch information
Showing
5 changed files
with
48 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
<div class="dc-dialog"> | ||
<div class="dc-dialog__overlay"> </div> | ||
<div class="dc-dialog__content"> | ||
<div class="dc-dialog__body"> | ||
<div class="dc-dialog__close"> | ||
<i class="dc-icon dc-icon--close dc-icon--interactive dc-dialog__close__icon"></i> | ||
<div class="demo-wrapper"> | ||
<div class="dc-overlay"></div> | ||
<div class="dc-dialog"> | ||
<div class="dc-dialog__content"> | ||
<div class="dc-dialog__body"> | ||
<div class="dc-dialog__close"> | ||
<i class="dc-icon dc-icon--close dc-icon--interactive dc-dialog__close__icon"></i> | ||
</div> | ||
<h3 class="dc-dialog__title">This is a dialog</h3> | ||
<h4 class="dc-dialog__subtitle">Subtitle or step</h4> | ||
<p>This is the content area. Content goes here. Actions (buttons, most of the times) should go in the | ||
bottom | ||
part.</p> | ||
</div> | ||
<div class="dc-dialog__actions"> | ||
<a href="#" class="dc-link dc-dialog__actions__link">Action</a> | ||
<button class="dc-btn dc-btn--primary">Action</button> | ||
</div> | ||
<h3 class="dc-dialog__title">This is a dialog</h3> | ||
<h4 class="dc-dialog__subtitle">Subtitle or step</h4> | ||
<p>This is the content area. Content goes here. Actions (buttons, most of the times) should go in the bottom part.</p> | ||
</div> | ||
<div class="dc-dialog__actions"> | ||
<a href="#" class="dc-link dc-dialog__actions__link">Action</a> | ||
<button class="dc-btn dc-btn--primary">Action</button> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// @import "../core/core"; | ||
|
||
@mixin dc-overlay { | ||
display: flex; | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
transition: opacity .2s .2s cubic-bezier(.39, .58, .57, 1); | ||
background: rgba($dc-black, .6); | ||
opacity: 1; | ||
z-index: 0; | ||
perspective: 600px; | ||
pointer-events: none; | ||
} | ||
|
||
// = DIVIDERS FOR BOXES | ||
// --------------------------------------------------------------------------- | ||
@mixin dc-overlay-selectors { | ||
.dc-overlay { | ||
@include dc-overlay; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters