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

Commit

Permalink
feat(MaterialApp): minimal css utilities version
Browse files Browse the repository at this point in the history
Signed-off-by: Florian-Schoenherr <florian.schoenherr99@gmail.com>
  • Loading branch information
Florian-Schoenherr committed Mar 3, 2021
1 parent ba92ccf commit 6320085
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
10 changes: 10 additions & 0 deletions packages/svelte-materialify/@types/MaterialAppMin.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { SvelteComponent } from './shared';

interface MaterialAppMinProps {
/** theme for the app */
theme?: 'light' | 'dark';
}

declare class MaterialAppMin extends SvelteComponent<MaterialAppMinProps> {}

export default MaterialAppMin;
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@use '../../styles/theme';
@use '../../styles/generic/reset';
@use '../../styles/generic/color';

.s-app {
min-height: 100%;
}

.s-ripple-container {
position: relative;
overflow: hidden;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script>
export let theme = 'light';
</script>

<style type="scss" src="./MaterialAppMin.scss" global>
</style>

<div class="s-app theme--{theme}">
<slot />
</div>
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default } from './MaterialApp.svelte';
export { default as MaterialAppMin } from './MaterialAppMin.svelte';
2 changes: 1 addition & 1 deletion packages/svelte-materialify/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export { default as Intersect } from './actions/Intersect';
export { default as Jump } from './actions/Jump';
export { default as Touch } from './actions/Touch';

export { default as MaterialApp } from './components/MaterialApp';
export { default as MaterialApp, MaterialAppMin } from './components/MaterialApp';
export { default as Icon } from './components/Icon';
export { default as Button } from './components/Button';
export { default as ButtonGroup, ButtonGroupItem } from './components/ButtonGroup';
Expand Down

0 comments on commit 6320085

Please sign in to comment.