summaryrefslogtreecommitdiff
path: root/searx/static
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2014-09-29 10:27:19 +0200
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2014-10-05 14:40:47 +0200
commitf4457da0a171d45b8be6b9b2bc24f15b6bf4b337 (patch)
treeff6120e756c9e751450549b1bbe5ba0884ffceee /searx/static
parent841f1eedfc8b2c49f0395d5f0ea2bfa269c19df2 (diff)
oscar template: using less to generate oscar.min.css
Diffstat (limited to 'searx/static')
-rw-r--r--searx/static/oscar/css/oscar.css71
-rw-r--r--searx/static/oscar/css/oscar.min.css15
-rw-r--r--searx/static/oscar/less/oscar/checkbox.less9
-rw-r--r--searx/static/oscar/less/oscar/cursor.less4
-rw-r--r--searx/static/oscar/less/oscar/footer.less19
-rw-r--r--searx/static/oscar/less/oscar/oscar.less9
-rw-r--r--searx/static/oscar/less/oscar/results.less41
-rw-r--r--searx/static/oscar/less/oscar/search.less4
8 files changed, 101 insertions, 71 deletions
diff --git a/searx/static/oscar/css/oscar.css b/searx/static/oscar/css/oscar.css
deleted file mode 100644
index 7bd4478bf..000000000
--- a/searx/static/oscar/css/oscar.css
+++ /dev/null
@@ -1,71 +0,0 @@
-/* Sticky footer styles
--------------------------------------------------- */
-
-html {
- position: relative;
- min-height: 100%;
-}
-body {
- /* Margin bottom by footer height */
- margin-bottom: 80px;
-}
-
-.footer {
- position: absolute;
- bottom: 0;
- width: 100%;
- /* Set the fixed height of the footer here */
- height: 60px;
-}
-
-input[type=checkbox]:checked ~ .label_hide_if_checked {
- display:none;
-}
-
-input[type=checkbox]:not(:checked) ~ .label_hide_if_not_checked {
- display:none;
-}
-
-.search_categories {
- margin:10px 0;
- text-transform: capitalize;
-}
-
-.result-default {
- clear: both;
-}
-
-.result-images {
- float: left !important;
-}
-
-.result-videos {
- clear: both;
-}
-
-.result-torrents {
- clear: both;
-}
-
-.img-thumbnail {
- margin: 5px;
- max-height: 128px;
- min-height: 128px;
-}
-
-.suggestion_item {
- margin: 2px 5px;
-}
-
-.result_download {
- margin-right: 5px;
-}
-
-#pagination {
- margin-top: 30px;
- padding-bottom: 50px;
-}
-
-.cursor-text {
- cursor: text !important;
-}
diff --git a/searx/static/oscar/css/oscar.min.css b/searx/static/oscar/css/oscar.min.css
new file mode 100644
index 000000000..60396e0cc
--- /dev/null
+++ b/searx/static/oscar/css/oscar.min.css
@@ -0,0 +1,15 @@
+html{position:relative;min-height:100%}
+body{margin-bottom:80px}
+.footer{position:absolute;bottom:0;width:100%;height:60px}
+input[type=checkbox]:checked~.label_hide_if_checked{display:none}
+input[type=checkbox]:not(:checked)~.label_hide_if_not_checked{display:none}
+.result-default{clear:both}
+.result-images{float:left !important}
+.img-thumbnail{margin:5px;max-height:128px;min-height:128px}
+.result-videos{clear:both}
+.result-torrents{clear:both}
+.suggestion_item{margin:2px 5px}
+.result_download{margin-right:5px}
+#pagination{margin-top:30px;padding-bottom:50px}
+.search_categories{margin:10px 0;text-transform:capitalize}
+.cursor-text{cursor:text !important}
diff --git a/searx/static/oscar/less/oscar/checkbox.less b/searx/static/oscar/less/oscar/checkbox.less
new file mode 100644
index 000000000..712e53d49
--- /dev/null
+++ b/searx/static/oscar/less/oscar/checkbox.less
@@ -0,0 +1,9 @@
+// Hide element if checkbox is checked
+input[type=checkbox]:checked ~ .label_hide_if_checked {
+ display:none;
+}
+
+// Hide element if checkbox is not checked
+input[type=checkbox]:not(:checked) ~ .label_hide_if_not_checked {
+ display:none;
+}
diff --git a/searx/static/oscar/less/oscar/cursor.less b/searx/static/oscar/less/oscar/cursor.less
new file mode 100644
index 000000000..c7e3191d8
--- /dev/null
+++ b/searx/static/oscar/less/oscar/cursor.less
@@ -0,0 +1,4 @@
+// display cursor
+.cursor-text {
+ cursor: text !important;
+}
diff --git a/searx/static/oscar/less/oscar/footer.less b/searx/static/oscar/less/oscar/footer.less
new file mode 100644
index 000000000..0b25e735f
--- /dev/null
+++ b/searx/static/oscar/less/oscar/footer.less
@@ -0,0 +1,19 @@
+// Sticky footer styles
+
+html {
+ position: relative;
+ min-height: 100%;
+}
+
+body {
+ /* Margin bottom by footer height */
+ margin-bottom: 80px;
+}
+
+.footer {
+ position: absolute;
+ bottom: 0;
+ width: 100%;
+ /* Set the fixed height of the footer here */
+ height: 60px;
+}
diff --git a/searx/static/oscar/less/oscar/oscar.less b/searx/static/oscar/less/oscar/oscar.less
new file mode 100644
index 000000000..4c80dcd79
--- /dev/null
+++ b/searx/static/oscar/less/oscar/oscar.less
@@ -0,0 +1,9 @@
+@import "footer.less";
+
+@import "checkbox.less";
+
+@import "results.less";
+
+@import "search.less";
+
+@import "cursor.less";
diff --git a/searx/static/oscar/less/oscar/results.less b/searx/static/oscar/less/oscar/results.less
new file mode 100644
index 000000000..06c8a1740
--- /dev/null
+++ b/searx/static/oscar/less/oscar/results.less
@@ -0,0 +1,41 @@
+// default formating of results
+.result-default {
+ clear: both;
+}
+
+// image formating of results
+.result-images {
+ float: left !important;
+}
+
+.img-thumbnail {
+ margin: 5px;
+ max-height: 128px;
+ min-height: 128px;
+}
+
+// video formating of results
+.result-videos {
+ clear: both;
+}
+
+// torrent formating of results
+.result-torrents {
+ clear: both;
+}
+
+// suggestion
+.suggestion_item {
+ margin: 2px 5px;
+}
+
+// download result
+.result_download {
+ margin-right: 5px;
+}
+
+// page forward, backward
+#pagination {
+ margin-top: 30px;
+ padding-bottom: 50px;
+}
diff --git a/searx/static/oscar/less/oscar/search.less b/searx/static/oscar/less/oscar/search.less
new file mode 100644
index 000000000..f95ab50d4
--- /dev/null
+++ b/searx/static/oscar/less/oscar/search.less
@@ -0,0 +1,4 @@
+.search_categories {
+ margin:10px 0;
+ text-transform: capitalize;
+}