diff --git a/src/kits/network/libnetapi/GopherRequest.cpp b/src/kits/network/libnetapi/GopherRequest.cpp index d4a53fffa6..8a13313f92 100644 --- a/src/kits/network/libnetapi/GopherRequest.cpp +++ b/src/kits/network/libnetapi/GopherRequest.cpp @@ -110,6 +110,63 @@ static struct { { GOPHER_TYPE_NONE, NULL } }; +static const char *kStyleSheet = "\n" +"/*\n" +" * gopher listing style\n" +" */\n" +"\n" +"body#gopher {\n" +" /* margin: 10px;*/\n" +" background-color: Window;\n" +" color: WindowText;\n" +" font-size: 100%;\n" +" padding-bottom: 2em; }\n" +"\n" +"body#gopher div.uplink {\n" +" padding: 0;\n" +" margin: 0;\n" +" position: fixed;\n" +" top: 5px;\n" +" right: 5px; }\n" +"\n" +"body#gopher h1 {\n" +" padding: 5mm;\n" +" margin: 0;\n" +" border-bottom: 2px solid #777; }\n" +"\n" +"body#gopher span {\n" +" margin-left: 1em;\n" +" padding-left: 2em;\n" +" font-family: 'DejaVu Sans Mono', Courier, monospace;\n" +" word-wrap: break-word;\n" +" white-space: pre-wrap; }\n" +"\n" +"body#gopher span.error {\n" +" color: #f00; }\n" +"\n" +"body#gopher span.unknown {\n" +" color: #800; }\n" +"\n" +"body#gopher span.dir {\n" +" background-image: url('resource:icons/directory.png');\n" +" background-repeat: no-repeat;\n" +" background-position: bottom left; }\n" +"\n" +"body#gopher span.text {\n" +" background-image: url('resource:icons/content.png');\n" +" background-repeat: no-repeat;\n" +" background-position: bottom left; }\n" +"\n" +"body#gopher span.query {\n" +" background-image: url('resource:icons/search.png');\n" +" background-repeat: no-repeat;\n" +" background-position: bottom left; }\n" +"\n" +"body#gopher span.img img {\n" +" display: block;\n" +" margin-left:auto;\n" +" margin-right:auto; }\n"; + static const int32 kGopherBufferSize = 4096; static const bool kInlineImages = true; @@ -612,10 +669,9 @@ BGopherRequest::_ParseInput(bool last) "\n" //FIXME: fix links - "\n" - "\n" + //"\n" + "\n" "" << pageTitle << "\n" "\n" "\n"