Newer
Older
John Albin Wilkins
committed
/* $Id$ */
/**
* @file
* Form Styling
*/
.form-item,
John Albin Wilkins
committed
.form-checkboxes,
.form-radios /* Wrapper for a form element (or group of form elements) and its label */ {
John Albin Wilkins
committed
margin: 1em 0;
}
.form-item input.error,
John Albin Wilkins
committed
.form-item textarea.error,
.form-item select.error /* Highlight the form elements that caused a form submission error */ {
John Albin Wilkins
committed
border: 2px solid #c00;
}
.form-item label /* The label for a form element */ {
John Albin Wilkins
committed
display: block;
font-weight: bold;
}
.form-item label.option /* The label for a radio button or checkbox */ {
John Albin Wilkins
committed
display: inline;
font-weight: normal;
}
.form-required /* The part of the label that indicates a required field */ {
John Albin Wilkins
committed
color: #c00;
}
.form-item .description /* The descriptive help text (separate from the label) */ {
John Albin Wilkins
committed
font-size: 0.85em;
}
.form-checkboxes .form-item,
.form-radios .form-item /* Pack groups of checkboxes and radio buttons closer together */ {
John Albin Wilkins
committed
margin: 0.4em 0;
}
.form-submit /* The submit button */ {
John Albin Wilkins
committed
}
.container-inline div,
.container-inline label /* Inline labels and form divs */ {
John Albin Wilkins
committed
display: inline;
}
.tips /* Tips for Drupal's input formats */ {
John Albin Wilkins
committed
}
/*
* Search (search-theme-form.tpl.php)
*/
#search-box /* Wrapper for the search form */ {
John Albin Wilkins
committed
}
#edit-search-theme-form-1-wrapper label /* Label that says "Search this site:" */ {
John Albin Wilkins
committed
display: none;
}
/*
* Search (search-block-form.tpl.php)
*/
#search-block-form /* Wrapper for the search form */ {
#edit-search-block-form-1-wrapper label /* Label that says "Search this site:" */ {
John Albin Wilkins
committed
/*
* Drupal's default login form block
*/
#user-login-form {
text-align: left; /* LTR */
John Albin Wilkins
committed
}
/*
* OpenID
*
* The default styling for the OpenID login link seems to assume Garland's
* styling of list items.
*/
#user-login-form ul /* OpenID creates a new ul above the login form's links. */ {
John Albin Wilkins
committed
margin-bottom: 0; /* Position OpenID's ul next to the rest of the links. */
}
#user-login-form li.openid-link /* The "Log in using OpenID" link. */ {
John Albin Wilkins
committed
margin-top: 1em;
margin-left: -20px; /* LTR */ /* Un-do some of the padding on the ul list. */
John Albin Wilkins
committed
}
#user-login-form li.user-link /* The "Cancel OpenID login" link. */ {
John Albin Wilkins
committed
margin-top: 1em;
#user-login ul {
John Albin Wilkins
committed
}
#user-login li.openid-link,
#user-login li.user-link /* The OpenID links on the /user form. */ {
margin-left: -2em; /* LTR */ /* Un-do all of the padding on the ul list. */
John Albin Wilkins
committed
}
/*
* Drupal admin tables
*
* We overrode these styles in html-elements.css, but restore them for the admin
* section of the site.
*/
form tbody {
John Albin Wilkins
committed
border-top: 1px solid #ccc;
}
form thead th {
text-align: left; /* LTR */
padding-right: 1em; /* LTR */
John Albin Wilkins
committed
border-bottom: 3px solid #ccc;
}
form tbody th {
John Albin Wilkins
committed
border-bottom: 1px solid #ccc;
}