~ecs/ecs.d2evs.net

be417acc02c54d6a1aa7410347ab828417b74f23 — Eyal Sawady 6 months ago 68720ef
Minor aesthetic improvements
2 files changed, 28 insertions(+), 28 deletions(-)

M _templates/page.html.w
M static/style.css
M _templates/page.html.w => _templates/page.html.w +6 -4
@@ 7,9 7,10 @@
	<link type="text/css" rel="stylesheet" href="/static/style.css">
</head>
<body>
	<div class="topnav">
		<a href="/">Home</a>
		<div class="recent">Recent:</div>
  <small>
    <div class="topnav">
      <a href="/">Home</a>
      <div class="recent">Recent:</div>
% for i in $(ls "$root/posts" | sort -rn | head -n3); do
%     file="$(mktemp)"
%     # TODO: is this good enough?


@@ 18,7 19,8 @@
%     echo "<a href=\"/posts/${i%\.w}\">$title</a>"
%     rm "$file"
% done
	</div>
    </div>
  </small>
	<div class="post">
% cat
	</div>

M static/style.css => static/style.css +22 -24
@@ 1,56 1,54 @@
body {
	background-color: black;
	color: white;
  background-color: black;
  color: white;
}

.post pre {
  background-color: #111111;
  color: #ffffff;
  background-color: #222;
  color: #222;
}

.topnav {
  background-color: #111111;
  color: #ffffff;
  overflow: hidden;
.post code {
  background-color: #111;
  color: #fff;
}

a:link {
  color: #777777;
  color: #777;
}

a:visited {
  color: #777777;
  color: #777;
}

a:active {
  color: #ffffff;
  color: #fff;
}

.topnav {
  background-color: #111;
  color: #fff;
  overflow: hidden;
  font-family: monospace;
}

.topnav a {
  float: left;
  color: #ffffff;
  color: #aaa;
  text-align: center;
  padding: 14px 16px;
  padding: 5px 8px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: black;
  color: #aaaaaa;
}

.topnav a.active {
  background-color: white;
  color: #777777;
  color: white;
}

.topnav div {
  float: left;
  background-color: black;
  color: #aaaaaa;
  color: #888;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  padding: 5px 8px;
}