summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/less/style-rtl.less
blob: 92eda0c10816b871223bf3dac8f1babf3b183e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
.ltr-left(@offset) {
  right: @offset;
}

.ltr-right(@offset) {
  left: @offset;
}

.ltr-margin-right(@offset) {
  margin-left: @offset;
}

.ltr-margin-left(@offset) {
  margin-right: @offset;
}

.ltr-border-right(@offset) {
  border-left: @offset;
}

.ltr-border-left(@offset) {
  border-right: @offset;
}

.ltr-padding-right(@offset) {
  padding-left: @offset;
}

.ltr-padding-left(@offset) {
  padding-right: @offset;
}

.ltr-float-left() {
  float: right;
}

.ltr-float-right() {
  float: left;
}

.ltr-text-align-right() {
  text-align: left;
}

.ltr-rounded-left-corners(@radius: 10px) {
  border-radius: 0 @radius @radius 0;
}

.ltr-rounded-right-corners(@radius: 10px) {
  border-radius: @radius 0 0 @radius;
}

.ltr-text-align-left() {
  text-align: right;
}

.ltr-border-left-width(@offset) {
  border-right-width: @offset;
}

.ltr-border-right-width(@offset) {
  border-left-width: @offset;
}

.ltr-transform() {
  transform: scale(-1, 1);
}

@import "style.less";

#q,
#sidebar .infobox dt bdi {
  direction: rtl;
}

// URL are displayed LTR but align on the right
#urls {
  direction: initial;
  text-align: right;

  .result .url_wrapper {
    justify-content: end;
  }
}

// Image detail
#results.image-detail-open article.result-images[data-vim-selected] .detail .result-images-labels p {
  direction: rtl;

  &.result-url {
    // Display URL using the LTR direction
    direction: ltr;

    span {
      // And put the label on the right
      direction: rtl;
      float: right;
    }
  }
}

// select HTML element
@supports ((background-position-x: 100%) and ((appearance: none) or (-webkit-appearance: none) or (-moz-appearance: none))) {
  select {
    border-width: 0 0 0 2rem;
    background-position-x: -2rem;
  }
}

// vim hotkey helps is not translated
#vim-hotkeys-help table {
  direction: ltr;
  text-align: left;
}

// Logo on the right
#main_preferences h1,
#main_stats h1 {
  background-position-x: 100%;
}

// patch of searx/static/themes/__common__/less/stats.less
.bar-chart-serie1,
.bar-chart-serie2 {
  float: right;
}

.engine-stats .engine-name,
.engine-stats .engine-score,
.engine-stats .result-count,
.engine-stats .response-time,
.engine-stats .engine-reliability {
  text-align: right;
}