Skip to content

Instantly share code, notes, and snippets.

@danielkuhlwein
Last active June 18, 2018 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielkuhlwein/bc7797967149aebfa93d0e3116c0361a to your computer and use it in GitHub Desktop.
Save danielkuhlwein/bc7797967149aebfa93d0e3116c0361a to your computer and use it in GitHub Desktop.
Content Header CSS
/* CONTENT HEADERS */
.content-header-row {
width: 100%;
}
#content-header .mat-form-field {
max-width: 250px;
min-width: 50px;
margin-top: 5px;
}
// All text needs to be Y-aligned
// (prevents from having to use my-auto on all elements in html
#content-header span[class*="font-"]:not(.mt-0) {
align-self: center;
}
// Prevent labels from line-breaking
#content-header span[class*="font-medium"] {
white-space: nowrap;
}
// For some reason the buttos sometimes get really tall?
// This is to prevent that:
#content-header button {
max-height: 37px;
}
@media (max-width: $ss-sm) {
.content-header-row {
// Aligns all flex items left when xs
flex-direction: column;
}
}
.btn-section {
height: 20px;
}
.mt-20-minus {
margin-top: -10px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment