Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.2.2 #9

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 52 additions & 53 deletions example/index.html
Original file line number Diff line number Diff line change
@@ -1,78 +1,77 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<title>Codemirror Themes Example</title>
<link
rel="stylesheet"
href="https://unpkg.com/purecss@2.0.6/build/pure-min.css"
integrity="sha384-Uu6IeWbM+gzNVXJcM9XV3SohHtmWE+3VGi496jvgX1jyvDTXfdK+rfZc8C1Aehk5"
crossorigin="anonymous"
/>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script async type="module" src="./dist/index.js"></script>
<style>
<head>
<title>Codemirror Themes Example</title>
<link
rel="stylesheet"
href="https://unpkg.com/purecss@2.0.6/build/pure-min.css"
integrity="sha384-Uu6IeWbM+gzNVXJcM9XV3SohHtmWE+3VGi496jvgX1jyvDTXfdK+rfZc8C1Aehk5"
crossorigin="anonymous"
/>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script async type="module" src="./dist/index.js"></script>
<style>
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

.home-menu {
background: #2d3e50;
background: #2d3e50;
}

.home-menu .pure-menu-heading {
color: white;
font-weight: 400;
font-size: 120%;
color: white;
font-weight: 400;
font-size: 120%;
}

.home-menu .pure-menu-selected a.pure-menu-link {
color: white;
color: white;
}

.home-menu a {
color: #6fbef3;
color: #6fbef3;
}

.home-menu li a:hover,
.home-menu li a:focus {
background: none;
border: none;
color: #aecfe5;
background: none;
border: none;
color: #aecfe5;
}

#theme-picker {
margin: 1em;
margin: 1em;
}
</style>
</head>
<body>
<header>
<div class="home-menu pure-menu pure-menu-horizontal">
<a class="pure-menu-heading" href="">
Themes for CodeMirror 6 Demo
</a>
</style>
</head>
<body>
<header>
<div class="home-menu pure-menu pure-menu-horizontal">
<a class="pure-menu-heading" href=""> Themes for CodeMirror 6 Demo </a>

<ul class="pure-menu-list">
<li class="pure-menu-item pure-menu-selected">
<a
href="https://github.com/fsegurai/codemirror-themes"
class="pure-menu-link">
GitHub repo
</a>
</li>
</ul>
</div>
<div id="theme-picker">
<label for="theme-list">Theme:</label>
<select id="theme-list" name="themes"></select>
</div>
</header>
<ul class="pure-menu-list">
<li class="pure-menu-item pure-menu-selected">
<a
href="https://github.com/fsegurai/codemirror-themes"
class="pure-menu-link"
>
GitHub repo
</a>
</li>
</ul>
</div>
<div id="theme-picker">
<label for="theme-list">Theme:</label>
<select id="theme-list" name="themes"></select>
</div>
</header>

<main>
<div id="codemirror"></div>
</main>
</body>
<main>
<div id="codemirror"></div>
</main>
</body>
</html>
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fsegurai/codemirror-themes",
"version": "1.2.1",
"version": "1.2.2",
"description": "Theme packages for the CodeMirror code editor",
"homepage": "https://github.com/fsegurai/codemirror-themes",
"license": "MIT",
Expand All @@ -23,8 +23,8 @@
"type": "module",
"scripts": {
"clean": "rimraf --glob ./packages/*/dist ./example/dist",
"example": "rollup -c rollup.example.config.js",
"example:watch": "rollup -w -c rollup.example.config.js",
"start": "rollup -w -c rollup.example.config.js",
"build": "rollup -c rollup.example.config.js",
"prepare:themes": "npm run -w '*' prepare"
},
"prettier": {
Expand All @@ -38,19 +38,19 @@
},
"dependencies": {
"@codemirror/lang-markdown": "^6.2.5",
"@codemirror/language": "^6.10.1",
"@codemirror/language": "^6.10.2",
"@codemirror/language-data": "^6.5.1",
"@codemirror/legacy-modes": "^6.4.0",
"@lezer/markdown": "^1.3.0",
"codemirror": "^6.0.1"
},
"devDependencies": {
"@codemirror/buildhelper": "^1.0.1",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"rollup": "^4.17.0",
"prettier": "^3.3.2",
"rimraf": "^5.0.7",
"rollup": "^4.18.0",
"rollup-plugin-dev": "^2.0.4",
"rollup-plugin-typescript2": "^0.36.0",
"ts-node": "^10.9.2",
Expand Down