Преглед на файлове

fix little style errors

Thomas Pointhuber преди 11 години
родител
ревизия
3b31c60f07
променени са 4 файла, в които са добавени 23 реда и са изтрити 6 реда
  1. 2
    0
      searx/static/css/definitions.less
  2. 3
    2
      searx/static/css/style.css
  3. 16
    2
      searx/static/css/style.less
  4. 2
    2
      searx/templates/preferences.html

+ 2
- 0
searx/static/css/definitions.less Целия файл

85
 @color-settings-label-deny-background: #2ECC71;
85
 @color-settings-label-deny-background: #2ECC71;
86
 @color-settings-label-deny-font: @color-font;
86
 @color-settings-label-deny-font: @color-font;
87
 
87
 
88
+@color-settings-return-background: @color-base;
89
+@color-settings-return-font: #FFF;
88
 
90
 
89
 /// Other
91
 /// Other
90
 
92
 

+ 3
- 2
searx/static/css/style.css Целия файл

1
 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}
1
 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}
2
 body,#container{padding:0;margin:0}
2
 body,#container{padding:0;margin:0}
3
 #container{width:100%;position:absolute;top:0}
3
 #container{width:100%;position:absolute;top:0}
4
-.row{max-width:800px;margin:auto;text-align:justify}.row h1{font-size:3em;margin-top:50px}
4
+.row{max-width:800px;margin:20px auto;text-align:justify}.row h1{font-size:3em;margin-top:50px}
5
 .row p{padding:0 10px;max-width:700px}
5
 .row p{padding:0 10px;max-width:700px}
6
 .row h3,.row ul{margin:4px 8px}
6
 .row h3,.row ul{margin:4px 8px}
7
 .hmarg{margin:0 20px;border:1px solid #3498db;padding:4px 10px}
7
 .hmarg{margin:0 20px;border:1px solid #3498db;padding:4px 10px}
64
 #preferences{top:10px;padding:0;border:0;background:url('/static/img/preference-icon.png') no-repeat;background-size:28px 28px;opacity:.8;width:28px;height:30px;display:block}#preferences *{display:none}
64
 #preferences{top:10px;padding:0;border:0;background:url('/static/img/preference-icon.png') no-repeat;background-size:28px 28px;opacity:.8;width:28px;height:30px;display:block}#preferences *{display:none}
65
 #pagination{clear:both}
65
 #pagination{clear:both}
66
 #apis{margin-top:8px;clear:both}
66
 #apis{margin-top:8px;clear:both}
67
-@media screen and (max-width:60em){#sidebar{position:static;max-width:50em;margin:0 0 2px 0;padding:0;float:none;border:none;width:auto} #suggestions span{display:inline;font-size:.8em} #suggestions form{display:inline} #suggestions input{padding:2px 6px;margin:2px 4px;font-size:.8em;display:inline-block;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:0;cursor:pointer}}@media screen and (max-width:680px){#search_wrapper{width:90%;clear:both;overflow:hidden} .right{display:none;postion:fixed !important;top:100px;right:0} #apis{display:none} #categories{font-size:80%;clear:both}#categories .checkbox_container{margin-top:2px;margin:0 2px} .checkbox_container{display:block;width:100%;float:left}.checkbox_container label{border-bottom:0} .result{border-top:1px solid #e8e7e6;margin:7px 0 6px 0}.result img{max-width:90%;width:auto;height:auto}}.favicon{float:left;margin-right:4px;margin-top:2px}
67
+@media screen and (max-width:60em){#sidebar{position:static;max-width:50em;margin:0 0 2px 0;padding:0;float:none;border:none;width:auto} #suggestions span{display:inline;font-size:.8em} #suggestions form{display:inline} #suggestions input{padding:2px 6px;margin:2px 4px;font-size:.8em;display:inline-block;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:0;cursor:pointer}}@media screen and (max-width:680px){#search_wrapper{width:90%;clear:both;overflow:hidden} .right{display:none;postion:fixed !important;top:100px;right:0} #apis{display:none} #categories{font-size:80%;clear:both}#categories .checkbox_container{margin-top:2px;margin:0 2px} .checkbox_container{display:block;width:100%}.checkbox_container label{border-bottom:0} .result{border-top:1px solid #e8e7e6;margin:7px 0 6px 0}.result img{max-width:90%;width:auto;height:auto}}.favicon{float:left;margin-right:4px;margin-top:2px}
68
+.preferences_back{background:none repeat scroll 0 0 #3498db;border:0 none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;cursor:pointer;display:inline-block;margin:2px 4px;padding:4px 6px}.preferences_back a{color:#fff}

+ 16
- 2
searx/static/css/style.less Целия файл

32
 
32
 
33
 .row {
33
 .row {
34
 	max-width: 800px;
34
 	max-width: 800px;
35
-	margin: auto;
35
+	margin: 20px auto;
36
 	text-align: justify;
36
 	text-align: justify;
37
 
37
 
38
 	h1 { 
38
 	h1 { 
530
 	.checkbox_container {
530
 	.checkbox_container {
531
 		display: block;
531
 		display: block;
532
 		width: 100%;
532
 		width: 100%;
533
-		float: left;
533
+		//float: left;
534
 
534
 
535
 		label {
535
 		label {
536
 			border-bottom: 0;
536
 			border-bottom: 0;
554
 	margin-right: 4px;
554
 	margin-right: 4px;
555
 	margin-top: 2px;
555
 	margin-top: 2px;
556
 }
556
 }
557
+
558
+.preferences_back {
559
+	background: none repeat scroll 0 0 @color-settings-return-background;
560
+    border: 0 none;
561
+    .rounded-corners;
562
+    cursor: pointer;
563
+    display: inline-block;
564
+    margin: 2px 4px;
565
+    padding: 4px 6px;
566
+
567
+	a {
568
+		color: @color-settings-return-font;
569
+	}
570
+}

+ 2
- 2
searx/templates/preferences.html Целия файл

65
     </p>
65
     </p>
66
 
66
 
67
     <input type="submit" value="{{ _('save') }}" />
67
     <input type="submit" value="{{ _('save') }}" />
68
-    </form>
69
-    <div class="right"><a href="{{ url_for('index') }}">{{ _('back') }}</a></div>
68
+	<div class="right preferences_back"><a href="{{ url_for('index') }}">{{ _('back') }}</a></div>
69
+    </form>    
70
 </div>
70
 </div>
71
 {% endblock %}
71
 {% endblock %}