source: extensions/MyPiwiShop/template/elem_form_style.css @ 27743

Last change on this file since 27743 was 27743, checked in by Miklfe, 10 years ago

Version de lancement

File size: 4.8 KB
Line 
1/* ----------------------------------------------  Reset form elements ---------------------------------------------- */
2       
3        div.mps input, div.mps select, div.mps textarea {
4                font-family:inherit;
5                margin:0; padding:0; font-size:0.85em; outline:none;
6                -moz-box-sizing:border-box; /* Firefox */
7                -webkit-box-sizing:border-box; /* Safari */
8                box-sizing:border-box;}
9
10/* ----------------------------------------------  Inputs, textareas and selects  ---------------------------------------------- */
11
12
13        div.mps input[type="text"],div.mps textarea,div.mps  select,div.mps div.styled,div.mps input[type="file"] { 
14                min-width:13em; border-radius:2px; border: solid 1px #ccc; padding:0.4em;}
15       
16        div.mps div.styled,div.mps select,div.mps input[type="submit"],div.mps input[type="button"], 
17        div.mps input[type="file"]:after {
18                background: white url(formelements-select.png) no-repeat center right;
19                -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2); 
20                box-shadow: 0 1px 3px rgba(0,0,0,0.2);} 
21       
22        div.mps input[type="text"],div.mps textarea,div.mps input[type="file"] { 
23                background-color: #f5f5f5;
24                -webkit-box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);
25                box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);}
26       
27                div.mps .ie9 input[type="text"] { line-height:normal; } /* Get the stuff to line up right */
28       
29        div.mps textarea { width:100%; height:10em; }
30       
31/* ----------------------------------------------  Select menu  ---------------------------------------------- */
32       
33        /* For IE and Firefox */
34
35        div.mps div.styled { overflow:hidden; padding:0; margin:0; }
36               
37                .ie7 div.styled {border:none;}
38
39        div.mps div.styled select {     
40                font-family:inherit;
41                width:115%; background-color:rgba(255,255,255,0); background-image:none;
42                -webkit-appearance: none; border:none; box-shadow:none;}
43               
44                div.mps .ie7 div.styled select {
45                        width:100%; background-color:#fff; border: solid 1px #ccc; 
46                        padding:0.3em 0.5em;}   
47       
48/* ----------------------------------------------  File field  ----------------------------------------------  */
49
50        /* Webkit Only */
51       
52        div.mps input[type="file"] { 
53                position: relative; 
54                -webkit-appearance: none;
55                -webkit-box-sizing: border-box;
56                box-sizing: border-box; width: 40%;     padding:0;}
57               
58        div.mps input[type=file]::-webkit-file-upload-button {
59                width: 0; padding: 0; margin: 0;-webkit-appearance: none; border: none;}       
60               
61        div.mps input[type="file"]:after {
62                content: 'Upload File';
63                margin:0 0 0 0.5em;
64                display: inline-block; left: 100%; position: relative;
65                background:white url(formelements-select.png) no-repeat center left;
66                padding:0.3em 0.5em; border: solid 1px #ccc !important;
67                -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2); 
68                box-shadow: 0 1px 3px rgba(0,0,0,0.2);
69                border-radius:4px;}     
70               
71               
72                div.mps input[type="file"]:active:after {box-shadow:none;}
73       
74       
75/* ----------------------------------------------  Checkboxes and Radio inputs  ----------------------------------------------  */     
76               
77        div.mps input[type="radio"], 
78        div.mps input[type="checkbox"] { position: absolute; left: -999em; }
79               
80        div.mps label:before { 
81                display: inline-block; position: relative; top:0.25em; left:-2px; 
82                content:''; width:25px; height:25px;
83                background-image:url(formelements.png); }
84       
85        div.mps input[type="checkbox"] + label:before { background-position: 0 -25px;}
86        div.mps input[type="checkbox"]:checked + label:before {background-position: 0 0 ; }
87                 
88        div.mps input[type="radio"] + label:before { background-position: -25px -25px;}         
89        div.mps input[type="radio"]:checked + label:before { background-position: -25px 0;}
90       
91                /* Remove the custom styling for IE 7-8 */
92               
93                div.mps .ie8 label:before { display:none; content:none; }
94               
95                div.mps .ie8 input[type="checkbox"],
96                div.mps .ie8 input[type="radio"],
97                div.mps .ie7 input[type="checkbox"],
98                div.mps .ie7 input[type="radio"]{ 
99                        position: static; left:0; }
100               
101                div.mps .ie8 input[type="checkbox"],
102                div.mps .ie8 input[type="radio"] { 
103                        position:relative; top:5px; margin-right:0.5em;}       
104                       
105        div.mps input[type="text"]:focus,div.mps textarea:focus {
106                border-color:#000;
107                }
108
109/* ---------------------------------------------- Form Submit and Next buttons ---------------------------------------------- */       
110
111        div.mps input[type="submit"], 
112        div.mps input[type="button"] { 
113                font-family:inherit;
114                padding:0.5em 1em; line-height:1em; cursor:pointer;
115                border-radius:4px; color:#000; font-weight:bold; font-size:inherit;
116                border:solid 1px #ccc;  box-shadow:0 1px 5px rgba(0,0,0,0.2);
117                background-position: center bottom;}
118               
119                /* Gradient Generator by : http://www.colorzilla.com/gradient-editor/ */
120               
121        div.mps input[type="submit"]:active, 
122        div.mps input[type="button"]:active {-webkit-box-shadow: none; box-shadow:none;}
123               
124                /* IE7 needs you to change the background to transparent when using image background for submit buttons */     
125
Note: See TracBrowser for help on using the repository browser.