5 Commits

  1. 17
      CHANGELOG.md
  2. 39
      assets/css/app.scss
  3. 0
      assets/static/sw.js
  4. 2
      lib/mirage_web/endpoint.ex
  5. 2
      lib/mirage_web/templates/layout/_header.html.eex
  6. 5
      lib/mirage_web/templates/note/_note_meta.html.eex
  7. 6
      lib/mirage_web/templates/note/index.html.eex
  8. 2
      mix.exs

17
CHANGELOG.md

@ -5,6 +5,23 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
<!-- changelog -->
## [v0.5.0](https://git.inhji.de/inhji/mirage/compare/v0.4.0...v0.5.0) (2021-02-05)
### Features:
* table styles, small tweaks
* make name/logo bold
### Bug Fixes:
* remove obsolete note_meta partial
* add dummy sw.js
## [v0.4.0](https://git.inhji.de/inhji/mirage/compare/v0.3.0...v0.4.0) (2021-02-05)

39
assets/css/app.scss

@ -24,6 +24,7 @@ $bg-danger: #a94442;
$color-danger: #f2dede;
$color-text: #ddd;
$border-base: #999;
/* === Imports === */
@ -113,6 +114,10 @@ nav[role=navigation] {
display: inline-block;
}
li.brand {
font-weight: bold;
}
li a {
display: block;
padding: 1rem;
@ -212,6 +217,18 @@ article {
margin-top: 2rem;
}
p {
margin-bottom: 1rem;
}
hr {
color: transparent;
height: 0;
width: 100%;
border-top: 1px solid $border-base;
margin: 1rem 0;
}
ul, ol {
margin-left: 2rem;
}
@ -220,6 +237,28 @@ article {
list-style-type: disc;
}
table {
width: 100%;
overflow-x: auto;
td, th {
border: 1px solid $border-base;
border-width: 0 0 1px;
padding: .5em .75em;
vertical-align: top;
}
thead th {
border-width: 0 0 2px;
}
tbody tr {
&:nth-child(odd) {
background: rgba(0,0,0,0.1);
}
}
}
blockquote, pre {
padding: 1rem;
background: rgba(0,0,0,0.1);

0
assets/static/sw.js

2
lib/mirage_web/endpoint.ex

@ -24,7 +24,7 @@ defmodule MirageWeb.Endpoint do
at: "/",
from: :mirage,
gzip: false,
only: ~w(css fonts images js favicon.ico robots.txt)
only: ~w(css fonts images js favicon.ico robots.txt sw.js)
# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.

2
lib/mirage_web/templates/layout/_header.html.eex

@ -1,7 +1,7 @@
<header>
<nav role="navigation">
<ul>
<li>
<li class="brand">
<a href="/">Mirage</a>
</li>
<li>

5
lib/mirage_web/templates/note/_note_meta.html.eex

@ -1,5 +0,0 @@
<aside>
<%= link to: Routes.note_path(@conn, :show, @note) do %>
<time datetime="<%= @note.inserted_at %>"><%= @note.inserted_at %></time>
<% end %>
</aside>

6
lib/mirage_web/templates/note/index.html.eex

@ -11,7 +11,11 @@
<%= Earmark.as_html!(note.content) |> raw %>
</div>
<%= render "_note_meta.html", conn: @conn, note: note %>
<aside>
<%= link to: Routes.note_path(@conn, :show, note) do %>
<time datetime="<%= note.inserted_at %>"><%= note.inserted_at %></time>
<% end %>
</aside>
</article>
<% end %>
</section>

2
mix.exs

@ -1,7 +1,7 @@
defmodule Mirage.MixProject do
use Mix.Project
@version "0.4.0"
@version "0.5.0"
def project do
[

Loading…
Cancel
Save