Fix editor style bugs (#6399) [deploy]

This commit is contained in:
Ben Halpern 2020-03-02 10:12:10 -05:00 committed by GitHub
parent 561af1e7f3
commit 08cbb837f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions

View file

@ -161,6 +161,7 @@
background: white;
background: var(--theme-container-background, white);
resize: none;
font-family: $monospace;
@media screen and (min-width: 600px) {
font-size: 29px;
height: 50px;
@ -170,14 +171,11 @@
color: var(--theme-secondary-color, #8f949c);
}
&.articleform__titlepreview {
height: 26px;
margin-bottom: 0px;
margin-top: -3px;
margin-bottom: 1px;
@media screen and (min-width: 600px) {
height: 34px;
margin-top: 0px;
margin-bottom: 4px;
height: 32px;
margin-top: 2px;
}
}
}

View file

@ -18,16 +18,16 @@
<% if article.main_image.present? %>
<div class="articleform__mainimage"><img src="<%= article.main_image %>"></div>
<% end %>
<input class="articleform__title articleform__titlepreview" type="text" value="<%= article.title %>" placeholder="Title" />
<input class="articleform__title articleform__titlepreview" type="text" value="<%= article.title %>" placeholder="Title" name="title" />
<div class="articleform__detailfields">
<div class="articleform__tagswrapper">
<textarea type="text" class="articleform__tags" placeholder="4 tags max, comma separated, no spaces or special characters"><%= article.cached_tag_list %></textarea>
<textarea type="text" class="articleform__tags" placeholder="4 tags max, comma separated, no spaces or special characters" name="tags"><%= article.cached_tag_list %></textarea>
</div>
<button class="articleform__detailsButton articleform__detailsButton--image"></button>
<button class="articleform__detailsButton articleform__detailsButton--moreconfig"></button>
</div>
<% end %>
<textarea class="articleform__body" placeholder="Body Markdown" name="body_markdown" style="margin-top: -4px"><%= article.body_markdown %></textarea>
<textarea class="articleform__body" placeholder="Body Markdown" name="body_markdown"><%= article.body_markdown %></textarea>
<div>
<button class="articleform__detailsButton articleform__detailsButton--image articleform__detailsButton--bottom"></button>
<% if version == "v2" %>