]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
addlink template
authorArthurHoaro <arthur@hoa.ro>
Fri, 3 Jun 2016 18:02:00 +0000 (20:02 +0200)
committerArthurHoaro <arthur@hoa.ro>
Sun, 7 Aug 2016 10:17:36 +0000 (12:17 +0200)
tpl/default/addlink.html [new file with mode: 0644]
tpl/default/css/shaarli.css
tpl/default/loginform.html

diff --git a/tpl/default/addlink.html b/tpl/default/addlink.html
new file mode 100644 (file)
index 0000000..13adeb4
--- /dev/null
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+  {include="includes"}
+</head>
+<body>
+{include="page.header"}
+<div class="pure-g">
+  <div class="pure-u-lg-1-3 pure-u-1-8"></div>
+  <div id="addlink-form" class="page-form pure-u-lg-1-3 pure-u-3-4">
+    <h2>Shaare a new link</h2>
+    <form method="GET" action="" name="addform" class="addform">
+      <div>
+        <input type="text" name="post">
+      </div>
+      <div>
+        <input type="submit" value="Add link">
+      </div>
+    </form>
+  </div>
+</div>
+{include="page.footer"}
+<script>
+  document.getElementsByName('post')[0].focus();
+</script>
+</body>
+</html>
index 14fddc4b11aff97fab5bbca22eda9b59af4e2b7d..89d726081166d8c0a64ae63e8e41a3b20d47a936 100644 (file)
@@ -590,14 +590,14 @@ pre {
 /**
  * Login page
  */
-#login-form {
+.page-form {
     margin: 20px 0 0 0;
     background: url(../img/noise.png) #1fa67a;
     border-radius: 5px;
     box-shadow: 1px 1px 2px #797979;
 }
 
-#login-form h2 {
+.page-form h2 {
     margin: 0 0 10px 0;
     padding: 10px 0;
     width: 100%;
@@ -608,12 +608,12 @@ pre {
     border-bottom: 1px solid #797979;
 }
 
-#login-form div {
+.page-form div {
     width: 100%;
     text-align: center;
 }
 
-#login-form input[type="text"], #login-form input[type="password"] {
+.page-form input[type="text"], .page-form input[type="password"] {
     margin: 10px 0;
     padding: 5px 5px 3px 15px;
     height: 30px;
@@ -626,8 +626,8 @@ pre {
 }
 
 /* because chrome */
-#login-form input[type="text"]::-webkit-input-placeholder,
-#login-form input[type="password"]::-webkit-input-placeholder {
+.page-form input[type="text"]::-webkit-input-placeholder,
+.page-form input[type="password"]::-webkit-input-placeholder {
     color: #b0ddce;
 }
 
@@ -637,7 +637,7 @@ pre {
     font-weight: bold;
 }
 
-#login-form input[type="submit"] {
+.page-form input[type="submit"] {
     margin: 10px 0;
     height: 35px;
     width: 150px;
index 0ee9615390b899090cd51f0d5ba45998d3d7cde3..e6d7dea59796c6cd9c2029df504f7ea21ca86967 100644 (file)
@@ -18,7 +18,7 @@
 {else}
   <div class="pure-g">
     <div class="pure-u-lg-1-3 pure-u-1-8"></div>
-    <div id="login-form" class="pure-u-lg-1-3 pure-u-3-4">
+    <div id="login-form" class="page-form pure-u-lg-1-3 pure-u-3-4">
       <form method="post" name="loginform">
         <h2>Login</h2>
         <div>