]> git.wh0rd.org Git - tt-rss.git/commitdiff
more button styles work
authorAndrew Dolgov <fox@bah.org.ru>
Tue, 12 Jan 2010 12:27:04 +0000 (15:27 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Tue, 12 Jan 2010 12:27:04 +0000 (15:27 +0300)
images/button.png
modules/popup-dialog.php
modules/pref-feeds.php
tt-rss.css
tt-rss.php

index e8e741613911ff6de84854fe59045af5f69aef63..db2278279c4c4ee7f036ac2c87d3bb68224c2597 100644 (file)
Binary files a/images/button.png and b/images/button.png differ
index 12c912ea40f93af18db6195671470018c33a9f67..affb3e84677c57fd327186dd33e5d70fef4a8d53 100644 (file)
 
                        print "<div class=\"dlgSecCont\">";
 
-                       print "<input name=\"query\" size=\"20\" type=\"search\"
-                               onkeypress=\"return filterCR(event, search)\"
-                               onchange=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\"
-                               onkeyup=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\"
-                               value=\"\">";
+                       print "<input name=\"query\" size=\"20\" type=\"search\"        value=''>";
 
                        print " " . __('match on')." ";
 
                        print "</form>";
 
                        print "<div class=\"dlgButtons\">
-                       <input type=\"submit\" 
-                               class=\"button\" onclick=\"javascript:search()\" 
-                               id=\"search_submit_btn\" disabled=\"true\"
-                               value=\"".__('Search')."\">
-                       <input class=\"button\"
-                               type=\"submit\" onclick=\"javascript:searchCancel()\" 
-                               value=\"".__('Cancel')."\"></div>";
+                       <button disabled='true' onclick=\"javascript:search()\">".__('Search')."</button>
+                       <button onclick=\"javascript:searchCancel()\">".__('Cancel')."</button>
+                       </div>";
 
                        print "</div>";
 
                        print "&nbsp;</span>";
 
                        print "<input onkeypress=\"return filterCR(event, createFilter)\"
-                                        onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
-                                        onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
-                                        name=\"reg_exp\" size=\"30\" value=\"$reg_exp\">";
+                                name=\"reg_exp\" size=\"30\" value=\"$reg_exp\">";
 
                        print "<span id=\"filter_dlg_date_chk_box\" style=\"display : none\">";
                        print "&nbsp;<input class=\"button\"
 
                        print "<div class=\"dlgButtons\">";
 
-                       print "<input type=\"submit\" 
-                               id=\"infobox_submit\"
-                               class=\"button\" onclick=\"return createFilter()\" 
-                               disabled=\"true\" value=\"".__('Create')."\"> ";
+                       print "<button onclick=\"return createFilter()\">".
+                               __('Create')."</button> ";
 
-                       print "<input class=\"button\"
-                               type=\"submit\" onclick=\"return closeInfoBox()\" 
-                               value=\"".__('Cancel')."\">";
+                       print "<button onclick=\"return closeInfoBox()\">".__('Cancel').
+                               "</button>";
 
                        print "</div>";
 
index f02ae6c4c23093c44c6b119047733ee62d720ddd..fb5a1ecae189d364e8a4408eb1c04637ef429f17 100644 (file)
 
                        print "<div class='dlgButtons'>
                                <div style=\"float : left\">
-                                       <input type='submit' class='button'                     
-                                       onclick='return unsubscribeFeed($feed_id, \"$title\")' value=\"".__('Unsubscribe')."\">
+                               <button onclick='return unsubscribeFeed($feed_id, \"$title\")'>".
+                                       __('Unsubscribe')."</button>
                                </div>
-                               <input type=\"submit\" class=\"button\" 
-                               onclick=\"return feedEditSave()\" value=\"".__('Save')."\">
-                               <input type='submit' class='button'                     
-                               onclick=\"return feedEditCancel()\" value=\"".__('Cancel')."\">
+                               <button onclick=\"return feedEditSave()\">".__('Save')."</button>
+                               <button onclick=\"return feedEditCancel()\">".__('Cancel')."</button>
                                </div>";
 
                        return;
index 0172d6c300e3b3d285b23b50e1996c835336b574..300ddcac5efd1dfd803a8a1c0e861195508627f6 100644 (file)
@@ -2257,3 +2257,38 @@ div#auxDlg {
 div#auxDlg a {
        color : #4684ff;
 }
+
+button, select {
+       background-color : transparent;
+       background-repeat : repeat-x;
+       background-position : top left;
+       background-image : url("images/button.png");
+       border : 1px solid #bebebe;
+/*     border-top : 1px solid #f0f0f0;
+       border-left : 1px solid #f0f0f0; */
+       font-family : "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
+       font-size : 100%;
+/*     line-height : 120%; */
+       text-decoration : none;
+       font-weight : bold;
+       color : #565656;
+       cursor : pointer;
+       padding : 1px 3px 1px 3px;
+}
+
+select {
+       background : #ffffff;
+       padding : 1px 0px 1px 3px;
+}
+
+button:hover {
+       background-color : #f9faff;
+       border : 1px solid #88b0f0;
+       color : #336699;
+}
+
+button[disabled] {
+       background : #f0f0f0;
+       color : #dedede;
+       border : 1px solid #dedede;
+}
index 6e40333ca5c07b2a1749ad8461075a839e94693b..ccd4a4b9afceabd5d4d8c8542d8fb7a37a4550d0 100644 (file)
 
                <form id="main_toolbar_form" action="" onsubmit='return false'>
 
-               <input type="submit" value="&lt;&lt;" 
-                       id="collapse_feeds_btn" onclick="collapse_feedlist()" class="button"
-                       title="<?php echo __('Collapse feedlist') ?>" style="display : none"/>
+               <button id="collapse_feeds_btn" onclick="collapse_feedlist()"
+                       title="<?php echo __('Collapse feedlist') ?>" style="display : none">
+                       &lt;&lt;</button>
 
                &nbsp;
 
                        <option value="updated"><?php echo __('Updated') ?></option>
                </select>
 
-               &nbsp;
-
                <select title="<?php echo __('Sort articles') ?>" 
                                name="order_by" onchange="viewModeChanged()">
                        <option selected="selected" value="default"><?php echo __('Default') ?></option>