diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-14 07:14:50 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-14 07:14:50 +0000 |
commit | 3cc2b1e3d78d7e82572d59939507bb3eddce53b4 (patch) | |
tree | 9a31e74cff3d628bb918f1bc2887b6a433f91aba /modules/system | |
parent | 4b65446fb63496a12486ed8616ba84186e82f74c (diff) | |
download | brdo-3cc2b1e3d78d7e82572d59939507bb3eddce53b4.tar.gz brdo-3cc2b1e3d78d7e82572d59939507bb3eddce53b4.tar.bz2 |
#77183 by m3avrck and timcn, split up drupal.css by module.
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/defaults.css | 32 | ||||
-rw-r--r-- | modules/system/system.css | 126 | ||||
-rw-r--r-- | modules/system/system.module | 6 |
3 files changed, 164 insertions, 0 deletions
diff --git a/modules/system/defaults.css b/modules/system/defaults.css new file mode 100644 index 000000000..58f17d7b7 --- /dev/null +++ b/modules/system/defaults.css @@ -0,0 +1,32 @@ +/* $Id$ */ + +/* +** HTML elements +*/ +fieldset { + margin-bottom: 1em; + padding: .5em; +} +form { + margin: 0; + padding: 0; +} +hr { + height: 1px; + border: 1px solid gray; +} +img { + border: 0; +} +table { + border-collapse: collapse; +} +th { + text-align: left; + padding-right: 1em; + border-bottom: 3px solid #ccc; +} +br.clear { + clear: both; + height: 0; +} diff --git a/modules/system/system.css b/modules/system/system.css new file mode 100644 index 000000000..3153290d1 --- /dev/null +++ b/modules/system/system.css @@ -0,0 +1,126 @@ +/* $Id$ */ + +/* +** HTML elements +*/ +th.active img { + display: inline; +} +tr.even, tr.odd { + background-color: #eee; + border-bottom: 1px solid #ccc; + padding: 0.1em 0.6em; +} +td.active { + background-color: #ddd; +} + +/* +** Other common styles +*/ +.breadcrumb { + padding-bottom: .5em +} +.container-inline div { + display: inline; +} +.error { + color: red; +} +.item-list .icon { + color: #555; + float: right; + padding-left: 0.25em; + clear: right; +} +.item-list .icon a { + color: #000; + text-decoration: none; +} +.item-list .icon a:hover { + color: #000; + text-decoration: none; +} +.item-list .title { + font-weight: bold; +} +.item-list ul { + margin: 0 0 0.75em 0; + padding: 0; +} +.item-list ul li { + margin: 0 0 0.25em 1.5em; + padding: 0; + list-style: disc; +} +.form-item { + margin-top: 1em; + margin-bottom: 1em; +} +tr.odd .form-item, tr.even .form-item { + margin-top: 0; + margin-bottom: 0; + white-space: nowrap; +} +.form-item input.error, .form-item textarea.error { + border: 2px solid red; +} +.form-item .description { + font-size: 0.85em; +} +.form-item label { + display: block; + font-weight: bold; +} +.form-item label.option { + display: inline; + font-weight: normal; +} +.marker, .form-required { + color: #f00; +} +.more-link { + text-align: right; +} +.more-help-link { + font-size: 0.85em; + text-align: right; +} +.nowrap { + white-space: nowrap; +} +.ok { + color: #080; +} +#pager { + clear: both; + text-align: center; +} +#pager a, #pager strong.pager-current { + padding: 0.5em; +} +.tips { + margin-top: 0; + margin-bottom: 0; + padding-top: 0; + padding-bottom: 0; + font-size: 0.9em; +} +dl.multiselect dd.b, dl.multiselect dd.b .form-item, dl.multiselect dd.b select { + font-family: inherit; + font-size: inherit; + width: 14em; +} +dl.multiselect dd.a, dl.multiselect dd.a .form-item { + width: 8em; +} +dl.multiselect dt, dl.multiselect dd { + float: left; + line-height: 1.75em; + padding: 0; + margin: 0 1em 0 0; +} +dl.multiselect .form-item { + height: 1.75em; + margin: 0; +} diff --git a/modules/system/system.module b/modules/system/system.module index 30f4c9108..11ebead49 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -246,6 +246,12 @@ function system_menu($may_cache) { $custom_theme = variable_get('admin_theme', 'bluemarine'); } } + else { + // Add the CSS for this module + // We put this in !$may_cache so it's only added once per request + drupal_add_css(drupal_get_path('module', 'system') .'/defaults.css', 'core'); + drupal_add_css(drupal_get_path('module', 'system') .'/system.css', 'core'); + } return $items; } |