1b5658d5ac
We've had a set of %placeholders in our base styles for quite a while but not butten the bullet to use them. This begins to use them. We had to make a small amount of tweaks to base whilst doing this, but its as we'd prefer there to be as few font placeholders as possible. We might/should be able to reduce these further at somepoint, or potentially rename them. We currently have six header fonts (or 4 header fonts/2 strong body fonts) and 3 body fonts. We also noticed an empty CSS file and deleted that while we were here. We also noticed that the bottom border of structure tabs was a pixel larger than ours so we tweaked that here also.
68 lines
1.2 KiB
SCSS
68 lines
1.2 KiB
SCSS
/* layout */
|
|
%app-view-header > div:last-of-type > div:first-child {
|
|
flex-grow: 1;
|
|
}
|
|
%app-view {
|
|
position: relative;
|
|
}
|
|
%app-view-header .actions {
|
|
float: right;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
margin-top: 9px;
|
|
}
|
|
%app-view-header dl {
|
|
float: left;
|
|
margin-top: 25px;
|
|
margin-right: 50px;
|
|
margin-bottom: 20px;
|
|
}
|
|
%app-view-header dt {
|
|
font-weight: bold;
|
|
}
|
|
/* units */
|
|
%app-view {
|
|
margin-top: 50px;
|
|
}
|
|
%app-view-header + div > *:first-child {
|
|
margin-top: 1.8em;
|
|
}
|
|
%app-view h2 {
|
|
padding-bottom: 0.2em;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
%app-view-header .actions > *:not(:last-child) {
|
|
margin-right: 12px;
|
|
}
|
|
|
|
// content
|
|
%app-view-content div > dl > dt {
|
|
position: absolute;
|
|
}
|
|
%app-view-content div > dl {
|
|
position: relative;
|
|
}
|
|
%app-view-content-empty {
|
|
margin-top: 0;
|
|
padding: 50px;
|
|
text-align: center;
|
|
}
|
|
%app-view-content form:not(:last-child) {
|
|
margin-bottom: 2.2em;
|
|
}
|
|
%app-view-content div > dl > dt {
|
|
width: 140px;
|
|
}
|
|
%app-view-content div > dl > dd {
|
|
padding-left: 140px;
|
|
}
|
|
%app-view-content div > dl > * {
|
|
min-height: 1em;
|
|
margin-bottom: 0.4em;
|
|
}
|
|
// TODO: Think about an %app-form or similar
|
|
%app-view-content fieldset:not(.freetext-filter) {
|
|
padding-bottom: 0.3em;
|
|
margin-bottom: 2em;
|
|
}
|