This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(MaterialApp): minimal css utilities version
Signed-off-by: Florian-Schoenherr <florian.schoenherr99@gmail.com>
- Loading branch information
1 parent
ba92ccf
commit 6320085
Showing
5 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
12 changes: 12 additions & 0 deletions
12
packages/svelte-materialify/src/components/MaterialApp/MaterialAppMin.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/svelte-materialify/src/components/MaterialApp/MaterialAppMin.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
1 change: 1 addition & 0 deletions
1
packages/svelte-materialify/src/components/MaterialApp/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters