Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit 6320085

Browse files
feat(MaterialApp): minimal css utilities version
Signed-off-by: Florian-Schoenherr <[email protected]>
1 parent ba92ccf commit 6320085

File tree

5 files changed

+34
-1
lines changed

5 files changed

+34
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export { default } from './MaterialApp.svelte';
2+
export { default as MaterialAppMin } from './MaterialAppMin.svelte';

packages/svelte-materialify/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export { default as Intersect } from './actions/Intersect';
44
export { default as Jump } from './actions/Jump';
55
export { default as Touch } from './actions/Touch';
66

7-
export { default as MaterialApp } from './components/MaterialApp';
7+
export { default as MaterialApp, MaterialAppMin } from './components/MaterialApp';
88
export { default as Icon } from './components/Icon';
99
export { default as Button } from './components/Button';
1010
export { default as ButtonGroup, ButtonGroupItem } from './components/ButtonGroup';

0 commit comments

Comments
 (0)