Changeset 3365:11eb6b993152 for admin/style/scss/init
- Timestamp:
- 10/26/16 14:09:23 (9 years ago)
- Branch:
- default
- Location:
- admin/style/scss/init
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/style/scss/init/_config.scss
r3355 r3365 4 4 // Do not support IE less than IE9 5 5 $browser-minimum-versions: ( 6 "ie": " 9"6 "ie": "10" 7 7 ); 8 8 $graceful-usage-threshold: 100; … … 31 31 32 32 // Palette de base 33 33 34 $blue: #137bbb; 34 35 $green: #9ac123; … … 41 42 42 43 $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) 43 45 $gray-light: tint($gray, 30%); // #c9c9c9 (near to #ccc used before) 44 46 $gray-very-light: tint($gray, 85%); // #f3f3f3 (near to #f7f7f7 used before) … … 46 48 $white: #fff; 47 49 $black: #000; 50 51 // Couleurs secondaires 52 53 48 54 49 55 // Application … … 62 68 63 69 // Autres 70 64 71 $css-img-path: 'img'; // utile pour le mixin de fallback svg 65 72 -
admin/style/scss/init/_mixins-functions.scss
r3355 r3365 1 1 // mixin svg fallback 2 2 @mixin svg( 3 4 3 $file-name, 4 $css-img-path: $css-img-path) 5 5 { 6 7 6 background-image: inline-image($file-name+'.png'); 7 background-image: inline-image($file-name+'.svg'), none; 8 8 } 9 9 10 10 @mixin bg-with-svg( 11 12 13 14 15 11 $file-name, 12 $css-img-path: $css-img-path, 13 $repeat: no-repeat, 14 $position: 50% 50%, 15 $bg-color: transparent) 16 16 { 17 18 17 background: inline-image($file-name+'.png') $repeat, $position, $bg-color; 18 background-image: inline-image($file-name+'.svg'), none; 19 19 } 20 20 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/) 21 23 @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; 30 43 } 31 44 32 45 // Remove any unit from a value 33 46 @function strip-unit( 34 47 $value) 35 48 { 36 49 @return $value / ($value * 0 + 1); 37 50 } 38 51 39 52 // Compute absolute value (in em or rem) depending on font-size of the html element (given in %) 40 53 @function relative-to-screen( 41 42 54 $value, // em or rem value 55 $html-font-size) // in % 43 56 { 44 57 @return $value / (strip-unit($html-font-size) / 100); 45 58 } -
admin/style/scss/init/_rebase.scss
r3355 r3365 154 154 margin: 0; 155 155 } 156 /* Hide only visually, but have it available for screenreaders: h5bp.com/v */ 156 157 /* Screen-reader only */ 157 158 .visually-hidden { 158 159 @include visually-hidden; 160 &:focus, 161 &:active { 162 @include visually-hidden-focus; 163 } 159 164 }
Note: See TracChangeset
for help on using the changeset viewer.