Parcourir la source

[fix] no horizontal scrolling on small screen

dalf il y a 10 ans
Parent
révision
400279182e
2 fichiers modifiés avec 25 ajouts et 97 suppressions
  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
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 24
- 16
searx/static/default/less/style.less Voir le fichier

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