]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #1317 from ArthurHoaro/feature/default-colors
authorArthurHoaro <arthur@hoa.ro>
Sat, 20 Jul 2019 07:36:39 +0000 (09:36 +0200)
committerGitHub <noreply@github.com>
Sat, 20 Jul 2019 07:36:39 +0000 (09:36 +0200)
Plugin to override default template colors

tpl/default/404.html
tpl/default/changepassword.html
tpl/default/changetag.html
tpl/default/loginform.html
tpl/default/page.header.html

index 10a9458a6d7f467977756a0e0b374c1161d0182b..472566a6718f22fb4bd513965c5e7c0d20bb0798 100644 (file)
@@ -8,7 +8,7 @@
   {include="page.header"}
 <div class="center" id="page404" class="page404-container">
   <h2>{'Sorry, nothing to see here.'|t}</h2>
-  <img src="img/sad_star.png">
+  <img src="img/sad_star.png" alt="">
   <p>{$error_message}</p>
 </div>
 {include="page.footer"}
index 3867e3ca45d4bffe0fb4b13e9ab244e18a8ca1ac..ab57943334c600d63f35871c84ea0e3cad7516b7 100644 (file)
     <h2 class="window-title">{"Change password"|t}</h2>
     <form method="POST" action="#" name="changepasswordform" id="changepasswordform">
       <div>
-        <input type="password" name="oldpassword" placeholder="{'Current password'|t}" class="autofocus">
+        <input type="password" name="oldpassword" aria-label="{'Current password'|t}" placeholder="{'Current password'|t}" class="autofocus">
       </div>
       <div>
-        <input type="password" name="setpassword" placeholder="{'New password'|t}">
+        <input type="password" name="setpassword" aria-label="{'New password'|t}" placeholder="{'New password'|t}">
       </div>
       <input type="hidden" name="token" value="{$token}">
       <div>
index 0da6a5ebf39aa0bf8e4db70b5db900789e089c80..ec6e0b464d66cc91e0ce02a12cf048c2249d23f4 100644 (file)
     <h2 class="window-title">{"Manage tags"|t}</h2>
     <form method="POST" action="#" name="changetag" id="changetag">
       <div>
-        <input type="text" name="fromtag" placeholder="{'Tag'|t}" value="{$fromtag}"
+        <input type="text" name="fromtag" aria-label="{'Tag'|t}" placeholder="{'Tag'|t}" value="{$fromtag}"
                list="tagsList" autocomplete="off" class="awesomplete autofocus" data-minChars="1">
         <datalist id="tagsList">
           {loop="$tags"}<option>{$key}</option>{/loop}
         </datalist>
       </div>
       <div>
-        <input type="text" name="totag" placeholder="{'New name'|t}"
+        <input type="text" name="totag" aria-label="{'New name'|t}" placeholder="{'New name'|t}"
                list="toTagsList" autocomplete="off" class="awesomplete" data-minChars="1">
         <datalist id="toTagsList">
           {loop="$tags"}<option>{$key}</option>{/loop}
         </datalist>
       </div>
-      <div><i class="fa fa-info-circle"></i> {'Case sensitive'|t}</div>
+      <div><i class="fa fa-info-circle" aria-hidden="true"></i> {'Case sensitive'|t}</div>
       <input type="hidden" name="token" value="{$token}">
       <div>
         <input type="submit" value="{'Rename'|t}" name="renametag">
index bfc548154b982add5db736e90be864a6584589fc..761aec0cacaf932773466c431fefd242206cbbc5 100644 (file)
@@ -9,7 +9,7 @@
 <div class="pure-g pure-alert pure-alert-error pure-alert-closable center">
   <div class="pure-u-2-24"></div>
   <div class="pure-u-20-24">
-    {'You have been banned after too many failed login attempts. Try again later.'|t}
+    <p>{'You have been banned after too many failed login attempts. Try again later.'|t}</p>
   </div>
   <div class="pure-u-2-24">
     <i class="fa fa-times pure-alert-close"></i>
       <form method="post" name="loginform">
         <h2 class="window-title">{'Login'|t}</h2>
         <div>
-          <input type="text" name="login" placeholder="{'Username'|t}"
-             {if="!empty($username)"}value="{$username}"{/if} class="autofocus" tabindex="20">
+          <input type="text" name="login" aria-label="{'Username'|t}" placeholder="{'Username'|t}"
+             {if="!empty($username)"}value="{$username}"{/if} class="autofocus">
         </div>
         <div>
-          <input type="password" name="password" placeholder="{'Password'|t}" class="autofocus" tabindex="21">
+          <input type="password" name="password" aria-label="{'Password'|t}" placeholder="{'Password'|t}" class="autofocus">
         </div>
         <div class="remember-me">
           <input type="checkbox" name="longlastingsession" id="longlastingsessionform"
-             {if="$remember_user_default"}checked="checked"{/if}
-             tabindex="22">
+             {if="$remember_user_default"}checked="checked"{/if}>
           <label for="longlastingsessionform">{'Remember me'|t}</label>
         </div>
         <div>
-          <input type="submit" value="{'Login'|t}" class="bigbutton" tabindex="23">
+          <input type="submit" value="{'Login'|t}" class="bigbutton">
         </div>
         <input type="hidden" name="token" value="{$token}">
         {if="$returnurl"}<input type="hidden" name="returnurl" value="{$returnurl}">{/if}
@@ -48,4 +47,3 @@
 {include="page.footer"}
 </body>
 </html>
-
index 9ce9873c0c066bda9ebd831429beae0f2fb60987..0ba1993f9f132290ec2e31501c35d55fb123e5b2 100644 (file)
@@ -1,11 +1,13 @@
 <div class="shaarli-menu pure-g" id="shaarli-menu">
   <div class="pure-u-lg-0 pure-u-1">
     <div class="pure-menu">
+     <header role="banner">
       <a href="{$titleLink}" class="pure-menu-link shaarli-title" id="shaarli-title-mobile">
         <i class="fa fa-shaarli" aria-hidden="true"></i>
         {$shaarlititle}
       </a>
-      <a href="#" class="menu-toggle" id="menu-toggle"><s class="bar"></s><s class="bar"></s></a>
+      </header>
+      <a href="#" class="menu-toggle" id="menu-toggle" aria-label="Menu"><s class="bar" aria-hidden="true"></s><s class="bar" aria-hidden="true"></s></a>
     </div>
   </div>
   <div class="pure-u-1">