Support for right-to-left languages (#1438)

* play around

* Flip things in presale

* Convert backend

* Remove test settings

* Safe getattr
This commit is contained in:
Raphael Michel
2019-10-15 11:41:23 +02:00
committed by GitHub
parent 4152ee4e50
commit a4d8c810ce
79 changed files with 2006 additions and 140 deletions

View File

@@ -0,0 +1,57 @@
html.rtl {
.info-row {
& > .fa {
float: right;
}
p {
margin-right: 40px;
margin-left: 0;
}
}
.cart-row > div {
float: right;
}
.checkout-flow .checkout-step:last-child .checkout-step-bar-right, .checkout-flow .checkout-step:first-child .checkout-step-bar-left {
background: $gray-lighter;
}
.checkout-flow .checkout-step.step-current .checkout-step-bar-left {
background: $gray-lighter;
}
.checkout-flow .checkout-step.step-current .checkout-step-bar-right,
.checkout-flow .checkout-step.step-done .checkout-step-bar-right, .checkout-flow .checkout-step.step-done .checkout-step-bar-left {
background: $brand-primary;
}
.checkout-flow .checkout-step:last-child .checkout-step-bar-left, .checkout-flow .checkout-step:first-child .checkout-step-bar-right {
background: transparent;
}
.cart-modify {
margin-left: 0;
margin-right: 10px;
}
.cart-row dl dd {
padding-right: 20px;
padding-left: 0;
}
.thank-you .fa {
float: right;
margin-left: 30px;
margin-right: 0;
}
.thank-you p {
margin-right: 158px;
margin-left: 0;
}
.fa-arrow-right::before {
content: $fa-var-arrow-left;
}
.fa-arrow-left::before {
content: $fa-var-arrow-right;
}
.page-header h1 {
direction: rtl;
* {
display: inline-block;
}
}
}

View File

@@ -291,3 +291,6 @@ h2 .label {
@import "_iframe.scss";
@import "_a11y.scss";
@import "_print.scss";
@import "../../pretixbase/scss/_rtl.scss";
@import "../../bootstrap/scss/_rtl.scss";
@import "_rtl.scss";