aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTill Hoeppner2014-11-25 22:35:56 +0100
committerTill Hoeppner2014-11-25 22:35:56 +0100
commit548df8ca49810fd584b632cc579ab396b8cb48a1 (patch)
treebe60153d250b5661e07d5e41018a05d20aa3d667 /src
parent0e54c6360cb57265c27d10217fbb6eccf6ac734c (diff)
downloadsersve-548df8ca49810fd584b632cc579ab396b8cb48a1.tar.gz
sersve-548df8ca49810fd584b632cc579ab396b8cb48a1.tar.xz
sersve-548df8ca49810fd584b632cc579ab396b8cb48a1.zip
Styling, directory viewing and dumb binary detection.
Diffstat (limited to 'src')
-rw-r--r--src/constants.rs78
1 files changed, 78 insertions, 0 deletions
diff --git a/src/constants.rs b/src/constants.rs
new file mode 100644
index 0000000..052d508
--- /dev/null
+++ b/src/constants.rs
@@ -0,0 +1,78 @@
+pub const CSS: &'static str =
+r"
+* {
+ padding:0;
+ margin:0;
+}
+
+body {
+ color: #333;
+ font: 14px Sans-Serif;
+ padding: 50px;
+ background: #eee;
+}
+
+h1 {
+ text-align: center;
+ padding: 20px 0 12px 0;
+ margin: 0;
+}
+h2 {
+ font-size: 16px;
+ text-align: center;
+ padding: 0 0 12px 0;
+}
+
+#container {
+ box-shadow: 0 5px 10px -5px rgba(0,0,0,0.5);
+ position: relative;
+ background: white;
+}
+
+table {
+ background-color: #F3F3F3;
+ border-collapse: collapse;
+ width: 100%;
+ margin: 15px 0;
+}
+
+th {
+ background-color: #215fa4;
+ color: #FFF;
+ cursor: pointer;
+ padding: 5px 10px;
+}
+
+th small {
+ font-size: 9px;
+}
+
+td, th {
+ text-align: left;
+}
+
+a {
+ text-decoration: none;
+}
+
+td a {
+ color: #001c3b;
+ display: block;
+ padding: 5px 10px;
+}
+th a {
+ padding-left: 0
+}
+
+tr:nth-of-type(odd) {
+ background-color: #E6E6E6;
+}
+
+tr:hover td {
+ background-color:#CACACA;
+}
+
+tr:hover td a {
+ color: #000;
+}
+";