Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moving CSS to an external file.

  • Loading branch information...
commit b621899c205172b3a641c5bb17831de32fc4efbe 1 parent 40bf5a2
@akoprow akoprow authored
Showing with 36 additions and 33 deletions.
  1. +30 −0 resources/style.css
  2. +6 −33 src/webshell.opa
View
30 resources/style.css
@@ -0,0 +1,30 @@
+ #Body {
+ background-color: #444;
+ }
+ #terminal {
+ border: 1px solid gray;
+ padding: 4px;
+ margin-top: 80px;
+ overflow-y: scroll;
+ width: 100%;
+ height: 500px;
+ font-family: courier, monospace;
+ color: white;
+ font-size: 14px;
+ background-color: black;
+ }
+ .search-index {
+ color: yellow;
+ }
+ .search-title {
+ color: red;
+ }
+ .search-pubDate {
+ color: dimgrey;
+ }
+ .username {
+ color: lime;
+ }
+ .prompt {
+ color: #0BC;
+ }
View
39 src/webshell.opa
@@ -121,36 +121,9 @@ dispatcher = parser {
case .* : page()
}
-Server.start(Server.http, { custom: dispatcher })
-
-css = css
- #Body {
- background-color: #444;
- }
- #terminal {
- border: 1px solid gray;
- padding: 4px;
- margin-top: 80px;
- overflow-y: scroll;
- width: 100%;
- height: 500px;
- font-family: courier, monospace;
- color: white;
- font-size: 14px;
- background-color: black;
- }
- .search-index {
- color: yellow;
- }
- .search-title {
- color: red;
- }
- .search-pubDate {
- color: dimgrey;
- }
- .username {
- color: lime;
- }
- .prompt {
- color: #0BC;
- }
+Server.start(Server.http,
+ [ { resources: @static_resource_directory("resources") }
+ , { register: ["resources/style.css"] }
+ , { custom: dispatcher }
+ ]
+ )
Please sign in to comment.
Something went wrong with that request. Please try again.