Another change to button style. Renamed header_submit, header_submit_highlight and...
authorJef van Schendel <mail@jefvanschendel.nl>
Sun, 20 Nov 2011 00:43:48 +0000 (01:43 +0100)
committerJef van Schendel <mail@jefvanschendel.nl>
Sun, 20 Nov 2011 00:43:48 +0000 (01:43 +0100)
15 files changed:
mediagoblin/static/css/base.css
mediagoblin/templates/mediagoblin/auth/change_fp.html
mediagoblin/templates/mediagoblin/auth/forgot_password.html
mediagoblin/templates/mediagoblin/auth/login.html
mediagoblin/templates/mediagoblin/auth/register.html
mediagoblin/templates/mediagoblin/base.html
mediagoblin/templates/mediagoblin/edit/attachments.html
mediagoblin/templates/mediagoblin/edit/edit.html
mediagoblin/templates/mediagoblin/edit/edit_profile.html
mediagoblin/templates/mediagoblin/root.html
mediagoblin/templates/mediagoblin/submit/start.html
mediagoblin/templates/mediagoblin/test_submit.html
mediagoblin/templates/mediagoblin/user_pages/media.html
mediagoblin/templates/mediagoblin/user_pages/media_confirm_delete.html
mediagoblin/templates/mediagoblin/user_pages/user.html

index d61292a29d9701f449f57db67778075b209f7d58..cec236f4ee34c6b51a1bb519730030b4e0dfc11c 100644 (file)
@@ -98,24 +98,6 @@ a.mediagoblin_logo{
   font-weight: bold;
 }
 
-.header_submit, .header_submit_highlight{
-  color: #c3c3c3;
-  background-color: #2d2d2d;
-  border: 1px solid;
-  border-color: #323232 #232323 #1F1F1F;
-  border-radius: 4px;
-  margin: 8px;
-  padding: 3px 8px;
-  text-decoration: none;
-  font-style: normal;
-  font-weight: bold;
-  font-size: 1em;
-}
-
-.header_submit_highlight{
-background-image: -moz-linear-gradient(center top , rgb(134, 212, 177), rgb(109, 173, 144));
-}
-
 .mediagoblin_footer {
   height: 30px;
   border-top: 1px solid #333;
@@ -135,7 +117,26 @@ background-image: -moz-linear-gradient(center top , rgb(134, 212, 177), rgb(109,
 
 /* common website elements */
 
-.button, .cancel_link {
+.button_action, .button_action_highlight{
+  color: #c3c3c3;
+  background-color: #363636;
+  border: 1px solid;
+  border-color: #464646 #2B2B2B #252525;
+  border-radius: 4px;
+  margin: 8px;
+  padding: 3px 8px;
+  text-decoration: none;
+  font-style: normal;
+  font-weight: bold;
+  font-size: 1em;
+}
+
+.button_action_highlight{
+background-image: -moz-linear-gradient(center top , rgb(134, 212, 177), rgb(109, 173, 144));
+}
+
+
+.button_form, .cancel_link {
   height: 32px;
   min-width: 99px;
   background-color: #86d4b1;
index 53186cecc9119de399a88942e069c63f80bd59da..fa9720859d2783d33a8adb4332a9a61aeb2a2d4e 100644 (file)
@@ -30,7 +30,7 @@
 
       {{ wtforms_util.render_divs(cp_form) }}
       <div class="form_submit_buttons">
-        <input type="submit" value="submit" class="button"/>
+        <input type="submit" value="submit" class="button_form"/>
       </div>
 
     </div>
index 9b82142673c272b4de724c67d1780a4ebef7d604..41940742904db910697fbb3b906476a8ad95ab24 100644 (file)
@@ -27,7 +27,7 @@
       <h1>{% trans %}Recover password{% endtrans %}</h1>
       {{ wtforms_util.render_divs(fp_form) }}
       <div class="form_submit_buttons">
-        <input type="submit" value="{% trans %}Send instructions{% endtrans %}" class="button"/>
+        <input type="submit" value="{% trans %}Send instructions{% endtrans %}" class="button_form"/>
       </div>
     </div>
   </form>
index 756f67c08cce4e93c6c2a5df8312b5fa00b3fb23..c3807e5f59e6b7046b6e4f8c15ee18270c2ade62 100644 (file)
           {% trans %}Forgot your password?{% endtrans %}</a>
         </p>
       <div class="form_submit_buttons">
-        <input type="submit" value="{% trans %}Log in{% endtrans %}" class="button"/>
+        <input type="submit" value="{% trans %}Log in{% endtrans %}" class="button_form"/>
       </div>
       {% if next %}
-        <input type="hidden" name="next" value="{{ next }}" class="button"
+        <input type="hidden" name="next" value="{{ next }}" class="button_form"
                style="display: none;"/>
       {% endif %}
     </div>
index 25b68058b04631d5989ad76c606dbd7d0555a024..a0d0a2775ecbc912f0444713f72ca07018352d7e 100644 (file)
@@ -29,7 +29,7 @@
       {{ csrf_token }}
       <div class="form_submit_buttons">
         <input type="submit" value="{% trans %}Create{% endtrans %}"
-               class="button" />
+               class="button_form" />
       </div>
     </div>
   </form>
index 64fafb73a3a6ff5bbc16787887421f076ae30e8e..ede5f5c61d97cc6b55db4b16302a8e9a396667fc 100644 (file)
@@ -47,7 +47,7 @@
                      alt="{% trans %}MediaGoblin logo{% endtrans %}" /></a>
             {% endblock %}
             {% if request.user and request.user['status'] == 'active' %}
-              <a class="header_submit"
+              <a class="button_action"
                  href="{{ request.urlgen('mediagoblin.submit.start') }}">
                 {% trans %}Submit media{% endtrans %}
               </a>
@@ -59,8 +59,8 @@
                 {% if request.user.status == "needs_email_verification" %}
                   <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
                                               user=request.user['username']) }}"
-                     class="header_submit">
-                    {% trans %}verify your email!{% endtrans %}</a>
+                     class="button_action_highlight">
+                    {% trans %}Verify your email!{% endtrans %}</a>
                 {% endif %}
 
                 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
index d8b55f58dbcdcf9ea4497eaac373dab7e98ca31f..576642cf915532bfc852ca192795360363a9edd5 100644 (file)
@@ -48,7 +48,7 @@
       {{ wtforms_util.render_divs(form) }}
       <div class="form_submit_buttons">
         <a href="{{ media.url_for_self(request.urlgen) }}">Cancel</a>
-        <input type="submit" value="Save changes" class="button" />
+        <input type="submit" value="Save changes" class="button_form" />
        {{ csrf_token }}
       </div>
     </div>
index b4b3be85f16d8db4fa3d850073afd566ad188cbd..73c2bada979cbf85c67168f6f7e83adeb2f16e71 100644 (file)
@@ -34,7 +34,7 @@
       {{ wtforms_util.render_divs(form) }}
       <div class="form_submit_buttons">
         <a href="{{ media.url_for_self(request.urlgen) }}">{% trans %}Cancel{% endtrans %}</a>
-        <input type="submit" value="{% trans %}Save changes{% endtrans %}" class="button" />
+        <input type="submit" value="{% trans %}Save changes{% endtrans %}" class="button_form" />
        {{ csrf_token }}
       </div>
     </div>
index 93b2a792a70e3edb2f0eab3470287036c508b533..bf8fe5c19e8503081533a9b047b8c992a0cfb8d7 100644 (file)
@@ -32,7 +32,7 @@
       </h1>
       {{ wtforms_util.render_divs(form) }}
       <div class="form_submit_buttons">
-        <input type="submit" value="{% trans %}Save changes{% endtrans %}" class="button" />
+        <input type="submit" value="{% trans %}Save changes{% endtrans %}" class="button_form" />
        {{ csrf_token }}
       </div>
     </div>
index 43d973d157f7c88cc28eaae92cf0bcccfe41a677..25ce9e9636f15a289dc970bb594ec618f3703a8b 100644 (file)
@@ -30,9 +30,9 @@
       {% if allow_registration %}
         <p>{% trans %}Don't have one yet? It's easy!{% endtrans %}</p>
         {% trans register_url=request.urlgen('mediagoblin.auth.register') -%}
-          <a class="header_submit_highlight" href="{{ register_url }}">Create an account at this site</a>
+          <a class="button_action_highlight" href="{{ register_url }}">Create an account at this site</a>
           or
-          <a class="header_submit" href="http://wiki.mediagoblin.org/HackingHowto">Set up MediaGoblin on your own server</a>
+          <a class="button_action" href="http://wiki.mediagoblin.org/HackingHowto">Set up MediaGoblin on your own server</a>
         {%- endtrans %}
       {% endif %}
     </div>
index 29b011815d1f2459cf11935ded55fa018d36402b..1a0dd4b77cc168f75d87d909ed540d6d4bd9d540 100644 (file)
@@ -27,7 +27,7 @@
       {{ wtforms_util.render_divs(submit_form) }}
       <div class="form_submit_buttons">
         {{ csrf_token }}
-        <input type="submit" value="{% trans %}Submit{% endtrans %}" class="button" />
+        <input type="submit" value="{% trans %}Submit{% endtrans %}" class="button_form" />
       </div>
     </div>
   </form>
index 190b9ac3232164aea0d482ab28b72a5af1bddc3c..38be8efc51c71da4b52c4348783cdf978de9b5ae 100644 (file)
@@ -25,7 +25,7 @@
         {{ wtforms_util.render_table(image_form) }}
         <tr>
           <td></td>
-          <td><input type="submit" value="submit" class="button" /></td>
+          <td><input type="submit" value="submit" class="button_form" /></td>
          {{ csrf_token }}
         </tr>
       </table>
index 4b02b684b4d4e30034258f18490ec55603dac690..c8a9650fe3c1ba559df7bf78ccd7476034b16c16 100644 (file)
@@ -98,7 +98,7 @@
                                            media=media._id) }}" method="POST">
             {{ wtforms_util.render_divs(comment_form) }}
             <div class="form_submit_buttons">
-              <input type="submit" value="{% trans %}Post comment!{% endtrans %}" class="button" />
+              <input type="submit" value="{% trans %}Post comment!{% endtrans %}" class="button_form" />
                 {{ csrf_token }}
             </div>
           </form>
index 8da90f79119cef2df81efa8ed6c6052f5d07a145..c3a9d6224cb627ee9ce257bce7719bff84627d37 100644 (file)
@@ -47,7 +47,7 @@
       <div class="form_submit_buttons">
         {# TODO: This isn't a button really... might do unexpected things :) #}
        <a class="cancel_link" href="{{ media.url_for_self(request.urlgen) }}">{% trans %}Cancel{% endtrans %}</a>
-        <input type="submit" value="{% trans %}Delete Permanently{% endtrans %}" class="button" />
+        <input type="submit" value="{% trans %}Delete Permanently{% endtrans %}" class="button_form" />
        {{ csrf_token }}
       </div>
     </div>
index d6a9fe1f524bbb2e3901c2ff8c0c80d06da2911b..91dd236900ee348109ae7c98a708d4780250166d 100644 (file)
@@ -62,7 +62,7 @@
         <p>{% trans %}In case it doesn't:{% endtrans %}</p>
   
         <a href="{{ request.urlgen('mediagoblin.auth.resend_verification') }}"
-           class="button">{% trans %}Resend verification email{% endtrans %}</a>
+           class="button_form">{% trans %}Resend verification email{% endtrans %}</a>
       </div>
     {% else %}
       {# if the user is not you, but still needs to verify their email #}
@@ -97,7 +97,7 @@
           </p>
           <a href="{{ request.urlgen('mediagoblin.edit.profile') }}?username={{
                             user.username }}"
-             class="header_submit">
+             class="button_action">
             {%- trans %}Edit profile{% endtrans -%}
           </a>
         </div>
             This is where your media will appear, but you don't seem to have added anything yet.
             {%- endtrans %}
           </p>
-          <a class="header_submit"
+          <a class="button_action"
              href="{{ request.urlgen('mediagoblin.submit.start') }}">
             {%- trans %}Add media{% endtrans -%}
           </a>