4 Commits

  1. 15
      CHANGELOG.md
  2. 14
      assets/css/app.scss
  3. 2
      lib/mirage_web/live/note_link_live/index.html.leex
  4. 4
      lib/mirage_web/live/page_live.html.leex
  5. 2
      lib/mirage_web/templates/user/index.html.eex
  6. 2
      mix.exs

15
CHANGELOG.md

@ -5,6 +5,21 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
<!-- changelog -->
## [v0.30.0](https://git.inhji.de/inhji/mirage/compare/v0.29.0...v0.30.0) (2021-02-14)
### Features:
* improve markdown styles
* improve card styles
### Bug Fixes:
* show home page markdown properly styles
## [v0.29.0](https://git.inhji.de/inhji/mirage/compare/v0.28.1...v0.29.0) (2021-02-13)

14
assets/css/app.scss

@ -284,15 +284,20 @@ kbd {
}
.cards {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 1rem;
overflow-x: auto;
.card {
border: 1px solid $border-base;
border-radius: 2px;
margin-right: 1rem;
padding: 0.5rem;
text-decoration: none;
min-width: 15rem;
word-break: break-word;
&:last-child {
margin-right: 0;
@ -403,7 +408,7 @@ article {
}
p {
margin-bottom: 1rem;
margin-bottom: 0.5rem;
&:last-child {
margin-bottom: 0;
@ -420,7 +425,8 @@ article {
height: 0;
width: 100%;
border-top: 1px solid $border-base;
margin: 1rem 0;
@include color-assign(border-color, primary-400);
margin: 2rem 0;
}
ul, ol {
@ -429,6 +435,7 @@ article {
ul {
list-style-type: disc;
margin-bottom: 1rem;
}
table {
@ -438,6 +445,7 @@ article {
td, th {
border: 1px solid $border-base;
border-width: 0 0 1px;
@include color-assign(border-color, primary-400);
padding: .5em .75em;
vertical-align: top;
}

2
lib/mirage_web/live/note_link_live/index.html.leex

@ -11,7 +11,7 @@
return_to: Routes.note_link_index_path(@socket, :index) %>
<% end %>
<section class="bg-content width-full grid cards">
<section class="bg-content width-full grid cards wrap">
<%= for note_link <- @notes_links do %>

4
lib/mirage_web/live/page_live.html.leex

@ -5,7 +5,9 @@
<%= if @home_note do %>
<section class="width-full bg-content">
<%= raw @home_note.content_html %>
<div class="content html">
<%= raw @home_note.content_html %>
</div>
</section>
<% else %>
<section class="width-full bg-content">

2
lib/mirage_web/templates/user/index.html.eex

@ -7,7 +7,7 @@
<section class="bg-content width-full">
<h3>📆 Todays Note</h3>
<div class="grid cards">
<div class="cards">
<%= for note <- @notes.today do %>
<%= link to: Routes.live_path(@conn, MirageWeb.ShowNoteLive, note), class: "col card" do %>
<strong><%= note.title %></strong>

2
mix.exs

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

Loading…
Cancel
Save