- CSS for modal dialog
- User can click outside modal dialog to close it
This commit is contained in:
parent
3bc17cea79
commit
8be2aa0129
9 changed files with 93 additions and 52 deletions
|
|
@ -1,3 +1,5 @@
|
|||
@use 'constants' as consts;
|
||||
|
||||
@mixin markdown {
|
||||
h1 {
|
||||
font-size: 140%;
|
||||
|
|
@ -23,4 +25,15 @@
|
|||
h6 {
|
||||
font-size: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// Common style for popup box like modal dialog and toast.
|
||||
@mixin popup {
|
||||
border: 0.1em solid consts.$color-3;
|
||||
border-radius: 0.5em;
|
||||
background-color: consts.$color-2;
|
||||
|
||||
text-align: center;
|
||||
padding: calc(2 * consts.$margin) calc(2 * consts.$margin);
|
||||
box-shadow: -1px 1px 10px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue