package current_web

  1. Overview
  2. Docs

Source file style.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
let css = {|
  body {
    margin: 0;
    padding: 0;
  }

  nav {
    margin: 0;
    padding: 0.1em;
    display: block;
    background: black;
    color: #ddd;
    overflow: hidden;
  }

  nav ul {
    float: left;
    list-style-type: none;
    margin: 0;
    padding: 0;
  }

  nav li {
    display: inline;
  }

  nav li:hover {
    background: yellow;
  }

  nav ul.right {
    float: right;
  }

  nav ul.right form {
    padding: 0;
    background: none!important;
  }

  nav ul.right button {
    background: black;
    border: none;
    color: #ddd;
    text-decoration: none;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }

  nav ul.right button:hover {
    color: black;
    background: yellow;
  }

  nav a {
    color: #ddd;
    text-decoration: none;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }

  nav a:hover {
    color: black;
  }

  div#main {
    margin: 0.5em;
  }

  div#main object {
    max-width: 100%;
  }

  table.table {
    border: 1px solid black;
    padding: 0;
    border-collapse: collapse;
  }

  table.table th {
    background: #888;
    color: white;
    padding: 0.1em;
  }

  table.table tr td {
    padding-left: 0.5em;
    padding-right: 0.5em;
    border: 1px solid black;
  }

  table.table tr:nth-child(even) {
    background-color: gainsboro;
  }

  form {
    padding: 0.2em;
  }

  table.log-rules {
    width: 100%;
  }

  table td input {
    box-sizing: border-box;
  }

  table.log-rules td input {
    width: 100%;
  }

  table.log-rules td.score {
    width: 4em;
  }

  table pre {
    margin: 0;
  }

  div.build-history ol {
    display: inline;
    padding: 0;
  }

  div.build-history ol li {
    display: inline
  }

  div.build-history ol li + li:before {
      content: ", ";
      padding: 0 .2em;
  }

  ul.query-form {
    list-style-type: none;
    padding-left: 0;
    width: 100%;
  }

  ul.query-form li {
    display: inline
  }

  ul.query-form li select {
    margin-left: 0.5em;
    margin-right: 2em;
  }

  ul.query-form li input {
    margin-left: 0.5em;
    margin-right: 2em;
  }
|} ^ Current_ansi.css

let r = object
  inherit Resource.t

  val! can_get = `Viewer

  method! private get _ctx =
    let headers = Cohttp.Header.init_with "Content-Type" "text/css" in
    Utils.Server.respond_string ~status:`OK ~headers ~body:css ()
    (*   Server.respond_file ~fname:"style.css" () *)
end