How do you edit the tabs? I do not know what classes to use in my stylesheet for it. They are ones that say view, edit etc.

Comments

vm’s picture

open misc/drupal.css

find this area:

/* Tab navigation */
ul.primary {
  border-collapse: collapse;
  padding: 0 0 0 1em;
  white-space: nowrap;
  list-style: none;
  margin: 5px;
  height: auto;
  line-height: normal;
  border-bottom: 1px solid #bbb;
}
ul.primary li {
  display: inline;
}
ul.primary li a {
  background-color: #ddd;
  border-color: #bbb;
  border-width: 1px;
  border-style: solid solid none solid;
  height: auto;
  margin-right: 0.5em;
  padding: 0 1em;
  text-decoration: none;
}
ul.primary li.active a {
  background-color: #fff;
  border: 1px solid #bbb;
  border-bottom: #fff 1px solid;
}
ul.primary li a:hover {
  background-color: #eee;
  border-color: #ccc;
  border-bottom-color: #eee;
}
ul.secondary {
  border-bottom: 1px solid #bbb;
  padding: 0.5em 1em 0.5em 1em;
  margin: 5px;
}
ul.secondary li {
  display: inline;
  padding: 0 1em;
  border-right: 1px solid #ccc;
}
ul.secondary a {
  padding: 0;
  text-decoration: none;
}
ul.secondary a.active {
  border-bottom: 4px solid #999;
}

now you have two choices, you can edit the css where it stands, or you can copy it to your style.css and override it there which is prefereable, when using a custom theme, so that your changes wont get overridden during an update, or upgrade.

miggols99’s picture

I've fixed that. Now how do I change the colour of the active tab shadow?

vm’s picture

in the same code find

ul.primary li.active a {
background-color: #fff;
border: 1px solid #bbb;
border-bottom: #fff 1px solid;
}

everything to do with the tabs are is within the code previously posted.

youre welcome.

miggols99’s picture

I want to change the colour of the shadow on the active tab. How do you do that?