123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- @import "./variables.scss";
- $module: #{$prefix}-descriptions;
- .#{$module} {
- line-height: $font-descriptions-lineHeight;
- table,
- tr,
- th,
- td {
- margin: 0;
- padding: 0;
- border: 0;
- }
- th {
- padding-right: $spacing-descriptions_th-paddingRight;
- }
- & &-item {
- margin: 0;
- padding-bottom: $spacing-descriptions_item-paddingBottom;
- text-align: left;
- vertical-align: top;
- }
- &-key {
- font-weight: normal;
- @include font-size-regular;
- min-height: $font-size-regular;
- white-space: nowrap;
- color: $color-descriptions_key-text-default;
- }
- &-value {
- font-weight: normal;
- @include font-size-regular;
- color: $color-descriptions_value-text-default;
- }
- &-center {
- .#{$module}-item-th {
- text-align: right;
- }
- .#{$module}-item-td {
- text-align: left;
- }
- }
- &-left {
- .#{$module}-item-th,
- .#{$module}-item-td {
- text-align: left;
- }
- }
- &-justify {
- .#{$module}-item-th {
- text-align: left;
- }
- .#{$module}-item-td {
- text-align: right;
- }
- }
- &-plain {
- // tag 垂直居中
- .#{$module}-key,
- .#{$module}-value {
- display: inline-block;
- }
- .#{$module}-value {
- padding-left: $spacing-descriptions_value_plain-paddingLeft;
- & .#{$prefix}-tag {
- vertical-align: middle;
- }
- }
- }
- &-double {
- tbody {
- display: flex;
- flex-wrap: wrap;
- }
- tr {
- display: inline-flex;
- flex-direction: column;
- }
- & .#{$module}-item {
- padding: $spacing-descriptions_item_double-padding;
- flex: 1;
- }
- .#{$module}-value {
- font-weight: $font-descriptions_value-fontWeight;
- }
- &-small {
- .#{$module}-item {
- padding-right: $spacing-descriptions_item_small-paddingRight;
- }
- .#{$module}-key {
- @include font-size-small;
- padding-bottom: 0;
- }
- .#{$module}-value {
- @include font-size-header-6;
- }
- }
- &-medium {
- .#{$module}-item {
- padding-right: $spacing-descriptions_item_medium-paddingRight;
- }
- & .#{$module}-key {
- padding-bottom: $spacing-descriptions_key_medium-paddingBottom;
- }
- & .#{$module}-value {
- @include font-size-header-4;
- }
- }
- &-large {
- .#{$module}-item {
- padding-right: $spacing-descriptions_item_large-paddingRight;
- }
- & .#{$module}-key {
- padding-bottom: $spacing-descriptions_key_large-paddingBottom;
- }
- & .#{$module}-value {
- @include font-size-header-2;
- }
- }
- }
- }
- @import "./rtl.scss";
|