Skip to content

Commit

Permalink
Add minimal layout to the example
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Aug 8, 2024
1 parent 3062856 commit 2a5efa2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
24 changes: 24 additions & 0 deletions example/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
body {
font-family: system-ui;
margin: 0;
}

nav {
background: #043d20;
padding: 0.5rem;
text-align: right;

& a {
color: #92b5ff;
padding: 0 0.5rem;
&:not(:last-child) {
border-right: 1px solid #545454;
}
}
}

.buttons {
text-align: center;
margin: 1rem;
}

.cm-editor {
margin: 0.5rem;
}

.cm-lintRange-deprecated {
Expand Down
10 changes: 8 additions & 2 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
<link rel="stylesheet" href="./index.css" />
</head>
<body>
<button id="lowercase-button" type="button">Lowercase</button>
<button id="uppercase-button" type="button">Uppercase</button>
<nav>
<a href="https://github.com/remcohaszing/codemirror-languageservice">GitHub</a
><a href="https://www.npmjs.com/package/codemirror-languageservice">npm</a>
</nav>
<div class="buttons">
<button id="lowercase-button" type="button">Lowercase</button>
<button id="uppercase-button" type="button">Uppercase</button>
</div>
<script type="module" src="./index.ts"></script>
</body>
</html>

0 comments on commit 2a5efa2

Please sign in to comment.