Skip to content

Commit

Permalink
adding dialog opacity and glow
Browse files Browse the repository at this point in the history
  • Loading branch information
hani221b committed Dec 20, 2023
1 parent 9ef322b commit 6e6f5c7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/css/grapes.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/modal_dialog/view/ModalView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Modal from '../model/Modal';

export default class ModalView extends ModuleView<Modal> {
template({ pfx, ppfx, content, title }: any) {
return `<div class="${pfx}dialog ${ppfx}one-bg ${ppfx}two-color">
return `<div class="${pfx}dialog ${ppfx}one-bg ${ppfx}two-color dialog-opacity">
<div class="${pfx}header">
<div class="${pfx}title">${title}</div>
<div class="${pfx}btn-close" data-close-modal>&Cross;</div>
Expand Down
18 changes: 18 additions & 0 deletions src/styles/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -537,3 +537,21 @@ $colorsAll: (one, var(--gjs-primary-color)),
.cm-s-hopscotch span.cm-error {
color: #ffffff;
}

.dialog-opacity {
-webkit-transition: opacity 300ms ease-out;
-moz-transition: opacity 300ms ease-in-out;
// background-color: #000 !important;
color: #fff !important;
opacity: 0.7 !important;

box-shadow: 0 0 8px 4px #41a7df,
0 0 20px 7px #ebecca,

}

.dialog-opacity:hover {
opacity: 0.9 !important;
-webkit-transition: opacity 300ms ease-out;
-moz-transition: opacity 300ms ease-in-out;
}

0 comments on commit 6e6f5c7

Please sign in to comment.