]> git.wh0rd.org Git - tt-rss.git/commitdiff
small dialog tweaks to better center elements vertically
authorAndrew Dolgov <fox@fakecake.org>
Sun, 21 Nov 2010 19:55:57 +0000 (22:55 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Sun, 21 Nov 2010 19:55:57 +0000 (22:55 +0300)
modules/popup-dialog.php
modules/pref-feeds.php
modules/pref-filters.php
tt-rss.css

index ec41ec4ee2d0acfca8e31584c8372b920ea6562b..0a272d1a30c17cc43a8de975d55aa202ce7f1ec2 100644 (file)
                                placeHolder=\"".__("Feed URL")."\"
                                dojoType=\"dijit.form.ValidationTextBox\" required=\"1\" name=\"feed\" id=\"feedDlg_feedUrl\">";
 
-                       print "<br/>";
+                       print "<hr/>";
 
                        if (get_pref($link, 'ENABLE_FEED_CATS')) {
                                print __('Place in category:') . " ";
                        }
 
 
-                       print "<br/>".__('Limit search to:')." ";
+                       print "<hr/>".__('Limit search to:')." ";
                        
                        print "<select name=\"search_mode\" dojoType=\"dijit.form.Select\">
                                <option value=\"all_feeds\">".__('All feeds')."</option>";
                                __('Check it')."</button>";
                        print "</span>";
 
-                       print "<br/>" .  __("on field") . " ";
+                       print "<hr/>" .  __("on field") . " ";
                        print_select_hash("filter_type", 1, $filter_types,
                                'onchange="filterDlgCheckType(this)" dojoType="dijit.form.Select"');
 
-                       print "<br/>";
+                       print "<hr/>";
 
                        print __("in") . " ";
                        print_feed_select($link, "feed_id", $active_feed_id, 
                        print "<div class=\"dlgSecCont\">";
 
                        print "<input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" name=\"enabled\" id=\"enabled\" checked=\"1\">
-                                       <label for=\"enabled\">".__('Enabled')."</label><br/>";
+                                       <label for=\"enabled\">".__('Enabled')."</label><hr/>";
 
                        print "<input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" name=\"inverse\" id=\"inverse\">
                                <label for=\"inverse\">".__('Inverse match')."</label>";
index 859b11ee948715a87a9195931c42aa00cc753c07..d4bde4892e24a660fd6d97c9cdf9a20c1cea54c5 100644 (file)
                        $feed_url = htmlspecialchars(db_fetch_result($result,
                                0, "feed_url"));
 
-                       print "<br/>";
+                       print "<hr/>";
 
                        print __('URL:') . " ";
                        print "<input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\"
 
                                $cat_id = db_fetch_result($result, 0, "cat_id");
 
-                               print "<br/>";
+                               print "<hr/>";
 
                                print __('Place in category:') . " ";
 
 
                                /* Purge intl */
 
-                               print "<br/>";
+                               print "<hr/>";
 
                                print __('Article purging:') . " ";
 
 
                        print "<input dojoType=\"dijit.form.TextBox\" 
                                placeHolder=\"".__("Login")."\"
-                               name=\"auth_login\" value=\"$auth_login\"><br/>";
+                               name=\"auth_login\" value=\"$auth_login\"><hr/>";
 
 #                      print "</tr><tr><td>" . __("Password:") . "</td><td>";
 
                                $checked = "";
                        }
 
-                       print "<br/><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"rtl_content\" name=\"rtl_content\"
+                       print "<hr/><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"rtl_content\" name=\"rtl_content\"
                                $checked>&nbsp;<label for=\"rtl_content\">".__('Right-to-left content')."</label>";
 
                        $include_in_digest = sql_bool_to_bool(db_fetch_result($result, 0, "include_in_digest"));
                                $checked = "";
                        }
 
-                       print "<br/><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"include_in_digest\" 
+                       print "<hr/><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"include_in_digest\" 
                                name=\"include_in_digest\"
                                $checked>&nbsp;<label for=\"include_in_digest\">".__('Include in e-mail digest')."</label>";
 
                                $checked = "";
                        }
 
-                       print "<br/><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"always_display_enclosures\" 
+                       print "<hr/><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"always_display_enclosures\" 
                                name=\"always_display_enclosures\"
                                $checked>&nbsp;<label for=\"always_display_enclosures\">".__('Always display image attachments')."</label>";
 
                                $checked = "";
                        }
 
-                       print "<br/><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"cache_images\" 
+                       print "<hr/><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"cache_images\" 
                                name=\"cache_images\"
                                $checked>&nbsp;<label for=\"cache_images\">".
                                __('Cache images locally (SimplePie only)')."</label>";
 
                        /* Icon */
 
-                       print "<br/>";
-
                        print "<div class=\"dlgSec\">".__("Icon")."</div>";
                        print "<div class=\"dlgSecCont\">";
 
index 168afb82081ce4d0be6b3afd6fd42c20dc7f96d8..cf44c55f9a6b30f4cf1a6426ce0622421c4f417b 100644 (file)
                                __('Check it')."</button>";
                        print "</span>";
 
-                       print "<br/> " . __("on field") . " ";
+                       print "<hr/> " . __("on field") . " ";
                        print_select_hash("filter_type", $filter_type, $filter_types,
                                'onchange="filterDlgCheckType(this)" dojoType="dijit.form.Select"');
 
-                       print "<br/>";
+                       print "<hr/>";
 
                        print __("in") . " ";
                        print_feed_select($link, "feed_id", $feed_id,
                        }
 
                        print "<input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" name=\"enabled\" id=\"enabled\" $checked>
-                                       <label for=\"enabled\">".__('Enabled')."</label><br/>";
+                                       <label for=\"enabled\">".__('Enabled')."</label><hr/>";
 
                        if ($inverse) {
                                $checked = "checked=\"1\"";
index e97ab96362b6cfebf1490d856cb327ec9fd079f8..d14e6f473e0fa507d5f403e8a1e999d2ad50275d 100644 (file)
@@ -1273,9 +1273,16 @@ div.dlgSecCont {
        font-weight : normal;
 }
 
+div.dlgSecCont hr {
+       height : 0px;
+       line-height : 0px;
+       border : 0px solid transparent;
+       margin : 2px;
+}
+
 div.dlgSecCont > * {
-       margin-top : 4px;
-       vertical-align : bottom;
+       position : relative;
+       top : -2px;
 }
 
 div.dlgButtons {