Git Product home page Git Product logo

Comments (9)

JTS-IL avatar JTS-IL commented on July 21, 2024

?
Looked at his site, it looks great.
Did he fix something?

from customizr.

 avatar commented on July 21, 2024

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.

JTS-IL avatar JTS-IL commented on July 21, 2024

OK!
digging...

from customizr.

JTS-IL avatar JTS-IL commented on July 21, 2024

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;
    }
  }

that should fix #261 and #262

from customizr.

eri-trabiccolo avatar eri-trabiccolo commented on July 21, 2024

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.

JTS-IL avatar JTS-IL commented on July 21, 2024

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.

eri-trabiccolo avatar eri-trabiccolo commented on July 21, 2024

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.

JTS-IL avatar JTS-IL commented on July 21, 2024

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.

JTS-IL avatar JTS-IL commented on July 21, 2024

About the logo - I think I didn't get RTL-ing this option yet :-(

from customizr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.