Selaa lähdekoodia

edit style of autocompleter

Thomas Pointhuber 11 vuotta sitten
vanhempi
commit
b5c695c6f5
2 muutettua tiedostoa jossa 36 lisäystä ja 36 poistoa
  1. 1
    1
      searx/static/css/style.css
  2. 35
    35
      searx/static/less/autocompleter.less

+ 1
- 1
searx/static/css/style.css Näytä tiedosto

@@ -1,6 +1,6 @@
1 1
 ul.autocompleter-choices{position:absolute;margin:0;padding:0;list-style:none;border:1px solid #7c7c7c;border-left-color:#c3c3c3;border-right-color:#c3c3c3;border-bottom-color:#ddd;background-color:#fff;text-align:left;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;z-index:50;background-color:#fff}ul.autocompleter-choices li{position:relative;margin:-2px 0 0 0;padding:.2em 1.5em .2em 1em;display:block;float:none !important;cursor:pointer;font-weight:normal;white-space:nowrap;font-size:1em;line-height:1.5em}ul.autocompleter-choices li.autocompleter-selected{background-color:#444;color:#fff}ul.autocompleter-choices li.autocompleter-selected span.autocompleter-queried{color:#9fcfff}
2 2
 ul.autocompleter-choices span.autocompleter-queried{display:inline;float:none;font-weight:bold;margin:0;padding:0}
3
-.autocompleter-loading{background-image:url(images/spinner.gif);background-repeat:no-repeat;background-position:right 50%}
3
+.autocompleter-loading{background-repeat:no-repeat;background-position:right 50%}
4 4
 textarea.autocompleter-loading{background-position:right bottom}
5 5
 html{font-family:sans-serif;font-size:.9em;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;color:#444;padding:0;margin:0}
6 6
 body,#container{padding:0;margin:0}

+ 35
- 35
searx/static/less/autocompleter.less Näytä tiedosto

@@ -1,57 +1,57 @@
1 1
 ul {
2 2
 	&.autocompleter-choices {
3
-		position:				absolute;
4
-		margin:					0;
5
-		padding:				0;
6
-		list-style:				none;
7
-		border:					1px solid #7c7c7c;
8
-		border-left-color:		#c3c3c3;
9
-		border-right-color:		#c3c3c3;
10
-		border-bottom-color:	#ddd;
11
-		background-color:		#fff;
12
-		text-align:				left;
13
-		font-family:			Verdana, Geneva, Arial, Helvetica, sans-serif;
14
-		z-index:				50;
15
-		background-color:		#fff;
3
+		position: absolute;
4
+		margin: 0;
5
+		padding: 0;
6
+		list-style: none;
7
+		border: 1px solid #7c7c7c;
8
+		border-left-color: #c3c3c3;
9
+		border-right-color: #c3c3c3;
10
+		border-bottom-color: #ddd;
11
+		background-color: #fff;
12
+		text-align: left;
13
+		font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
14
+		z-index: 50;
15
+		background-color: #fff;
16 16
 	
17 17
 		li {
18
-			position:				relative;
19
-			margin:					-2px 0 0 0;
20
-			padding:				0.2em 1.5em 0.2em 1em;
21
-			display:				block;
22
-			float:					none !important; 
23
-			cursor:					pointer;
24
-			font-weight:			normal;
25
-			white-space:			nowrap;
26
-			font-size:				1em;
27
-			line-height:			1.5em;
18
+			position: relative;
19
+			margin: -2px 0 0 0;
20
+			padding: 0.2em 1.5em 0.2em 1em;
21
+			display: block;
22
+			float: none !important; 
23
+			cursor: pointer;
24
+			font-weight: normal;
25
+			white-space: nowrap;
26
+			font-size: 1em;
27
+			line-height: 1.5em;
28 28
 
29 29
 			&.autocompleter-selected {
30
-				background-color:		#444;
31
-				color:					#fff;
30
+				background-color: #444;
31
+				color: #fff;
32 32
 
33 33
 				span.autocompleter-queried {
34
-					color:					#9FCFFF;
34
+					color: #9FCFFF;
35 35
 				}
36 36
 			}
37 37
 		}
38 38
 
39 39
 		span.autocompleter-queried {
40
-			display:				inline;
41
-			float:					none;
42
-			font-weight:			bold;
43
-			margin:					0;
44
-			padding:				0;
40
+			display: inline;
41
+			float: none;
42
+			font-weight: bold;
43
+			margin: 0;
44
+			padding: 0;
45 45
 		}
46 46
 	}
47 47
 }
48 48
 
49 49
 .autocompleter-loading {
50
-	background-image:     url(images/spinner.gif);
51
-	background-repeat:    no-repeat;
52
-	background-position:  right 50%;
50
+	//background-image: url(images/spinner.gif);
51
+	background-repeat: no-repeat;
52
+	background-position: right 50%;
53 53
 }
54 54
 
55 55
 textarea.autocompleter-loading {
56
-	background-position:  right bottom;
56
+	background-position: right bottom;
57 57
 }