Browse Source

Classe button sur les input et liens

bastien 13 years ago
parent
commit
b0cb9fb9bd

+ 2 - 2
src/Muzich/CoreBundle/Resources/views/Element/ajax.element.edit.html.twig View File

@@ -6,6 +6,6 @@
6 6
     'form_name'     : form_name
7 7
   } %}
8 8
 
9
-  <input type="button" value="{{ 'element_edit.cancel.value'|trans({}, 'userui') }}" class="cancel_edit" />
10
-  <input type="submit" value="{{ 'element_edit.submit.value'|trans({}, 'userui') }}" />
9
+  <input type="button" value="{{ 'element_edit.cancel.value'|trans({}, 'userui') }}" class="cancel_edit button" />
10
+  <input type="submit" value="{{ 'element_edit.submit.value'|trans({}, 'userui') }}" class="button" />
11 11
 </form>

+ 1 - 1
src/Muzich/CoreBundle/Resources/views/Element/element.edit.html.twig View File

@@ -13,7 +13,7 @@
13 13
       'form_name'     : form_name
14 14
     } %}
15 15
 
16
-    <input type="submit" value="{{ 'element_edit.submit.value'|trans({}, 'userui') }}" />
16
+    <input type="submit" value="{{ 'element_edit.submit.value'|trans({}, 'userui') }}" class="button" />
17 17
   </form>
18 18
   
19 19
 {% endblock %}

+ 1 - 1
src/Muzich/CoreBundle/Resources/views/Tag/tagFavoritesForm.html.twig View File

@@ -11,5 +11,5 @@
11 11
 
12 12
   {{ form_row(form._token) }}
13 13
 
14
-  <input type="submit" />
14
+  <input type="submit" class="button" />
15 15
 </form>

+ 2 - 2
src/Muzich/CoreBundle/Resources/views/Tag/tagsPrompt.html.twig View File

@@ -4,9 +4,9 @@
4 4
     
5 5
   {% if display_specials_buttons is defined %}
6 6
     {% if display_specials_buttons == true %}
7
-      <input class="clear" type="button" value="{{ 'filter.clear'|trans({}, 'userui') }}" />
7
+      <input class="clear button" type="button" value="{{ 'filter.clear'|trans({}, 'userui') }}" />
8 8
       <input type="hidden" class="filter_clear_url" value="{{ path('filter_clear') }}" />
9
-      <input class="mytags" type="button" value="{{ 'filter.mytags'|trans({}, 'userui') }}" />
9
+      <input class="mytags button" type="button" value="{{ 'filter.mytags'|trans({}, 'userui') }}" />
10 10
       <input type="hidden" class="filter_mytags_url" value="{{ path('filter_mytags') }}" />
11 11
     {% endif %}
12 12
   {% endif %}

+ 1 - 1
src/Muzich/GroupBundle/Resources/views/Default/edit.html.twig View File

@@ -10,7 +10,7 @@
10 10
     
11 11
     {% include "MuzichGroupBundle:Form:form.html.twig" %}
12 12
 
13
-    <input type="submit" />
13
+    <input type="submit" class="button" />
14 14
   </form>
15 15
 
16 16
 {% endblock %}

+ 1 - 1
src/Muzich/GroupBundle/Resources/views/Default/myList.html.twig View File

@@ -46,7 +46,7 @@
46 46
 
47 47
       {% include "MuzichGroupBundle:Form:form.html.twig" with { 'form': form_new, 'form_name': form_new_name } %}
48 48
 
49
-      <input type="submit" />
49
+      <input type="submit" class="button" />
50 50
     </form>
51 51
   
52 52
   </div>

+ 4 - 4
src/Muzich/HomeBundle/Resources/views/Home/index.html.twig View File

@@ -6,7 +6,7 @@
6 6
 
7 7
   <div id="element_add_box" style="display: none;">
8 8
     
9
-    <a href="#" id="element_add_close_link">
9
+    <a href="#" id="element_add_close_link" class="button">
10 10
       &lt;&lt; {{ 'home.add_element_box.close'|trans({}, 'navigationui') }}
11 11
     </a>
12 12
     
@@ -17,11 +17,11 @@
17 17
         'form_name'     : add_form_name
18 18
       } %}
19 19
 
20
-      <input type="submit" />
20
+      <input type="submit" class="button" />
21 21
     </form>
22 22
   </div>
23 23
 
24
-  <a href="#" id="element_add_link">
24
+  <a href="#" id="element_add_link" class="button">
25 25
     {{ 'home.add_element'|trans({}, 'navigationui') }} &gt;&gt;
26 26
   </a>
27 27
 
@@ -33,7 +33,7 @@
33 33
       'display_specials_buttons': true
34 34
     } %}
35 35
     
36
-    <input class="main" type="submit" value="{{ 'filter.submit'|trans({}, 'userui') }}"/>
36
+    <input class="main button" type="submit" value="{{ 'filter.submit'|trans({}, 'userui') }}"/>
37 37
   </form>
38 38
 
39 39
   {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {'noelements_filter' : true }%}

+ 1 - 1
src/Muzich/HomeBundle/Resources/views/Show/showGroup.html.twig View File

@@ -37,7 +37,7 @@
37 37
 
38 38
         {% include "MuzichCoreBundle:Element:form.add.html.twig" with { 'form': add_form, 'form_name': add_form_name } %}
39 39
 
40
-        <input type="submit" />
40
+        <input type="submit" class="button" >
41 41
       </form>
42 42
       
43 43
     </div>

+ 1 - 1
src/Muzich/MynetworkBundle/Resources/views/Mynetwork/search.html.twig View File

@@ -18,7 +18,7 @@
18 18
     <div class="field">
19 19
       {{ form_errors(search_form.string) }}
20 20
       {{ form_widget(search_form.string) }}
21
-      <input type="submit" value="{{ 'search.form.submit_value'|trans({}, 'network') }}" />
21
+      <input type="submit" class="button" value="{{ 'search.form.submit_value'|trans({}, 'network') }}" />
22 22
     </div>
23 23
 
24 24
     {{ form_rest(search_form) }}

+ 1 - 1
src/Muzich/UserBundle/Resources/views/Registration/register.html.twig View File

@@ -51,7 +51,7 @@
51 51
     {{ form_rest(form) }}
52 52
     
53 53
     <div>
54
-        <input type="submit" value="{{ 'registration.submit'|trans({}, 'FOSUserBundle') }}" />
54
+        <input type="submit" class="button" value="{{ 'registration.submit'|trans({}, 'FOSUserBundle') }}" />
55 55
     </div>
56 56
   </form>
57 57
 </div>

+ 1 - 1
src/Muzich/UserBundle/Resources/views/Security/login.html.twig View File

@@ -14,7 +14,7 @@
14 14
       <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
15 15
       <label for="remember_me">{{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }}</label>
16 16
 
17
-      <input type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}" />
17
+      <input type="submit" class="button" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}" />
18 18
   </form>
19 19
 </div>
20 20
 

+ 2 - 2
src/Muzich/UserBundle/Resources/views/User/account.html.twig View File

@@ -32,7 +32,7 @@
32 32
       'form': form_password
33 33
     } %}
34 34
 
35
-    <input type="submit" />
35
+    <input type="submit" class="button" />
36 36
   </form>
37 37
   
38 38
   <h3>{{ 'my_account.change_email'|trans({}, 'userui') }}</h3>
@@ -43,7 +43,7 @@
43 43
       'form': change_email_form
44 44
     } %}
45 45
 
46
-    <input type="submit" />
46
+    <input type="submit" class="button" />
47 47
   </form>
48 48
     
49 49
 {% endblock %}

+ 22 - 0
web/bundles/muzichcore/css/main.css View File

@@ -44,6 +44,28 @@
44 44
   
45 45
 }
46 46
 
47
+.button {
48
+	display: inline-block;
49
+	line-height: 1;
50
+	padding: 4px 7px;
51
+	text-decoration: none;
52
+	font-weight: bold;
53
+	color: #fff;
54
+	background-color: #39c;
55
+	-moz-border-radius: 5px;
56
+	-webkit-border-radius: 5px;
57
+	-khtml-border-radius: 5px;
58
+	border-radius: 5px;
59
+}
60
+input.button, button.button {
61
+	border: 0px none;
62
+}
63
+
64
+.button:active {
65
+  padding: 3px 6px;
66
+  border: 1px solid #165c6d;
67
+}
68
+
47 69
 #container a
48 70
 {
49 71
   text-decoration: none;

+ 1 - 0
web/bundles/muzichhome/css/home.css View File

@@ -8,6 +8,7 @@
8 8
 
9 9
 #container #element_add_link, #container #element_add_close_link
10 10
 {
11
+  color: white;
11 12
   font-size: 120%;
12 13
   float: right;
13 14
 }