Fix field-horizontal
This commit is contained in:
parent
4fc17958c2
commit
6aa269c2a5
3 changed files with 71 additions and 80 deletions
|
@ -3608,63 +3608,57 @@ a.tag:hover {
|
|||
.field.is-grouped.is-grouped-multiline:not(:last-child) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
@media screen and (max-width: 768px) {
|
||||
.field.is-horizontal {
|
||||
display: flex;
|
||||
}
|
||||
.field.is-horizontal {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.field-label {
|
||||
margin-bottom: 0.5rem;
|
||||
flex-basis: 0;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
margin-right: 1.5rem;
|
||||
text-align: right;
|
||||
}
|
||||
.field-label .label {
|
||||
font-size: inherit;
|
||||
}
|
||||
@media screen and (max-width: 768px) {
|
||||
.field-label {
|
||||
margin-bottom: 0.5rem;
|
||||
flex-basis: 0;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
margin-right: 1.5rem;
|
||||
text-align: right;
|
||||
}
|
||||
.field-label.is-small {
|
||||
font-size: 0.75rem;
|
||||
padding-top: 0.375em;
|
||||
}
|
||||
.field-label.is-normal {
|
||||
padding-top: 0.375em;
|
||||
}
|
||||
.field-label.is-medium {
|
||||
font-size: 1.25rem;
|
||||
padding-top: 0.375em;
|
||||
}
|
||||
.field-label.is-large {
|
||||
font-size: 1.5rem;
|
||||
padding-top: 0.375em;
|
||||
}
|
||||
.field-label.is-small {
|
||||
font-size: 0.75rem;
|
||||
padding-top: 0.375em;
|
||||
}
|
||||
.field-label.is-normal {
|
||||
padding-top: 0.375em;
|
||||
}
|
||||
.field-label.is-medium {
|
||||
font-size: 1.25rem;
|
||||
padding-top: 0.375em;
|
||||
}
|
||||
.field-label.is-large {
|
||||
font-size: 1.5rem;
|
||||
padding-top: 0.375em;
|
||||
}
|
||||
|
||||
.field-body {
|
||||
display: flex;
|
||||
flex-basis: 0;
|
||||
flex-grow: 5;
|
||||
flex-shrink: 1;
|
||||
}
|
||||
.field-body .field .field {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
@media screen and (max-width: 768px) {
|
||||
.field-body {
|
||||
display: flex;
|
||||
flex-basis: 0;
|
||||
flex-grow: 5;
|
||||
flex-shrink: 1;
|
||||
}
|
||||
.field-body .field {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.field-body > .field {
|
||||
flex-shrink: 1;
|
||||
}
|
||||
.field-body > .field:not(.is-narrow) {
|
||||
flex-grow: 1;
|
||||
}
|
||||
.field-body > .field:not(:last-child) {
|
||||
margin-right: 0.75rem;
|
||||
}
|
||||
.field-body .field {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.field-body > .field {
|
||||
flex-shrink: 1;
|
||||
}
|
||||
.field-body > .field:not(.is-narrow) {
|
||||
flex-grow: 1;
|
||||
}
|
||||
.field-body > .field:not(:last-child) {
|
||||
margin-right: 0.75rem;
|
||||
}
|
||||
|
||||
.control {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -117,47 +117,44 @@ $label-colors: $form-colors !default
|
|||
&:not(:last-child)
|
||||
margin-bottom: 0
|
||||
&.is-horizontal
|
||||
+mobile
|
||||
display: flex
|
||||
display: flex
|
||||
|
||||
.field-label
|
||||
.label
|
||||
font-size: inherit
|
||||
+mobile
|
||||
margin-bottom: 0.5rem
|
||||
flex-basis: 0
|
||||
flex-grow: 1
|
||||
flex-shrink: 0
|
||||
+ltr-property("margin", 1.5rem)
|
||||
text-align: right
|
||||
&.is-small
|
||||
font-size: $size-small
|
||||
padding-top: 0.375em
|
||||
&.is-normal
|
||||
padding-top: 0.375em
|
||||
&.is-medium
|
||||
font-size: $size-medium
|
||||
padding-top: 0.375em
|
||||
&.is-large
|
||||
font-size: $size-large
|
||||
padding-top: 0.375em
|
||||
margin-bottom: 0.5rem
|
||||
flex-basis: 0
|
||||
flex-grow: 1
|
||||
flex-shrink: 0
|
||||
+ltr-property("margin", 1.5rem)
|
||||
text-align: right
|
||||
&.is-small
|
||||
font-size: $size-small
|
||||
padding-top: 0.375em
|
||||
&.is-normal
|
||||
padding-top: 0.375em
|
||||
&.is-medium
|
||||
font-size: $size-medium
|
||||
padding-top: 0.375em
|
||||
&.is-large
|
||||
font-size: $size-large
|
||||
padding-top: 0.375em
|
||||
|
||||
.field-body
|
||||
.field .field
|
||||
margin-bottom: 0
|
||||
+mobile
|
||||
display: flex
|
||||
flex-basis: 0
|
||||
flex-grow: 5
|
||||
display: flex
|
||||
flex-basis: 0
|
||||
flex-grow: 5
|
||||
flex-shrink: 1
|
||||
.field
|
||||
margin-bottom: 0
|
||||
& > .field
|
||||
flex-shrink: 1
|
||||
.field
|
||||
margin-bottom: 0
|
||||
& > .field
|
||||
flex-shrink: 1
|
||||
&:not(.is-narrow)
|
||||
flex-grow: 1
|
||||
&:not(:last-child)
|
||||
+ltr-property("margin", 0.75rem)
|
||||
&:not(.is-narrow)
|
||||
flex-grow: 1
|
||||
&:not(:last-child)
|
||||
+ltr-property("margin", 0.75rem)
|
||||
|
||||
.control
|
||||
box-sizing: border-box
|
||||
|
|
Loading…
Reference in a new issue