Slide 1

Slide 1 text

Best Javascript Is No Javascript Radoslav Stankov

Slide 2

Slide 2 text

All You Need Is CSS Radoslav Stankov

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

System Requirements

Requires a computer running an operating system. The computer must have some memory and ideally some kind of long-term storage. An input device as well as some form of output device is recommended.

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text


 ... ... 


Slide 12

Slide 12 text


 ... ... 


Slide 13

Slide 13 text

details[open] .open-hidden { display: none; } details:not([open]) .open-visible { display: none; }

Slide 14

Slide 14 text

Responsive Table

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

@media (max-width: 640px) { .table-component, .table-component thead, .table-component tbody, .table-component tfoot, .table-component tr { display: block; } .table-component tbody td { display: fl ex; } .table-component tbody td:not(.actions):before { content: attr(title); fl ex: 0 1 35%; display: block; white-space: nowrap; } }

Slide 20

Slide 20 text

@media (max-width: 640px) { .table-component, .table-component thead, .table-component tbody, .table-component tfoot, .table-component tr { display: block; } .table-component tbody td { display: fl ex; } .table-component tbody td:not(.actions):before { content: attr(title); fl ex: 0 1 35%; display: block; white-space: nowrap; } }

Slide 21

Slide 21 text

@media (max-width: 640px) { .table-component, .table-component thead, .table-component tbody, .table-component tfoot, .table-component tr { display: block; } .table-component tbody td { display: fl ex; } .table-component tbody td:not(.actions):before { content: attr(title); fl ex: 0 1 35%; display: block; white-space: nowrap; } }

Slide 22

Slide 22 text

@media (max-width: 640px) { .table-component, .table-component thead, .table-component tbody, .table-component tfoot, .table-component tr { display: block; } .table-component tbody td { display: fl ex; } .table-component tbody td:not(.actions):before { content: attr(title); fl ex: 0 1 35%; display: block; white-space: nowrap; } }

Slide 23

Slide 23 text

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

1⃣ Accessible 2⃣ Mobile friendly 3⃣ All batteries include 
 ➡ No extra code 🚫 Single date, no range 
 🚫 Style doesn't match our site

Slide 28

Slide 28 text

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

1⃣ Accessible 2⃣ Build-in backdrop 3⃣ Auto handling of forms (example: auto-focus) 4⃣ Stops scrolling of back page 5⃣ Auto handle of ESC 6⃣ Style as you wish 🚫 JavaScript to trigger the modal version 
 🚫 JavaScript need to close dialog when click backdrop

Slide 32

Slide 32 text

import { setEventListners } from './utils'; setEventListners(document, { '[data-dialog]:click': (e) => { document .getElementById(e.target.closest('[data-dialog]').dataset.dialog) ?.showModal(); }, 'dialog:click': (e) => { if (e.target.tagName === 'DIALOG') { e.target.close(); } }, });

Slide 33

Slide 33 text

... future

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

Slide 36

Slide 36 text

No content