Skip to content

Commit

Permalink
fix(demo-env): cleaned up and added back demo.js script (#174)
Browse files Browse the repository at this point in the history
* fix(demo-env): fixed demo environment

* fix(demo-env): added back carbon components comments
  • Loading branch information
marijohannessen committed Jun 13, 2017
1 parent 1244639 commit 1c1aeab
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 374 deletions.
12 changes: 1 addition & 11 deletions demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,12 @@ Contributors and users can ignore this folder -- this is only for project mainta
```
demo
├── README.md
├── carbon-components.js
├── carbon-components.js.map
├── carbon-components.min.js
├── carbon-components.min.js.map
├── index.js
├── demo.css
├── scss
│   ├── _demo-colors.scss
│   ├── _demo-major-second.scss
│   ├── _demo-typography.scss
│   └── demo.scss
└── views
├── colors.html
├── demo-all.dust
├── demo-es5.html
├── typography-major-second.html
└── typography.html
```

`views`: HTML files that are rendered when running `npm run dev` or `npm run serve`
Expand Down
2 changes: 0 additions & 2 deletions demo/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import './polyfills/index';

import ThemeSwitcher from './js/theme-switcher';
import DemoSwitcher from './js/demo-switcher';

export * from '../src/index';

const init = () => {
ThemeSwitcher.init();
DemoSwitcher.init();
};

Expand Down
35 changes: 0 additions & 35 deletions demo/js/theme-switcher.js

This file was deleted.

8 changes: 0 additions & 8 deletions demo/scss/demo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
padding: 1rem;
margin-top: 5rem;
transition: .2s;
// min-height: 2000px;
background-color: $ui-02;

&.flex-col {
Expand Down Expand Up @@ -48,13 +47,6 @@
padding: 3em 1em 1em;
}

.theme-switcher {
margin: 1rem 0;
position: fixed;
top: 0;
right: 1rem;
}

.demo-switcher {
&__container {
display: flex;
Expand Down
176 changes: 0 additions & 176 deletions demo/views/colors.html

This file was deleted.

11 changes: 8 additions & 3 deletions demo/views/demo-all.dust
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
</head>

<body class="bx--body">
<button class="bx--btn theme-switcher" data-theme-switcher>Theme Switcher</button>
<div data-demo-switcher class="demo-switcher__container">
<input id="flex-col" data-demo-col class="bx--radio" type="radio" value="col" name="radio">
<label for="flex-col" data-demo-col class="bx--radio__label">
Expand All @@ -46,8 +45,14 @@
<input type="text" class="offleft">

<!-- Scripts -->
<script src="/carbon-components.min.js"></script>
<!-- <script src="/demo.js"></script> -->
<!-- <script src="/carbon-components.min.js"></script> -->
<script src="/demo.js"></script>
<!-- Disable Auto Init with this flag -->
<!-- true = JavaScript will not initialize automatically -->
<!-- false = JavaScript will initialize automatically -->
<script>
CarbonComponents.settings.disableAutoInit = false;
</script>
</body>

</html>
45 changes: 0 additions & 45 deletions demo/views/demo-es5.html

This file was deleted.

26 changes: 0 additions & 26 deletions demo/views/typography-major-second.html

This file was deleted.

Loading

0 comments on commit 1c1aeab

Please sign in to comment.