Skip to content

Commit

Permalink
add create general css
Browse files Browse the repository at this point in the history
  • Loading branch information
uvarov-frontend committed Nov 30, 2023
1 parent 913b924 commit d65823f
Show file tree
Hide file tree
Showing 13 changed files with 310 additions and 285 deletions.
3 changes: 2 additions & 1 deletion config/assets.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ export default defineConfig({
},
},
input: {
main: resolve(__dirname, '../package/src/styles/vanilla-calendar.css'),
layout: resolve(__dirname, '../package/src/styles/vanilla-calendar.layout.css'),
light: resolve(__dirname, '../package/src/styles/themes/light.css'),
dark: resolve(__dirname, '../package/src/styles/themes/dark.css'),
'vanilla-calendar': resolve(__dirname, '../package/src/styles/vanilla-calendar.css'),
},
},
},
Expand Down
6 changes: 0 additions & 6 deletions demo/main.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
// import { IOptions } from '@package/types';
// import VanillaCalendar from '@/package/build/vanilla-calendar.min';

// import '@/package/build/vanilla-calendar.min.css';
// import '@/package/build/themes/light.min.css';
// import '@/package/build/themes/dark.min.css';

import { IOptions } from '@package/types';
import VanillaCalendar from '@src/vanilla-calendar';

import '@src/styles/vanilla-calendar.css';
import '@src/styles/themes/light.css';
import '@src/styles/themes/dark.css';

const config: IOptions = {
settings: {
Expand Down
11 changes: 5 additions & 6 deletions package/build/demo.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<html>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Plugin CSS -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo VanillaCalendar</title>
<link href="./vanilla-calendar.min.css" rel="stylesheet">
<link href="./themes/light.min.css" rel="stylesheet">
<link href="./themes/dark.min.css" rel="stylesheet">
<!-- Plugin JS -->
<script src="./vanilla-calendar.min.js" defer></script>
</head>
<body>
<div id="calendar"></div>

<script>
document.addEventListener('DOMContentLoaded', () => {
const calendar = new VanillaCalendar('#calendar');
Expand Down
2 changes: 1 addition & 1 deletion package/build/themes/dark.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package/build/themes/light.min.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package/build/vanilla-calendar.layout.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d65823f

Please sign in to comment.