Просмотр исходного кода

[fix] no horizontal scrolling on small screen

dalf 10 лет назад
Родитель
Сommit
400279182e
2 измененных файлов: 25 добавлений и 97 удалений
  1. 1
    81
      searx/static/default/css/style.css
  2. 24
    16
      searx/static/default/less/style.less

+ 1
- 81
searx/static/default/css/style.css
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 24
- 16
searx/static/default/less/style.less Просмотреть файл

@@ -126,6 +126,7 @@ fieldset {
126 126
 
127 127
 #categories {
128 128
 	margin: 0 10px;
129
+	.user-select;
129 130
 }
130 131
 
131 132
 .checkbox_container {
@@ -297,14 +298,14 @@ a {
297 298
 }
298 299
 
299 300
 .image_result {
300
-	float: left;
301
+	display: inline-block;
301 302
 	margin: 10px 10px;
302 303
 	position: relative;
303
-	height: 160px;
304
+	max-height: 160px;
304 305
 
305 306
 	img {
306 307
 		border: 0;
307
-		height: 160px;
308
+		max-height: 160px;
308 309
 	}
309 310
 
310 311
 	p {
@@ -369,17 +370,17 @@ tr {
369 370
 #results {
370 371
 	margin: auto;
371 372
 	padding: 0;
372
-    width: @results-width;
373
+	width: @results-width;
373 374
 	margin-bottom: 20px;
374 375
 }
375 376
 
376 377
 #sidebar {
377 378
 	position: fixed;
378
-    bottom: 10px;
379
-    left: 10px;
379
+	bottom: 10px;
380
+	left: 10px;
380 381
 	margin: 0 2px 5px 5px;
381 382
 	padding: 0 2px 2px 2px;
382
-    width: 14em;
383
+	width: 14em;
383 384
 
384 385
 	input {
385 386
 		padding: 0;
@@ -390,9 +391,9 @@ tr {
390 391
         color: @color-result-search-url-font;
391 392
 		cursor: pointer;
392 393
 	}
393
-    input[type="submit"] {
394
+	input[type="submit"] {
394 395
 		text-decoration: underline;
395
-    }
396
+	}
396 397
 }
397 398
 
398 399
 #suggestions, #answers {
@@ -501,7 +502,6 @@ tr {
501 502
 
502 503
 #pagination {
503 504
 	clear: both;
504
-    width: 40em;
505 505
 }
506 506
 
507 507
 #apis {
@@ -511,18 +511,19 @@ tr {
511 511
 
512 512
 @media screen and (max-width: @results-width) {
513 513
 
514
-    #results {
515
-        margin: auto;
516
-        padding: 0;
517
-        width: 90%;
518
-    }
514
+	#results {
515
+	        margin: auto;
516
+	        padding: 0;
517
+	        width: 90%;
518
+	}
519
+
519 520
 	.github {
520 521
 		display: none;
521 522
 	}
522 523
 
523 524
 	.checkbox_container {
524 525
 		display: block;
525
-        width: 90%;
526
+        	width: 90%;
526 527
 		//float: left;
527 528
 
528 529
 		label {
@@ -591,6 +592,13 @@ tr {
591 592
 		border-top: 1px solid @color-result-top-border;
592 593
 		margin: 7px 0 6px 0;
593 594
 	}
595
+
596
+	.image_result {
597
+		max-width: 98%;
598
+		img {
599
+			max-width: 98%;
600
+		}
601
+	}
594 602
 }
595 603
 
596 604
 .favicon {