123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- .cl-form {
- .cl-form-item {
- min-height: 70rpx;
- padding: 20rpx 0;
- position: relative;
- &--required {
- .cl-form-item__label::before {
- content: "*";
- color: $cl-color-error;
- margin-right: 10rpx;
- }
- }
- &--suffix {
- .cl-form-item__content {
- margin-right: 20rpx;
- }
- }
- &__container {
- display: flex;
- &:first-child {
- padding-left: 180rpx;
- }
- }
- &__label {
- padding: 0 20rpx 0 0;
- font-size: 28rpx;
- text-align: right;
- vertical-align: middle;
- float: left;
- line-height: 70rpx;
- }
- &__content {
- /* #ifndef MP-TOUTIAO */
- display: flex;
- /* #endif */
- flex: 1;
- font-size: 26rpx;
- line-height: 70rpx;
- &.is-justify-center {
- justify-content: center;
- /* #ifdef MP-TOUTIAO */
- text-align: left;
- /* #endif */
- picker {
- text-align: center;
- }
- }
- &.is-justify-end {
- justify-content: flex-end;
- /* #ifdef MP-TOUTIAO */
- text-align: right;
- /* #endif */
- picker {
- text-align: right;
- }
- }
- &.is-justify-space-between {
- justify-content: space-between;
- }
- &.is-justify-space-around {
- justify-content: space-around;
- }
- picker {
- font-size: 26rpx;
- }
- label {
- font-size: 26rpx;
- switch,
- radio,
- checkbox {
- margin-right: 14rpx;
- }
- radio,
- checkbox {
- top: -2rpx;
- }
- switch {
- top: -4rpx;
- }
- }
- checkbox-group,
- radio-group {
- label {
- padding-right: 30rpx;
- }
- }
- cl-textarea,
- cl-select-region,
- cl-select,
- cl-input {
- width: 100%;
- }
- }
- &__message {
- display: block;
- color: $cl-color-error;
- font-size: 24rpx;
- text-align: right;
- margin-top: 6rpx;
- }
- &__suffix {
- display: flex;
- align-items: center;
- font-size: 26rpx;
- i {
- display: inline-block;
- }
- }
- }
- .cl-form-item {
- &--top {
- padding: 0 0 20rpx 0;
- .cl-form-item__label {
- padding: 0 0 10rpx 0;
- float: none;
- text-align: left;
- }
- }
- &--left {
- .cl-form-item__label {
- text-align: left;
- }
- }
- &--right {
- .cl-form-item__label {
- text-align: right;
- }
- }
- }
- &--border {
- .cl-form-item {
- border-bottom: 1rpx solid #eee;
- }
- }
- }
|