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/_buttons.scss

    r3517 r3763  
    1717input[type=reset], 
    1818input[type=submit] { 
    19      border: 1px solid #ccc; 
     19     border: 1px solid $button-border; 
    2020     font-family: $sans-serif-input; 
    2121     padding: 3px 10px; 
     
    2727     cursor: pointer; 
    2828     position: relative; 
    29      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 
     29     box-shadow: 0 1px 3px $button-shadow; 
    3030     border-style: solid; 
    3131     border-width: 1px; 
     
    5252button.submit, 
    5353input.button.start { 
    54      color: #fff; 
    55      background-color: #25a6e1; 
    56      @include background-image(linear-gradient(to bottom, #25a6e1, #188bc0)); 
    57      border-color: #25a6e1; 
     54     color: $submit-color; 
     55     background-color: $submit-background; 
     56     @include background-image(linear-gradient(to bottom, $submit-background, $submit-background-alt)); 
     57     border-color: $submit-background; 
    5858} 
    5959 
     
    6868a.button.submit:hover, 
    6969a.button.submit:focus { 
    70      background-color: #188bc0; 
    71      @include background-image(linear-gradient(to bottom, #188bc0, #25a6e1)); 
    72      border-color: #188bc0; 
     70     background-color: $submit-background-alt; 
     71     @include background-image(linear-gradient(to bottom, $submit-background-alt, $submit-background)); 
     72     border-color: $submit-background-alt; 
    7373} 
    7474 
     
    8787a.button.delete, 
    8888a.button.reset { 
    89      color: #000; 
    90      background-color: #eaeaea; 
    91      @include background-image(linear-gradient(to bottom, #f9f9f9, #eaeaea)); 
     89     color: $reset-color; 
     90     background-color: $reset-background; 
     91     @include background-image(linear-gradient(to bottom, $reset-background-alt, $reset-background)); 
    9292     background-repeat: repeat-x; 
    93      border-color: #dfdfdf #dfdfdf #c5c5c5; 
     93  border-color: $reset-border; 
    9494} 
    9595 
     
    116116a.button.reset:focus, 
    117117a.button:focus { 
    118      background-color: #dadada; 
    119      @include background-image(linear-gradient(to bottom, #eaeaea, #dadada)); 
     118     background-color: $reset-background-ter; 
     119     @include background-image(linear-gradient(to bottom, $reset-background, $reset-background-ter)); 
    120120     background-repeat: repeat-x; 
    121      border-color: #cccccc #cccccc #b5b5b5; 
     121  border-color: $reset-border; 
    122122} 
    123123 
     
    130130button.delete, 
    131131a.button.delete { 
    132      color: #900; 
     132  color: $delete-color; 
    133133} 
    134134 
     
    143143button.delete:focus, 
    144144a.button.delete:focus { 
    145      color: #ffffff; 
    146      background-color: #b33630; 
    147      @include background-image(linear-gradient(to bottom, #dc5f59, #b33630)); 
     145     color: $delete-hover-color; 
     146     background-color: $delete-hover-background; 
     147     @include background-image(linear-gradient(to bottom, $delete-hover-background-alt, $delete-hover-background)); 
    148148     background-repeat: repeat-x; 
    149      border-color: #cd504a; 
     149     border-color: $delete-hover-border; 
    150150} 
    151151 
     
    158158.button.add, 
    159159button.add { 
    160      color: #000; 
    161      background-color: #bee74b; 
    162      @include background-image(linear-gradient(to bottom, #bee74b, #9bca1c)); 
    163      border-color: #bee74b; 
     160     color: $add-color; 
     161     background-color: $add-background; 
     162     @include background-image(linear-gradient(to bottom, $add-background, $add-background-alt)); 
     163     border-color: $add-border; 
    164164     padding: .33em 1.33em .5em; 
    165165} 
     
    171171button.add:active, 
    172172button.add:focus { 
    173      background-color: #9bca1c; 
    174      @include background-image(linear-gradient(to bottom, #9bca1c, #bee74b)); 
    175      border-color: #9bca1c; 
     173     background-color: $add-background-alt; 
     174     @include background-image(linear-gradient(to bottom, $add-background-alt, $add-background)); 
     175     border-color: $add-border-alt; 
    176176} 
    177177 
     
    195195button.disabled, 
    196196button[type=submit].disabled { 
    197      color: #676e78; 
    198      background: #F5F5F5; 
    199      border: 1px solid #CCC; 
     197     color: $button-disabled-color; 
     198     background: $button-disabled-background; 
     199     border: 1px solid $button-disabled-border; 
    200200} 
    201201 
     
    204204button.disabled:hover, 
    205205button[type=submit].disabled:hover { 
    206      color: #676e78; 
    207      background: #eee; 
    208      border: 1px solid #CCC; 
     206     color: $button-disabled-color; 
     207     background: $button-disabled-background-alt; 
     208     border: 1px solid $button-disabled-border; 
    209209} 
    210210 
     
    222222a.metaGetMore { 
    223223     font-size: 0.825em; 
    224      color: #333; 
    225      background: #fff; 
     224     color: $ajax-color; 
     225     background: $ajax-background; 
    226226     box-shadow: none; 
    227      border: 1px solid #676e78; 
     227     border: 1px solid $ajax-border; 
    228228     margin-bottom: .25em; 
    229229     text-align: center; 
    230230     &:hover { 
    231           background: #a2cbe9; 
     231          background: $ajax-background-alt; 
    232232          box-shadow: none; 
    233           border: 1px solid #676e78; 
     233          border: 1px solid $ajax-border; 
    234234     } 
    235235} 
     
    248248     a:hover, 
    249249     a:active { 
    250           color: #333; 
    251           background: transparent; 
    252           border: none; 
     250          color: $gotop-color; 
     251          background: $gotop-background; 
     252          border: $gotop-border; 
    253253     } 
    254254} 
     
    269269     &:hover, 
    270270     &:focus { 
    271           background: #fc0; 
     271    background: $addmeta-background; 
    272272     } 
    273273} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map