This repository has been archived by the owner on May 5, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes: - *breaking* Changed the main file in `package.json` - *breaking* Changed the build files location to `dist/` folder - *breaking* Changed the component styles - Added new props: `center` and `size` - Removed fixes for tests, now tests are supported as they should be - Changed the styles language from `scss` to `sass` - Updated `peerDependencies` to support `vue@2.1` - Added `vue-play` support, removed `vue-dev-derver` - Added new examples Closes #7, closes #8, closes #9, closes #10
- Loading branch information
Showing
17 changed files
with
914 additions
and
404 deletions.
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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,67 @@ | ||
<template> | ||
<div class="ripple-example"> | ||
<h1>You can center Material Ripple effect</h1> | ||
|
||
<div class="ripple-centered"> | ||
<button | ||
type="button" | ||
class="ripple-centered-button"> | ||
+ | ||
</button> | ||
|
||
<MaterialRipple :center="true" :size="55"></MaterialRipple> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import MaterialRipple from '../../src/components/MaterialRipple.vue' | ||
module.exports = { | ||
name: 'material-ripple-customization', | ||
components: { | ||
MaterialRipple | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="sass"> | ||
.ripple-centered { | ||
overflow: hidden; | ||
position: relative; | ||
display: inline-block; | ||
padding: 20px; | ||
.ripple-centered-button { | ||
background: white; | ||
border: 1px solid; | ||
border-radius: 50%; | ||
width: 50px; | ||
height: 50px; | ||
font-size: 25px; | ||
user-select: none; | ||
&:focus, &:active { | ||
outline: none; | ||
} | ||
} | ||
.material-ripple__component { | ||
background: orange; | ||
&.ripple--animation { | ||
animation: smallripple .5s linear; // runs the animation on element. | ||
} | ||
} | ||
} | ||
@keyframes smallripple { | ||
from { | ||
opacity: .5; | ||
} | ||
to { | ||
opacity: 0; | ||
transform: scale(1.5); | ||
} | ||
} | ||
</style> | ||
|
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
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
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 { play } from 'vue-play' | ||
|
||
import Example from './components/Example.vue' | ||
import Theme from './components/Theme.vue' | ||
import CenteredAnimation from './components/CenteredAnimation.vue' | ||
|
||
play('MaterialButton', module) | ||
.add('example', Example) | ||
.add('theme', Theme) | ||
.add('centered', CenteredAnimation) |
Oops, something went wrong.