Fix ol.css for some examples

- es2015-custom-element needs css variables declared in :host
- external-map-map still does not work when editing in codesandbox,
  though that neither worked before.
This commit is contained in:
Maximilian Krög
2022-08-13 16:39:28 +02:00
parent 839e1d1c65
commit 259e3fe1c9
5 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ class OLComponent extends HTMLElement {
this.shadow = this.attachShadow({mode: 'open'});
const link = document.createElement('link');
link.setAttribute('rel', 'stylesheet');
link.setAttribute('href', 'css/ol.css');
link.setAttribute('href', 'theme/ol.css');
this.shadow.appendChild(link);
const style = document.createElement('style');
style.innerText = `
+1 -1
View File
@@ -13,7 +13,7 @@ cloak:
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<title>Mobile full screen example</title>
<link rel="stylesheet" href="../css/ol.css" type="text/css">
<link rel="stylesheet" href="../theme/ol.css" type="text/css">
<style type="text/css">
html, body, .map {
margin: 0;
+1 -1
View File
@@ -1,7 +1,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../css/ol.css" type="text/css">
<link rel="stylesheet" href="../theme/ol.css" type="text/css">
<style>
body {
margin: 0;