Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Button element and CSS to match.

  • Loading branch information...
commit 94e8141dec909ed5a2db872569fdb85e8ce53438 1 parent 1005d1b
Clinteger authored amalloy committed
50 resources/public/css/style.css
... ... @@ -1,4 +1,3 @@
1   -
2 1 body {
3 2 background-color: #bbddee;
4 3 font-size: 12px;
@@ -193,6 +192,53 @@ table.my-table th {
193 192 padding: 10px 0px 0px 0px;
194 193 font-size: 14px;
195 194 font-weight: bold;
196   -
197 195 }
198 196
  197 +
  198 +button {
  199 + border: 1px solid #A1CC59;
  200 + color: #32401C;
  201 + font-size: 14px;
  202 + font-weight: bold;
  203 + height: 23px;
  204 + margin: 4px;
  205 + padding: 1px 6px 2px;
  206 + -moz-border-radius: 5px;
  207 + -webkit-border-radius: 5px;
  208 + border-radius: 5px;
  209 + background: #BCEE68;
  210 + background: -moz-linear-gradient(top, #BCEE68, #A1CC59);
  211 + background: -webkit-gradient(linear, left top, left bottom, from(#BCEE68), to(#A1CC59));
  212 + -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#BCEE68', endColorstr='#A1CC59')";
  213 + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#BCEE68', endColorstr='#A1CC59');
  214 +}
  215 +
  216 +button.large {
  217 + font-size: 16px;
  218 + height: 26px;
  219 + -moz-border-radius: 5px;
  220 + -webkit-border-radius: 5px;
  221 + border-radius: 5px;
  222 +}
  223 +
  224 +button:hover {
  225 + cursor: pointer;
  226 + outline: none;
  227 + text-decoration: none;
  228 + background: #D1F09E;
  229 + background: -moz-linear-gradient(top, #D1F09E, #A1CC59);
  230 + background: -webkit-gradient(linear, left top, left bottom, from(#D1F09E), to(#A1CC59));
  231 + -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#D1F09E', endColorstr='#A1CC59')";
  232 + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#D1F09E', endColorstr='#A1CC59');
  233 +}
  234 +
  235 +button:active {
  236 + position: relative;
  237 + top: 1px;
  238 + outline: none;
  239 + background: #A1CC59;
  240 + background: -moz-linear-gradient(top, #A1CC59, #A7D45C);
  241 + background: -webkit-gradient(linear, left top, left bottom, from(#A1CC59), to(#A7D45C));
  242 + -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#A1CC59', endColorstr='#A7D45C')";
  243 + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#A1CC59', endColorstr='#A7D45C');
  244 +}
7 src/foreclojure/login.clj
@@ -22,8 +22,7 @@
22 22 [:td (password-field :pwd)]]
23 23 [:tr
24 24 [:td]
25   - [:td (submit-button {:type "image" :src "/images/login.png"}
26   - "Log In")]]
  25 + [:td [:button {:type "submit"} "Log In"]]]
27 26 [:tr
28 27 [:td ]
29 28 [:td
@@ -52,7 +51,7 @@
52 51 [password-field :pwd "New password"]
53 52 [password-field :repeat-pwd "Repeat password"]])
54 53 [:tr
55   - [:td (submit-button "Reset now")]])]]))
  54 + [:td [:button {:type "submit"} "Reset now"]]])]]))
56 55
57 56 (defn do-update-password! [old-pwd new-pwd repeat-pwd]
58 57 (with-user [{:keys [user pwd]}]
@@ -79,7 +78,7 @@
79 78 (form-to [:post "/login/reset"]
80 79 (label :email "Email")
81 80 (text-field :email)
82   - (submit-button "Reset!"))]]])
  81 + [:button {:type "submit"} "Reset!"])]]])
83 82
84 83 (def pw-chars "abcdefghijklmnopqrstuvxyzABCDEFGHIJKLMNOPQRSTUVWXY1234567890")
85 84
2  src/foreclojure/problems.clj
@@ -111,7 +111,7 @@
111 111 :code (session/flash-get :code))
112 112 (hidden-field :id id)
113 113 [:br]
114   - (submit-button {:type "image" :src "/images/run.png"} "Run"))]))
  114 + [:button {:type "submit"} "Run"])]))
115 115
116 116 (def-page problem-page []
117 117 [:div.congrats (session/flash-get :message)]
2  src/foreclojure/register.clj
@@ -17,7 +17,7 @@
17 17 [password-field :repeat-pwd "Repeat Password"]
18 18 [text-field :email "Email"]])
19 19 [:tr
20   - [:td (submit-button {:type "image" :src "/images/register.png"} "Register")]]]))
  20 + [:td [:button {:type "submit"} "Register"]]]]))
21 21
22 22 (defn do-register [user pwd repeat-pwd email]
23 23 (let [lower-user (.toLowerCase user)]

0 comments on commit 94e8141

Please sign in to comment.
Something went wrong with that request. Please try again.