diff --git a/components/button/index.scss b/components/button/index.scss index a0ff660..ae36f43 100644 --- a/components/button/index.scss +++ b/components/button/index.scss @@ -68,6 +68,30 @@ border-color: lighten($color-primary, 40%); } } + &.plain { + &.primary { + color: $color-primary; + background-color: transparent; + &.active { + background-color: rgba($color-primary, 0.1); + } + } + &.disabled { + background-color: rgba($bg-disabled, 0.1); + color: $color-disabled; + cursor: not-allowed; + &.active { + color: $color-disabled; + background-color: rgba($bg-disabled, 0.1); + &, &::after { + border-color: $bg-disabled; + } + } + &, &::after { + border-color: $bg-disabled; + } + } + } &.link { padding: $h-gap-sm $v-gap-sm; background: inherit; @@ -76,6 +100,9 @@ &.active { color: darken($color-primary, 5%); } + &::after { + display: none; + } } &.disabled { background-color: $bg-disabled; diff --git a/components/cell/index.scss b/components/cell/index.scss index 548aa9f..57ec5e9 100644 --- a/components/cell/index.scss +++ b/components/cell/index.scss @@ -39,19 +39,23 @@ color: $color-disabled; } &__title, &__value { - flex: 1; display: flex; } &__title { + flex: auto; flex-direction: column; justify-content: center; + min-width: 150upx; + padding-right: 10upx; + box-sizing: border-box; } &__value { + flex: auto; align-items: center; justify-content: flex-end; position: relative; overflow: hidden; - color: $color-minor; + color: $color-text-minor; text-align: right; vertical-align: middle; word-wrap: break-word; diff --git a/components/input/index.vue b/components/input/index.vue new file mode 100644 index 0000000..9bd3048 --- /dev/null +++ b/components/input/index.vue @@ -0,0 +1,70 @@ + + + + + -- libgit2 0.21.0