From e7a54ba0c99d35ec947beb3f0f02e6dd0964d72f Mon Sep 17 00:00:00 2001 From: silvio Date: Thu, 15 Oct 2009 14:45:14 -0300 Subject: CSS change and code cleanup --- jquery_drawer.css | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ jquery_drawer.module | 39 +++++++++++++++++++++++++++------ style.css | 58 ------------------------------------------------ 3 files changed, 94 insertions(+), 65 deletions(-) create mode 100644 jquery_drawer.css delete mode 100644 style.css diff --git a/jquery_drawer.css b/jquery_drawer.css new file mode 100644 index 0000000..62da52c --- /dev/null +++ b/jquery_drawer.css @@ -0,0 +1,62 @@ +div#content { + color : #ffffff; + background : #000000; +} + +div#info { + padding : 0 30px 30px 30px; +} + +div#info h1 { + font-size : 36px; + font-weight : bold; + padding : 30px 0 0 0; + margin : 0; +} + +div#info h2 { + font-size : 20px; + font-weight : bold; + border-top : 1px solid #111111; + padding : 30px 0 0 0; + margin : 30px 0 0 0; +} + +div#info p { + font-size : 12px; + line-height : 1.6; + padding : 10px 0 0 0; + margin : 0; +} + +div#info a { + color : #ffffff; +} + +div#info pre { + font-size : 11px; + font-family : "Courier New", monospace; + line-height : 1.4; + color : #99ff99; + background : #222222; + padding : 10px; + margin : 10px 0; +} + +div#info em { + font-style : normal; + color : #ff0099; +} + +div.sample p { + font-size : 24px; + font-weight : bold; + line-height : 1.6; + color : #ffff00; + padding : 20px; + margin : 0; +} + +ul#drw_tabs { + width: 100%; +} diff --git a/jquery_drawer.module b/jquery_drawer.module index 2dcb707..7d3996a 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -135,11 +135,31 @@ function theme_jquery_drawer($menu_name, $mlid) { // Build the menus $output = jquery_drawer_build($menu); - $output .= ''; // TODO: remove this + + return $output; +} + +/** + * Build the Drawer. + * + * @ingroup themeable + */ +function jquery_drawer_build($menu) { + + $output = ''; $output .= '
'; $output .= '
'; - return $output; + } /** @@ -147,7 +167,7 @@ function theme_jquery_drawer($menu_name, $mlid) { * * @ingroup themeable */ -function jquery_drawer_build($menu) { +function jquery_drawer_show_items($menu) { global $_jquery_drawer_id; @@ -157,7 +177,7 @@ function jquery_drawer_build($menu) { $_jquery_drawer_id = 0; } else { - //$output = ''; return $output; } @@ -213,8 +233,8 @@ function theme_jquery_drawer_javascript() { * @ingroup themeable */ function theme_jquery_drawer_css() { - drupal_add_css(drupal_get_path('module', 'jquery_drawer') .'/style.css'); drupal_add_css(drupal_get_path('module', 'jquery_drawer') .'/jquery_drawer/drw/styles.css'); + drupal_add_css(drupal_get_path('module', 'jquery_drawer') .'/jquery_drawer.css'); } /** @@ -228,5 +248,10 @@ function theme_jquery_drawer_link($link) { } $link['attributes']['rel'] = 'drw'; - return l($link['title'], $link['href'], array('attributes' => array('rel' => 'drw'))); + + $output = '
  • '; + $output .= l($link['title'], $link['href'], array('attributes' => array('rel' => 'drw'))); + $output .= '
  • '; + + return $output; } diff --git a/style.css b/style.css deleted file mode 100644 index 2d02061..0000000 --- a/style.css +++ /dev/null @@ -1,58 +0,0 @@ -div#content { - color : #ffffff; - background : #000000; -} - -div#info { - padding : 0 30px 30px 30px; -} - -div#info h1 { - font-size : 36px; - font-weight : bold; - padding : 30px 0 0 0; - margin : 0; -} - -div#info h2 { - font-size : 20px; - font-weight : bold; - border-top : 1px solid #111111; - padding : 30px 0 0 0; - margin : 30px 0 0 0; -} - -div#info p { - font-size : 12px; - line-height : 1.6; - padding : 10px 0 0 0; - margin : 0; -} - -div#info a { - color : #ffffff; -} - -div#info pre { - font-size : 11px; - font-family : "Courier New", monospace; - line-height : 1.4; - color : #99ff99; - background : #222222; - padding : 10px; - margin : 10px 0; -} - -div#info em { - font-style : normal; - color : #ff0099; -} - -div.sample p { - font-size : 24px; - font-weight : bold; - line-height : 1.6; - color : #ffff00; - padding : 20px; - margin : 0; -} -- cgit v1.2.3