Skip to content

Commit

Permalink
Temporary style tweaks to /admin for #53
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoltan Olah committed Oct 27, 2014
1 parent 4439a4a commit 98ee701
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
6 changes: 1 addition & 5 deletions client/stylesheets/globals/layout.import.less
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,5 @@ body {
// phone chrome
#admin {
background-color: white;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
.position(absolute, 0, 0, 0, 0);
}
3 changes: 2 additions & 1 deletion client/stylesheets/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@
@import '../templates/not-found.import.less';
@import '../templates/recipe.import.less';
@import '../templates/recipes.import.less';
@import '../templates/share-overlay.import.less';
@import '../templates/share-overlay.import.less';
@import '../templates/admin.import.less';
8 changes: 4 additions & 4 deletions client/templates/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
{{#if isAdmin}}
<h1>Admin</h1>

<a href="/">Home</a>
<a href="/">Back</a>

<form>
<label>Latest News</label>
<input name="text" type="text" value="{{latestNews.text}}" />
<button type="submit">Save</button>
<label>Set Latest News</label>
<textarea name="text" rows="5">{{latestNews.text}}</textarea>
<button type="submit" class="btn-primary">Save</button>
</form>
{{else}}
<h1>Forbidden</h1>
Expand Down
12 changes: 12 additions & 0 deletions client/templates/admin.import.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#admin {
padding: 20px;

label, input, textarea, button {
display: block;
margin-top: 10px;
}

textarea {
border: 1px solid @color-raw;
}
}

0 comments on commit 98ee701

Please sign in to comment.