UNPKG

ohayolibs

Version:

Ohayo is a set of essential modules for ohayojp.

97 lines (95 loc) 1.81 kB
@import '../../../theme/theme-default.less'; @g2-pie-prefix: ~'.g2-pie'; @{g2-pie-prefix} { position: relative; display: block; &__chart { position: relative; } &__legend { position: absolute; top: 50%; right: 0; min-width: 250px; margin: 0 20px; padding: 0; list-style: none; transform: translateY(-50%); &-item { height: 22px; margin-bottom: 16px; line-height: 22px; cursor: pointer; &:last-child { margin-bottom: 0; } } &-title { color: @text-color; } &-dot { position: relative; top: -1px; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 8px; } &-percent { color: @text-color-secondary; } &-value { position: absolute; right: 0; } &-has { @{g2-pie-prefix}__chart { width: ~'calc(100% - 240px)'; } } &-block { @{g2-pie-prefix}__chart { width: 100%; margin: 0 0 32px; } @{g2-pie-prefix}__legend { position: relative; min-width: auto; transform: none; } } } &__total { position: absolute; top: 50%; left: 50%; height: 62px; text-align: center; transform: translate(-50%, -50%); &-title { height: 22px; margin-bottom: 8px; color: @text-color-secondary; font-weight: normal; font-size: 14px; line-height: 22px; } &-stat { display: block; height: 32px; color: @heading-color; font-size: 1.2em; line-height: 32px; white-space: nowrap; } } &__mini { @{g2-pie-prefix}__total { &-title { margin-top: 4px; margin-bottom: 0; } } } }