25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Closing<br />

Users will need a way to close their modal <strong>and</strong> return to the main window. We'll<br />

overlay a button in the top-right corner that, when clicked, evaluates an<br />

expression to set modalOpen to false. The show class on our wrapper div will<br />

consequentially be removed, which means the display CSS property will return to<br />

none, thus removing the modal from the page.<br />

index.html: <br />

&times;<br />

<br />

<br />

style.css: .modal-close { position: absolute; right: 0; top: 0; padding: 0px 28px<br />

8px; font-size: 4em; width: auto; height: auto; background: transparent; border:<br />

0; outline: none; color: #ffffff; z-index: 1000; font-weight: 100; line-height: 1; }

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!