Skip to content

Commit

Permalink
2.0.0-alpha.2
Browse files Browse the repository at this point in the history
  • Loading branch information
myronliu347 committed Nov 12, 2016
1 parent 8b9a44a commit bcee45c
Show file tree
Hide file tree
Showing 31 changed files with 303 additions and 76 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ npm install muse-ui -save
```javascript
import Vue from 'vue'
import MuseUI from 'muse-ui'
import 'muse-ui/dist/muse-ui.css'
Vue.use(MuseUI)
```

Expand Down
2 changes: 1 addition & 1 deletion dist/muse-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/muse-ui.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions dist/theme-carbon.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
background-color: #ff5252;
color: #ffffff;
}
body {
background-color: #ffffff;
color: #474a4f;
font-family: Roboto, Lato, sans-serif;
}
a {
color: #ff5252;
}
.mu-bottom-nav {
background-color: #ffffff;
}
Expand All @@ -36,14 +44,6 @@
.mu-bottom-nav-shift .mu-bottom-item-active {
color: #ffffff;
}
body {
background-color: #ffffff;
color: #474a4f;
font-family: Roboto, Lato, sans-serif;
}
a {
color: #ff5252;
}
.mu-bottom-sheet {
background-color: #ffffff;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/theme-carbon.min.css

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions dist/theme-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
background-color: #ff4081;
color: #303030;
}
body {
background-color: #303030;
color: #ffffff;
font-family: Roboto, Lato, sans-serif;
}
a {
color: #ff4081;
}
.mu-bottom-nav {
background-color: #424242;
}
Expand All @@ -36,14 +44,6 @@
.mu-bottom-nav-shift .mu-bottom-item-active {
color: #303030;
}
body {
background-color: #303030;
color: #ffffff;
font-family: Roboto, Lato, sans-serif;
}
a {
color: #ff4081;
}
.mu-bottom-sheet {
background-color: #424242;
}
Expand Down Expand Up @@ -120,7 +120,7 @@ a {
}
.mu-date-display {
background-color: rgba(255, 255, 255, 0.12);
color: #303030;
color: #ffffff;
}
.mu-day-button-bg {
background-color: #0288d1;
Expand Down Expand Up @@ -442,10 +442,10 @@ a {
color: #ffffff;
}
.mu-tr.selected {
background-color: #f5f5f5;
background-color: rgba(255, 255, 255, 0.05);
}
.mu-tr.hover {
background-color: #eeeeee;
background-color: rgba(255, 255, 255, 0.1);
}
.mu-tr.stripe {
background-color: rgba(211, 239, 255, 0.4);
Expand Down Expand Up @@ -506,7 +506,7 @@ a {
}
.mu-time-display {
background-color: rgba(255, 255, 255, 0.12);
color: #303030;
color: #ffffff;
}
.mu-clock-number.selected {
background-color: #0288d1;
Expand Down
2 changes: 1 addition & 1 deletion dist/theme-dark.min.css

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions dist/theme-default.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
background-color: #ff4081;
color: #ffffff;
}
body {
background-color: #ffffff;
color: rgba(0, 0, 0, 0.87);
font-family: Roboto, Lato, sans-serif;
}
a {
color: #ff4081;
}
.mu-bottom-nav {
background-color: #ffffff;
}
Expand All @@ -36,14 +44,6 @@
.mu-bottom-nav-shift .mu-bottom-item-active {
color: #ffffff;
}
body {
background-color: #ffffff;
color: rgba(0, 0, 0, 0.87);
font-family: Roboto, Lato, sans-serif;
}
a {
color: #ff4081;
}
.mu-bottom-sheet {
background-color: #ffffff;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/theme-default.min.css

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions dist/theme-teal.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
background-color: #ff4081;
color: #ffffff;
}
body {
background-color: #ffffff;
color: rgba(0, 0, 0, 0.87);
font-family: Roboto, Lato, sans-serif;
}
a {
color: #ff4081;
}
.mu-bottom-nav {
background-color: #ffffff;
}
Expand All @@ -36,14 +44,6 @@
.mu-bottom-nav-shift .mu-bottom-item-active {
color: #ffffff;
}
body {
background-color: #ffffff;
color: rgba(0, 0, 0, 0.87);
font-family: Roboto, Lato, sans-serif;
}
a {
color: #ff4081;
}
.mu-bottom-sheet {
background-color: #ffffff;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/theme-teal.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[
"2.0.0-alpha.2",
"2.0.0-alpha.1"
]
10 changes: 5 additions & 5 deletions less/theme-vars.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
@avatarColor: @alternateTextColor;
@avatarBackgroundColor: darken(@alternateTextColor, 26%);

@baseFontFamily: @fontFamily;
@baseTextColor: @textColor;
@baseBackgroundColor: @backgroundColor;
@baseLinkColor: @accentColor;

// badge
@badgeColor: @lighterPrimaryColor;
@badgeTextColor: @alternateTextColor;
Expand All @@ -18,6 +13,11 @@
@badgeSecondaryColor: @accentColor;
@badgeSecondaryTextColor: @alternateTextColor;

@baseFontFamily: @fontFamily;
@baseTextColor: @textColor;
@baseBackgroundColor: @backgroundColor;
@baseLinkColor: @accentColor;

@bottomNavBackgroundColor: @dialogBackgroundColor;
@bottomNavShiftBackgroundColor: @primaryColor;
@bottomNavUnselectedColor: @secondaryTextColor;
Expand Down
24 changes: 12 additions & 12 deletions less/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
color: @badgeSecondaryTextColor;
}

body {
background-color: @baseBackgroundColor;
color: @baseTextColor;
font-family: @baseFontFamily;
}

a {
color: @baseLinkColor;
}

.mu-bottom-nav {
background-color: @bottomNavBackgroundColor;
}
Expand All @@ -47,16 +57,6 @@
}
}

body {
background-color: @baseBackgroundColor;
color: @baseTextColor;
font-family: @baseFontFamily;
}

a {
color: @baseLinkColor;
}

.mu-bottom-sheet {
background-color: @bottomSheetColor;
}
Expand Down Expand Up @@ -162,7 +162,7 @@ a {

.mu-date-display{
background-color: @datePickerHeaderColor;
color: @datePickerSelectTextColor;
color: @datePickerTextColor;
}


Expand Down Expand Up @@ -684,7 +684,7 @@ a {

.mu-time-display {
background-color: @timePickerHeaderColor;
color: @timePickerSelectTextColor;
color: @timePickerColor;
}

.mu-clock-number{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "muse-ui",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "material design ui for vue2",
"main": "dist/muse-ui.js",
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion src-docs/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ function isDesktop () {
.content-wrapper{
padding: 48px 72px;
background-color: @alternateTextColor;
}
@media (min-width: 480px) {
Expand Down
3 changes: 2 additions & 1 deletion src-docs/assets/atom-one-light.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.hljs {
.hljs,
[class^="lang-"], [class*=" lang-"] {
display: block;
overflow-x: auto;
padding: 0.5em;
Expand Down
52 changes: 52 additions & 0 deletions src-docs/assets/themes/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
background-color: @primaryColor;
}

.mu-desc-wrapper{
background-color: fade(@alternateTextColor, 30%);
}

.exmaples-drawer{
border-right-color: @borderColor;
}

.exmaples-nav-appbar.mu-appbar{
background-color: @dialogBackgroundColor;
color: @secondaryTextColor;
}
.exmaples-appbar-title{
color: @secondaryTextColor;
}


.mu-logo{
background-color: @alternateTextColor;
Expand Down Expand Up @@ -56,3 +72,39 @@
.code-examples {
background-color: @dialogBackgroundColor;
}


.markdown-body {
color: @textColor;
}

.markdown-body a {
color: @primaryColor;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
color: @textColor;
}

.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
color: @textColor;
}

.markdown-body blockquote {
color: @secondaryTextColor;
}


.markdown-body img {
background-color: @alternateTextColor;
}
14 changes: 10 additions & 4 deletions src-docs/components/AppNavDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<mu-divider/>
<mu-flexbox class="mu-version-box" align="center">
<span class="mu-version-text">Version: </span>
<mu-dropDown-menu :value="version" v-if="version">
<mu-dropDown-menu :value="version" @change="handleVersionChange" v-if="versions.length > 0">
<mu-menu-item v-for="vtext in versions" :value="vtext" :title="vtext"/>
</mu-dropDown-menu>
</mu-flexbox>
Expand Down Expand Up @@ -95,6 +95,7 @@
</template>

<script>
import packageJson from '../../package.json'
export default {
props: {
open: {
Expand All @@ -109,11 +110,17 @@ export default {
data () {
return {
menuVal: '#/',
version: '',
version: packageJson.version,
versions: []
}
},
methods: {
handleVersionChange (val) {
if (val !== this.version) {
var url = this.versions.indexOf(val) === 0 ? '/' : '/' + val
window.open(url)
}
},
handleClose () {
this.$emit('close')
},
Expand All @@ -133,7 +140,6 @@ export default {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
this.versions = JSON.parse(xhr.responseText)
this.version = this.versions[0]
} else {
console.error(xhr.statusText)
}
Expand All @@ -152,7 +158,7 @@ export default {
}
.exmaples-nav-appbar.mu-appbar{
background-color: #FFF;
background-color: @dialogBackgroundColor;
color: @secondaryTextColor;
}
.exmaples-appbar-title{
Expand Down
Loading

0 comments on commit bcee45c

Please sign in to comment.