Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@robinschaaf
Forked from mattdetails/tc-panel.html
Last active September 3, 2015 19:27
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 robinschaaf/45c01ea396579f57ead6 to your computer and use it in GitHub Desktop.
Save robinschaaf/45c01ea396579f57ead6 to your computer and use it in GitHub Desktop.
.tc-panel
.tc-section.mod-divider
.tc-section-left
h1.mod-no-margin Panel Title
.tc-section-right
.tc-section-righ-item
| Optional actions area - basically floats right.
.tc-section.mod-divider
| Subhead row
.tc-section.mod-content
.tc-panel {
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.07);
@include clearfix;
background: $white;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 5px;
margin-bottom: 30px;
}
//this would probably just be a different component.. not necessarily this name, but if there's somewhere else that we can think of clearfix being applicable
.tc-section {
@include clearfix;
padding: 10px 15px;
}
.tc-section-left {
@include span-columns(5);
}
.tc-section-right {
@include span-columns(7);
@include direction-context(right-to-left) {
.tc-section-right-item {
@include span-columns(8);
}
}
}
.tc-section.mod-divider {
border-bottom: 1px $gray-300 solid;
}
//this could be done in several different ways
.tc-section.mod-content {
padding: 15px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment