UNPKG

d2recharts

Version:

data driven react components of echarts

75 lines (73 loc) 1.67 kB
@borderColor: #e9e9e9; @black: #333; @grey: #666; .d2indicator { * { box-sizing: border-box; } font-family: "Times New Roman", SimHei, "Hiragino Sans GB", "STHeiti", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif; list-style: none; margin: 0; padding: 0; &.show-sample .d2indicator-item { display: block; width: auto; margin: 0; } .d2indicator-item { //display: inline-block; //width: calc(~"25% - 12px"); height: 100%; margin: 8px 6px; border: 1px solid @borderColor; border-radius: 4px; box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .12); background-color: #fff; will-change: background-color, box-shadow; transition: all ease-in-out .2s; cursor: pointer; &:hover { box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .26); background-color: darken(#fff, 1.5%); } .key, .value { display: block; } .measure { height: 32px; padding: 10px 16px; .key { float: left; font-size: 12px; } .value { float: right; font-size: 12px; } &::after { content: ''; clear: both; display: block; height: 0; } } .dimension, .main-measure { height: 92px; padding: 16px; border-bottom: 1px solid @borderColor; .key { height: 20px; font-size: 14px; color: @grey; line-height: 20px; } .value { height: 30px; margin-top: 10px; font-size: 24px; color: @black; line-height: 30px; } } } }