Dotclear


Ignore:
Timestamp:
11/17/17 12:10:54 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Do not use border and background on select to use the system aspect of them in Firefox (else FF will use the oldest Netscape ugly look).
Target Safari to cope wit font-size select/option problem.
The font-size of option element cannot be changed in Firefox (very old bug)

Location:
admin/style
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/style/default.css

    r3576 r3602  
    994994select, 
    995995legend { 
    996   border-radius: 3px; 
    997996  max-width: 100%; } 
     997 
     998input[type=text], 
     999input[type=password], 
     1000input[type=submit], 
     1001input[type=button], 
     1002input[type=reset], 
     1003a.button, 
     1004button, 
     1005textarea, 
     1006legend { 
     1007  border-radius: 3px; } 
    9981008 
    9991009form { 
     
    10341044textarea, 
    10351045select { 
    1036   background: #fcfcfc; 
    10371046  color: #000; 
    1038   border-width: 1px; 
    1039   border-style: solid; 
    1040   border-color: #dfdfdf; 
    10411047  box-shadow: 1px 1px 2px #f3f3f3 inset; 
    10421048  padding: 3px; 
    10431049  vertical-align: top; } 
    10441050 
     1051input[type=text], 
     1052input[type=password], 
     1053textarea { 
     1054  background: #fcfcfc; 
     1055  border-width: 1px; 
     1056  border-style: solid; 
     1057  border-color: #dfdfdf; } 
     1058 
    10451059input:focus, 
    1046 textarea:focus, 
    1047 select:focus { 
     1060textarea:focus { 
    10481061  border-color: #9bca1c; } 
    10491062 
     
    10611074  vertical-align: middle; } 
    10621075 
     1076@media not all and (min-resolution: 0.001dpcm) { 
     1077  @supports (-webkit-appearance: none) { 
     1078    /* Safari 10.1+ only (https://browserstrangeness.bitbucket.io/css_hacks.html#webkit) */ 
     1079    select { 
     1080      font-size: initial; } } } 
    10631081select.l10n option { 
    10641082  padding-left: 16px; } 
     
    10701088textarea.invalid, 
    10711089select.invalid { 
    1072   border: 1px solid red; 
    1073   background: #FFBABA; 
    10741090  color: #900; 
    10751091  box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3); } 
     1092 
     1093input.invalid, 
     1094textarea.invalid { 
     1095  border: 1px solid red; 
     1096  background: #FFBABA; } 
    10761097 
    10771098input[type=text], 
  • admin/style/scss/partials/_forms.scss

    r3517 r3602  
    99select, 
    1010legend { 
     11     max-width: 100%; 
     12} 
     13 
     14input[type=text], 
     15input[type=password], 
     16input[type=submit], 
     17input[type=button], 
     18input[type=reset], 
     19a.button, 
     20button, 
     21textarea, 
     22legend { 
    1123     border-radius: 3px; 
    12      max-width: 100%; 
    1324} 
    1425 
     
    5566textarea, 
    5667select { 
     68     color: #000; 
     69     box-shadow: 1px 1px 2px #f3f3f3 inset; 
     70     padding: 3px; 
     71     vertical-align: top; 
     72} 
     73input[type=text], 
     74input[type=password], 
     75textarea { 
    5776     background: #fcfcfc; 
    58      color: #000; 
    5977     border-width: 1px; 
    6078     border-style: solid; 
    6179     border-color: #dfdfdf; 
    62      box-shadow: 1px 1px 2px #f3f3f3 inset; 
    63      padding: 3px; 
    64      vertical-align: top; 
    6580} 
    6681 
    6782input:focus, 
    68 textarea:focus, 
    69 select:focus { 
     83textarea:focus { 
    7084     border-color: #9bca1c; 
    7185} 
     
    87101     vertical-align: middle; 
    88102} 
     103@media not all and (min-resolution:.001dpcm) 
     104{ @supports (-webkit-appearance:none) { 
     105     /* Safari 10.1+ only (https://browserstrangeness.bitbucket.io/css_hacks.html#webkit) */ 
     106     select { 
     107          font-size: initial; 
     108    } 
     109}} 
    89110 
    90111select.l10n option { 
     
    99120textarea.invalid, 
    100121select.invalid { 
     122     color: #900; 
     123     box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3); 
     124} 
     125input.invalid, 
     126textarea.invalid { 
    101127     border: 1px solid red; 
    102128     background: #FFBABA; 
    103      color: #900; 
    104      box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3); 
    105129} 
    106130 
Note: See TracChangeset for help on using the changeset viewer.

Sites map