UNPKG

ohayolibs

Version:

Ohayo is a set of essential modules for ohayojp.

165 lines (139 loc) 2.75 kB
@import '../../../theme/theme-default.less'; @se-prefix: ~'.se'; @{se-prefix} { &__title { display: block; float: none; clear: both; width: 100%; color: @heading-color; font-weight: 700; font-size: 14px; line-height: @line-height-base; } &__item { &:last-child { margin-bottom: 0; padding-bottom: 0; } &-empty { &::before { display: inline-block; content: ''; } } } &__label { display: table-cell; flex: 0 0 auto; width: initial; white-space: nowrap; text-align: right; &-optional { margin-left: @se-optional-margin; color: @se-label-optional-color; &-no-text { margin-left: 0; } > .anticon { margin-left: @se-optional-margin; } } } &__control { flex: 1 0 0; width: 100%; } &__compact { > @{se-prefix}__title, > @{se-prefix}__item { margin-bottom: @se-compact-bottom; } .@{ant-prefix}-form-item-extra { display: none; } } &__line { padding-bottom: @layout-gutter; border-bottom: 1px dashed @border-color-split; } &__hide-label, &__inline, &__vertical { @{se-prefix}__nolabel { display: none !important; } } &__horizontal { > @{se-prefix}__item { display: flex; &:last-child { margin-bottom: 0; } @{se-prefix}__label { display: flex; justify-content: flex-end; &-text { overflow: hidden; text-overflow: ellipsis; } } .@{ant-prefix}-form-item { &-required::before { line-height: inherit; } &-label > label::after { margin-left: 4px; } } } } &__vertical { > @{se-prefix}__item { display: block; width: 100%; } } &__inline { .@{ant-prefix}-form-item-label, @{se-prefix}__control { display: inline-block; width: initial !important; text-align: left; vertical-align: top; } > @{se-prefix}__item { margin-right: 16px; &[col='1'] { flex-basis: auto; width: 100%; } &:last-child { margin-right: 0; } } } } @media (max-width: @mobile-max) { @{se-prefix} { &__horizontal { > @{se-prefix}__item { display: block; .@{ant-prefix}-form-item-label { width: 100% !important; text-align: left; } @{se-prefix}__label { justify-content: normal; } } } &__horizontal, &__vertical { @{se-prefix}__label, @{se-prefix}__control { width: 100% !important; } } } }