tysonmatanich / directional-scss Goto Github PK
View Code? Open in Web Editor NEWMakes supporting CSS for left-to-right (LTR) and right-to-left (RTL) easy with Sass.
Home Page: https://www.matanich.com/2013/09/06/rtl-css-with-sass/
Makes supporting CSS for left-to-right (LTR) and right-to-left (RTL) easy with Sass.
Home Page: https://www.matanich.com/2013/09/06/rtl-css-with-sass/
Hi!
Is there a way to change 'before' pseudo element to 'after'? Currently syntax like
icon:#{if-ltr('before', 'after')} {
...
}
produces syntax error
Thank you so much for this awesome .scss!
Hi,
I'm trying to change the $dir parameter by the html "dir" attribute without success.
I want to work with one css file and not with an css-rtl so what is the right way to handle it?
Wanted situation:
// Override default value for $dir in directional.scss
html[dir="rtl"] {
$dir: rtl;
}
Anyone know how to use this with Dart Sass via @use/@forward?
Thank you!!
border-radius shorthand property, and maybe a few others, is ordered as top-left, top-right, bottom-left, bottom-right. So new order would be 2,1,4,3.
This may be pretty edge-case though. I just made an adaption of your dir-values function called border-values:
@function border-values($values) {
@if $text-direction == rtl and length($values) == 4 {
// border shorthand is defined as tl, tr, br, bl, so new order is 2,1,4,3
@return nth($values, 2) nth($values, 1) nth($values, 4) nth($values, 3);
}
@else {
@return $values;
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.