Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Button element and CSS to match.

  • Loading branch information...
commit 9a4a2dbaa47d1292a58046baa802b0ea924629da 1 parent b36f21d
Clinteger authored
View
50 resources/public/css/style.css
@@ -1,4 +1,3 @@
-
body {
background-color: #bbddee;
font-size: 12px;
@@ -193,6 +192,53 @@ table.my-table th {
padding: 10px 0px 0px 0px;
font-size: 14px;
font-weight: bold;
-
}
+
+button {
+ border: 1px solid #A1CC59;
+ color: #32401C;
+ font-size: 14px;
+ font-weight: bold;
+ height: 23px;
+ margin: 4px;
+ padding: 1px 6px 2px;
+ -moz-border-radius: 5px;
+ -webkit-border-radius: 5px;
+ border-radius: 5px;
+ background: #BCEE68;
+ background: -moz-linear-gradient(top, #BCEE68, #A1CC59);
+ background: -webkit-gradient(linear, left top, left bottom, from(#BCEE68), to(#A1CC59));
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#BCEE68', endColorstr='#A1CC59')";
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#BCEE68', endColorstr='#A1CC59');
+}
+
+button.large {
+ font-size: 16px;
+ height: 26px;
+ -moz-border-radius: 5px;
+ -webkit-border-radius: 5px;
+ border-radius: 5px;
+}
+
+button:hover {
+ cursor: pointer;
+ outline: none;
+ text-decoration: none;
+ background: #D1F09E;
+ background: -moz-linear-gradient(top, #D1F09E, #A1CC59);
+ background: -webkit-gradient(linear, left top, left bottom, from(#D1F09E), to(#A1CC59));
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#D1F09E', endColorstr='#A1CC59')";
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#D1F09E', endColorstr='#A1CC59');
+}
+
+button:active {
+ position: relative;
+ top: 1px;
+ outline: none;
+ background: #A1CC59;
+ background: -moz-linear-gradient(top, #A1CC59, #A7D45C);
+ background: -webkit-gradient(linear, left top, left bottom, from(#A1CC59), to(#A7D45C));
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#A1CC59', endColorstr='#A7D45C')";
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#A1CC59', endColorstr='#A7D45C');
+}
View
7 src/foreclojure/login.clj
@@ -22,8 +22,7 @@
[:td (password-field :pwd)]]
[:tr
[:td]
- [:td (submit-button {:type "image" :src "/images/login.png"}
- "Log In")]]
+ [:td [:button {:type "submit"} "Log In"]]]
[:tr
[:td ]
[:td
@@ -52,7 +51,7 @@
[password-field :pwd "New password"]
[password-field :repeat-pwd "Repeat password"]])
[:tr
- [:td (submit-button "Reset now")]])]]))
+ [:td [:button {:type "submit"} "Reset now"]]])]]))
(defn do-update-password! [old-pwd new-pwd repeat-pwd]
(with-user [{:keys [user pwd]}]
@@ -79,7 +78,7 @@
(form-to [:post "/login/reset"]
(label :email "Email")
(text-field :email)
- (submit-button "Reset!"))]]])
+ [:button {:type "submit"} "Reset!"])]]])
(def pw-chars "abcdefghijklmnopqrstuvxyzABCDEFGHIJKLMNOPQRSTUVWXY1234567890")
View
2  src/foreclojure/problems.clj
@@ -111,7 +111,7 @@
:code (session/flash-get :code))
(hidden-field :id id)
[:br]
- (submit-button {:type "image" :src "/images/run.png"} "Run"))]))
+ [:button {:type "submit"} "Run"])]))
(def-page problem-page []
[:div.congrats (session/flash-get :message)]
View
2  src/foreclojure/register.clj
@@ -17,7 +17,7 @@
[password-field :repeat-pwd "Repeat Password"]
[text-field :email "Email"]])
[:tr
- [:td (submit-button {:type "image" :src "/images/register.png"} "Register")]]]))
+ [:td [:button {:type "submit"} "Register"]]]]))
(defn do-register [user pwd repeat-pwd email]
(let [lower-user (.toLowerCase user)]
Please sign in to comment.
Something went wrong with that request. Please try again.