More style changes

This commit is contained in:
Shadowfacts 2020-08-02 18:26:16 -04:00
parent 4f3cf5c11a
commit dfdde04fc2
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
2 changed files with 53 additions and 4 deletions

View File

@ -1,3 +1,5 @@
$accent-color: #1b4ad6;
body { body {
font-family: -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif; font-family: -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
} }
@ -27,3 +29,53 @@ header nav {
} }
} }
table {
width: 100%;
margin-bottom: 1rem;
}
form {
margin-bottom: 1rem;
label, input:not([type=file]), textarea {
display: block;
}
input, textarea {
font-size: 1rem;
}
input:not([type=file]), textarea {
width: 100%;
padding: 2px;
margin-bottom: 0.5rem;
border: 1px solid lightgray;
border-radius: 5px;
}
textarea {
min-height: 200px;
max-width: 100%;
min-width: 100%;
}
}
button, input[type=submit] {
padding: 0.25rem 1.5rem;
border: 1px solid darken($accent-color, 10%);
border-radius: 5px;
background-color: $accent-color;
color: white;
font-size: 1rem;
&:hover {
border-color: darken($accent-color, 25%);
background-color: darken($accent-color, 10%);
}
}
a {
color: $accent-color;
}

View File

@ -4,7 +4,6 @@
<thead> <thead>
<tr> <tr>
<th>Title</th> <th>Title</th>
<th>Content</th>
<th></th> <th></th>
</tr> </tr>
@ -12,11 +11,9 @@
<tbody> <tbody>
<%= for page <- @pages do %> <%= for page <- @pages do %>
<tr> <tr>
<td><%= page.title %></td> <td><%= link page.title, to: Routes.page_path(@conn, :show, page) %></td>
<td><%= page.content %></td>
<td> <td>
<span><%= link "Show", to: Routes.page_path(@conn, :show, page) %></span>
<span><%= link "Edit", to: Routes.page_path(@conn, :edit, page) %></span> <span><%= link "Edit", to: Routes.page_path(@conn, :edit, page) %></span>
<span><%= link "Delete", to: Routes.page_path(@conn, :delete, page), method: :delete, data: [confirm: "Are you sure?"] %></span> <span><%= link "Delete", to: Routes.page_path(@conn, :delete, page), method: :delete, data: [confirm: "Are you sure?"] %></span>
</td> </td>