Dotclear


Ignore:
Timestamp:
10/26/16 14:09:23 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Switch admin CSS to Sass/Compass?, to be continued…

Location:
admin/style/scss/init
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin/style/scss/init/_config.scss

    r3355 r3365  
    44// Do not support IE less than IE9 
    55$browser-minimum-versions: ( 
    6   "ie": "9" 
     6  "ie": "10" 
    77); 
    88$graceful-usage-threshold: 100; 
     
    3131 
    3232// Palette de base 
     33 
    3334$blue:                   #137bbb; 
    3435$green:             #9ac123; 
     
    4142 
    4243$gray-very-dark:    shade($gray, 72%);       // #323232 (near to #333 used before) 
     44$gray-semi-dark:    shade($gray, 25%);       // #868686 (near to #999 used before) 
    4345$gray-light:        tint($gray, 30%);        // #c9c9c9 (near to #ccc used before) 
    4446$gray-very-light:   tint($gray, 85%);        // #f3f3f3 (near to #f7f7f7 used before) 
     
    4648$white:                  #fff; 
    4749$black:                  #000; 
     50 
     51// Couleurs secondaires 
     52 
     53 
    4854 
    4955// Application 
     
    6268 
    6369// Autres 
     70 
    6471$css-img-path: 'img'; // utile pour le mixin de fallback svg 
    6572 
  • admin/style/scss/init/_mixins-functions.scss

    r3355 r3365  
    11// mixin svg fallback 
    22@mixin svg( 
    3     $file-name, 
    4     $css-img-path: $css-img-path) 
     3     $file-name, 
     4     $css-img-path: $css-img-path) 
    55{ 
    6     background-image: inline-image($file-name+'.png'); 
    7     background-image: inline-image($file-name+'.svg'), none; 
     6     background-image: inline-image($file-name+'.png'); 
     7     background-image: inline-image($file-name+'.svg'), none; 
    88} 
    99 
    1010@mixin bg-with-svg( 
    11     $file-name, 
    12     $css-img-path: $css-img-path, 
    13     $repeat: no-repeat, 
    14     $position: 50% 50%, 
    15     $bg-color: transparent) 
     11     $file-name, 
     12     $css-img-path: $css-img-path, 
     13     $repeat: no-repeat, 
     14     $position: 50% 50%, 
     15     $bg-color: transparent) 
    1616{ 
    17     background: inline-image($file-name+'.png') $repeat, $position, $bg-color; 
    18     background-image: inline-image($file-name+'.svg'), none; 
     17     background: inline-image($file-name+'.png') $repeat, $position, $bg-color; 
     18     background-image: inline-image($file-name+'.svg'), none; 
    1919} 
    2020 
     21// Mix from Nico3333 (https://github.com/nico3333fr/ROCSSTI/blob/master/src/css/rocssti-fr.css#L637) 
     22// and ffood (http://www.ffoodd.fr/cache-cache-css/) 
    2123@mixin visually-hidden { 
    22     border: 0; 
    23     clip: rect(0 0 0 0); 
    24     height: 1px; 
    25     margin: -1px; 
    26     overflow: hidden; 
    27     padding: 0; 
    28     position: absolute; 
    29     width: 1px; 
     24     border: 0; 
     25     clip: rect(0 0 0 0); 
     26     clip-path: inset(50%); 
     27     height: 1px; 
     28     margin: -1px; 
     29     overflow: hidden; 
     30     padding: 0; 
     31     position: absolute; 
     32     width: 1px; 
     33     white-space: nowrap; 
     34} 
     35@mixin visually-hidden-focus { 
     36     clip: auto; 
     37     clip-path: none; 
     38     height: auto; 
     39     overflow: visible; 
     40     position: static; 
     41     width: auto; 
     42     white-space: normal; 
    3043} 
    3144 
    3245// Remove any unit from a value 
    3346@function strip-unit( 
    34     $value) 
     47     $value) 
    3548{ 
    36     @return $value / ($value * 0 + 1); 
     49     @return $value / ($value * 0 + 1); 
    3750} 
    3851 
    3952// Compute absolute value (in em or rem) depending on font-size of the html element (given in %) 
    4053@function relative-to-screen( 
    41     $value,             // em or rem value 
    42     $html-font-size)    // in % 
     54     $value,             // em or rem value 
     55     $html-font-size)    // in % 
    4356{ 
    44     @return $value / (strip-unit($html-font-size) / 100); 
     57     @return $value / (strip-unit($html-font-size) / 100); 
    4558} 
  • admin/style/scss/init/_rebase.scss

    r3355 r3365  
    154154     margin: 0; 
    155155} 
    156 /* Hide only visually, but have it available for screenreaders: h5bp.com/v */ 
     156 
     157/* Screen-reader only */ 
    157158.visually-hidden { 
    158159     @include visually-hidden; 
     160     &:focus, 
     161     &:active { 
     162          @include visually-hidden-focus; 
     163     } 
    159164} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map