Style updates

- only add space between buttons that are visible
- smaller left-padding of lists in boxes
- less vertical margin around horizontal layouted boxes
- add span-width, spacer, double-spacer and flex-spacer helpers

spacer creates a 10x10 pixel space
double-spacer a 20x20 pixel space
flex-spacer uses space variably
This commit is contained in:
Felix Niklas 2016-11-23 14:58:31 +01:00
parent 201ca9ac26
commit a0ac4eae7b

View file

@ -608,7 +608,7 @@ pre code.hljs {
margin-left: 15px; margin-left: 15px;
} }
.vertical > .btn + .btn { .vertical > .btn:not(.hidden) + .btn {
margin-left: 0; margin-left: 0;
margin-top: 10px; margin-top: 10px;
} }
@ -5389,6 +5389,10 @@ footer {
margin-top: 12px; margin-top: 12px;
} }
.box ul {
padding-left: 10px;
}
.box .two-columns { .box .two-columns {
margin-left: -4px; margin-left: -4px;
margin-right: -4px; margin-right: -4px;
@ -5438,6 +5442,15 @@ footer {
} }
} }
.horizontal > .box {
margin-top: 4px;
margin-bottom: 4px;
& + .box {
border-left-width: 0;
}
}
.formset-inset { .formset-inset {
margin: 34px -24px 24px; margin: 34px -24px 24px;
padding: 19px 24px 24px; padding: 19px 24px 24px;
@ -8439,6 +8452,10 @@ body.fit {
align-self: end; align-self: end;
} }
.span-width {
flex-basis: 100%;
}
.two-columns, .two-columns,
.three-columns, .three-columns,
.wrap { .wrap {
@ -8473,3 +8490,17 @@ body.fit {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
.spacer {
width: 10px;
height: 10px;
}
.double-spacer {
width: 20px;
height: 20px;
}
.flex-spacer {
flex: 1;
}