Skip to content

Instantly share code, notes, and snippets.

@JonMcL
Last active December 15, 2015 05:59
Show Gist options
  • Select an option

  • Save JonMcL/5213486 to your computer and use it in GitHub Desktop.

Select an option

Save JonMcL/5213486 to your computer and use it in GitHub Desktop.
Useful CSS for Drupal theme. Designed to make many action tabs flow to a second line. Gleamed from: http://redfinsolutions.com/blog/sanitizing-drupals-default-tabs
ul.primary {
border-bottom: 0;
white-space: normal;
line-height: 1.6em;
padding: 0;
margin: 0
}
ul.primary li {
display: list-item;
float: left;
margin-bottom: 10px;
}
ul.primary li a {
border-style: solid;
white-space: nowrap;
margin-right: .1em;
}
ul.primary li.active a {
border-bottom: 1px solid #bbb;
}
ul.primary li a:hover {
border-bottom-color: #ccc;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment