rxr-rem( val )
  //return ( val / 100 )rem
  return (val)px

rxr-image-width( src )
  return image-size( src )[0]

rxr-image-height( src )
  return image-size( src )[1]

rxr-load-Img( imgName )
  $path = '../../images/'+imgName
  background transparent url( $path ) no-repeat
  width rxr-image-width( $path )
  height rxr-image-height( $path )
  //background-attachment fixed

rxr-image-mouseover-mouseout(url,$parent,width,height,hoverPos,outPos)
  .{$parent}
    display inline-block
    rxr-load-Img( url )
    width width
    height height
    vertical-align middle
    cursor pointer
    background-position outPos
    &:hover
      background-position hoverPos

rxr-image-clip(url,width,height,clip=0 0)
  rxr-load-Img( url )
  width width
  height height
  background-position clip

rxr-get-color( $usage ) {
  if ($usage == biaoti) {
    return #5f5f64
  }
  if ($usage == zhengwen) {
    return #828287
  }
  if ($usage == beizhu) {
    return #999c9e
  }
  if ($usage == icons) {
    return #c3c3c3
  }
  if ($usage == wenzilian) {
    return #32c8c8
  }
  if ($usage == fengexian) {
    return #f2f2f2
  }
  if ($usage == hoversekuai) {
    return #f7f7f7
  }
  if ($usage == jinggao) {
    return #f28823
  }
  if ($usage == zhusediao) {
    return #22bb9a
  }
}
rxr-fontSize-12()
  font-family '微软雅黑','MicrosoftYaHei', 'Microsoft YaHei'
  font-size 12px

rxr-fontSize-14()
  font-family '微软雅黑','MicrosoftYaHei', 'Microsoft YaHei'
  font-size 14px

rxr-bg-broder-triangle($top,$left,$borderWidth=4px)
  content ""
  position absolute
  top $top;
  left $left
  border-style solid
  border-color transparent
  border-width $borderWidth

rxr-flip(axisX=1,axisY=1)
  if(axisX) {
    -moz-transform scaleX(axisX)
    -webkit-transform scaleX(axisX)
    -o-transform scaleX(axisX)
    transform scaleX(axisX)
    /*IE*/
    filter FlipH
  }else if(axisY) {
    -moz-transform scaleY(axisY)
    -webkit-transform scaleY(axisY)
    -o-transform scaleY(axisY)
    transform scaleY(axisY)
    /*IE*/
    filter FlipV
  }



rxr-set-powerTip()
  body #powerTip
    cursor: default;
    background-color: #ffffff;
    border 1px solid rxr-get-color( icons )
    border-radius: 3px;
    color: rxr-get-color( beizhu );
    display: none;
    padding: rxr-rem( 6 )
    position: absolute;
    white-space: nowrap;
    font-size rxr-rem( 12 )
    rxr-box-shadow(1px 0.5px 10px rxr-get-color( icons ))
    &.e:before
      border-right: 10px solid rxr-get-color( icons ) !important
    &.e:after
      rxr-bg-broder-triangle(50%,-11px,4px)
      margin-top -4px
      border-right: 8px solid #ffffff !important;
    &.n:before
      border-top: 10px solid rxr-get-color( icons ) !important
    &.n:after
      rxr-bg-broder-triangle(24px,50%,3px)
      margin-left -3px
      border-top: 8px solid #ffffff !important;
    &.w:before
      border-left: 10px solid rxr-get-color( icons ) !important
    &.w:after
      rxr-bg-broder-triangle(50%,100%,4px)
      margin-top -4px
      border-left: 8px solid #ffffff !important;
    &.s:before
      border-bottom: 10px solid rxr-get-color( icons ) !important
    &.s:after
      rxr-bg-broder-triangle(-10px,50%,4px)
      margin-left -4px
      border-bottom: 8px solid #ffffff !important;

rxr-power-tip(elmClass,left=8)
  rxr-image-mouseover-mouseout('rxr-icon-info.png',elmClass,rxr-rem(12),rxr-rem(12),0 rxr-rem(-12),0 0)
  .{elmClass}
    margin-left rxr-rem( left )


rxr-set-validTip()
  .arrow_box
    position absolute
    background #fff
    border 1px solid #f2f2f2
    padding 5px 10px
    width auto
    height 14px
    line-height 14px
    border-radius 5px
    box-shadow 0 1px 4px rgba(0, 0, 0, 0.3)
    text-align center
    font-size 12px
    box-sizing content-box

  .arrow_box::after,
  .arrow_box::before {
    position:absolute;
    content:"";
    height:0;
    width: 0;
    pointer-events: none;
    border: solid transparent;
  }
  /*top*/
  .arrow_box.top::after,
  .arrow_box.top::before
    bottom 100%
  .arrow_box
    &.top
      &::after
        border-color rgba(136, 183, 213, 0)
        border-bottom-color #fff
        border-width 10px
        left 50%
        margin-left -10px
      &::before
        border-color rgba(194, 225, 245, 0)
        border-bottom-color #f2f2f2
        border-width 11px
        left 50%
        margin-left -11px

  /*right*/
  .arrow_box.right::after,
  .arrow_box.right::before
    left 100%
  .arrow_box
    &.right
      &::after
        border-color rgba(136, 183, 213, 0)
        border-left-color #fff
        border-width 10px
        top 50%
        margin-top -10px
      &::before
        border-color rgba(194, 225, 245, 0)
        border-left-color #f2f2f2
        border-width 11px
        top 50%
        margin-top -11px

  /*bottom*/
  .arrow_box.bottom::after,
  .arrow_box.bottom::before
    top 100%
  .arrow_box
    &.bottom
      &::after
        border-color rgba(136, 183, 213, 0)
        border-top-color #fff
        border-width 10px
        left 50px
        margin-left -10px
      &::before
        border-color rgba(194, 225, 245, 0)
        border-top-color #e3e3e3
        border-width 14px
        left 50px
        margin-left -14px

  /*left*/
  .arrow_box.left::after,
  .arrow_box.left::before
    right 100%
  .arrow_box
    &.left
      &::after
        border-color rgba(136, 183, 213, 0)
        border-right-color #fff
        border-width 10px
        top 50%
        margin-top -10px
      &::before
        border-color rgba(194, 225, 245, 0)
        border-right-color #f2f2f2
        border-width 11px
        top 50%
        margin-top -11px





