Commit fb7347bc authored by webchick's avatar webchick

#371231 by JohnAlbin and EclipseGC: Rename clear-block CSS class to clearfix,...

#371231 by JohnAlbin and EclipseGC: Rename clear-block CSS class to clearfix, which is the lingo that designers use for it.
parent ac484c27
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<?php print $tree; ?> <?php print $tree; ?>
<?php if ($has_links): ?> <?php if ($has_links): ?>
<div class="page-links clear-block"> <div class="page-links clearfix">
<?php if ($prev_url) : ?> <?php if ($prev_url) : ?>
<a href="<?php print $prev_url; ?>" class="page-previous" title="<?php print t('Go to previous page'); ?>"><?php print t('‹ ') . $prev_title; ?></a> <a href="<?php print $prev_url; ?>" class="page-previous" title="<?php print t('Go to previous page'); ?>"><?php print t('‹ ') . $prev_title; ?></a>
<?php endif; ?> <?php endif; ?>
......
...@@ -229,11 +229,11 @@ function theme_color_scheme_form($form) { ...@@ -229,11 +229,11 @@ function theme_color_scheme_form($form) {
drupal_add_css($path . $info['preview_css']); drupal_add_css($path . $info['preview_css']);
$output = ''; $output = '';
$output .= '<div class="color-form clear-block">'; $output .= '<div class="color-form clearfix">';
// Color schemes // Color schemes
$output .= drupal_render($form['scheme']); $output .= drupal_render($form['scheme']);
// Palette // Palette
$output .= '<div id="palette" class="clear-block">'; $output .= '<div id="palette" class="clearfix">';
foreach (element_children($form['palette']) as $name) { foreach (element_children($form['palette']) as $name) {
$output .= drupal_render($form['palette'][$name]); $output .= drupal_render($form['palette'][$name]);
} }
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
* @see theme_comment() * @see theme_comment()
*/ */
?> ?>
<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ' ' . $status ?> clear-block"> <div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ' ' . $status ?> clearfix">
<?php print $picture ?> <?php print $picture ?>
<?php if ($comment->new): ?> <?php if ($comment->new): ?>
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<div class="content"> <div class="content">
<?php print $content ?> <?php print $content ?>
<?php if ($signature): ?> <?php if ($signature): ?>
<div class="user-signature clear-block"> <div class="user-signature clearfix">
<?php print $signature ?> <?php print $signature ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
......
...@@ -205,7 +205,7 @@ function field_multiple_value_form($field, $instance, $items, &$form, &$form_sta ...@@ -205,7 +205,7 @@ function field_multiple_value_form($field, $instance, $items, &$form, &$form_sta
); );
// Add wrappers for the fields and 'more' button. // Add wrappers for the fields and 'more' button.
$form_element['#prefix'] = '<div class="clear-block" id="' . $field_name_url_str . '-add-more-wrapper"><div id="' . $field_name_url_str . '-items">'; $form_element['#prefix'] = '<div class="clearfix" id="' . $field_name_url_str . '-add-more-wrapper"><div id="' . $field_name_url_str . '-items">';
$form_element[$field_name . '_add_more']['#prefix'] = '<div class="field-add-more">'; $form_element[$field_name . '_add_more']['#prefix'] = '<div class="field-add-more">';
$form_element[$field_name . '_add_more']['#suffix'] = '</div></div></div>'; $form_element[$field_name . '_add_more']['#suffix'] = '</div></div></div>';
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
*/ */
?> ?>
<?php if ($prev || $next): ?> <?php if ($prev || $next): ?>
<div class="forum-topic-navigation clear-block"> <div class="forum-topic-navigation clearfix">
<?php if ($prev): ?> <?php if ($prev): ?>
<a href="<?php print $prev_url; ?>" class="topic-previous" title="<?php print t('Go to previous forum topic') ?>"><?php print $prev_title ?></a> <a href="<?php print $prev_url; ?>" class="topic-previous" title="<?php print t('Go to previous forum topic') ?>"><?php print $prev_title ?></a>
<?php endif; ?> <?php endif; ?>
......
...@@ -60,7 +60,7 @@ function help_links_as_list() { ...@@ -60,7 +60,7 @@ function help_links_as_list() {
// Output pretty four-column list // Output pretty four-column list
$count = count($modules); $count = count($modules);
$break = ceil($count / 4); $break = ceil($count / 4);
$output = '<div class="clear-block"><div class="help-items"><ul>'; $output = '<div class="clearfix"><div class="help-items"><ul>';
$i = 0; $i = 0;
foreach ($modules as $module => $name) { foreach ($modules as $module => $name) {
$output .= '<li>' . l($name, 'admin/help/' . $module) . '</li>'; $output .= '<li>' . l($name, 'admin/help/' . $module) . '</li>';
......
...@@ -280,7 +280,7 @@ function theme_node_filter_form($form) { ...@@ -280,7 +280,7 @@ function theme_node_filter_form($form) {
*/ */
function theme_node_filters($form) { function theme_node_filters($form) {
$output = ''; $output = '';
$output .= '<ul class="clear-block">'; $output .= '<ul class="clearfix">';
if (!empty($form['current'])) { if (!empty($form['current'])) {
foreach (element_children($form['current']) as $key) { foreach (element_children($form['current']) as $key) {
$output .= '<li>' . drupal_render($form['current'][$key]) . '</li>'; $output .= '<li>' . drupal_render($form['current'][$key]) . '</li>';
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
* @see template_preprocess_node() * @see template_preprocess_node()
*/ */
?> ?>
<div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?> clear-block"> <div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?> clearfix">
<?php print $picture ?> <?php print $picture ?>
......
...@@ -219,7 +219,7 @@ function poll_form(&$node, $form_state) { ...@@ -219,7 +219,7 @@ function poll_form(&$node, $form_state) {
$form['choice_wrapper'] = array( $form['choice_wrapper'] = array(
'#tree' => FALSE, '#tree' => FALSE,
'#weight' => -4, '#weight' => -4,
'#prefix' => '<div class="clear-block" id="poll-choice-wrapper">', '#prefix' => '<div class="clearfix" id="poll-choice-wrapper">',
'#suffix' => '</div>', '#suffix' => '</div>',
); );
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
* @see template_preprocess_profile_listing() * @see template_preprocess_profile_listing()
*/ */
?> ?>
<div class="profile clear-block"> <div class="profile clearfix">
<?php print $picture; ?> <?php print $picture; ?>
<div class="name"> <div class="name">
......
...@@ -31,7 +31,7 @@ th { ...@@ -31,7 +31,7 @@ th {
** Markup free clearing ** Markup free clearing
** Details: http://www.positioniseverything.net/easyclearing.html ** Details: http://www.positioniseverything.net/easyclearing.html
*/ */
.clear-block:after { .clearfix:after {
content: "."; content: ".";
display: block; display: block;
height: 0; height: 0;
...@@ -39,15 +39,15 @@ th { ...@@ -39,15 +39,15 @@ th {
visibility: hidden; visibility: hidden;
} }
.clear-block { .clearfix {
display: inline-block; display: inline-block;
} }
/* Hides from IE-mac \*/ /* Hides from IE-mac \*/
* html .clear-block { * html .clearfix {
height: 1%; height: 1%;
} }
.clear-block { .clearfix {
display: block; display: block;
} }
/* End hide from IE-mac */ /* End hide from IE-mac */
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</div> <!-- /header --> </div> <!-- /header -->
<div id="container" class="clear-block"> <div id="container" class="clearfix">
<?php if (!empty($left)): ?> <?php if (!empty($left)): ?>
<div id="sidebar-left" class="column sidebar"> <div id="sidebar-left" class="column sidebar">
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<div id="content"> <div id="content">
<?php if (!empty($title)): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?> <?php if (!empty($title)): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?>
<?php if (!empty($messages)): print $messages; endif; ?> <?php if (!empty($messages)): print $messages; endif; ?>
<div id="content-content" class="clear-block"> <div id="content-content" class="clearfix">
<?php print $content; ?> <?php print $content; ?>
</div> <!-- /content-content --> </div> <!-- /content-content -->
</div> <!-- /content --> </div> <!-- /content -->
......
...@@ -120,17 +120,17 @@ ...@@ -120,17 +120,17 @@
</div> <!-- /header --> </div> <!-- /header -->
<div id="container" class="clear-block"> <div id="container" class="clearfix">
<div id="navigation" class="menu <?php if (!empty($main_menu)) { print "withmain"; } if (!empty($secondary_menu)) { print " withsecondary"; } ?> "> <div id="navigation" class="menu <?php if (!empty($main_menu)) { print "withmain"; } if (!empty($secondary_menu)) { print " withsecondary"; } ?> ">
<?php if (!empty($main_menu)): ?> <?php if (!empty($main_menu)): ?>
<div id="main-menu" class="clear-block"> <div id="main-menu" class="clearfix">
<?php print theme('links', $main_menu, array('class' => 'links main-menu')); ?> <?php print theme('links', $main_menu, array('class' => 'links main-menu')); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if (!empty($secondary_menu)): ?> <?php if (!empty($secondary_menu)): ?>
<div id="secondary-menu" class="clear-block"> <div id="secondary-menu" class="clearfix">
<?php print theme('links', $secondary_menu, array('class' => 'links secondary-menu')); ?> <?php print theme('links', $secondary_menu, array('class' => 'links secondary-menu')); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
<?php if (!empty($tabs)): ?><div class="tabs"><?php print $tabs; ?></div><?php endif; ?> <?php if (!empty($tabs)): ?><div class="tabs"><?php print $tabs; ?></div><?php endif; ?>
<?php if (!empty($messages)): print $messages; endif; ?> <?php if (!empty($messages)): print $messages; endif; ?>
<?php if (!empty($help)): print $help; endif; ?> <?php if (!empty($help)): print $help; endif; ?>
<div id="content-content" class="clear-block"> <div id="content-content" class="clearfix">
<?php print $content; ?> <?php print $content; ?>
</div> <!-- /content-content --> </div> <!-- /content-content -->
<?php print $feed_icons; ?> <?php print $feed_icons; ?>
......
...@@ -1983,11 +1983,11 @@ function theme_admin_page($blocks) { ...@@ -1983,11 +1983,11 @@ function theme_admin_page($blocks) {
} }
} }
$output = '<div class="admin clear-block">'; $output = '<div class="admin clearfix">';
$output .= theme('system_compact_link'); $output .= theme('system_compact_link');
foreach ($container as $id => $data) { foreach ($container as $id => $data) {
$output .= '<div class="' . $id . ' clear-block">'; $output .= '<div class="' . $id . ' clearfix">';
$output .= $data; $output .= $data;
$output .= '</div>'; $output .= '</div>';
} }
...@@ -2031,9 +2031,9 @@ function theme_system_admin_by_module($menu_items) { ...@@ -2031,9 +2031,9 @@ function theme_system_admin_by_module($menu_items) {
} }
} }
$output = '<div class="admin clear-block">'; $output = '<div class="admin clearfix">';
foreach ($container as $id => $data) { foreach ($container as $id => $data) {
$output .= '<div class="' . $id . ' clear-block">'; $output .= '<div class="' . $id . ' clearfix">';
$output .= $data; $output .= $data;
$output .= '</div>'; $output .= '</div>';
} }
......
...@@ -836,7 +836,7 @@ function theme_user_filter_form($form) { ...@@ -836,7 +836,7 @@ function theme_user_filter_form($form) {
* @ingroup themeable * @ingroup themeable
*/ */
function theme_user_filters($form) { function theme_user_filters($form) {
$output = '<ul class="clear-block">'; $output = '<ul class="clearfix">';
if (!empty($form['current'])) { if (!empty($form['current'])) {
foreach (element_children($form['current']) as $key) { foreach (element_children($form['current']) as $key) {
$output .= '<li>' . drupal_render($form['current'][$key]) . '</li>'; $output .= '<li>' . drupal_render($form['current'][$key]) . '</li>';
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="content"> <div class="content">
<?php print $content; ?> <?php print $content; ?>
<?php if ($signature): ?> <?php if ($signature): ?>
<div class="clear-block"> <div class="clearfix">
<div></div> <div></div>
<?php print $signature ?> <?php print $signature ?>
</div> </div>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</head> </head>
<body class="<?php print $body_classes; ?>"> <body class="<?php print $body_classes; ?>">
<div id="header" class="clear-block"> <div id="header" class="clearfix">
<?php if ($search_box) { ?><div class="search-box"><?php print $search_box ?></div><?php }; ?> <?php if ($search_box) { ?><div class="search-box"><?php print $search_box ?></div><?php }; ?>
<?php if ($logo) { ?><a class="logo" href="<?php print $front_page ?>" title="<?php print t('Home') ?>"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" /></a><?php } ?> <?php if ($logo) { ?><a class="logo" href="<?php print $front_page ?>" title="<?php print t('Home') ?>"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" /></a><?php } ?>
<?php if ($site_name) { ?><h1 class='site-name'><a href="<?php print $front_page ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1><?php }; ?> <?php if ($site_name) { ?><h1 class='site-name'><a href="<?php print $front_page ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1><?php }; ?>
......
...@@ -170,7 +170,7 @@ function chameleon_comment($comment, $node, $links = array()) { ...@@ -170,7 +170,7 @@ function chameleon_comment($comment, $node, $links = array()) {
$output .= " <h3 class=\"title\">" . l($comment->subject, $_GET['q'], array('fragment' => "comment-$comment->cid")) . "</h3>\n"; $output .= " <h3 class=\"title\">" . l($comment->subject, $_GET['q'], array('fragment' => "comment-$comment->cid")) . "</h3>\n";
$output .= " <div class=\"content\">" . $comment->comment; $output .= " <div class=\"content\">" . $comment->comment;
if (!empty($comment->signature)) { if (!empty($comment->signature)) {
$output .= " <div class=\"clear-block\">"; $output .= " <div class=\"clearfix\">";
$output .= "<div></div>\n"; $output .= "<div></div>\n";
$output .= $comment->signature . "\n"; $output .= $comment->signature . "\n";
$output .= " </div>\n"; $output .= " </div>\n";
......
<?php <?php
// $Id$ // $Id$
?> ?>
<div id="block-<?php print $block->module . '-' . $block->delta; ?>" class="clear-block block block-<?php print $block->module ?>"> <div id="block-<?php print $block->module . '-' . $block->delta; ?>" class="clearfix block block-<?php print $block->module ?>">
<?php if (!empty($block->subject)): ?> <?php if (!empty($block->subject)): ?>
<h2><?php print $block->subject ?></h2> <h2><?php print $block->subject ?></h2>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
?> ?>
<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ' ' . $status; print ' ' . $zebra; ?>"> <div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ' ' . $status; print ' ' . $zebra; ?>">
<div class="clear-block"> <div class="clearfix">
<?php if ($submitted): ?> <?php if ($submitted): ?>
<span class="submitted"><?php print $submitted; ?></span> <span class="submitted"><?php print $submitted; ?></span>
<?php endif; ?> <?php endif; ?>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div class="content"> <div class="content">
<?php print $content ?> <?php print $content ?>
<?php if ($signature): ?> <?php if ($signature): ?>
<div class="clear-block"> <div class="clearfix">
<div></div> <div></div>
<?php print $signature ?> <?php print $signature ?>
</div> </div>
......
...@@ -27,10 +27,10 @@ ...@@ -27,10 +27,10 @@
<body class="<?php print $body_classes ?>"> <body class="<?php print $body_classes ?>">
<!-- Layout --> <!-- Layout -->
<div id="header-region" class="clear-block"><?php print $header; ?></div> <div id="header-region" class="clearfix"><?php print $header; ?></div>
<div id="wrapper"> <div id="wrapper">
<div id="container" class="clear-block"> <div id="container" class="clearfix">
<div id="header"> <div id="header">
<div id="logo-floater"> <div id="logo-floater">
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<?php if ($title): ?><h2><?php print $title ?></h2><?php endif; ?> <?php if ($title): ?><h2><?php print $title ?></h2><?php endif; ?>
<?php print $messages; ?> <?php print $messages; ?>
<?php print $help; ?> <?php print $help; ?>
<div class="clear-block"> <div class="clearfix">
<?php print $content ?> <?php print $content ?>
</div> </div>
<div id="footer"><?php print $footer_message . $footer ?></div> <div id="footer"><?php print $footer_message . $footer ?></div>
......
...@@ -13,11 +13,11 @@ ...@@ -13,11 +13,11 @@
<span class="submitted"><?php print $submitted; ?></span> <span class="submitted"><?php print $submitted; ?></span>
<?php endif; ?> <?php endif; ?>
<div class="content clear-block"> <div class="content clearfix">
<?php print $content ?> <?php print $content ?>
</div> </div>
<div class="clear-block"> <div class="clearfix">
<div class="meta"> <div class="meta">
<?php if ($terms): ?> <?php if ($terms): ?>
<div class="terms"><?php print $terms ?></div> <div class="terms"><?php print $terms ?></div>
......
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
</head> </head>
<body class="<?php print $body_classes ?>"> <body class="<?php print $body_classes ?>">
<div id="header-region" class="clear-block"><?php print $header ?></div> <div id="header-region" class="clearfix"><?php print $header ?></div>
<div id="wrapper"> <div id="wrapper">
<div id="container" class="clear-block"> <div id="container" class="clearfix">
<div id="header"> <div id="header">
<div id="logo-floater"> <div id="logo-floater">
...@@ -46,13 +46,13 @@ ...@@ -46,13 +46,13 @@
<div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner"> <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
<?php print $breadcrumb; ?> <?php print $breadcrumb; ?>
<?php if ($mission): ?><div id="mission"><?php print $mission ?></div><?php endif; ?> <?php if ($mission): ?><div id="mission"><?php print $mission ?></div><?php endif; ?>
<?php if ($tabs): ?><div id="tabs-wrapper" class="clear-block"><?php endif; ?> <?php if ($tabs): ?><div id="tabs-wrapper" class="clearfix"><?php endif; ?>
<?php if ($title): ?><h2<?php print $tabs ? ' class="with-tabs"' : '' ?>><?php print $title ?></h2><?php endif; ?> <?php if ($title): ?><h2<?php print $tabs ? ' class="with-tabs"' : '' ?>><?php print $title ?></h2><?php endif; ?>
<?php if ($tabs): ?><ul class="tabs primary"><?php print $tabs ?></ul></div><?php endif; ?> <?php if ($tabs): ?><ul class="tabs primary"><?php print $tabs ?></ul></div><?php endif; ?>
<?php if ($tabs2): ?><ul class="tabs secondary"><?php print $tabs2 ?></ul><?php endif; ?> <?php if ($tabs2): ?><ul class="tabs secondary"><?php print $tabs2 ?></ul><?php endif; ?>
<?php if ($show_messages && $messages): print $messages; endif; ?> <?php if ($show_messages && $messages): print $messages; endif; ?>
<?php print $help; ?> <?php print $help; ?>
<div class="clear-block"> <div class="clearfix">
<?php print $content ?> <?php print $content ?>
</div> </div>
<?php print $feed_icons ?> <?php print $feed_icons ?>
......
...@@ -145,7 +145,7 @@ ol.task-list li.active { ...@@ -145,7 +145,7 @@ ol.task-list li.active {
margin-right: 1em; /* LTR */ margin-right: 1em; /* LTR */
} }
fieldset ul.clear-block li { fieldset ul.clearfix li {
margin: 0; margin: 0;
padding: 0; padding: 0;
background-image: none; background-image: none;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="content"> <div class="content">
<?php print $content ?> <?php print $content ?>
<?php if ($signature): ?> <?php if ($signature): ?>
<div class="clear-block"> <div class="clearfix">
<div></div> <div></div>
<?php print $signature ?> <?php print $signature ?>
</div> </div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment