Skip to content

Commit

Permalink
move EP css
Browse files Browse the repository at this point in the history
  • Loading branch information
OrionReed committed Dec 3, 2024
1 parent ba41651 commit de8e3ac
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 47 deletions.
7 changes: 0 additions & 7 deletions demo/audio-beats-with-event-propagators.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@
margin: 0;
}

folk-event-propagator {
display: block;
position: absolute;
inset: 0 0 0 0;
pointer-events: none;
}

folk-shape {
border: 1px solid black;
border-radius: 4px;
Expand Down
7 changes: 0 additions & 7 deletions demo/embeddable-llm-with-propagators.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@
margin: 0;
}

folk-event-propagator {
display: block;
position: absolute;
inset: 0 0 0 0;
pointer-events: none;
}

folk-shape {
border: 1px solid black;
border-radius: 4px;
Expand Down
7 changes: 0 additions & 7 deletions demo/event-propagators.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
padding: 0px 5px;
z-index: 10;
}

folk-event-propagator {
display: block;
position: absolute;
inset: 0 0 0 0;
pointer-events: none;
}
</style>
</head>
<body>
Expand Down
7 changes: 0 additions & 7 deletions demo/folk-interface-for-qr-codes.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@
field-sizing: content;
}

folk-event-propagator {
display: block;
position: absolute;
inset: 0 0 0 0;
pointer-events: none;
}

body:not([rope-mode]) folk-event-propagator {
display: none;
}
Expand Down
8 changes: 0 additions & 8 deletions demo/propagator-toolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@
position: absolute;
inset: 0;
}

folk-event-propagator {
display: block;
position: absolute;
inset: 0 0 0 0;
pointer-events: none;
z-index: 1000;
}
</style>
</head>
<body>
Expand Down
7 changes: 0 additions & 7 deletions demo/proximity-based-communication-and-event-propagators.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@
border-radius: 5px;
padding: 1rem;
}

folk-event-propagator {
display: block;
position: absolute;
inset: 0 0 0 0;
pointer-events: none;
}
</style>
</head>
<body>
Expand Down
4 changes: 0 additions & 4 deletions demo/spreadsheet-map-propagator.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
}

folk-event-propagator {
display: block;
position: absolute;
inset: 0 0 0 0;
pointer-events: none;
z-index: calc(infinity);
}
</style>
Expand Down
7 changes: 7 additions & 0 deletions src/folk-event-propagator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import type { Node } from '@babel/types';

const styles = new CSSStyleSheet();
styles.replaceSync(css`
:host {
display: block;
position: absolute;
inset: 0 0 0 0;
pointer-events: none;
}
textarea {
position: absolute;
width: auto;
Expand Down

0 comments on commit de8e3ac

Please sign in to comment.