all files / src/divider/ divider.vue

100% Statements 0/0
100% Branches 0/0
100% Functions 0/0
100% Lines 0/0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43                                                                                     
<template>
  <hr class="mu-divider" :class="{'inset': inset, 'shallow-inset': shallowInset}"/>
</template>
 
<script>
export default {
  name: 'mu-divider',
  props: {
    inset: {
      type: Boolean,
      default: false
    },
    shallowInset: {
      type: Boolean,
      default: false
    }
  }
}
</script>
 
<style lang="less">
@import "../styles/import.less";
.mu-divider {
  margin: 0;
  height: 1px;
  border: none;
  background-color: @borderColor;
  width: 100%;
  &.inset{
    margin-left: 72px;
  }
  &.shallow-inset{
    margin-left: 16px;
  }
  html.pixel-ratio-2 & {
    .transform(scaleY(0.5));
  }
  html.pixel-ratio-3 & {
    .transform(scaleY(0.33));
  }
}
</style>