This repository was archived by the owner on Sep 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +34
-1
lines changed
packages/svelte-materialify Expand file tree Collapse file tree 5 files changed +34
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { SvelteComponent } from './shared' ;
2
+
3
+ interface MaterialAppMinProps {
4
+ /** theme for the app */
5
+ theme ?: 'light' | 'dark' ;
6
+ }
7
+
8
+ declare class MaterialAppMin extends SvelteComponent < MaterialAppMinProps > { }
9
+
10
+ export default MaterialAppMin ;
Original file line number Diff line number Diff line change
1
+ @use ' ../../styles/theme' ;
2
+ @use ' ../../styles/generic/reset' ;
3
+ @use ' ../../styles/generic/color' ;
4
+
5
+ .s-app {
6
+ min-height : 100% ;
7
+ }
8
+
9
+ .s-ripple-container {
10
+ position : relative ;
11
+ overflow : hidden ;
12
+ }
Original file line number Diff line number Diff line change
1
+ <script >
2
+ export let theme = ' light' ;
3
+ </script >
4
+
5
+ <style type =" scss" src =" ./MaterialAppMin.scss" global >
6
+ </style >
7
+
8
+ <div class ="s-app theme-- {theme }" >
9
+ <slot />
10
+ </div >
Original file line number Diff line number Diff line change 1
1
export { default } from './MaterialApp.svelte' ;
2
+ export { default as MaterialAppMin } from './MaterialAppMin.svelte' ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export { default as Intersect } from './actions/Intersect';
4
4
export { default as Jump } from './actions/Jump' ;
5
5
export { default as Touch } from './actions/Touch' ;
6
6
7
- export { default as MaterialApp } from './components/MaterialApp' ;
7
+ export { default as MaterialApp , MaterialAppMin } from './components/MaterialApp' ;
8
8
export { default as Icon } from './components/Icon' ;
9
9
export { default as Button } from './components/Button' ;
10
10
export { default as ButtonGroup , ButtonGroupItem } from './components/ButtonGroup' ;
You can’t perform that action at this time.
0 commit comments