Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 79 additions & 38 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,29 @@ font-family: sans-serif;
color: #333;
}

#content {
background-color: white;
border: 1em solid #aaa;
padding: 1em;
background-image: url("/images/openbsd-logo.gif");
background-repeat: no-repeat;
background-position: top right;
#toolbar, #content, #footer, #search_form {
background-color: #ffffff;
padding: .5em;
margin: .5em;
}

#toolbar {
text-align: center;
padding: .3em;
}

#toolbar a {
text-decoration:none;
color: inherit;
}

#toolbar span#Open {
color: #0000ff;
font-style: oblique;
}

#toolbar span#BSD {
color: #000084;
}

.three ul {
Expand All @@ -34,60 +50,47 @@ font-family: monospace;
padding: 0;
}

h1 {
color: #f00;
background-color: #eee;
border-width: 0;
border-bottom: 1px;
border-left: 1px;
padding-left: 0.5em;
#content h1 {
color: #b93704;
padding-bottom: 0.25em;
border-color: #880;
border-style: solid;
width: 40%;
}

h2 {
#content h2 {
font-style: oblique;
color: #555;
border-width: 0;
border-bottom: 1px;
padding-bottom: 0.5em;
border-color: #880;
border-style: solid;
color: #4177e2;
}

h3, h3 > a {
margin-left: -5px;
#content h3, h3 > a {
margin-left: 0em;
font-style: oblique;
color: #00e;
border-bottom: 0px;
color: #214da5;
margin-bottom: 0px;
}

.long h1 {
width: 70%;
}

#back a {
padding: 0px;
border: 0px;
margin: 0px;
}

a {
color: #03c;
}

a:hover {
background-color: #03c;
color: white;
color: #ffffff;
text-decoration: none;
}

#back a {
padding: 0px;
border: 0px;
margin: 0px;
}

#search_form {
background-color: #eee;
margin-top: 1em;
padding: 1em;
background-color: #fafafa;
margin-top: .5em;
padding: .5em;
display: flex;
flex-direction: column;
}
Expand Down Expand Up @@ -116,10 +119,48 @@ margin: .5em auto;
font-weight: bold;
}

#footer {
text-align: center;
}

pre {
white-space: pre-wrap;
}

#test-depends-list, #reverse-depends-list, #files-list {
display: none;
}

@media (prefers-color-scheme: dark) {

body {
background-color: #222;
}

#content, #toolbar, #footer {
background-color: #111;
color: #eee;
}

#search_form {
background-color: #111;
color: #eee;
}

#content h3, h3 > a, #content h2 {
color: #f2ca30;
}

a {
color: #bdf;
}

#toolbar span#Open {
color: #f2ca30;
}

#content h1, #toolbar span#BSD {
color: #cf4229;
}

}
Binary file removed public/images/openbsd-logo.gif
Binary file not shown.
9 changes: 8 additions & 1 deletion views/layouts/main.tt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@
<script src="//<% request.host %>/javascripts/jquery.js"></script>
</head>
<body>
<div id="toolbar">
<div><h1><a href ="/"><span id="Open">Open</span><span id="BSD">BSD</span> Ports Readme</a></h1></div>
</div>

<div id="content">
<% content %>
</div>

<div id="search_form" class="search_form">
<form name="Search" action="/search">
<fieldset>
Expand Down Expand Up @@ -43,10 +49,11 @@
</fieldset>
</form>
</div>
</div>

<div id="footer">
<a href="/path/databases/ports-readmes-dancer">Ports Readmes <% version %></a>, created on <% creation_date %>, powered by <a href="http://perldancer.org/">Dancer</a> <% dancer_version %>
</div>

<script type="text/javascript" src="//<% request.host %>/javascripts/script.js"></script>
</body>
</html>
3 changes: 3 additions & 0 deletions views/searchresult.tt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<h1>Search result</h1>
<div class="three">
<ul>
<% IF NOT result %>
<p>No results found for your query.</p>
<% END %>
<% FOREACH c IN result %>
<li><a href="<% c.url | url %>"><% c.name | html %></a>
<% END %>
Expand Down