Browse Source

fix: make hero styles more specific

main
Inhji Y. 8 months ago
parent
commit
de3ec6b35d
  1. 4
      assets/css/app.scss
  2. 2
      lib/mirage_web/live/note_link_live/index.html.leex
  3. 2
      lib/mirage_web/live/note_link_live/show.html.leex
  4. 2
      lib/mirage_web/live/show_note_live.html.leex
  5. 2
      lib/mirage_web/templates/note/edit.html.eex
  6. 2
      lib/mirage_web/templates/note/new.html.eex
  7. 2
      lib/mirage_web/templates/setting/edit.html.eex
  8. 2
      lib/mirage_web/templates/setting/index.html.eex
  9. 2
      lib/mirage_web/templates/setting/show.html.eex
  10. 2
      lib/mirage_web/templates/topic/index.html.eex
  11. 2
      lib/mirage_web/templates/user/index.html.eex
  12. 2
      lib/mirage_web/templates/user_registration/new.html.eex
  13. 2
      lib/mirage_web/templates/user_session/new.html.eex
  14. 2
      lib/mirage_web/templates/user_settings/edit.html.eex

4
assets/css/app.scss

@ -98,7 +98,7 @@ footer {
padding: 2rem;
}
section:not(.hero) + section,
section + section,
div + section {
margin-top: 2rem;
}
@ -190,7 +190,7 @@ button[type=submit], a.button {
}
}
.hero {
header.hero {
margin: 0 -2rem 0;
background: $bg-base;
padding: 2rem;

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

@ -1,4 +1,4 @@
<div class="hero">
<header class="hero">
<h1>Listing Links</h1>
</div>

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

@ -1,4 +1,4 @@
<div class="hero">
<header class="hero">
<h1>Show Note link</h1>
</div>

2
lib/mirage_web/live/show_note_live.html.leex

@ -1,4 +1,4 @@
<div class="hero">
<header class="hero">
<h1><span class="id"><%= "##{@note.id}" %></span> <%= @note.title %></h1>
<p><time datetime="<%= @note.inserted_at %>"><%= Timex.from_now(@note.inserted_at) %></time> / <time datetime="<%= @note.updated_at %>"><%= Timex.from_now(@note.updated_at) %></time></p>
<p class="tags">

2
lib/mirage_web/templates/note/edit.html.eex

@ -1,4 +1,4 @@
<div class="hero">
<header class="hero">
<h1>Edit Note</h1>
</div>

2
lib/mirage_web/templates/note/new.html.eex

@ -1,4 +1,4 @@
<div class="hero">
<header class="hero">
<h1>New Note</h1>
</div>

2
lib/mirage_web/templates/setting/edit.html.eex

@ -1,4 +1,4 @@
<div class="hero">
<header class="hero">
<h1>Edit Setting <%= @setting.name %></h1>
</div>

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

@ -1,6 +1,6 @@
<%= render MirageWeb.SharedView, "user_menu.html", assigns %>
<div class="hero">
<header class="hero">
<h1>Listing Settings</h1>
</div>

2
lib/mirage_web/templates/setting/show.html.eex

@ -1,4 +1,4 @@
<div class="hero">
<header class="hero">
<h1>Setting '<%= @setting.name %>'</h1>
</div>

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

@ -1,4 +1,4 @@
<div class="hero">
<header class="hero">
<h1>Listing Topics</h1>
</div>

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

@ -1,6 +1,6 @@
<%= render MirageWeb.SharedView, "user_menu.html", assigns %>
<div class="hero">
<header class="hero">
<h1>Hi <%= @current_user.email %></h1>
</div>

2
lib/mirage_web/templates/user_registration/new.html.eex

@ -1,4 +1,4 @@
<div class="hero">
<header class="hero">
<h1>Register</h1>
</div>

2
lib/mirage_web/templates/user_session/new.html.eex

@ -1,4 +1,4 @@
<div class="hero">
<header class="hero">
<h1>Log in</h1>
</div>

2
lib/mirage_web/templates/user_settings/edit.html.eex

@ -1,4 +1,4 @@
<div class="hero">
<header class="hero">
<h1>Settings</h1>
</div>

Loading…
Cancel
Save