Comments (9)
?
Looked at his site, it looks great.
Did he fix something?
from customizr.
he downgraded to 3.4.28 because he had a serie of issues related to RTL, this one and also #260 and #261
from customizr.
OK!
digging...
from customizr.
The issue is in mixins.less
I'm having some problems with github, so here is the fix:
old code:
.row-fluid {
width: 100%;
.clearfix();
[class*="span"] {
.input-block-level();
float: @floatDirection;
& when (@is_rtl = false) {
margin-left: @fluidGridGutterWidth;
*margin-left: @fluidGridGutterWidth - (.5 / @gridRowWidth * 100 * 1%);
}
& when (@is_rtl= true) {
margin-right: @fluidGridGutterWidth;
*margin-right: @fluidGridGutterWidth - (.5 / @gridRowWidth * 100 * 1%);
}
}
[class*="span"]:first-child {
& when (@is_rtl = false) {
margin-left: 0;
}
& when (@is_rtl = true) {
margin-right: 0;
}
}
new code
.row-fluid {
width: 100%;
.clearfix();
[class*="span"] {
.input-block-level();
float: @floatDirection;
& when (@is_rtl = false) {
margin-left: @fluidGridGutterWidth;
*margin-left: @fluidGridGutterWidth - (.5 / @gridRowWidth * 100 * 1%);
margin-right: 0;
}
& when (@is_rtl= true) {
margin-right: @fluidGridGutterWidth;
*margin-right: @fluidGridGutterWidth - (.5 / @gridRowWidth * 100 * 1%);
margin-left: 0;
}
}
[class*="span"]:first-child {
margin-left: 0;
margin-right: 0;
}
}
from customizr.
Hello JTS,
though it works, I'm not totally sure this is the dual of the ltr rule.
Would you like to test this PR -> #263
Do you think it could be at least a good starting point?
from customizr.
As I remember - the left/right margin is not always a match for the flow direction.
that's why I used the "when" rules selectively.
from customizr.
You're right overall, but for which concerns to the grid system I think the margin-left is pretty tied to the float direction.
Anyway whatever would be the solution still there is something to do. For example why the logo right/left option doesn't work?. In rtl this rule should become "pull-left" .
https://github.com/Nikeo/customizr/blob/master/inc/assets/less/bootstrap/grid.less#L19
[class_="span"].pull-left,
.row-fluid [class_="span"].pull-left {
float: left;
}
from customizr.
When I just started RTL-ing the theme, I did convert all the lefts to rights and vice-versa, but the result was not good
from customizr.
About the logo - I think I didn't get RTL-ing this option yet :-(
from customizr.
Related Issues (20)
- [PHP 8] error Uncaught ValueError: Unknown format specifier β;β in route to files/wp-content/themes/customizr-pro/core/czr-customize-ccat.php:966
- [performance] prevent loading flickity.min.css ?
- Conflict with OptimizePress3
- [header] top offset issue when user logged in.
- [WooCommerce] explore a better display of product groups
- Google Mobile friendly notice about preload delay for font awesome
- Mobile menΓΉ issue: is difficult to understand the menu can be scrolled. HOT 1
- Unsupported operand types: string / int (in class-fire-resources_fonts.php:190) HOT 1
- [header] when centered on desktop, the site title stays left aligned
- [WooCommerce] checkout checkboxes broken when Font Awesome is not loaded
- compatibility with Nimble Builder when using a site template, lazy load not triggered
- Using wp_cache_set() can break sites using persistent caching like Memcached.
- [accessibility] improve accessibility of checkbox toggle for slider options
- remove W3C deprecated attributes for script and style tags HOT 6
- Possible interfering with Jetpack plugin "Widget Cookies & Consent Banner" HOT 1
- Possible year picker conflict with plugin Fluent forms
- [PHP 8] Possible display issue with header tagline and social links
- javascript breaks with WooCommerce cross sell item at checkout HOT 1
- Using Tickets add-on for The Events Calendar breaks website
- WooCommerce : Make sure property WC()::cart exists
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from customizr.