mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
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:
57
src/pretix/static/pretixpresale/scss/_rtl.scss
Normal file
57
src/pretix/static/pretixpresale/scss/_rtl.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user