Dotclear


Ignore:
Timestamp:
06/22/18 16:48:10 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Use sass variables for every color used (mainly foreground, background, border)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/style/scss/partials/_forms.scss

    r3713 r3763  
    4242  border-width: 1px 0; 
    4343  border-style: solid; 
    44   border-color: #ccc; 
    45   background: #f7f7f7; 
     44  border-color: $fieldset-border; 
     45  background: $fieldset-background; 
    4646  &:focus-within { 
    47     background-color: #eee; 
     47    background-color: $fieldset-focus-background; 
    4848  } 
    4949} 
     
    6565  border-width: 1px; 
    6666  border-style: solid; 
    67   border-color: #676e78; 
    68   background: #fff; 
     67  border-color: $legend-border; 
     68  background: $legend-background; 
    6969  margin-bottom: 0.5em; 
    7070} 
     
    7373} 
    7474input.invalid, textarea.invalid, select.invalid, input:not([type=file]):invalid:not(:focus) { 
    75   color: #900; 
    76   box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3); 
     75  color: $invalid-input-color; 
     76  box-shadow: 0 0 0 3px $invalid-input-shadow; 
    7777} 
    7878input.invalid, textarea.invalid, input:not([type=file]):invalid:not(:focus) { 
    79   border: 1px solid red; 
    80   background: #FFBABA; 
     79  border: 1px solid $invalid-input-border; 
     80  background: $invalid-input-background; 
    8181} 
    8282input[type=text], 
     
    9191input[type=number], 
    9292textarea, select, input:not([type=file]):invalid, input:not([type=file]):invalid:placeholder-shown { 
    93   color: #000; 
    94   box-shadow: 1px 1px 2px #f3f3f3 inset; 
     93  color: $input-color; 
     94  box-shadow: 1px 1px 2px $input-shadow inset; 
    9595  padding: 3px; 
    9696  vertical-align: top; 
     
    107107input[type=number], 
    108108textarea, input:not([type=file]):invalid, input:not([type=file]):invalid:placeholder-shown { 
    109   background: #fcfcfc; 
     109  background: $input-background; 
    110110  border-width: 1px; 
    111111  border-style: solid; 
    112   border-color: #dfdfdf; 
     112  border-color: $input-border; 
    113113} 
    114114input:focus, textarea:focus { 
    115   border-color: #9bca1c; 
     115  border-color: $input-focus; 
    116116} 
    117117textarea { 
     
    197197} 
    198198label.required abbr { 
    199   color: #900; 
     199  color: $error-alt; 
    200200  font-size: 1.3em; 
    201201  text-decoration: none; 
     
    225225  font-style: italic; 
    226226  font-weight: normal; 
    227   color: #676e78; 
     227  color: $form-note-color; 
    228228} 
    229229p.form-note, p.form-stats { 
     
    243243  } 
    244244  50% { 
    245     background-color: #ffbaba; 
     245    background-color: $error-background; 
    246246  } 
    247247  100% { 
     
    259259  } 
    260260  50% { 
    261     background-color: #ccff00; 
     261    background-color: $input-focus; 
    262262  } 
    263263  100% { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map