Bläddra i källkod

[enh] add new bootstrap-themes to oscar-template

Thomas Pointhuber 10 år sedan
förälder
incheckning
096ffd0659

+ 3
- 0
Makefile Visa fil

@@ -48,6 +48,9 @@ styles:
48 48
 	@lessc -x searx/static/themes/default/less/style.less > searx/static/themes/default/css/style.css
49 49
 	@lessc -x searx/static/themes/courgette/less/style.less > searx/static/themes/courgette/css/style.css
50 50
 	@lessc -x searx/static/less/bootstrap/bootstrap.less > searx/static/css/bootstrap.min.css
51
+	@lessc -x searx/static/less/bootstrap/bootstrap_simplex.less > searx/static/css/bootstrap.simplex.min.css
52
+	@lessc -x searx/static/less/bootstrap/bootstrap_yeti.less > searx/static/css/bootstrap.yeti.min.css
53
+	@lessc -x searx/static/less/bootstrap/bootstrap_readable.less > searx/static/css/bootstrap.readable.min.css
51 54
 	@lessc -x searx/static/themes/oscar/less/oscar/oscar.less > searx/static/themes/oscar/css/oscar.min.css
52 55
 
53 56
 grunt:

+ 1
- 1
searx/static/css/bootstrap.min.css
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 0
searx/static/css/bootstrap.readable.min.css
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 0
searx/static/css/bootstrap.simplex.min.css
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 0
searx/static/css/bootstrap.yeti.min.css
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 55
- 0
searx/static/less/bootstrap/bootstrap_readable.less Visa fil

@@ -0,0 +1,55 @@
1
+// Core variables and mixins
2
+@import "variables.less";
3
+@import "theme_readable/variables.less";
4
+@import "mixins.less";
5
+
6
+// Reset and dependencies
7
+@import "normalize.less";
8
+@import "print.less";
9
+@import "glyphicons.less";
10
+
11
+// Core CSS
12
+@import "scaffolding.less";
13
+@import "type.less";
14
+@import "code.less";
15
+@import "grid.less";
16
+@import "tables.less";
17
+@import "forms.less";
18
+@import "buttons.less";
19
+
20
+// Components
21
+@import "component-animations.less";
22
+@import "dropdowns.less";
23
+@import "button-groups.less";
24
+@import "input-groups.less";
25
+@import "navs.less";
26
+@import "navbar.less";
27
+@import "breadcrumbs.less";
28
+@import "pagination.less";
29
+@import "pager.less";
30
+@import "labels.less";
31
+@import "badges.less";
32
+@import "jumbotron.less";
33
+@import "thumbnails.less";
34
+@import "alerts.less";
35
+@import "progress-bars.less";
36
+@import "media.less";
37
+@import "list-group.less";
38
+@import "panels.less";
39
+@import "responsive-embed.less";
40
+@import "wells.less";
41
+@import "close.less";
42
+
43
+// Components w/ JavaScript
44
+@import "modals.less";
45
+@import "tooltip.less";
46
+@import "popovers.less";
47
+@import "carousel.less";
48
+
49
+// Utility classes
50
+@import "utilities.less";
51
+@import "responsive-utilities.less";
52
+
53
+// own additions
54
+@import "typeahead.less";
55
+@import "theme_readable/bootswatch.less";

+ 55
- 0
searx/static/less/bootstrap/bootstrap_simplex.less Visa fil

@@ -0,0 +1,55 @@
1
+// Core variables and mixins
2
+@import "variables.less";
3
+@import "theme_simplex/variables.less";
4
+@import "mixins.less";
5
+
6
+// Reset and dependencies
7
+@import "normalize.less";
8
+@import "print.less";
9
+@import "glyphicons.less";
10
+
11
+// Core CSS
12
+@import "scaffolding.less";
13
+@import "type.less";
14
+@import "code.less";
15
+@import "grid.less";
16
+@import "tables.less";
17
+@import "forms.less";
18
+@import "buttons.less";
19
+
20
+// Components
21
+@import "component-animations.less";
22
+@import "dropdowns.less";
23
+@import "button-groups.less";
24
+@import "input-groups.less";
25
+@import "navs.less";
26
+@import "navbar.less";
27
+@import "breadcrumbs.less";
28
+@import "pagination.less";
29
+@import "pager.less";
30
+@import "labels.less";
31
+@import "badges.less";
32
+@import "jumbotron.less";
33
+@import "thumbnails.less";
34
+@import "alerts.less";
35
+@import "progress-bars.less";
36
+@import "media.less";
37
+@import "list-group.less";
38
+@import "panels.less";
39
+@import "responsive-embed.less";
40
+@import "wells.less";
41
+@import "close.less";
42
+
43
+// Components w/ JavaScript
44
+@import "modals.less";
45
+@import "tooltip.less";
46
+@import "popovers.less";
47
+@import "carousel.less";
48
+
49
+// Utility classes
50
+@import "utilities.less";
51
+@import "responsive-utilities.less";
52
+
53
+// own additions
54
+@import "typeahead.less";
55
+@import "theme_simplex/bootswatch.less";

+ 55
- 0
searx/static/less/bootstrap/bootstrap_yeti.less Visa fil

@@ -0,0 +1,55 @@
1
+// Core variables and mixins
2
+@import "variables.less";
3
+@import "theme_yeti/variables.less";
4
+@import "mixins.less";
5
+
6
+// Reset and dependencies
7
+@import "normalize.less";
8
+@import "print.less";
9
+@import "glyphicons.less";
10
+
11
+// Core CSS
12
+@import "scaffolding.less";
13
+@import "type.less";
14
+@import "code.less";
15
+@import "grid.less";
16
+@import "tables.less";
17
+@import "forms.less";
18
+@import "buttons.less";
19
+
20
+// Components
21
+@import "component-animations.less";
22
+@import "dropdowns.less";
23
+@import "button-groups.less";
24
+@import "input-groups.less";
25
+@import "navs.less";
26
+@import "navbar.less";
27
+@import "breadcrumbs.less";
28
+@import "pagination.less";
29
+@import "pager.less";
30
+@import "labels.less";
31
+@import "badges.less";
32
+@import "jumbotron.less";
33
+@import "thumbnails.less";
34
+@import "alerts.less";
35
+@import "progress-bars.less";
36
+@import "media.less";
37
+@import "list-group.less";
38
+@import "panels.less";
39
+@import "responsive-embed.less";
40
+@import "wells.less";
41
+@import "close.less";
42
+
43
+// Components w/ JavaScript
44
+@import "modals.less";
45
+@import "tooltip.less";
46
+@import "popovers.less";
47
+@import "carousel.less";
48
+
49
+// Utility classes
50
+@import "utilities.less";
51
+@import "responsive-utilities.less";
52
+
53
+// own additions
54
+@import "typeahead.less";
55
+@import "theme_yeti/bootswatch.less";

+ 187
- 0
searx/static/less/bootstrap/theme_readable/bootswatch.less Visa fil

@@ -0,0 +1,187 @@
1
+// Readable 3.3.1
2
+// Bootswatch
3
+// -----------------------------------------------------
4
+
5
+@import url("//fonts.googleapis.com/css?family=Raleway:400,700");
6
+
7
+// Navbar =====================================================================
8
+
9
+.navbar {
10
+  font-family: @headings-font-family;
11
+
12
+  &-nav,
13
+  &-form {
14
+    margin-left: 0;
15
+    margin-right: 0;
16
+  }
17
+
18
+  &-nav > li > a {
19
+    padding: @padding-base-vertical @padding-base-horizontal;
20
+    margin: 12px 6px;
21
+    border: 1px solid transparent;
22
+    border-radius: @border-radius-base;
23
+
24
+    &:hover {
25
+      border: 1px solid #ddd;
26
+    }
27
+  }
28
+
29
+  &-nav > .active > a,
30
+  &-nav > .active > a:hover {
31
+    border: 1px solid #ddd;
32
+  }
33
+
34
+  &-default .navbar-nav > .active > a:hover {
35
+    color: @navbar-default-link-hover-color;
36
+  }
37
+
38
+  &-inverse .navbar-nav > .active > a:hover {
39
+    color: @navbar-inverse-link-hover-color;
40
+  }
41
+
42
+  &-brand {
43
+    padding-top: 20px;
44
+  }
45
+}
46
+
47
+@media (max-width: @grid-float-breakpoint) {
48
+  .navbar {
49
+    .navbar-nav > li > a {
50
+      margin: 0;
51
+    }
52
+  }
53
+}
54
+
55
+// Buttons ====================================================================
56
+
57
+.btn {
58
+  font-family: @headings-font-family;
59
+}
60
+
61
+// Typography =================================================================
62
+
63
+// Tables =====================================================================
64
+
65
+// Forms ======================================================================
66
+
67
+legend {
68
+  font-family: @headings-font-family;
69
+}
70
+
71
+.input-group-addon {
72
+  font-family: @font-family-sans-serif;
73
+}
74
+
75
+// Navs =======================================================================
76
+
77
+.nav {
78
+  .open > a,
79
+  .open > a:hover,
80
+  .open > a:focus {
81
+    border: 1px solid #ddd;
82
+  }
83
+}
84
+
85
+.pagination {
86
+
87
+  font-family: @headings-font-family;
88
+
89
+  &-lg > li > a,
90
+  &-lg > li > span {
91
+    padding: 14px 24px;
92
+  }
93
+}
94
+
95
+.pager {
96
+
97
+  font-family: @headings-font-family;
98
+
99
+  a {
100
+    color: @text-color;
101
+  }
102
+
103
+  a:hover {
104
+    border-color: transparent;
105
+    color: #fff;
106
+  }
107
+
108
+  .disabled a {
109
+    border-color: @pager-border;
110
+  }
111
+}
112
+
113
+// Indicators =================================================================
114
+
115
+.close {
116
+  color: #fff;
117
+  text-decoration: none;
118
+  text-shadow: none;
119
+  opacity: 0.4;
120
+
121
+  &:hover,
122
+  &:focus {
123
+    color: #fff;
124
+    opacity: 1;
125
+  }
126
+}
127
+
128
+.alert {
129
+  .alert-link {
130
+    color: @alert-success-text;
131
+    text-decoration: underline;
132
+  }
133
+}
134
+
135
+.label {
136
+  font-family: @headings-font-family;
137
+  font-weight: normal;
138
+
139
+  &-default {
140
+    border: 1px solid #ddd;
141
+    color: @text-color;
142
+  }
143
+
144
+}
145
+
146
+.badge {
147
+  padding: 1px 7px 5px;
148
+  vertical-align: 2px;
149
+  font-family: @headings-font-family;
150
+  font-weight: normal;
151
+}
152
+
153
+// Progress bars ==============================================================
154
+
155
+// Containers =================================================================
156
+
157
+.panel {
158
+  .box-shadow(none);
159
+
160
+  &-default {
161
+    .close {
162
+      color: @text-color;
163
+    }
164
+  }
165
+
166
+  &-primary,
167
+  &-success,
168
+  &-warning,
169
+  &-danger,
170
+  &-info {
171
+    .panel-heading {
172
+      color: #fff;
173
+    }
174
+
175
+    .panel-body {
176
+      border: 1px solid #ddd;
177
+      border-top-width: 0;
178
+      border-radius: 0 0 @border-radius-base @border-radius-base;
179
+    }
180
+  }
181
+}
182
+
183
+.modal {
184
+  .close {
185
+    color: @text-color;
186
+  }
187
+}

+ 856
- 0
searx/static/less/bootstrap/theme_readable/variables.less Visa fil

@@ -0,0 +1,856 @@
1
+// Readable 3.3.1
2
+// Variables
3
+// --------------------------------------------------
4
+
5
+
6
+//== Colors
7
+//
8
+//## Gray and brand colors for use across Bootstrap.
9
+
10
+@gray-base:              #000;
11
+@gray-darker:            lighten(@gray-base, 13.5%); // #222
12
+@gray-dark:              lighten(@gray-base, 20%);   // #333
13
+@gray:                   lighten(@gray-base, 33.5%); // #555
14
+@gray-light:             lighten(@gray-base, 70%);   // #999
15
+@gray-lighter:           lighten(@gray-base, 93.5%); // #eee
16
+
17
+@brand-primary:         #4582EC;
18
+@brand-success:         #3FAD46;
19
+@brand-info:            #5bc0de;
20
+@brand-warning:         #f0ad4e;
21
+@brand-danger:          #d9534f;
22
+
23
+
24
+//== Scaffolding
25
+//
26
+//## Settings for some of the most global styles.
27
+
28
+//** Background color for `<body>`.
29
+@body-bg:               #fff;
30
+//** Global text color on `<body>`.
31
+@text-color:            @gray-dark;
32
+
33
+//** Global textual link color.
34
+@link-color:            @brand-primary;
35
+//** Link hover color set via `darken()` function.
36
+@link-hover-color:      darken(@link-color, 20%);
37
+//** Link hover decoration.
38
+@link-hover-decoration: underline;
39
+
40
+
41
+//== Typography
42
+//
43
+//## Font, line-height, and color for body text, headings, and more.
44
+
45
+@font-family-sans-serif:  "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
46
+@font-family-serif:       Georgia, "Times New Roman", Times, serif;
47
+//** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
48
+@font-family-monospace:   Menlo, Monaco, Consolas, "Courier New", monospace;
49
+@font-family-base:        @font-family-serif;
50
+
51
+@font-size-base:          16px;
52
+@font-size-large:         ceil((@font-size-base * 1.25)); // ~18px
53
+@font-size-small:         ceil((@font-size-base * 0.85)); // ~12px
54
+
55
+@font-size-h1:            floor((@font-size-base * 2.6)); // ~36px
56
+@font-size-h2:            floor((@font-size-base * 2.15)); // ~30px
57
+@font-size-h3:            ceil((@font-size-base * 1.7)); // ~24px
58
+@font-size-h4:            ceil((@font-size-base * 1.25)); // ~18px
59
+@font-size-h5:            @font-size-base;
60
+@font-size-h6:            ceil((@font-size-base * 0.85)); // ~12px
61
+
62
+//** Unit-less `line-height` for use in components like buttons.
63
+@line-height-base:        1.428571429; // 20/14
64
+//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
65
+@line-height-computed:    floor((@font-size-base * @line-height-base)); // ~20px
66
+
67
+//** By default, this inherits from the `<body>`.
68
+@headings-font-family:    @font-family-sans-serif;
69
+@headings-font-weight:    bold;
70
+@headings-line-height:    1.1;
71
+@headings-color:          inherit;
72
+
73
+
74
+//== Iconography
75
+//
76
+//## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
77
+
78
+//** Load fonts from this directory.
79
+@icon-font-path:          "../fonts/";
80
+//** File name for all font files.
81
+@icon-font-name:          "glyphicons-halflings-regular";
82
+//** Element ID within SVG icon file.
83
+@icon-font-svg-id:        "glyphicons_halflingsregular";
84
+
85
+
86
+//== Components
87
+//
88
+//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
89
+
90
+@padding-base-vertical:     8px;
91
+@padding-base-horizontal:   12px;
92
+
93
+@padding-large-vertical:    14px;
94
+@padding-large-horizontal:  16px;
95
+
96
+@padding-small-vertical:    5px;
97
+@padding-small-horizontal:  10px;
98
+
99
+@padding-xs-vertical:       1px;
100
+@padding-xs-horizontal:     5px;
101
+
102
+@line-height-large:         1.33;
103
+@line-height-small:         1.5;
104
+
105
+@border-radius-base:        4px;
106
+@border-radius-large:       6px;
107
+@border-radius-small:       3px;
108
+
109
+//** Global color for active items (e.g., navs or dropdowns).
110
+@component-active-color:    #fff;
111
+//** Global background color for active items (e.g., navs or dropdowns).
112
+@component-active-bg:       @brand-primary;
113
+
114
+//** Width of the `border` for generating carets that indicator dropdowns.
115
+@caret-width-base:          4px;
116
+//** Carets increase slightly in size for larger components.
117
+@caret-width-large:         5px;
118
+
119
+
120
+//== Tables
121
+//
122
+//## Customizes the `.table` component with basic values, each used across all table variations.
123
+
124
+//** Padding for `<th>`s and `<td>`s.
125
+@table-cell-padding:            8px;
126
+//** Padding for cells in `.table-condensed`.
127
+@table-condensed-cell-padding:  5px;
128
+
129
+//** Default background color used for all tables.
130
+@table-bg:                      transparent;
131
+//** Background color used for `.table-striped`.
132
+@table-bg-accent:               #f9f9f9;
133
+//** Background color used for `.table-hover`.
134
+@table-bg-hover:                #f5f5f5;
135
+@table-bg-active:               @table-bg-hover;
136
+
137
+//** Border color for table and cell borders.
138
+@table-border-color:            #ddd;
139
+
140
+
141
+//== Buttons
142
+//
143
+//## For each of Bootstrap's buttons, define text, background and border color.
144
+
145
+@btn-font-weight:                normal;
146
+
147
+@btn-default-color:              @text-color;
148
+@btn-default-bg:                 #fff;
149
+@btn-default-border:             #ddd;
150
+
151
+@btn-primary-color:              #fff;
152
+@btn-primary-bg:                 @brand-primary;
153
+@btn-primary-border:             @btn-primary-bg;
154
+
155
+@btn-success-color:              #fff;
156
+@btn-success-bg:                 @brand-success;
157
+@btn-success-border:             @btn-success-bg;
158
+
159
+@btn-info-color:                 #fff;
160
+@btn-info-bg:                    @brand-info;
161
+@btn-info-border:                @btn-info-bg;
162
+
163
+@btn-warning-color:              #fff;
164
+@btn-warning-bg:                 @brand-warning;
165
+@btn-warning-border:             @btn-warning-bg;
166
+
167
+@btn-danger-color:               #fff;
168
+@btn-danger-bg:                  @brand-danger;
169
+@btn-danger-border:              @btn-danger-bg;
170
+
171
+@btn-link-disabled-color:        @gray-light;
172
+
173
+
174
+//== Forms
175
+//
176
+//##
177
+
178
+//** `<input>` background color
179
+@input-bg:                       #fff;
180
+//** `<input disabled>` background color
181
+@input-bg-disabled:              @gray-lighter;
182
+
183
+//** Text color for `<input>`s
184
+@input-color:                    @text-color;
185
+//** `<input>` border color
186
+@input-border:                   #ddd;
187
+
188
+// TODO: Rename `@input-border-radius` to `@input-border-radius-base` in v4
189
+//** Default `.form-control` border radius
190
+@input-border-radius:            @border-radius-base;
191
+//** Large `.form-control` border radius
192
+@input-border-radius-large:      @border-radius-large;
193
+//** Small `.form-control` border radius
194
+@input-border-radius-small:      @border-radius-small;
195
+
196
+//** Border color for inputs on focus
197
+@input-border-focus:             #66afe9;
198
+
199
+//** Placeholder text color
200
+@input-color-placeholder:        @gray-light;
201
+
202
+//** Default `.form-control` height
203
+@input-height-base:              (@line-height-computed + (@padding-base-vertical * 2) + 2);
204
+//** Large `.form-control` height
205
+@input-height-large:             (ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2);
206
+//** Small `.form-control` height
207
+@input-height-small:             (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);
208
+
209
+@legend-color:                   @text-color;
210
+@legend-border-color:            #e5e5e5;
211
+
212
+//** Background color for textual input addons
213
+@input-group-addon-bg:           @gray-lighter;
214
+//** Border color for textual input addons
215
+@input-group-addon-border-color: @input-border;
216
+
217
+//** Disabled cursor for form controls and buttons.
218
+@cursor-disabled:                not-allowed;
219
+
220
+
221
+//== Dropdowns
222
+//
223
+//## Dropdown menu container and contents.
224
+
225
+//** Background for the dropdown menu.
226
+@dropdown-bg:                    #fff;
227
+//** Dropdown menu `border-color`.
228
+@dropdown-border:                rgba(0,0,0,.15);
229
+//** Dropdown menu `border-color` **for IE8**.
230
+@dropdown-fallback-border:       #ccc;
231
+//** Divider color for between dropdown items.
232
+@dropdown-divider-bg:            #e5e5e5;
233
+
234
+//** Dropdown link text color.
235
+@dropdown-link-color:            @gray-dark;
236
+//** Hover color for dropdown links.
237
+@dropdown-link-hover-color:      #fff;
238
+//** Hover background for dropdown links.
239
+@dropdown-link-hover-bg:         @component-active-bg;
240
+
241
+//** Active dropdown menu item text color.
242
+@dropdown-link-active-color:     #fff;
243
+//** Active dropdown menu item background color.
244
+@dropdown-link-active-bg:        @component-active-bg;
245
+
246
+//** Disabled dropdown menu item background color.
247
+@dropdown-link-disabled-color:   @gray-light;
248
+
249
+//** Text color for headers within dropdown menus.
250
+@dropdown-header-color:          @gray-light;
251
+
252
+//** Deprecated `@dropdown-caret-color` as of v3.1.0
253
+@dropdown-caret-color:           #000;
254
+
255
+
256
+//-- Z-index master list
257
+//
258
+// Warning: Avoid customizing these values. They're used for a bird's eye view
259
+// of components dependent on the z-axis and are designed to all work together.
260
+//
261
+// Note: These variables are not generated into the Customizer.
262
+
263
+@zindex-navbar:            1000;
264
+@zindex-dropdown:          1000;
265
+@zindex-popover:           1060;
266
+@zindex-tooltip:           1070;
267
+@zindex-navbar-fixed:      1030;
268
+@zindex-modal:             1040;
269
+
270
+
271
+//== Media queries breakpoints
272
+//
273
+//## Define the breakpoints at which your layout will change, adapting to different screen sizes.
274
+
275
+// Extra small screen / phone
276
+//** Deprecated `@screen-xs` as of v3.0.1
277
+@screen-xs:                  480px;
278
+//** Deprecated `@screen-xs-min` as of v3.2.0
279
+@screen-xs-min:              @screen-xs;
280
+//** Deprecated `@screen-phone` as of v3.0.1
281
+@screen-phone:               @screen-xs-min;
282
+
283
+// Small screen / tablet
284
+//** Deprecated `@screen-sm` as of v3.0.1
285
+@screen-sm:                  768px;
286
+@screen-sm-min:              @screen-sm;
287
+//** Deprecated `@screen-tablet` as of v3.0.1
288
+@screen-tablet:              @screen-sm-min;
289
+
290
+// Medium screen / desktop
291
+//** Deprecated `@screen-md` as of v3.0.1
292
+@screen-md:                  992px;
293
+@screen-md-min:              @screen-md;
294
+//** Deprecated `@screen-desktop` as of v3.0.1
295
+@screen-desktop:             @screen-md-min;
296
+
297
+// Large screen / wide desktop
298
+//** Deprecated `@screen-lg` as of v3.0.1
299
+@screen-lg:                  1200px;
300
+@screen-lg-min:              @screen-lg;
301
+//** Deprecated `@screen-lg-desktop` as of v3.0.1
302
+@screen-lg-desktop:          @screen-lg-min;
303
+
304
+// So media queries don't overlap when required, provide a maximum
305
+@screen-xs-max:              (@screen-sm-min - 1);
306
+@screen-sm-max:              (@screen-md-min - 1);
307
+@screen-md-max:              (@screen-lg-min - 1);
308
+
309
+
310
+//== Grid system
311
+//
312
+//## Define your custom responsive grid.
313
+
314
+//** Number of columns in the grid.
315
+@grid-columns:              12;
316
+//** Padding between columns. Gets divided in half for the left and right.
317
+@grid-gutter-width:         30px;
318
+// Navbar collapse
319
+//** Point at which the navbar becomes uncollapsed.
320
+@grid-float-breakpoint:     @screen-sm-min;
321
+//** Point at which the navbar begins collapsing.
322
+@grid-float-breakpoint-max: (@grid-float-breakpoint - 1);
323
+
324
+
325
+//== Container sizes
326
+//
327
+//## Define the maximum width of `.container` for different screen sizes.
328
+
329
+// Small screen / tablet
330
+@container-tablet:             (720px + @grid-gutter-width);
331
+//** For `@screen-sm-min` and up.
332
+@container-sm:                 @container-tablet;
333
+
334
+// Medium screen / desktop
335
+@container-desktop:            (940px + @grid-gutter-width);
336
+//** For `@screen-md-min` and up.
337
+@container-md:                 @container-desktop;
338
+
339
+// Large screen / wide desktop
340
+@container-large-desktop:      (1140px + @grid-gutter-width);
341
+//** For `@screen-lg-min` and up.
342
+@container-lg:                 @container-large-desktop;
343
+
344
+
345
+//== Navbar
346
+//
347
+//##
348
+
349
+// Basics of a navbar
350
+@navbar-height:                    65px;
351
+@navbar-margin-bottom:             @line-height-computed;
352
+@navbar-border-radius:             @border-radius-base;
353
+@navbar-padding-horizontal:        floor((@grid-gutter-width / 2));
354
+@navbar-padding-vertical:          ((@navbar-height - @line-height-computed) / 2);
355
+@navbar-collapse-max-height:       340px;
356
+
357
+@navbar-default-color:             @text-color;
358
+@navbar-default-bg:                @body-bg;
359
+@navbar-default-border:            #ddd;
360
+
361
+// Navbar links
362
+@navbar-default-link-color:                @link-color;
363
+@navbar-default-link-hover-color:          @link-color;
364
+@navbar-default-link-hover-bg:             transparent;
365
+@navbar-default-link-active-color:         @navbar-default-link-color;
366
+@navbar-default-link-active-bg:            transparent;
367
+@navbar-default-link-disabled-color:       #333;
368
+@navbar-default-link-disabled-bg:          transparent;
369
+
370
+// Navbar brand label
371
+@navbar-default-brand-color:               @navbar-default-link-color;
372
+@navbar-default-brand-hover-color:         @navbar-default-link-hover-color;
373
+@navbar-default-brand-hover-bg:            transparent;
374
+
375
+// Navbar toggle
376
+@navbar-default-toggle-hover-bg:           #ddd;
377
+@navbar-default-toggle-icon-bar-bg:        #ccc;
378
+@navbar-default-toggle-border-color:       #ddd;
379
+
380
+
381
+// Inverted navbar
382
+// Reset inverted navbar basics
383
+@navbar-inverse-color:                      @text-color;
384
+@navbar-inverse-bg:                         @body-bg;
385
+@navbar-inverse-border:                     #ddd;
386
+
387
+// Inverted navbar links
388
+@navbar-inverse-link-color:                 @text-color;
389
+@navbar-inverse-link-hover-color:           @text-color;
390
+@navbar-inverse-link-hover-bg:              transparent;
391
+@navbar-inverse-link-active-color:          @text-color;
392
+@navbar-inverse-link-active-bg:             transparent;
393
+@navbar-inverse-link-disabled-color:        #ccc;
394
+@navbar-inverse-link-disabled-bg:           transparent;
395
+
396
+// Inverted navbar brand label
397
+@navbar-inverse-brand-color:                @navbar-inverse-link-color;
398
+@navbar-inverse-brand-hover-color:          @navbar-inverse-link-hover-color;
399
+@navbar-inverse-brand-hover-bg:             transparent;
400
+
401
+// Inverted navbar toggle
402
+@navbar-inverse-toggle-hover-bg:            #ddd;
403
+@navbar-inverse-toggle-icon-bar-bg:         #ccc;
404
+@navbar-inverse-toggle-border-color:        #ddd;
405
+
406
+
407
+//== Navs
408
+//
409
+//##
410
+
411
+//=== Shared nav styles
412
+@nav-link-padding:                          10px 15px;
413
+@nav-link-hover-bg:                         @gray-lighter;
414
+
415
+@nav-disabled-link-color:                   @gray-light;
416
+@nav-disabled-link-hover-color:             @gray-light;
417
+
418
+//== Tabs
419
+@nav-tabs-border-color:                     #ddd;
420
+
421
+@nav-tabs-link-hover-border-color:          @gray-lighter;
422
+
423
+@nav-tabs-active-link-hover-bg:             @body-bg;
424
+@nav-tabs-active-link-hover-color:          @gray;
425
+@nav-tabs-active-link-hover-border-color:   #ddd;
426
+
427
+@nav-tabs-justified-link-border-color:            #ddd;
428
+@nav-tabs-justified-active-link-border-color:     @body-bg;
429
+
430
+//== Pills
431
+@nav-pills-border-radius:                   @border-radius-base;
432
+@nav-pills-active-link-hover-bg:            @component-active-bg;
433
+@nav-pills-active-link-hover-color:         @component-active-color;
434
+
435
+
436
+//== Pagination
437
+//
438
+//##
439
+
440
+@pagination-color:                     @text-color;
441
+@pagination-bg:                        #fff;
442
+@pagination-border:                    #ddd;
443
+
444
+@pagination-hover-color:               #fff;
445
+@pagination-hover-bg:                  @brand-primary;
446
+@pagination-hover-border:              @brand-primary;
447
+
448
+@pagination-active-color:              #fff;
449
+@pagination-active-bg:                 @brand-primary;
450
+@pagination-active-border:             @brand-primary;
451
+
452
+@pagination-disabled-color:            @gray-light;
453
+@pagination-disabled-bg:               #fff;
454
+@pagination-disabled-border:           #ddd;
455
+
456
+
457
+//== Pager
458
+//
459
+//##
460
+
461
+@pager-bg:                             @pagination-bg;
462
+@pager-border:                         @pagination-border;
463
+@pager-border-radius:                  15px;
464
+
465
+@pager-hover-bg:                       @pagination-hover-bg;
466
+
467
+@pager-active-bg:                      @pagination-active-bg;
468
+@pager-active-color:                   @pagination-active-color;
469
+
470
+@pager-disabled-color:                 @gray-light;
471
+
472
+
473
+//== Jumbotron
474
+//
475
+//##
476
+
477
+@jumbotron-padding:              30px;
478
+@jumbotron-color:                inherit;
479
+@jumbotron-bg:                   darken(@body-bg, 3%);
480
+@jumbotron-heading-color:        inherit;
481
+@jumbotron-font-size:            ceil((@font-size-base * 1.5));
482
+
483
+
484
+//== Form states and alerts
485
+//
486
+//## Define colors for form feedback states and, by default, alerts.
487
+
488
+@state-success-text:             @brand-success;
489
+@state-success-bg:               #dff0d8;
490
+@state-success-border:           @brand-success;
491
+
492
+@state-info-text:                @brand-info;
493
+@state-info-bg:                  #d9edf7;
494
+@state-info-border:              @brand-info;
495
+
496
+@state-warning-text:             @brand-warning;
497
+@state-warning-bg:               #fcf8e3;
498
+@state-warning-border:           @brand-warning;
499
+
500
+@state-danger-text:              @brand-danger;
501
+@state-danger-bg:                #f2dede;
502
+@state-danger-border:            @brand-danger;
503
+
504
+
505
+//== Tooltips
506
+//
507
+//##
508
+
509
+//** Tooltip max width
510
+@tooltip-max-width:           200px;
511
+//** Tooltip text color
512
+@tooltip-color:               #fff;
513
+//** Tooltip background color
514
+@tooltip-bg:                  rgba(0,0,0,.9);
515
+@tooltip-opacity:             .9;
516
+
517
+//** Tooltip arrow width
518
+@tooltip-arrow-width:         5px;
519
+//** Tooltip arrow color
520
+@tooltip-arrow-color:         @tooltip-bg;
521
+
522
+
523
+//== Popovers
524
+//
525
+//##
526
+
527
+//** Popover body background color
528
+@popover-bg:                          #fff;
529
+//** Popover maximum width
530
+@popover-max-width:                   276px;
531
+//** Popover border color
532
+@popover-border-color:                rgba(0,0,0,.2);
533
+//** Popover fallback border color
534
+@popover-fallback-border-color:       #ccc;
535
+
536
+//** Popover title background color
537
+@popover-title-bg:                    darken(@popover-bg, 3%);
538
+
539
+//** Popover arrow width
540
+@popover-arrow-width:                 10px;
541
+//** Popover arrow color
542
+@popover-arrow-color:                 @popover-bg;
543
+
544
+//** Popover outer arrow width
545
+@popover-arrow-outer-width:           (@popover-arrow-width + 1);
546
+//** Popover outer arrow color
547
+@popover-arrow-outer-color:           fadein(@popover-border-color, 5%);
548
+//** Popover outer arrow fallback color
549
+@popover-arrow-outer-fallback-color:  darken(@popover-fallback-border-color, 20%);
550
+
551
+
552
+//== Labels
553
+//
554
+//##
555
+
556
+//** Default label background color
557
+@label-default-bg:            @btn-default-bg;
558
+//** Primary label background color
559
+@label-primary-bg:            @brand-primary;
560
+//** Success label background color
561
+@label-success-bg:            @brand-success;
562
+//** Info label background color
563
+@label-info-bg:               @brand-info;
564
+//** Warning label background color
565
+@label-warning-bg:            @brand-warning;
566
+//** Danger label background color
567
+@label-danger-bg:             @brand-danger;
568
+
569
+//** Default label text color
570
+@label-color:                 #fff;
571
+//** Default text color of a linked label
572
+@label-link-hover-color:      #fff;
573
+
574
+
575
+//== Modals
576
+//
577
+//##
578
+
579
+//** Padding applied to the modal body
580
+@modal-inner-padding:         20px;
581
+
582
+//** Padding applied to the modal title
583
+@modal-title-padding:         15px;
584
+//** Modal title line-height
585
+@modal-title-line-height:     @line-height-base;
586
+
587
+//** Background color of modal content area
588
+@modal-content-bg:                             #fff;
589
+//** Modal content border color
590
+@modal-content-border-color:                   rgba(0,0,0,.2);
591
+//** Modal content border color **for IE8**
592
+@modal-content-fallback-border-color:          #999;
593
+
594
+//** Modal backdrop background color
595
+@modal-backdrop-bg:           #000;
596
+//** Modal backdrop opacity
597
+@modal-backdrop-opacity:      .5;
598
+//** Modal header border color
599
+@modal-header-border-color:   #e5e5e5;
600
+//** Modal footer border color
601
+@modal-footer-border-color:   @modal-header-border-color;
602
+
603
+@modal-lg:                    900px;
604
+@modal-md:                    600px;
605
+@modal-sm:                    300px;
606
+
607
+
608
+//== Alerts
609
+//
610
+//## Define alert colors, border radius, and padding.
611
+
612
+@alert-padding:               15px;
613
+@alert-border-radius:         @border-radius-base;
614
+@alert-link-font-weight:      bold;
615
+
616
+@alert-success-bg:            @state-success-border;
617
+@alert-success-text:          #fff;
618
+@alert-success-border:        @state-success-border;
619
+
620
+@alert-info-bg:               @state-info-border;
621
+@alert-info-text:             #fff;
622
+@alert-info-border:           @state-info-border;
623
+
624
+@alert-warning-bg:            @state-warning-border;
625
+@alert-warning-text:          #fff;
626
+@alert-warning-border:        @state-warning-border;
627
+
628
+@alert-danger-bg:             @state-danger-border;
629
+@alert-danger-text:           #fff;
630
+@alert-danger-border:         @state-danger-border;
631
+
632
+
633
+//== Progress bars
634
+//
635
+//##
636
+
637
+//** Background color of the whole progress component
638
+@progress-bg:                 #f5f5f5;
639
+//** Progress bar text color
640
+@progress-bar-color:          #fff;
641
+//** Variable for setting rounded corners on progress bar.
642
+@progress-border-radius:      @border-radius-base;
643
+
644
+//** Default progress bar color
645
+@progress-bar-bg:             @brand-primary;
646
+//** Success progress bar color
647
+@progress-bar-success-bg:     @brand-success;
648
+//** Warning progress bar color
649
+@progress-bar-warning-bg:     @brand-warning;
650
+//** Danger progress bar color
651
+@progress-bar-danger-bg:      @brand-danger;
652
+//** Info progress bar color
653
+@progress-bar-info-bg:        @brand-info;
654
+
655
+
656
+//== List group
657
+//
658
+//##
659
+
660
+//** Background color on `.list-group-item`
661
+@list-group-bg:                 #fff;
662
+//** `.list-group-item` border color
663
+@list-group-border:             #ddd;
664
+//** List group border radius
665
+@list-group-border-radius:      @border-radius-base;
666
+
667
+//** Background color of single list items on hover
668
+@list-group-hover-bg:           #f5f5f5;
669
+//** Text color of active list items
670
+@list-group-active-color:       @component-active-color;
671
+//** Background color of active list items
672
+@list-group-active-bg:          @component-active-bg;
673
+//** Border color of active list elements
674
+@list-group-active-border:      @list-group-active-bg;
675
+//** Text color for content within active list items
676
+@list-group-active-text-color:  lighten(@list-group-active-bg, 40%);
677
+
678
+//** Text color of disabled list items
679
+@list-group-disabled-color:      @gray-light;
680
+//** Background color of disabled list items
681
+@list-group-disabled-bg:         @gray-lighter;
682
+//** Text color for content within disabled list items
683
+@list-group-disabled-text-color: @list-group-disabled-color;
684
+
685
+@list-group-link-color:         #555;
686
+@list-group-link-hover-color:   @list-group-link-color;
687
+@list-group-link-heading-color: #333;
688
+
689
+
690
+//== Panels
691
+//
692
+//##
693
+
694
+@panel-bg:                    #fff;
695
+@panel-body-padding:          15px;
696
+@panel-heading-padding:       10px 15px;
697
+@panel-footer-padding:        @panel-heading-padding;
698
+@panel-border-radius:         @border-radius-base;
699
+
700
+//** Border color for elements within panels
701
+@panel-inner-border:          #ddd;
702
+@panel-footer-bg:             #fff;
703
+
704
+@panel-default-text:          @gray-dark;
705
+@panel-default-border:        #ddd;
706
+@panel-default-heading-bg:    #f5f5f5;
707
+
708
+@panel-primary-text:          #fff;
709
+@panel-primary-border:        transparent;
710
+@panel-primary-heading-bg:    @brand-primary;
711
+
712
+@panel-success-text:          @state-success-text;
713
+@panel-success-border:        transparent;
714
+@panel-success-heading-bg:    @state-success-border;
715
+
716
+@panel-info-text:             @state-info-text;
717
+@panel-info-border:           transparent;
718
+@panel-info-heading-bg:       @state-info-border;
719
+
720
+@panel-warning-text:          @state-warning-text;
721
+@panel-warning-border:        transparent;
722
+@panel-warning-heading-bg:    @state-warning-border;
723
+
724
+@panel-danger-text:           @state-danger-text;
725
+@panel-danger-border:         transparent;
726
+@panel-danger-heading-bg:     @state-danger-border;
727
+
728
+
729
+//== Thumbnails
730
+//
731
+//##
732
+
733
+//** Padding around the thumbnail image
734
+@thumbnail-padding:           4px;
735
+//** Thumbnail background color
736
+@thumbnail-bg:                @body-bg;
737
+//** Thumbnail border color
738
+@thumbnail-border:            #ddd;
739
+//** Thumbnail border radius
740
+@thumbnail-border-radius:     @border-radius-base;
741
+
742
+//** Custom text color for thumbnail captions
743
+@thumbnail-caption-color:     @text-color;
744
+//** Padding around the thumbnail caption
745
+@thumbnail-caption-padding:   9px;
746
+
747
+
748
+//== Wells
749
+//
750
+//##
751
+
752
+@well-bg:                     darken(@body-bg, 3%);
753
+@well-border:                 darken(@well-bg, 7%);
754
+
755
+
756
+//== Badges
757
+//
758
+//##
759
+
760
+@badge-color:                 #fff;
761
+//** Linked badge text color on hover
762
+@badge-link-hover-color:      #fff;
763
+@badge-bg:                    @brand-primary;
764
+
765
+//** Badge text color in active nav link
766
+@badge-active-color:          @link-color;
767
+//** Badge background color in active nav link
768
+@badge-active-bg:             #fff;
769
+
770
+@badge-font-weight:           bold;
771
+@badge-line-height:           1;
772
+@badge-border-radius:         10px;
773
+
774
+
775
+//== Breadcrumbs
776
+//
777
+//##
778
+
779
+@breadcrumb-padding-vertical:   8px;
780
+@breadcrumb-padding-horizontal: 15px;
781
+//** Breadcrumb background color
782
+@breadcrumb-bg:                 #f5f5f5;
783
+//** Breadcrumb text color
784
+@breadcrumb-color:              #ccc;
785
+//** Text color of current page in the breadcrumb
786
+@breadcrumb-active-color:       @gray-light;
787
+//** Textual separator for between breadcrumb elements
788
+@breadcrumb-separator:          "/";
789
+
790
+
791
+//== Carousel
792
+//
793
+//##
794
+
795
+@carousel-text-shadow:                        0 1px 2px rgba(0,0,0,.6);
796
+
797
+@carousel-control-color:                      #fff;
798
+@carousel-control-width:                      15%;
799
+@carousel-control-opacity:                    .5;
800
+@carousel-control-font-size:                  20px;
801
+
802
+@carousel-indicator-active-bg:                #fff;
803
+@carousel-indicator-border-color:             #fff;
804
+
805
+@carousel-caption-color:                      #fff;
806
+
807
+
808
+//== Close
809
+//
810
+//##
811
+
812
+@close-font-weight:           bold;
813
+@close-color:                 #fff;
814
+@close-text-shadow:           0 1px 0 #fff;
815
+
816
+
817
+//== Code
818
+//
819
+//##
820
+
821
+@code-color:                  #c7254e;
822
+@code-bg:                     #f9f2f4;
823
+
824
+@kbd-color:                   #fff;
825
+@kbd-bg:                      #333;
826
+
827
+@pre-bg:                      #f5f5f5;
828
+@pre-color:                   @gray-dark;
829
+@pre-border-color:            #ccc;
830
+@pre-scrollable-max-height:   340px;
831
+
832
+
833
+//== Type
834
+//
835
+//##
836
+
837
+//** Horizontal offset for forms and lists.
838
+@component-offset-horizontal: 180px;
839
+//** Text muted color
840
+@text-muted:                  @gray-light;
841
+//** Abbreviations and acronyms border color
842
+@abbr-border-color:           @gray-light;
843
+//** Headings small color
844
+@headings-small-color:        @gray-light;
845
+//** Blockquote small color
846
+@blockquote-small-color:      @text-color;
847
+//** Blockquote font size
848
+@blockquote-font-size:        (@font-size-base * 1.25);
849
+//** Blockquote border color
850
+@blockquote-border-color:     @brand-primary;
851
+//** Page header border color
852
+@page-header-border-color:    #ddd;
853
+//** Width of horizontal description list titles
854
+@dl-horizontal-offset:        @component-offset-horizontal;
855
+//** Horizontal line color.
856
+@hr-border:                   @gray-lighter;

+ 142
- 0
searx/static/less/bootstrap/theme_simplex/bootswatch.less Visa fil

@@ -0,0 +1,142 @@
1
+// Simplex 3.3.1
2
+// Bootswatch
3
+// -----------------------------------------------------
4
+
5
+@import url("//fonts.googleapis.com/css?family=Open+Sans:400,700");
6
+
7
+.btn-shadow(@color) {
8
+  #gradient > .vertical-three-colors(lighten(@color, 3%), @color, 6%, darken(@color, 3%));
9
+  filter: none;
10
+  border: 1px solid darken(@color, 10%);
11
+}
12
+
13
+// Navbar =====================================================================
14
+
15
+.navbar {
16
+
17
+  &-inverse {
18
+
19
+    .badge {
20
+      background-color: #fff;
21
+      color: @brand-primary;
22
+    }
23
+  }
24
+}
25
+
26
+// Buttons ====================================================================
27
+
28
+.btn {
29
+  font-family: @headings-font-family;
30
+}
31
+
32
+.btn-default,
33
+.btn-default:hover {
34
+  .btn-shadow(@btn-default-bg);
35
+}
36
+
37
+.btn-primary,
38
+.btn-primary:hover {
39
+  .btn-shadow(@btn-primary-bg);
40
+}
41
+
42
+.btn-success,
43
+.btn-success:hover {
44
+  .btn-shadow(@btn-success-bg);
45
+}
46
+
47
+.btn-info,
48
+.btn-info:hover {
49
+  .btn-shadow(@btn-info-bg);
50
+}
51
+
52
+.btn-warning,
53
+.btn-warning:hover {
54
+  .btn-shadow(@btn-warning-bg);
55
+}
56
+
57
+.btn-danger,
58
+.btn-danger:hover {
59
+  .btn-shadow(@btn-danger-bg);
60
+}
61
+
62
+// Typography =================================================================
63
+
64
+body {
65
+  font-weight: 200;
66
+}
67
+
68
+// Tables =====================================================================
69
+
70
+th {
71
+  color: @headings-color;
72
+}
73
+
74
+// Forms ======================================================================
75
+
76
+legend {
77
+  color: @headings-color;
78
+}
79
+
80
+label {
81
+  font-weight: normal;
82
+}
83
+
84
+.has-warning {
85
+  .help-block,
86
+  .control-label {
87
+    color: @brand-danger;
88
+  }
89
+
90
+  .form-control,
91
+  .form-control:focus {
92
+    border-color: @brand-danger;
93
+  }
94
+}
95
+
96
+.has-error {
97
+  .help-block,
98
+  .control-label {
99
+    color: @brand-primary;
100
+  }
101
+
102
+  .form-control,
103
+  .form-control:focus {
104
+    border-color: @brand-primary;
105
+  }
106
+}
107
+
108
+.has-success {
109
+  .help-block,
110
+  .control-label {
111
+    color: @brand-success;
112
+  }
113
+
114
+  .form-control,
115
+  .form-control:focus {
116
+    border-color: @brand-success;
117
+  }
118
+}
119
+
120
+// Navs =======================================================================
121
+
122
+.pager {
123
+  a {
124
+    color: @headings-color;
125
+  }
126
+
127
+  a:hover,
128
+  .active > a, {
129
+    border-color: @brand-primary;
130
+    color: #fff;
131
+  }
132
+
133
+  .disabled > a {
134
+    border-color: @pager-border;
135
+  }
136
+}
137
+
138
+// Indicators =================================================================
139
+
140
+// Progress bars ==============================================================
141
+
142
+// Containers =================================================================

+ 856
- 0
searx/static/less/bootstrap/theme_simplex/variables.less Visa fil

@@ -0,0 +1,856 @@
1
+// Simplex 3.3.1
2
+// Variables
3
+// --------------------------------------------------
4
+
5
+
6
+//== Colors
7
+//
8
+//## Gray and brand colors for use across Bootstrap.
9
+
10
+@gray-base:              #000;
11
+@gray-darker:            lighten(@gray-base, 13.5%); // #222
12
+@gray-dark:              #444;
13
+@gray:                   #777;
14
+@gray-light:             #808080;
15
+@gray-lighter:           #ddd;
16
+
17
+@brand-primary:         #D9230F;
18
+@brand-success:         #469408;
19
+@brand-info:            #029ACF;
20
+@brand-warning:         #9B479F;
21
+@brand-danger:          #D9831F;
22
+
23
+
24
+//== Scaffolding
25
+//
26
+//## Settings for some of the most global styles.
27
+
28
+//** Background color for `<body>`.
29
+@body-bg:               #FCFCFC;
30
+//** Global text color on `<body>`.
31
+@text-color:            @gray;
32
+
33
+//** Global textual link color.
34
+@link-color:            @brand-primary;
35
+//** Link hover color set via `darken()` function.
36
+@link-hover-color:      darken(@link-color, 15%);
37
+//** Link hover decoration.
38
+@link-hover-decoration: underline;
39
+
40
+
41
+//== Typography
42
+//
43
+//## Font, line-height, and color for body text, headings, and more.
44
+
45
+@font-family-sans-serif:  "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
46
+@font-family-serif:       Georgia, "Times New Roman", Times, serif;
47
+//** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
48
+@font-family-monospace:   Menlo, Monaco, Consolas, "Courier New", monospace;
49
+@font-family-base:        @font-family-sans-serif;
50
+
51
+@font-size-base:          13px;
52
+@font-size-large:         ceil((@font-size-base * 1.25)); // ~18px
53
+@font-size-small:         ceil((@font-size-base * 0.85)); // ~12px
54
+
55
+@font-size-h1:            floor((@font-size-base * 2.6)); // ~36px
56
+@font-size-h2:            floor((@font-size-base * 2.15)); // ~30px
57
+@font-size-h3:            ceil((@font-size-base * 1.7)); // ~24px
58
+@font-size-h4:            ceil((@font-size-base * 1.25)); // ~18px
59
+@font-size-h5:            @font-size-base;
60
+@font-size-h6:            ceil((@font-size-base * 0.85)); // ~12px
61
+
62
+//** Unit-less `line-height` for use in components like buttons.
63
+@line-height-base:        1.428571429; // 20/14
64
+//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
65
+@line-height-computed:    floor((@font-size-base * @line-height-base)); // ~20px
66
+
67
+//** By default, this inherits from the `<body>`.
68
+@headings-font-family:    @font-family-sans-serif;
69
+@headings-font-weight:    300;
70
+@headings-line-height:    1.1;
71
+@headings-color:          @gray-dark;
72
+
73
+
74
+//== Iconography
75
+//
76
+//## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
77
+
78
+//** Load fonts from this directory.
79
+@icon-font-path:          "../fonts/";
80
+//** File name for all font files.
81
+@icon-font-name:          "glyphicons-halflings-regular";
82
+//** Element ID within SVG icon file.
83
+@icon-font-svg-id:        "glyphicons_halflingsregular";
84
+
85
+
86
+//== Components
87
+//
88
+//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
89
+
90
+@padding-base-vertical:     8px;
91
+@padding-base-horizontal:   12px;
92
+
93
+@padding-large-vertical:    14px;
94
+@padding-large-horizontal:  16px;
95
+
96
+@padding-small-vertical:    5px;
97
+@padding-small-horizontal:  10px;
98
+
99
+@padding-xs-vertical:       1px;
100
+@padding-xs-horizontal:     5px;
101
+
102
+@line-height-large:         1.33;
103
+@line-height-small:         1.5;
104
+
105
+@border-radius-base:        4px;
106
+@border-radius-large:       6px;
107
+@border-radius-small:       3px;
108
+
109
+//** Global color for active items (e.g., navs or dropdowns).
110
+@component-active-color:    #fff;
111
+//** Global background color for active items (e.g., navs or dropdowns).
112
+@component-active-bg:       @brand-primary;
113
+
114
+//** Width of the `border` for generating carets that indicator dropdowns.
115
+@caret-width-base:          4px;
116
+//** Carets increase slightly in size for larger components.
117
+@caret-width-large:         5px;
118
+
119
+
120
+//== Tables
121
+//
122
+//## Customizes the `.table` component with basic values, each used across all table variations.
123
+
124
+//** Padding for `<th>`s and `<td>`s.
125
+@table-cell-padding:            8px;
126
+//** Padding for cells in `.table-condensed`.
127
+@table-condensed-cell-padding:  5px;
128
+
129
+//** Default background color used for all tables.
130
+@table-bg:                      transparent;
131
+//** Background color used for `.table-striped`.
132
+@table-bg-accent:               #f9f9f9;
133
+//** Background color used for `.table-hover`.
134
+@table-bg-hover:                #f5f5f5;
135
+@table-bg-active:               @table-bg-hover;
136
+
137
+//** Border color for table and cell borders.
138
+@table-border-color:            #ddd;
139
+
140
+
141
+//== Buttons
142
+//
143
+//## For each of Bootstrap's buttons, define text, background and border color.
144
+
145
+@btn-font-weight:                normal;
146
+
147
+@btn-default-color:              #fff;
148
+@btn-default-bg:                 #474949;
149
+@btn-default-border:             @btn-default-bg;
150
+
151
+@btn-primary-color:              @btn-default-color;
152
+@btn-primary-bg:                 @brand-primary;
153
+@btn-primary-border:             @btn-primary-bg;
154
+
155
+@btn-success-color:              @btn-default-color;
156
+@btn-success-bg:                 @brand-success;
157
+@btn-success-border:             @btn-success-bg;
158
+
159
+@btn-info-color:                 @btn-default-color;
160
+@btn-info-bg:                    @brand-info;
161
+@btn-info-border:                @btn-info-bg;
162
+
163
+@btn-warning-color:              @btn-default-color;
164
+@btn-warning-bg:                 @brand-warning;
165
+@btn-warning-border:             @btn-warning-bg;
166
+
167
+@btn-danger-color:               @btn-default-color;
168
+@btn-danger-bg:                  @brand-danger;
169
+@btn-danger-border:              @btn-danger-bg;
170
+
171
+@btn-link-disabled-color:        @gray-light;
172
+
173
+
174
+//== Forms
175
+//
176
+//##
177
+
178
+//** `<input>` background color
179
+@input-bg:                       #fff;
180
+//** `<input disabled>` background color
181
+@input-bg-disabled:              @gray-lighter;
182
+
183
+//** Text color for `<input>`s
184
+@input-color:                    @text-color;
185
+//** `<input>` border color
186
+@input-border:                   #ddd;
187
+
188
+// TODO: Rename `@input-border-radius` to `@input-border-radius-base` in v4
189
+//** Default `.form-control` border radius
190
+@input-border-radius:            @border-radius-base;
191
+//** Large `.form-control` border radius
192
+@input-border-radius-large:      @border-radius-large;
193
+//** Small `.form-control` border radius
194
+@input-border-radius-small:      @border-radius-small;
195
+
196
+//** Border color for inputs on focus
197
+@input-border-focus:             #66afe9;
198
+
199
+//** Placeholder text color
200
+@input-color-placeholder:        @gray-lighter;
201
+
202
+//** Default `.form-control` height
203
+@input-height-base:              (@line-height-computed + (@padding-base-vertical * 2) + 2);
204
+//** Large `.form-control` height
205
+@input-height-large:             (ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2);
206
+//** Small `.form-control` height
207
+@input-height-small:             (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);
208
+
209
+@legend-color:                   @text-color;
210
+@legend-border-color:            #e5e5e5;
211
+
212
+//** Background color for textual input addons
213
+@input-group-addon-bg:           @gray-lighter;
214
+//** Border color for textual input addons
215
+@input-group-addon-border-color: @input-border;
216
+
217
+//** Disabled cursor for form controls and buttons.
218
+@cursor-disabled:                not-allowed;
219
+
220
+
221
+//== Dropdowns
222
+//
223
+//## Dropdown menu container and contents.
224
+
225
+//** Background for the dropdown menu.
226
+@dropdown-bg:                    #fff;
227
+//** Dropdown menu `border-color`.
228
+@dropdown-border:                rgba(0,0,0,.15);
229
+//** Dropdown menu `border-color` **for IE8**.
230
+@dropdown-fallback-border:       #ccc;
231
+//** Divider color for between dropdown items.
232
+@dropdown-divider-bg:            #e5e5e5;
233
+
234
+//** Dropdown link text color.
235
+@dropdown-link-color:            @gray-dark;
236
+//** Hover color for dropdown links.
237
+@dropdown-link-hover-color:      #fff;
238
+//** Hover background for dropdown links.
239
+@dropdown-link-hover-bg:         @component-active-bg;
240
+
241
+//** Active dropdown menu item text color.
242
+@dropdown-link-active-color:     #fff;
243
+//** Active dropdown menu item background color.
244
+@dropdown-link-active-bg:        @component-active-bg;
245
+
246
+//** Disabled dropdown menu item background color.
247
+@dropdown-link-disabled-color:   @gray-light;
248
+
249
+//** Text color for headers within dropdown menus.
250
+@dropdown-header-color:          @gray-light;
251
+
252
+//** Deprecated `@dropdown-caret-color` as of v3.1.0
253
+@dropdown-caret-color:           #000;
254
+
255
+
256
+//-- Z-index master list
257
+//
258
+// Warning: Avoid customizing these values. They're used for a bird's eye view
259
+// of components dependent on the z-axis and are designed to all work together.
260
+//
261
+// Note: These variables are not generated into the Customizer.
262
+
263
+@zindex-navbar:            1000;
264
+@zindex-dropdown:          1000;
265
+@zindex-popover:           1060;
266
+@zindex-tooltip:           1070;
267
+@zindex-navbar-fixed:      1030;
268
+@zindex-modal:             1040;
269
+
270
+
271
+//== Media queries breakpoints
272
+//
273
+//## Define the breakpoints at which your layout will change, adapting to different screen sizes.
274
+
275
+// Extra small screen / phone
276
+//** Deprecated `@screen-xs` as of v3.0.1
277
+@screen-xs:                  480px;
278
+//** Deprecated `@screen-xs-min` as of v3.2.0
279
+@screen-xs-min:              @screen-xs;
280
+//** Deprecated `@screen-phone` as of v3.0.1
281
+@screen-phone:               @screen-xs-min;
282
+
283
+// Small screen / tablet
284
+//** Deprecated `@screen-sm` as of v3.0.1
285
+@screen-sm:                  768px;
286
+@screen-sm-min:              @screen-sm;
287
+//** Deprecated `@screen-tablet` as of v3.0.1
288
+@screen-tablet:              @screen-sm-min;
289
+
290
+// Medium screen / desktop
291
+//** Deprecated `@screen-md` as of v3.0.1
292
+@screen-md:                  992px;
293
+@screen-md-min:              @screen-md;
294
+//** Deprecated `@screen-desktop` as of v3.0.1
295
+@screen-desktop:             @screen-md-min;
296
+
297
+// Large screen / wide desktop
298
+//** Deprecated `@screen-lg` as of v3.0.1
299
+@screen-lg:                  1200px;
300
+@screen-lg-min:              @screen-lg;
301
+//** Deprecated `@screen-lg-desktop` as of v3.0.1
302
+@screen-lg-desktop:          @screen-lg-min;
303
+
304
+// So media queries don't overlap when required, provide a maximum
305
+@screen-xs-max:              (@screen-sm-min - 1);
306
+@screen-sm-max:              (@screen-md-min - 1);
307
+@screen-md-max:              (@screen-lg-min - 1);
308
+
309
+
310
+//== Grid system
311
+//
312
+//## Define your custom responsive grid.
313
+
314
+//** Number of columns in the grid.
315
+@grid-columns:              12;
316
+//** Padding between columns. Gets divided in half for the left and right.
317
+@grid-gutter-width:         30px;
318
+// Navbar collapse
319
+//** Point at which the navbar becomes uncollapsed.
320
+@grid-float-breakpoint:     @screen-sm-min;
321
+//** Point at which the navbar begins collapsing.
322
+@grid-float-breakpoint-max: (@grid-float-breakpoint - 1);
323
+
324
+
325
+//== Container sizes
326
+//
327
+//## Define the maximum width of `.container` for different screen sizes.
328
+
329
+// Small screen / tablet
330
+@container-tablet:             (720px + @grid-gutter-width);
331
+//** For `@screen-sm-min` and up.
332
+@container-sm:                 @container-tablet;
333
+
334
+// Medium screen / desktop
335
+@container-desktop:            (940px + @grid-gutter-width);
336
+//** For `@screen-md-min` and up.
337
+@container-md:                 @container-desktop;
338
+
339
+// Large screen / wide desktop
340
+@container-large-desktop:      (1140px + @grid-gutter-width);
341
+//** For `@screen-lg-min` and up.
342
+@container-lg:                 @container-large-desktop;
343
+
344
+
345
+//== Navbar
346
+//
347
+//##
348
+
349
+// Basics of a navbar
350
+@navbar-height:                    40px;
351
+@navbar-margin-bottom:             @line-height-computed;
352
+@navbar-border-radius:             @border-radius-base;
353
+@navbar-padding-horizontal:        floor((@grid-gutter-width / 2));
354
+@navbar-padding-vertical:          ((@navbar-height - @line-height-computed) / 2);
355
+@navbar-collapse-max-height:       340px;
356
+
357
+@navbar-default-color:             @gray;
358
+@navbar-default-bg:                #fff;
359
+@navbar-default-border:            darken(@navbar-default-bg, 6.5%);
360
+
361
+// Navbar links
362
+@navbar-default-link-color:                @gray;
363
+@navbar-default-link-hover-color:          @brand-primary;
364
+@navbar-default-link-hover-bg:             transparent;
365
+@navbar-default-link-active-color:         @navbar-default-link-hover-color;
366
+@navbar-default-link-active-bg:            transparent;
367
+@navbar-default-link-disabled-color:       #444;
368
+@navbar-default-link-disabled-bg:          transparent;
369
+
370
+// Navbar brand label
371
+@navbar-default-brand-color:               @navbar-default-link-color;
372
+@navbar-default-brand-hover-color:         @navbar-default-link-hover-color;
373
+@navbar-default-brand-hover-bg:            transparent;
374
+
375
+// Navbar toggle
376
+@navbar-default-toggle-hover-bg:           #ddd;
377
+@navbar-default-toggle-icon-bar-bg:        #ccc;
378
+@navbar-default-toggle-border-color:       #ddd;
379
+
380
+
381
+// Inverted navbar
382
+// Reset inverted navbar basics
383
+@navbar-inverse-color:                      lighten(@brand-primary, 40%);
384
+@navbar-inverse-bg:                         @brand-primary;
385
+@navbar-inverse-border:                     darken(@navbar-inverse-bg, 10%);
386
+
387
+// Inverted navbar links
388
+@navbar-inverse-link-color:                 lighten(@brand-primary, 40%);
389
+@navbar-inverse-link-hover-color:           #fff;
390
+@navbar-inverse-link-hover-bg:              transparent;
391
+@navbar-inverse-link-active-color:          @navbar-inverse-link-hover-color;
392
+@navbar-inverse-link-active-bg:             transparent;
393
+@navbar-inverse-link-disabled-color:        #ccc;
394
+@navbar-inverse-link-disabled-bg:           transparent;
395
+
396
+// Inverted navbar brand label
397
+@navbar-inverse-brand-color:                @navbar-inverse-link-color;
398
+@navbar-inverse-brand-hover-color:          #fff;
399
+@navbar-inverse-brand-hover-bg:             transparent;
400
+
401
+// Inverted navbar toggle
402
+@navbar-inverse-toggle-hover-bg:            darken(@navbar-inverse-bg, 10%);
403
+@navbar-inverse-toggle-icon-bar-bg:         #fff;
404
+@navbar-inverse-toggle-border-color:        darken(@navbar-inverse-bg, 10%);
405
+
406
+
407
+//== Navs
408
+//
409
+//##
410
+
411
+//=== Shared nav styles
412
+@nav-link-padding:                          10px 15px;
413
+@nav-link-hover-bg:                         @gray-lighter;
414
+
415
+@nav-disabled-link-color:                   @gray-light;
416
+@nav-disabled-link-hover-color:             @gray-light;
417
+
418
+//== Tabs
419
+@nav-tabs-border-color:                     #ddd;
420
+
421
+@nav-tabs-link-hover-border-color:          @gray-lighter;
422
+
423
+@nav-tabs-active-link-hover-bg:             @body-bg;
424
+@nav-tabs-active-link-hover-color:          @gray;
425
+@nav-tabs-active-link-hover-border-color:   #ddd;
426
+
427
+@nav-tabs-justified-link-border-color:            #ddd;
428
+@nav-tabs-justified-active-link-border-color:     @body-bg;
429
+
430
+//== Pills
431
+@nav-pills-border-radius:                   @border-radius-base;
432
+@nav-pills-active-link-hover-bg:            @component-active-bg;
433
+@nav-pills-active-link-hover-color:         @component-active-color;
434
+
435
+
436
+//== Pagination
437
+//
438
+//##
439
+
440
+@pagination-color:                     @headings-color;
441
+@pagination-bg:                        #fff;
442
+@pagination-border:                    #ddd;
443
+
444
+@pagination-hover-color:               #fff;
445
+@pagination-hover-bg:                  @brand-primary;
446
+@pagination-hover-border:              @brand-primary;
447
+
448
+@pagination-active-color:              #fff;
449
+@pagination-active-bg:                 @brand-primary;
450
+@pagination-active-border:             @brand-primary;
451
+
452
+@pagination-disabled-color:            @gray-lighter;
453
+@pagination-disabled-bg:               #fff;
454
+@pagination-disabled-border:           #ddd;
455
+
456
+
457
+//== Pager
458
+//
459
+//##
460
+
461
+@pager-bg:                             @pagination-bg;
462
+@pager-border:                         @pagination-border;
463
+@pager-border-radius:                  15px;
464
+
465
+@pager-hover-bg:                       @brand-primary;
466
+
467
+@pager-active-bg:                      @brand-primary;
468
+@pager-active-color:                   #fff;
469
+
470
+@pager-disabled-color:                 @gray-lighter;
471
+
472
+
473
+//== Jumbotron
474
+//
475
+//##
476
+
477
+@jumbotron-padding:              30px;
478
+@jumbotron-color:                inherit;
479
+@jumbotron-bg:                   darken(@body-bg, 3%);
480
+@jumbotron-heading-color:        inherit;
481
+@jumbotron-font-size:            ceil((@font-size-base * 1.5));
482
+
483
+
484
+//== Form states and alerts
485
+//
486
+//## Define colors for form feedback states and, by default, alerts.
487
+
488
+@state-success-text:             #468847;
489
+@state-success-bg:               #dff0d8;
490
+@state-success-border:           darken(spin(@state-success-bg, -10), 5%);
491
+
492
+@state-info-text:                #3a87ad;
493
+@state-info-bg:                  #d9edf7;
494
+@state-info-border:              darken(spin(@state-info-bg, -10), 7%);
495
+
496
+@state-warning-text:             #c09853;
497
+@state-warning-bg:               #fcf8e3;
498
+@state-warning-border:           darken(spin(@state-warning-bg, -10), 3%);
499
+
500
+@state-danger-text:              #b94a48;
501
+@state-danger-bg:                #f2dede;
502
+@state-danger-border:            darken(spin(@state-danger-bg, -10), 3%);
503
+
504
+
505
+//== Tooltips
506
+//
507
+//##
508
+
509
+//** Tooltip max width
510
+@tooltip-max-width:           200px;
511
+//** Tooltip text color
512
+@tooltip-color:               #fff;
513
+//** Tooltip background color
514
+@tooltip-bg:                  rgba(0,0,0,.9);
515
+@tooltip-opacity:             .9;
516
+
517
+//** Tooltip arrow width
518
+@tooltip-arrow-width:         5px;
519
+//** Tooltip arrow color
520
+@tooltip-arrow-color:         @tooltip-bg;
521
+
522
+
523
+//== Popovers
524
+//
525
+//##
526
+
527
+//** Popover body background color
528
+@popover-bg:                          #fff;
529
+//** Popover maximum width
530
+@popover-max-width:                   276px;
531
+//** Popover border color
532
+@popover-border-color:                rgba(0,0,0,.2);
533
+//** Popover fallback border color
534
+@popover-fallback-border-color:       #ccc;
535
+
536
+//** Popover title background color
537
+@popover-title-bg:                    darken(@popover-bg, 3%);
538
+
539
+//** Popover arrow width
540
+@popover-arrow-width:                 10px;
541
+//** Popover arrow color
542
+@popover-arrow-color:                 @popover-bg;
543
+
544
+//** Popover outer arrow width
545
+@popover-arrow-outer-width:           (@popover-arrow-width + 1);
546
+//** Popover outer arrow color
547
+@popover-arrow-outer-color:           fadein(@popover-border-color, 5%);
548
+//** Popover outer arrow fallback color
549
+@popover-arrow-outer-fallback-color:  darken(@popover-fallback-border-color, 20%);
550
+
551
+
552
+//== Labels
553
+//
554
+//##
555
+
556
+//** Default label background color
557
+@label-default-bg:            @btn-default-bg;
558
+//** Primary label background color
559
+@label-primary-bg:            @brand-primary;
560
+//** Success label background color
561
+@label-success-bg:            @brand-success;
562
+//** Info label background color
563
+@label-info-bg:               @brand-info;
564
+//** Warning label background color
565
+@label-warning-bg:            @brand-warning;
566
+//** Danger label background color
567
+@label-danger-bg:             @brand-danger;
568
+
569
+//** Default label text color
570
+@label-color:                 #fff;
571
+//** Default text color of a linked label
572
+@label-link-hover-color:      #fff;
573
+
574
+
575
+//== Modals
576
+//
577
+//##
578
+
579
+//** Padding applied to the modal body
580
+@modal-inner-padding:         20px;
581
+
582
+//** Padding applied to the modal title
583
+@modal-title-padding:         15px;
584
+//** Modal title line-height
585
+@modal-title-line-height:     @line-height-base;
586
+
587
+//** Background color of modal content area
588
+@modal-content-bg:                             #fff;
589
+//** Modal content border color
590
+@modal-content-border-color:                   rgba(0,0,0,.2);
591
+//** Modal content border color **for IE8**
592
+@modal-content-fallback-border-color:          #999;
593
+
594
+//** Modal backdrop background color
595
+@modal-backdrop-bg:           #000;
596
+//** Modal backdrop opacity
597
+@modal-backdrop-opacity:      .5;
598
+//** Modal header border color
599
+@modal-header-border-color:   #e5e5e5;
600
+//** Modal footer border color
601
+@modal-footer-border-color:   @modal-header-border-color;
602
+
603
+@modal-lg:                    900px;
604
+@modal-md:                    600px;
605
+@modal-sm:                    300px;
606
+
607
+
608
+//== Alerts
609
+//
610
+//## Define alert colors, border radius, and padding.
611
+
612
+@alert-padding:               15px;
613
+@alert-border-radius:         @border-radius-base;
614
+@alert-link-font-weight:      bold;
615
+
616
+@alert-success-bg:            @state-success-bg;
617
+@alert-success-text:          @state-success-text;
618
+@alert-success-border:        @state-success-border;
619
+
620
+@alert-info-bg:               @state-info-bg;
621
+@alert-info-text:             @state-info-text;
622
+@alert-info-border:           @state-info-border;
623
+
624
+@alert-warning-bg:            @state-warning-bg;
625
+@alert-warning-text:          @state-warning-text;
626
+@alert-warning-border:        @state-warning-border;
627
+
628
+@alert-danger-bg:             @state-danger-bg;
629
+@alert-danger-text:           @state-danger-text;
630
+@alert-danger-border:         @state-danger-border;
631
+
632
+
633
+//== Progress bars
634
+//
635
+//##
636
+
637
+//** Background color of the whole progress component
638
+@progress-bg:                 #f5f5f5;
639
+//** Progress bar text color
640
+@progress-bar-color:          #fff;
641
+//** Variable for setting rounded corners on progress bar.
642
+@progress-border-radius:      @border-radius-base;
643
+
644
+//** Default progress bar color
645
+@progress-bar-bg:             @brand-primary;
646
+//** Success progress bar color
647
+@progress-bar-success-bg:     @brand-success;
648
+//** Warning progress bar color
649
+@progress-bar-warning-bg:     @brand-warning;
650
+//** Danger progress bar color
651
+@progress-bar-danger-bg:      @brand-danger;
652
+//** Info progress bar color
653
+@progress-bar-info-bg:        @brand-info;
654
+
655
+
656
+//== List group
657
+//
658
+//##
659
+
660
+//** Background color on `.list-group-item`
661
+@list-group-bg:                 #fff;
662
+//** `.list-group-item` border color
663
+@list-group-border:             #ddd;
664
+//** List group border radius
665
+@list-group-border-radius:      @border-radius-base;
666
+
667
+//** Background color of single list items on hover
668
+@list-group-hover-bg:           #f5f5f5;
669
+//** Text color of active list items
670
+@list-group-active-color:       @component-active-color;
671
+//** Background color of active list items
672
+@list-group-active-bg:          @component-active-bg;
673
+//** Border color of active list elements
674
+@list-group-active-border:      @list-group-active-bg;
675
+//** Text color for content within active list items
676
+@list-group-active-text-color:  lighten(@list-group-active-bg, 40%);
677
+
678
+//** Text color of disabled list items
679
+@list-group-disabled-color:      @gray-light;
680
+//** Background color of disabled list items
681
+@list-group-disabled-bg:         @gray-lighter;
682
+//** Text color for content within disabled list items
683
+@list-group-disabled-text-color: @list-group-disabled-color;
684
+
685
+@list-group-link-color:         #555;
686
+@list-group-link-hover-color:   @list-group-link-color;
687
+@list-group-link-heading-color: #333;
688
+
689
+
690
+//== Panels
691
+//
692
+//##
693
+
694
+@panel-bg:                    #fff;
695
+@panel-body-padding:          15px;
696
+@panel-heading-padding:       10px 15px;
697
+@panel-footer-padding:        @panel-heading-padding;
698
+@panel-border-radius:         @border-radius-base;
699
+
700
+//** Border color for elements within panels
701
+@panel-inner-border:          #ddd;
702
+@panel-footer-bg:             @body-bg;
703
+
704
+@panel-default-text:          @gray-dark;
705
+@panel-default-border:        #ddd;
706
+@panel-default-heading-bg:    @panel-footer-bg;
707
+
708
+@panel-primary-text:          #fff;
709
+@panel-primary-border:        @brand-primary;
710
+@panel-primary-heading-bg:    @brand-primary;
711
+
712
+@panel-success-text:          #fff;
713
+@panel-success-border:        @brand-success;
714
+@panel-success-heading-bg:    @brand-success;
715
+
716
+@panel-info-text:             #fff;
717
+@panel-info-border:           @brand-info;
718
+@panel-info-heading-bg:       @brand-info;
719
+
720
+@panel-warning-text:          #fff;
721
+@panel-warning-border:        @brand-warning;
722
+@panel-warning-heading-bg:    @brand-warning;
723
+
724
+@panel-danger-text:           #fff;
725
+@panel-danger-border:         @brand-danger;
726
+@panel-danger-heading-bg:     @brand-danger;
727
+
728
+
729
+//== Thumbnails
730
+//
731
+//##
732
+
733
+//** Padding around the thumbnail image
734
+@thumbnail-padding:           4px;
735
+//** Thumbnail background color
736
+@thumbnail-bg:                @body-bg;
737
+//** Thumbnail border color
738
+@thumbnail-border:            #ddd;
739
+//** Thumbnail border radius
740
+@thumbnail-border-radius:     @border-radius-base;
741
+
742
+//** Custom text color for thumbnail captions
743
+@thumbnail-caption-color:     @text-color;
744
+//** Padding around the thumbnail caption
745
+@thumbnail-caption-padding:   9px;
746
+
747
+
748
+//== Wells
749
+//
750
+//##
751
+
752
+@well-bg:                     darken(@body-bg, 3%);
753
+@well-border:                 darken(@well-bg, 7%);
754
+
755
+
756
+//== Badges
757
+//
758
+//##
759
+
760
+@badge-color:                 #fff;
761
+//** Linked badge text color on hover
762
+@badge-link-hover-color:      #fff;
763
+@badge-bg:                    @link-color;
764
+
765
+//** Badge text color in active nav link
766
+@badge-active-color:          @link-color;
767
+//** Badge background color in active nav link
768
+@badge-active-bg:             #fff;
769
+
770
+@badge-font-weight:           bold;
771
+@badge-line-height:           1;
772
+@badge-border-radius:         10px;
773
+
774
+
775
+//== Breadcrumbs
776
+//
777
+//##
778
+
779
+@breadcrumb-padding-vertical:   8px;
780
+@breadcrumb-padding-horizontal: 15px;
781
+//** Breadcrumb background color
782
+@breadcrumb-bg:                 transparent;
783
+//** Breadcrumb text color
784
+@breadcrumb-color:              #ccc;
785
+//** Text color of current page in the breadcrumb
786
+@breadcrumb-active-color:       @gray-light;
787
+//** Textual separator for between breadcrumb elements
788
+@breadcrumb-separator:          "/";
789
+
790
+
791
+//== Carousel
792
+//
793
+//##
794
+
795
+@carousel-text-shadow:                        0 1px 2px rgba(0,0,0,.6);
796
+
797
+@carousel-control-color:                      #fff;
798
+@carousel-control-width:                      15%;
799
+@carousel-control-opacity:                    .5;
800
+@carousel-control-font-size:                  20px;
801
+
802
+@carousel-indicator-active-bg:                #fff;
803
+@carousel-indicator-border-color:             #fff;
804
+
805
+@carousel-caption-color:                      #fff;
806
+
807
+
808
+//== Close
809
+//
810
+//##
811
+
812
+@close-font-weight:           bold;
813
+@close-color:                 #000;
814
+@close-text-shadow:           0 1px 0 #fff;
815
+
816
+
817
+//== Code
818
+//
819
+//##
820
+
821
+@code-color:                  #c7254e;
822
+@code-bg:                     #f9f2f4;
823
+
824
+@kbd-color:                   #fff;
825
+@kbd-bg:                      #333;
826
+
827
+@pre-bg:                      #f5f5f5;
828
+@pre-color:                   @gray-dark;
829
+@pre-border-color:            #ccc;
830
+@pre-scrollable-max-height:   340px;
831
+
832
+
833
+//== Type
834
+//
835
+//##
836
+
837
+//** Horizontal offset for forms and lists.
838
+@component-offset-horizontal: 180px;
839
+//** Text muted color
840
+@text-muted:                  @gray-light;
841
+//** Abbreviations and acronyms border color
842
+@abbr-border-color:           @gray-light;
843
+//** Headings small color
844
+@headings-small-color:        @gray-light;
845
+//** Blockquote small color
846
+@blockquote-small-color:      @gray-light;
847
+//** Blockquote font size
848
+@blockquote-font-size:        (@font-size-base * 1.25);
849
+//** Blockquote border color
850
+@blockquote-border-color:     @gray-lighter;
851
+//** Page header border color
852
+@page-header-border-color:    @gray-lighter;
853
+//** Width of horizontal description list titles
854
+@dl-horizontal-offset:        @component-offset-horizontal;
855
+//** Horizontal line color.
856
+@hr-border:                   @gray-lighter;

+ 437
- 0
searx/static/less/bootstrap/theme_yeti/bootswatch.less Visa fil

@@ -0,0 +1,437 @@
1
+// Yeti 3.3.1
2
+// Bootswatch
3
+// -----------------------------------------------------
4
+
5
+@import url("//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700");
6
+
7
+// Navbar =====================================================================
8
+
9
+.navbar {
10
+  border: none;
11
+  font-size: 13px;
12
+  font-weight: 300;
13
+
14
+  .navbar-toggle:hover .icon-bar {
15
+    background-color: #b3b3b3;
16
+  }
17
+
18
+  &-collapse {
19
+    border-top-color: @dropdown-divider-bg;
20
+    .box-shadow(none);
21
+  }
22
+
23
+  .btn {
24
+    padding-top: 6px;
25
+    padding-bottom: 6px;
26
+  }
27
+
28
+  &-form {
29
+    margin-top: 7px;
30
+    margin-bottom: 5px;
31
+
32
+    .form-control {
33
+      height: auto;
34
+      padding: @padding-xs-vertical @padding-xs-horizontal;
35
+    }
36
+  }
37
+
38
+  .dropdown {
39
+
40
+    &-menu {
41
+      border: none;
42
+
43
+      > li > a,
44
+      > li > a:focus {
45
+        background-color: transparent;
46
+        font-size: 13px;
47
+        font-weight: 300;
48
+      }
49
+    }
50
+
51
+    &-header {
52
+      color: rgba(255, 255, 255, 0.5);
53
+    }
54
+
55
+  }
56
+
57
+  &-default {
58
+
59
+    .dropdown-menu {
60
+      background-color: @navbar-default-bg;
61
+
62
+      > li > a,
63
+      > li > a:focus {
64
+        color: @navbar-default-color;
65
+      }
66
+
67
+      > li > a:hover,
68
+      > .active > a,
69
+      > .active > a:hover {
70
+        background-color: @navbar-default-link-hover-bg;
71
+      }
72
+    }
73
+  }
74
+
75
+  &-inverse {
76
+
77
+    .dropdown-menu {
78
+      background-color: @navbar-inverse-bg;
79
+
80
+      > li > a,
81
+      > li > a:focus {
82
+        color: @navbar-inverse-color;
83
+      }
84
+
85
+      > li > a:hover,
86
+      > .active > a,
87
+      > .active > a:hover {
88
+        background-color: @navbar-inverse-link-hover-bg;
89
+      }
90
+    }
91
+  }
92
+}
93
+
94
+// Buttons ====================================================================
95
+
96
+.btn {
97
+  padding: @padding-base-vertical @padding-base-horizontal;
98
+
99
+  &-lg {
100
+    padding: @padding-large-vertical @padding-large-horizontal;
101
+  }
102
+
103
+  &-sm {
104
+    padding: @padding-small-vertical @padding-small-horizontal;
105
+  }
106
+
107
+  &-xs {
108
+    padding: @padding-xs-vertical @padding-xs-horizontal;
109
+  }
110
+}
111
+
112
+.btn-group {
113
+
114
+  .btn ~ .dropdown-toggle {
115
+    padding-left: 16px;
116
+    padding-right: 16px;
117
+  }
118
+
119
+  .dropdown-menu {
120
+    border-top-width: 0;
121
+  }
122
+
123
+  &.dropup .dropdown-menu {
124
+    border-top-width: 1px;
125
+    border-bottom-width: 0;
126
+    margin-bottom: 0;
127
+  }
128
+
129
+  .dropdown-toggle {
130
+
131
+    &.btn-default ~ .dropdown-menu {
132
+      background-color: @btn-default-bg;
133
+      border-color: @btn-default-border;
134
+
135
+      > li > a {
136
+        color: @btn-default-color;
137
+      }
138
+
139
+      > li > a:hover {
140
+        background-color: darken(@btn-default-bg, 8%);
141
+      }
142
+    }
143
+
144
+    &.btn-primary ~ .dropdown-menu {
145
+      background-color: @btn-primary-bg;
146
+      border-color: @btn-primary-border;
147
+
148
+      > li > a {
149
+        color: @btn-primary-color;
150
+      }
151
+
152
+      > li > a:hover {
153
+        background-color: darken(@btn-primary-bg, 8%);
154
+      }
155
+    }
156
+
157
+    &.btn-success ~ .dropdown-menu {
158
+      background-color: @btn-success-bg;
159
+      border-color: @btn-success-border;
160
+
161
+      > li > a {
162
+        color: @btn-success-color;
163
+      }
164
+
165
+      > li > a:hover {
166
+        background-color: darken(@btn-success-bg, 8%);
167
+      }
168
+    }
169
+
170
+    &.btn-info ~ .dropdown-menu {
171
+      background-color: @btn-info-bg;
172
+      border-color: @btn-info-border;
173
+
174
+      > li > a {
175
+        color: @btn-info-color;
176
+      }
177
+
178
+      > li > a:hover {
179
+        background-color: darken(@btn-info-bg, 8%);
180
+      }
181
+    }
182
+
183
+    &.btn-warning ~ .dropdown-menu {
184
+      background-color: @btn-warning-bg;
185
+      border-color: @btn-warning-border;
186
+
187
+      > li > a {
188
+        color: @btn-warning-color;
189
+      }
190
+
191
+      > li > a:hover {
192
+        background-color: darken(@btn-warning-bg, 8%);
193
+      }
194
+    }
195
+
196
+    &.btn-danger ~ .dropdown-menu {
197
+      background-color: @btn-danger-bg;
198
+      border-color: @btn-danger-border;
199
+
200
+      > li > a {
201
+        color: @btn-danger-color;
202
+      }
203
+
204
+      > li > a:hover {
205
+        background-color: darken(@btn-danger-bg, 8%);
206
+      }
207
+    }
208
+  }
209
+}
210
+
211
+// Typography =================================================================
212
+
213
+.lead {
214
+  color: @gray;
215
+}
216
+
217
+cite {
218
+  font-style: italic;
219
+}
220
+
221
+blockquote {
222
+  border-left-width: 1px;
223
+  color: @gray;
224
+
225
+  &.pull-right {
226
+    border-right-width: 1px;
227
+  }
228
+
229
+  small {
230
+    font-size: @font-size-small;
231
+    font-weight: 300;
232
+  }
233
+}
234
+
235
+// Tables =====================================================================
236
+
237
+table {
238
+  font-size: @font-size-small;
239
+}
240
+
241
+// Forms ======================================================================
242
+
243
+label,
244
+.control-label,
245
+.help-block,
246
+.checkbox,
247
+.radio {
248
+  font-size: @font-size-small;
249
+  font-weight: normal;
250
+}
251
+
252
+input[type="radio"],
253
+input[type="checkbox"] {
254
+  margin-top: 1px;
255
+}
256
+
257
+// Navs =======================================================================
258
+
259
+.nav {
260
+  .open > a,
261
+  .open > a:hover,
262
+  .open > a:focus {
263
+    border-color: transparent;
264
+  }
265
+}
266
+
267
+.nav-tabs {
268
+  > li > a {
269
+    background-color: @btn-default-bg;
270
+    color: @text-color;
271
+  }
272
+
273
+  .caret {
274
+    border-top-color: @text-color;
275
+    border-bottom-color: @text-color;
276
+  }
277
+}
278
+
279
+.nav-pills {
280
+  font-weight: 300;
281
+}
282
+
283
+.breadcrumb {
284
+  border: 1px solid @table-border-color;
285
+  border-radius: 3px;
286
+  font-size: 10px;
287
+  font-weight: 300;
288
+  text-transform: uppercase;
289
+}
290
+
291
+.pagination {
292
+  font-size: @font-size-small;
293
+  font-weight: 300;
294
+  color: @gray-light;
295
+
296
+  > li {
297
+    > a,
298
+    > span {
299
+      margin-left: 4px;
300
+      color: @gray-light;
301
+    }
302
+  }
303
+
304
+  > .active {
305
+    > a,
306
+    > span {
307
+      color: #fff;
308
+    }
309
+  }
310
+
311
+  > li,
312
+  > li:first-child,
313
+  > li:last-child {
314
+    > a,
315
+    > span {
316
+      border-radius: 3px;
317
+    }
318
+  }
319
+
320
+  &-lg > li > a {
321
+    padding-left: 22px;
322
+    padding-right: 22px;
323
+  }
324
+
325
+  &-sm > li > a {
326
+    padding: 0 5px;
327
+  }
328
+}
329
+
330
+.pager {
331
+  font-size: @font-size-small;
332
+  font-weight: 300;
333
+  color: @gray-light;
334
+}
335
+
336
+.list-group {
337
+  font-size: @font-size-small;
338
+  font-weight: 300;
339
+}
340
+
341
+// Indicators =================================================================
342
+
343
+.close {
344
+  opacity: 0.4;
345
+  text-decoration: none;
346
+  text-shadow: none;
347
+
348
+  &:hover,
349
+  &:focus {
350
+    opacity: 1;
351
+  }
352
+}
353
+
354
+.alert {
355
+  font-size: @font-size-small;
356
+  font-weight: 300;
357
+
358
+  .alert-link {
359
+    font-weight: normal;
360
+    color: #fff;
361
+    text-decoration: underline;
362
+  }
363
+}
364
+
365
+.label {
366
+  padding-left: 1em;
367
+  padding-right: 1em;
368
+  border-radius: 0;
369
+  font-weight: 300;
370
+
371
+  &-default {
372
+    background-color: @btn-default-bg;
373
+    color: @btn-default-color;
374
+  }
375
+}
376
+
377
+.badge {
378
+  font-weight: 300;
379
+}
380
+
381
+// Progress bars ==============================================================
382
+
383
+.progress {
384
+  height: 22px;
385
+  padding: 2px;
386
+  background-color: #f6f6f6;
387
+  border: 1px solid #ccc;
388
+  .box-shadow(none);
389
+}
390
+
391
+// Containers =================================================================
392
+
393
+.dropdown {
394
+
395
+  &-menu {
396
+    padding: 0;
397
+    margin-top: 0;
398
+    font-size: @font-size-small;
399
+
400
+    > li > a {
401
+      padding: 12px 15px;
402
+    }
403
+  }
404
+
405
+  &-header {
406
+    padding-left: 15px;
407
+    padding-right: 15px;
408
+    font-size: 9px;
409
+    text-transform: uppercase;
410
+  }
411
+}
412
+
413
+.popover {
414
+  color: #fff;
415
+  font-size: 12px;
416
+  font-weight: 300;
417
+}
418
+
419
+.panel {
420
+  &-heading,
421
+  &-footer {
422
+    border-top-right-radius: 0;
423
+    border-top-left-radius: 0;
424
+  }
425
+
426
+  &-default {
427
+    .close {
428
+      color: @text-color;
429
+    }
430
+  }
431
+}
432
+
433
+.modal {
434
+  .close {
435
+    color: @text-color;
436
+  }
437
+}

+ 856
- 0
searx/static/less/bootstrap/theme_yeti/variables.less Visa fil

@@ -0,0 +1,856 @@
1
+// Yeti 3.3.1
2
+// Variables
3
+// --------------------------------------------------
4
+
5
+
6
+//== Colors
7
+//
8
+//## Gray and brand colors for use across Bootstrap.
9
+
10
+@gray-base:              #000;
11
+@gray-darker:            lighten(@gray-base, 13.5%); // #222
12
+@gray-dark:              lighten(@gray-base, 20%);   // #333
13
+@gray:                   #6f6f6f; // #555
14
+@gray-light:             lighten(@gray-base, 60%);   // #999
15
+@gray-lighter:           lighten(@gray-base, 93.5%); // #eee
16
+
17
+@brand-primary:         #008cba;
18
+@brand-success:         #43ac6a;
19
+@brand-info:            #5bc0de;
20
+@brand-warning:         #E99002;
21
+@brand-danger:          #F04124;
22
+
23
+
24
+//== Scaffolding
25
+//
26
+//## Settings for some of the most global styles.
27
+
28
+//** Background color for `<body>`.
29
+@body-bg:               #fff;
30
+//** Global text color on `<body>`.
31
+@text-color:            @gray-darker;
32
+
33
+//** Global textual link color.
34
+@link-color:            @brand-primary;
35
+//** Link hover color set via `darken()` function.
36
+@link-hover-color:      darken(@link-color, 15%);
37
+//** Link hover decoration.
38
+@link-hover-decoration: underline;
39
+
40
+
41
+//== Typography
42
+//
43
+//## Font, line-height, and color for body text, headings, and more.
44
+
45
+@font-family-sans-serif:  "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
46
+@font-family-serif:       Georgia, "Times New Roman", Times, serif;
47
+//** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
48
+@font-family-monospace:   Menlo, Monaco, Consolas, "Courier New", monospace;
49
+@font-family-base:        @font-family-sans-serif;
50
+
51
+@font-size-base:          15px;
52
+@font-size-large:         ceil((@font-size-base * 1.25)); // ~18px
53
+@font-size-small:         12px; // ~12px
54
+
55
+@font-size-h1:            floor((@font-size-base * 2.6)); // ~36px
56
+@font-size-h2:            floor((@font-size-base * 2.15)); // ~30px
57
+@font-size-h3:            ceil((@font-size-base * 1.7)); // ~24px
58
+@font-size-h4:            ceil((@font-size-base * 1.25)); // ~18px
59
+@font-size-h5:            @font-size-base;
60
+@font-size-h6:            ceil((@font-size-base * 0.85)); // ~12px
61
+
62
+//** Unit-less `line-height` for use in components like buttons.
63
+@line-height-base:        1.4;
64
+//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
65
+@line-height-computed:    floor((@font-size-base * @line-height-base)); // ~20px
66
+
67
+//** By default, this inherits from the `<body>`.
68
+@headings-font-family:    @font-family-base;
69
+@headings-font-weight:    300;
70
+@headings-line-height:    1.1;
71
+@headings-color:          inherit;
72
+
73
+
74
+//== Iconography
75
+//
76
+//## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
77
+
78
+//** Load fonts from this directory.
79
+@icon-font-path:          "../fonts/";
80
+//** File name for all font files.
81
+@icon-font-name:          "glyphicons-halflings-regular";
82
+//** Element ID within SVG icon file.
83
+@icon-font-svg-id:        "glyphicons_halflingsregular";
84
+
85
+
86
+//== Components
87
+//
88
+//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
89
+
90
+@padding-base-vertical:     8px;
91
+@padding-base-horizontal:   12px;
92
+
93
+@padding-large-vertical:    16px;
94
+@padding-large-horizontal:  20px;
95
+
96
+@padding-small-vertical:    8px;
97
+@padding-small-horizontal:  12px;
98
+
99
+@padding-xs-vertical:       4px;
100
+@padding-xs-horizontal:     6px;
101
+
102
+@line-height-large:         1.33;
103
+@line-height-small:         1.5;
104
+
105
+@border-radius-base:        0;
106
+@border-radius-large:       0;
107
+@border-radius-small:       0;
108
+
109
+//** Global color for active items (e.g., navs or dropdowns).
110
+@component-active-color:    #fff;
111
+//** Global background color for active items (e.g., navs or dropdowns).
112
+@component-active-bg:       @brand-primary;
113
+
114
+//** Width of the `border` for generating carets that indicator dropdowns.
115
+@caret-width-base:          4px;
116
+//** Carets increase slightly in size for larger components.
117
+@caret-width-large:         5px;
118
+
119
+
120
+//== Tables
121
+//
122
+//## Customizes the `.table` component with basic values, each used across all table variations.
123
+
124
+//** Padding for `<th>`s and `<td>`s.
125
+@table-cell-padding:            8px;
126
+//** Padding for cells in `.table-condensed`.
127
+@table-condensed-cell-padding:  5px;
128
+
129
+//** Default background color used for all tables.
130
+@table-bg:                      transparent;
131
+//** Background color used for `.table-striped`.
132
+@table-bg-accent:               #f9f9f9;
133
+//** Background color used for `.table-hover`.
134
+@table-bg-hover:                #f5f5f5;
135
+@table-bg-active:               @table-bg-hover;
136
+
137
+//** Border color for table and cell borders.
138
+@table-border-color:            #ddd;
139
+
140
+
141
+//== Buttons
142
+//
143
+//## For each of Bootstrap's buttons, define text, background and border color.
144
+
145
+@btn-font-weight:                normal;
146
+
147
+@btn-default-color:              @gray-dark;
148
+@btn-default-bg:                 #e7e7e7;
149
+@btn-default-border:             #ccc;
150
+
151
+@btn-primary-color:              #fff;
152
+@btn-primary-bg:                 @brand-primary;
153
+@btn-primary-border:             darken(@btn-primary-bg, 5%);
154
+
155
+@btn-success-color:              #fff;
156
+@btn-success-bg:                 @brand-success;
157
+@btn-success-border:             darken(@btn-success-bg, 5%);
158
+
159
+@btn-info-color:                 #fff;
160
+@btn-info-bg:                    @brand-info;
161
+@btn-info-border:                darken(@btn-info-bg, 5%);
162
+
163
+@btn-warning-color:              #fff;
164
+@btn-warning-bg:                 @brand-warning;
165
+@btn-warning-border:             darken(@btn-warning-bg, 5%);
166
+
167
+@btn-danger-color:               #fff;
168
+@btn-danger-bg:                  @brand-danger;
169
+@btn-danger-border:              darken(@btn-danger-bg, 5%);
170
+
171
+@btn-link-disabled-color:        @gray-light;
172
+
173
+
174
+//== Forms
175
+//
176
+//##
177
+
178
+//** `<input>` background color
179
+@input-bg:                       #fff;
180
+//** `<input disabled>` background color
181
+@input-bg-disabled:              @gray-lighter;
182
+
183
+//** Text color for `<input>`s
184
+@input-color:                    @gray;
185
+//** `<input>` border color
186
+@input-border:                   #ccc;
187
+
188
+// TODO: Rename `@input-border-radius` to `@input-border-radius-base` in v4
189
+//** Default `.form-control` border radius
190
+@input-border-radius:            @border-radius-base;
191
+//** Large `.form-control` border radius
192
+@input-border-radius-large:      @border-radius-large;
193
+//** Small `.form-control` border radius
194
+@input-border-radius-small:      @border-radius-small;
195
+
196
+//** Border color for inputs on focus
197
+@input-border-focus:             #66afe9;
198
+
199
+//** Placeholder text color
200
+@input-color-placeholder:        @gray-light;
201
+
202
+//** Default `.form-control` height
203
+@input-height-base:              (@line-height-computed + (@padding-base-vertical * 2) + 2);
204
+//** Large `.form-control` height
205
+@input-height-large:             (ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2);
206
+//** Small `.form-control` height
207
+@input-height-small:             (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);
208
+
209
+@legend-color:                   @gray-dark;
210
+@legend-border-color:            #e5e5e5;
211
+
212
+//** Background color for textual input addons
213
+@input-group-addon-bg:           @gray-lighter;
214
+//** Border color for textual input addons
215
+@input-group-addon-border-color: @input-border;
216
+
217
+//** Disabled cursor for form controls and buttons.
218
+@cursor-disabled:                not-allowed;
219
+
220
+
221
+//== Dropdowns
222
+//
223
+//## Dropdown menu container and contents.
224
+
225
+//** Background for the dropdown menu.
226
+@dropdown-bg:                    #fff;
227
+//** Dropdown menu `border-color`.
228
+@dropdown-border:                rgba(0,0,0,.15);
229
+//** Dropdown menu `border-color` **for IE8**.
230
+@dropdown-fallback-border:       #ccc;
231
+//** Divider color for between dropdown items.
232
+@dropdown-divider-bg:            rgba(0,0,0,.2);
233
+
234
+//** Dropdown link text color.
235
+@dropdown-link-color:            #555;
236
+//** Hover color for dropdown links.
237
+@dropdown-link-hover-color:      darken(@gray-dark, 5%);
238
+//** Hover background for dropdown links.
239
+@dropdown-link-hover-bg:         #eee;
240
+
241
+//** Active dropdown menu item text color.
242
+@dropdown-link-active-color:     @component-active-color;
243
+//** Active dropdown menu item background color.
244
+@dropdown-link-active-bg:        @component-active-bg;
245
+
246
+//** Disabled dropdown menu item background color.
247
+@dropdown-link-disabled-color:   @gray-light;
248
+
249
+//** Text color for headers within dropdown menus.
250
+@dropdown-header-color:          @gray-light;
251
+
252
+//** Deprecated `@dropdown-caret-color` as of v3.1.0
253
+@dropdown-caret-color:           #000;
254
+
255
+
256
+//-- Z-index master list
257
+//
258
+// Warning: Avoid customizing these values. They're used for a bird's eye view
259
+// of components dependent on the z-axis and are designed to all work together.
260
+//
261
+// Note: These variables are not generated into the Customizer.
262
+
263
+@zindex-navbar:            1000;
264
+@zindex-dropdown:          1000;
265
+@zindex-popover:           1060;
266
+@zindex-tooltip:           1070;
267
+@zindex-navbar-fixed:      1030;
268
+@zindex-modal:             1040;
269
+
270
+
271
+//== Media queries breakpoints
272
+//
273
+//## Define the breakpoints at which your layout will change, adapting to different screen sizes.
274
+
275
+// Extra small screen / phone
276
+//** Deprecated `@screen-xs` as of v3.0.1
277
+@screen-xs:                  480px;
278
+//** Deprecated `@screen-xs-min` as of v3.2.0
279
+@screen-xs-min:              @screen-xs;
280
+//** Deprecated `@screen-phone` as of v3.0.1
281
+@screen-phone:               @screen-xs-min;
282
+
283
+// Small screen / tablet
284
+//** Deprecated `@screen-sm` as of v3.0.1
285
+@screen-sm:                  768px;
286
+@screen-sm-min:              @screen-sm;
287
+//** Deprecated `@screen-tablet` as of v3.0.1
288
+@screen-tablet:              @screen-sm-min;
289
+
290
+// Medium screen / desktop
291
+//** Deprecated `@screen-md` as of v3.0.1
292
+@screen-md:                  992px;
293
+@screen-md-min:              @screen-md;
294
+//** Deprecated `@screen-desktop` as of v3.0.1
295
+@screen-desktop:             @screen-md-min;
296
+
297
+// Large screen / wide desktop
298
+//** Deprecated `@screen-lg` as of v3.0.1
299
+@screen-lg:                  1200px;
300
+@screen-lg-min:              @screen-lg;
301
+//** Deprecated `@screen-lg-desktop` as of v3.0.1
302
+@screen-lg-desktop:          @screen-lg-min;
303
+
304
+// So media queries don't overlap when required, provide a maximum
305
+@screen-xs-max:              (@screen-sm-min - 1);
306
+@screen-sm-max:              (@screen-md-min - 1);
307
+@screen-md-max:              (@screen-lg-min - 1);
308
+
309
+
310
+//== Grid system
311
+//
312
+//## Define your custom responsive grid.
313
+
314
+//** Number of columns in the grid.
315
+@grid-columns:              12;
316
+//** Padding between columns. Gets divided in half for the left and right.
317
+@grid-gutter-width:         30px;
318
+// Navbar collapse
319
+//** Point at which the navbar becomes uncollapsed.
320
+@grid-float-breakpoint:     @screen-sm-min;
321
+//** Point at which the navbar begins collapsing.
322
+@grid-float-breakpoint-max: (@grid-float-breakpoint - 1);
323
+
324
+
325
+//== Container sizes
326
+//
327
+//## Define the maximum width of `.container` for different screen sizes.
328
+
329
+// Small screen / tablet
330
+@container-tablet:             (720px + @grid-gutter-width);
331
+//** For `@screen-sm-min` and up.
332
+@container-sm:                 @container-tablet;
333
+
334
+// Medium screen / desktop
335
+@container-desktop:            (940px + @grid-gutter-width);
336
+//** For `@screen-md-min` and up.
337
+@container-md:                 @container-desktop;
338
+
339
+// Large screen / wide desktop
340
+@container-large-desktop:      (1140px + @grid-gutter-width);
341
+//** For `@screen-lg-min` and up.
342
+@container-lg:                 @container-large-desktop;
343
+
344
+
345
+//== Navbar
346
+//
347
+//##
348
+
349
+// Basics of a navbar
350
+@navbar-height:                    45px;
351
+@navbar-margin-bottom:             @line-height-computed;
352
+@navbar-border-radius:             @border-radius-base;
353
+@navbar-padding-horizontal:        floor((@grid-gutter-width / 2));
354
+@navbar-padding-vertical:          ((@navbar-height - @line-height-computed) / 2);
355
+@navbar-collapse-max-height:       340px;
356
+
357
+@navbar-default-color:             #fff;
358
+@navbar-default-bg:                @gray-dark;
359
+@navbar-default-border:            darken(@navbar-default-bg, 6.5%);
360
+
361
+// Navbar links
362
+@navbar-default-link-color:                #fff;
363
+@navbar-default-link-hover-color:          #fff;
364
+@navbar-default-link-hover-bg:             #272727;
365
+@navbar-default-link-active-color:         #fff;
366
+@navbar-default-link-active-bg:            #272727;
367
+@navbar-default-link-disabled-color:       #ccc;
368
+@navbar-default-link-disabled-bg:          transparent;
369
+
370
+// Navbar brand label
371
+@navbar-default-brand-color:               @navbar-default-link-color;
372
+@navbar-default-brand-hover-color:         @navbar-default-brand-color;
373
+@navbar-default-brand-hover-bg:            transparent;
374
+
375
+// Navbar toggle
376
+@navbar-default-toggle-hover-bg:           transparent;
377
+@navbar-default-toggle-icon-bar-bg:        #fff;
378
+@navbar-default-toggle-border-color:       transparent;
379
+
380
+
381
+// Inverted navbar
382
+// Reset inverted navbar basics
383
+@navbar-inverse-color:                      #fff;
384
+@navbar-inverse-bg:                         @brand-primary;
385
+@navbar-inverse-border:                     darken(@navbar-inverse-bg, 10%);
386
+
387
+// Inverted navbar links
388
+@navbar-inverse-link-color:                 #fff;
389
+@navbar-inverse-link-hover-color:           #fff;
390
+@navbar-inverse-link-hover-bg:              darken(@navbar-inverse-bg, 10%);
391
+@navbar-inverse-link-active-color:          #fff;
392
+@navbar-inverse-link-active-bg:             darken(@navbar-inverse-bg, 10%);
393
+@navbar-inverse-link-disabled-color:        #444;
394
+@navbar-inverse-link-disabled-bg:           transparent;
395
+
396
+// Inverted navbar brand label
397
+@navbar-inverse-brand-color:                @navbar-inverse-link-color;
398
+@navbar-inverse-brand-hover-color:          #fff;
399
+@navbar-inverse-brand-hover-bg:             transparent;
400
+
401
+// Inverted navbar toggle
402
+@navbar-inverse-toggle-hover-bg:            transparent;
403
+@navbar-inverse-toggle-icon-bar-bg:         #fff;
404
+@navbar-inverse-toggle-border-color:        transparent;
405
+
406
+
407
+//== Navs
408
+//
409
+//##
410
+
411
+//=== Shared nav styles
412
+@nav-link-padding:                          10px 15px;
413
+@nav-link-hover-bg:                         @gray-lighter;
414
+
415
+@nav-disabled-link-color:                   @gray-light;
416
+@nav-disabled-link-hover-color:             @gray-light;
417
+
418
+//== Tabs
419
+@nav-tabs-border-color:                     @table-border-color;
420
+
421
+@nav-tabs-link-hover-border-color:          @gray-lighter;
422
+
423
+@nav-tabs-active-link-hover-bg:             @body-bg;
424
+@nav-tabs-active-link-hover-color:          @gray;
425
+@nav-tabs-active-link-hover-border-color:   @table-border-color;
426
+
427
+@nav-tabs-justified-link-border-color:            @table-border-color;
428
+@nav-tabs-justified-active-link-border-color:     @body-bg;
429
+
430
+//== Pills
431
+@nav-pills-border-radius:                   @border-radius-base;
432
+@nav-pills-active-link-hover-bg:            @component-active-bg;
433
+@nav-pills-active-link-hover-color:         @component-active-color;
434
+
435
+
436
+//== Pagination
437
+//
438
+//##
439
+
440
+@pagination-color:                     @link-color;
441
+@pagination-bg:                        transparent;
442
+@pagination-border:                    transparent;
443
+
444
+@pagination-hover-color:               @link-hover-color;
445
+@pagination-hover-bg:                  @gray-lighter;
446
+@pagination-hover-border:              transparent;
447
+
448
+@pagination-active-color:              #fff;
449
+@pagination-active-bg:                 @brand-primary;
450
+@pagination-active-border:             transparent;
451
+
452
+@pagination-disabled-color:            @gray-light;
453
+@pagination-disabled-bg:               #fff;
454
+@pagination-disabled-border:           transparent;
455
+
456
+
457
+//== Pager
458
+//
459
+//##
460
+
461
+@pager-bg:                             @pagination-bg;
462
+@pager-border:                         @pagination-border;
463
+@pager-border-radius:                  3px;
464
+
465
+@pager-hover-bg:                       @pagination-hover-bg;
466
+
467
+@pager-active-bg:                      @pagination-active-bg;
468
+@pager-active-color:                   @pagination-active-color;
469
+
470
+@pager-disabled-color:                 @gray-light;
471
+
472
+
473
+//== Jumbotron
474
+//
475
+//##
476
+
477
+@jumbotron-padding:              30px;
478
+@jumbotron-color:                inherit;
479
+@jumbotron-bg:                   #fafafa;
480
+@jumbotron-heading-color:        inherit;
481
+@jumbotron-font-size:            ceil((@font-size-base * 1.5));
482
+
483
+
484
+//== Form states and alerts
485
+//
486
+//## Define colors for form feedback states and, by default, alerts.
487
+
488
+@state-success-text:             @brand-success;
489
+@state-success-bg:               #dff0d8;
490
+@state-success-border:           darken(@state-success-text, 5%);
491
+
492
+@state-info-text:                @brand-info;
493
+@state-info-bg:                  #d9edf7;
494
+@state-info-border:              darken(@state-info-text, 7%);
495
+
496
+@state-warning-text:             @brand-warning;
497
+@state-warning-bg:               #fcf8e3;
498
+@state-warning-border:           darken(@state-warning-text, 5%);
499
+
500
+@state-danger-text:              @brand-danger;
501
+@state-danger-bg:                #f2dede;
502
+@state-danger-border:            darken(@state-danger-text, 5%);
503
+
504
+
505
+//== Tooltips
506
+//
507
+//##
508
+
509
+//** Tooltip max width
510
+@tooltip-max-width:           200px;
511
+//** Tooltip text color
512
+@tooltip-color:               #fff;
513
+//** Tooltip background color
514
+@tooltip-bg:                  @gray-dark;
515
+@tooltip-opacity:             .9;
516
+
517
+//** Tooltip arrow width
518
+@tooltip-arrow-width:         5px;
519
+//** Tooltip arrow color
520
+@tooltip-arrow-color:         @tooltip-bg;
521
+
522
+
523
+//== Popovers
524
+//
525
+//##
526
+
527
+//** Popover body background color
528
+@popover-bg:                          @gray-dark;
529
+//** Popover maximum width
530
+@popover-max-width:                   276px;
531
+//** Popover border color
532
+@popover-border-color:                transparent;
533
+//** Popover fallback border color
534
+@popover-fallback-border-color:       @gray-dark;
535
+
536
+//** Popover title background color
537
+@popover-title-bg:                    @popover-bg;
538
+
539
+//** Popover arrow width
540
+@popover-arrow-width:                 10px;
541
+//** Popover arrow color
542
+@popover-arrow-color:                 @popover-bg;
543
+
544
+//** Popover outer arrow width
545
+@popover-arrow-outer-width:           (@popover-arrow-width + 1);
546
+//** Popover outer arrow color
547
+@popover-arrow-outer-color:           fadein(@popover-border-color, 5%);
548
+//** Popover outer arrow fallback color
549
+@popover-arrow-outer-fallback-color:  darken(@popover-fallback-border-color, 20%);
550
+
551
+
552
+//== Labels
553
+//
554
+//##
555
+
556
+//** Default label background color
557
+@label-default-bg:            @gray-light;
558
+//** Primary label background color
559
+@label-primary-bg:            @brand-primary;
560
+//** Success label background color
561
+@label-success-bg:            @brand-success;
562
+//** Info label background color
563
+@label-info-bg:               @brand-info;
564
+//** Warning label background color
565
+@label-warning-bg:            @brand-warning;
566
+//** Danger label background color
567
+@label-danger-bg:             @brand-danger;
568
+
569
+//** Default label text color
570
+@label-color:                 #fff;
571
+//** Default text color of a linked label
572
+@label-link-hover-color:      #fff;
573
+
574
+
575
+//== Modals
576
+//
577
+//##
578
+
579
+//** Padding applied to the modal body
580
+@modal-inner-padding:         20px;
581
+
582
+//** Padding applied to the modal title
583
+@modal-title-padding:         15px;
584
+//** Modal title line-height
585
+@modal-title-line-height:     @line-height-base;
586
+
587
+//** Background color of modal content area
588
+@modal-content-bg:                             #fff;
589
+//** Modal content border color
590
+@modal-content-border-color:                   rgba(0,0,0,.2);
591
+//** Modal content border color **for IE8**
592
+@modal-content-fallback-border-color:          #999;
593
+
594
+//** Modal backdrop background color
595
+@modal-backdrop-bg:           #000;
596
+//** Modal backdrop opacity
597
+@modal-backdrop-opacity:      .5;
598
+//** Modal header border color
599
+@modal-header-border-color:   #e5e5e5;
600
+//** Modal footer border color
601
+@modal-footer-border-color:   @modal-header-border-color;
602
+
603
+@modal-lg:                    900px;
604
+@modal-md:                    600px;
605
+@modal-sm:                    300px;
606
+
607
+
608
+//== Alerts
609
+//
610
+//## Define alert colors, border radius, and padding.
611
+
612
+@alert-padding:               15px;
613
+@alert-border-radius:         @border-radius-base;
614
+@alert-link-font-weight:      bold;
615
+
616
+@alert-success-bg:            @brand-success;
617
+@alert-success-text:          #fff;
618
+@alert-success-border:        @state-success-border;
619
+
620
+@alert-info-bg:               @brand-info;
621
+@alert-info-text:             #fff;
622
+@alert-info-border:           @state-info-border;
623
+
624
+@alert-warning-bg:            @brand-warning;
625
+@alert-warning-text:          #fff;
626
+@alert-warning-border:        @state-warning-border;
627
+
628
+@alert-danger-bg:             @brand-danger;
629
+@alert-danger-text:           #fff;
630
+@alert-danger-border:         @state-danger-border;
631
+
632
+
633
+//== Progress bars
634
+//
635
+//##
636
+
637
+//** Background color of the whole progress component
638
+@progress-bg:                 #f5f5f5;
639
+//** Progress bar text color
640
+@progress-bar-color:          #fff;
641
+//** Variable for setting rounded corners on progress bar.
642
+@progress-border-radius:      @border-radius-base;
643
+
644
+//** Default progress bar color
645
+@progress-bar-bg:             @brand-primary;
646
+//** Success progress bar color
647
+@progress-bar-success-bg:     @brand-success;
648
+//** Warning progress bar color
649
+@progress-bar-warning-bg:     @brand-warning;
650
+//** Danger progress bar color
651
+@progress-bar-danger-bg:      @brand-danger;
652
+//** Info progress bar color
653
+@progress-bar-info-bg:        @brand-info;
654
+
655
+
656
+//== List group
657
+//
658
+//##
659
+
660
+//** Background color on `.list-group-item`
661
+@list-group-bg:                 #fff;
662
+//** `.list-group-item` border color
663
+@list-group-border:             @table-border-color;
664
+//** List group border radius
665
+@list-group-border-radius:      @border-radius-base;
666
+
667
+//** Background color of single list items on hover
668
+@list-group-hover-bg:           #f5f5f5;
669
+//** Text color of active list items
670
+@list-group-active-color:       @component-active-color;
671
+//** Background color of active list items
672
+@list-group-active-bg:          @component-active-bg;
673
+//** Border color of active list elements
674
+@list-group-active-border:      @list-group-active-bg;
675
+//** Text color for content within active list items
676
+@list-group-active-text-color:  lighten(@list-group-active-bg, 40%);
677
+
678
+//** Text color of disabled list items
679
+@list-group-disabled-color:      @gray-light;
680
+//** Background color of disabled list items
681
+@list-group-disabled-bg:         @gray-lighter;
682
+//** Text color for content within disabled list items
683
+@list-group-disabled-text-color: @list-group-disabled-color;
684
+
685
+@list-group-link-color:         #555;
686
+@list-group-link-hover-color:   @list-group-link-color;
687
+@list-group-link-heading-color: #333;
688
+
689
+
690
+//== Panels
691
+//
692
+//##
693
+
694
+@panel-bg:                    #fff;
695
+@panel-body-padding:          15px;
696
+@panel-heading-padding:       10px 15px;
697
+@panel-footer-padding:        @panel-heading-padding;
698
+@panel-border-radius:         @border-radius-base;
699
+
700
+//** Border color for elements within panels
701
+@panel-inner-border:          @table-border-color;
702
+@panel-footer-bg:             #f5f5f5;
703
+
704
+@panel-default-text:          @gray-dark;
705
+@panel-default-border:        @table-border-color;
706
+@panel-default-heading-bg:    #f5f5f5;
707
+
708
+@panel-primary-text:          #fff;
709
+@panel-primary-border:        @brand-primary;
710
+@panel-primary-heading-bg:    @brand-primary;
711
+
712
+@panel-success-text:          #fff;
713
+@panel-success-border:        @state-success-border;
714
+@panel-success-heading-bg:    @brand-success;
715
+
716
+@panel-info-text:             #fff;
717
+@panel-info-border:           @state-info-border;
718
+@panel-info-heading-bg:       @brand-info;
719
+
720
+@panel-warning-text:          #fff;
721
+@panel-warning-border:        @state-warning-border;
722
+@panel-warning-heading-bg:    @brand-warning;
723
+
724
+@panel-danger-text:           #fff;
725
+@panel-danger-border:         @state-danger-border;
726
+@panel-danger-heading-bg:     @brand-danger;
727
+
728
+
729
+//== Thumbnails
730
+//
731
+//##
732
+
733
+//** Padding around the thumbnail image
734
+@thumbnail-padding:           4px;
735
+//** Thumbnail background color
736
+@thumbnail-bg:                @body-bg;
737
+//** Thumbnail border color
738
+@thumbnail-border:            @table-border-color;
739
+//** Thumbnail border radius
740
+@thumbnail-border-radius:     @border-radius-base;
741
+
742
+//** Custom text color for thumbnail captions
743
+@thumbnail-caption-color:     @text-color;
744
+//** Padding around the thumbnail caption
745
+@thumbnail-caption-padding:   9px;
746
+
747
+
748
+//== Wells
749
+//
750
+//##
751
+
752
+@well-bg:                     @jumbotron-bg;
753
+@well-border:                 darken(@well-bg, 7%);
754
+
755
+
756
+//== Badges
757
+//
758
+//##
759
+
760
+@badge-color:                 #fff;
761
+//** Linked badge text color on hover
762
+@badge-link-hover-color:      #fff;
763
+@badge-bg:                    @btn-primary-bg;
764
+
765
+//** Badge text color in active nav link
766
+@badge-active-color:          @link-color;
767
+//** Badge background color in active nav link
768
+@badge-active-bg:             #fff;
769
+
770
+@badge-font-weight:           bold;
771
+@badge-line-height:           1;
772
+@badge-border-radius:         10px;
773
+
774
+
775
+//== Breadcrumbs
776
+//
777
+//##
778
+
779
+@breadcrumb-padding-vertical:   8px;
780
+@breadcrumb-padding-horizontal: 15px;
781
+//** Breadcrumb background color
782
+@breadcrumb-bg:                 #f5f5f5;
783
+//** Breadcrumb text color
784
+@breadcrumb-color:              @gray-light;
785
+//** Text color of current page in the breadcrumb
786
+@breadcrumb-active-color:       @gray-dark;
787
+//** Textual separator for between breadcrumb elements
788
+@breadcrumb-separator:          "/";
789
+
790
+
791
+//== Carousel
792
+//
793
+//##
794
+
795
+@carousel-text-shadow:                        0 1px 2px rgba(0,0,0,.6);
796
+
797
+@carousel-control-color:                      #fff;
798
+@carousel-control-width:                      15%;
799
+@carousel-control-opacity:                    .5;
800
+@carousel-control-font-size:                  20px;
801
+
802
+@carousel-indicator-active-bg:                #fff;
803
+@carousel-indicator-border-color:             #fff;
804
+
805
+@carousel-caption-color:                      #fff;
806
+
807
+
808
+//== Close
809
+//
810
+//##
811
+
812
+@close-font-weight:           bold;
813
+@close-color:                 #fff;
814
+@close-text-shadow:           0 1px 0 #fff;
815
+
816
+
817
+//== Code
818
+//
819
+//##
820
+
821
+@code-color:                  #c7254e;
822
+@code-bg:                     #f9f2f4;
823
+
824
+@kbd-color:                   #fff;
825
+@kbd-bg:                      #333;
826
+
827
+@pre-bg:                      #f5f5f5;
828
+@pre-color:                   @gray-dark;
829
+@pre-border-color:            #ccc;
830
+@pre-scrollable-max-height:   340px;
831
+
832
+
833
+//== Type
834
+//
835
+//##
836
+
837
+//** Horizontal offset for forms and lists.
838
+@component-offset-horizontal: 180px;
839
+//** Text muted color
840
+@text-muted:                  @gray-light;
841
+//** Abbreviations and acronyms border color
842
+@abbr-border-color:           @gray-light;
843
+//** Headings small color
844
+@headings-small-color:        @gray-light;
845
+//** Blockquote small color
846
+@blockquote-small-color:      @gray;
847
+//** Blockquote font size
848
+@blockquote-font-size:        (@font-size-base * 1.25);
849
+//** Blockquote border color
850
+@blockquote-border-color:     @table-border-color;
851
+//** Page header border color
852
+@page-header-border-color:    @table-border-color;
853
+//** Width of horizontal description list titles
854
+@dl-horizontal-offset:        @component-offset-horizontal;
855
+//** Horizontal line color.
856
+@hr-border:                   @table-border-color;

+ 5
- 1
searx/templates/oscar/base.html Visa fil

@@ -10,7 +10,11 @@
10 10
     {% block meta %}{% endblock %}
11 11
     <title>{% block title %}{% endblock %}searx</title>
12 12
     
13
-    <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" type="text/css" />
13
+    {% if bootstrap_theme == 'default' %}
14
+        <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" type="text/css" />
15
+    {% else %}
16
+        <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.' + bootstrap_theme + '.min.css') }}" type="text/css" />
17
+    {% endif %}
14 18
     <link rel="stylesheet" href="{{ url_for('static', filename='css/oscar.min.css') }}" type="text/css" />  
15 19
     <link rel="stylesheet" href="{{ url_for('static', filename='css/leaflet.min.css') }}" type="text/css" />
16 20
 

+ 23
- 0
searx/templates/oscar/preferences.html Visa fil

@@ -9,6 +9,7 @@
9 9
     <!-- Nav tabs -->
10 10
     <ul class="nav nav-tabs hide_if_nojs" role="tablist" style="margin-bottom:20px;">
11 11
       <li class="active"><a href="#tab_general" role="tab" data-toggle="tab">{{ _('General') }}</a></li>
12
+      <li><a href="#tab_template" role="tab" data-toggle="tab">{{ _('Template features') }}</a></li>
12 13
       <li><a href="#tab_engine" role="tab" data-toggle="tab">{{ _('Engines') }}</a></li>
13 14
     </ul>
14 15
 
@@ -96,6 +97,28 @@
96 97
             </div>
97 98
             </fieldset>
98 99
         </div>
100
+        
101
+        <div class="tab-pane active_if_nojs" id="tab_template">
102
+            <noscript>
103
+                <h3>{{ _('Template features') }}</h3>
104
+            </noscript>
105
+        
106
+            <fieldset>
107
+            <div class="container-fluid">
108
+                <div class="row form-group">
109
+                    <label class="col-sm-3 col-md-2">{{ _('bootstrap theme') }}</label>
110
+                    <div class="col-sm-4 col-md-4">
111
+                        <select class="form-control" name='bootstrap_theme'>
112
+                            {% for b_theme in bootstrap_themes %}
113
+                                <option value="{{ b_theme }}" {% if bootstrap_theme == b_theme %}selected="selected"{% endif %}>{{ b_theme }}</option>
114
+                            {% endfor %}
115
+                        </select>
116
+                    </div>
117
+                    <span class="col-sm-5 col-md-6 help-block">{{ _('Change style of this layout') }}</span>
118
+                </div>
119
+            </div>
120
+            </fieldset>
121
+        </div>
99 122
         <div class="tab-pane active_if_nojs" id="tab_engine">
100 123
 
101 124
             <!-- Nav tabs -->

+ 14
- 0
searx/webapp.py Visa fil

@@ -261,6 +261,9 @@ def render(template_name, override_theme=None, **kwargs):
261 261
 
262 262
     if 'autocomplete' not in kwargs:
263 263
         kwargs['autocomplete'] = autocomplete
264
+    
265
+    if 'bootstrap_theme' not in kwargs:
266
+        kwargs['bootstrap_theme'] = request.cookies.get('bootstrap_theme', 'default')
264 267
 
265 268
     kwargs['searx_version'] = VERSION_STRING
266 269
 
@@ -464,6 +467,7 @@ def preferences():
464 467
     Settings that are going to be saved as cookies."""
465 468
     lang = None
466 469
     image_proxy = request.cookies.get('image_proxy', settings['server'].get('image_proxy'))
470
+    bootstrap_themes = ['default', 'simplex', 'yeti', 'readable']
467 471
 
468 472
     if request.cookies.get('language')\
469 473
        and request.cookies['language'] in (x[0] for x in language_codes):
@@ -478,6 +482,7 @@ def preferences():
478 482
         locale = None
479 483
         autocomplete = ''
480 484
         method = 'POST'
485
+        bootstrap_theme = None
481 486
         for pd_name, pd in request.form.items():
482 487
             if pd_name.startswith('category_'):
483 488
                 category = pd_name[9:]
@@ -502,6 +507,11 @@ def preferences():
502 507
                     blocked_engines.append(engine_name)
503 508
             elif pd_name == 'theme':
504 509
                 theme = pd if pd in themes else default_theme
510
+            elif pd_name == 'bootstrap_theme':
511
+                if pd in bootstrap_themes:
512
+                    bootstrap_theme = pd
513
+                else:
514
+                    bootstrap_theme = 'default'
505 515
 
506 516
         resp = make_response(redirect(url_for('index')))
507 517
 
@@ -543,6 +553,9 @@ def preferences():
543 553
 
544 554
         resp.set_cookie('theme', theme, max_age=cookie_max_age)
545 555
 
556
+        if bootstrap_theme:
557
+            resp.set_cookie('bootstrap_theme', bootstrap_theme, max_age=cookie_max_age)
558
+
546 559
         return resp
547 560
     return render('preferences.html',
548 561
                   locales=settings['locales'],
@@ -555,6 +568,7 @@ def preferences():
555 568
                   autocomplete_backends=autocomplete_backends,
556 569
                   shortcuts={y: x for x, y in engine_shortcuts.items()},
557 570
                   themes=themes,
571
+                  bootstrap_themes=bootstrap_themes,
558 572
                   theme=get_current_theme_name())
559 573
 
560 574