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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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