Small UI improvement to snippet form
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
0253c949a2
commit
8fc9b5c0e2
2 changed files with 1 additions and 12 deletions
|
@ -1,14 +1,3 @@
|
||||||
.snippet.file-holder {
|
|
||||||
.file-title {
|
|
||||||
.snippet-file-name {
|
|
||||||
padding: 4px 10px;
|
|
||||||
position: relative;
|
|
||||||
top: -4px;
|
|
||||||
left: -4px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.my-snippets li:first-child {
|
.my-snippets li:first-child {
|
||||||
h4 { margin-top: 0; }
|
h4 { margin-top: 0; }
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
.col-sm-10
|
.col-sm-10
|
||||||
.file-holder.snippet
|
.file-holder.snippet
|
||||||
.file-title
|
.file-title
|
||||||
= f.text_field :file_name, placeholder: "example.rb", class: 'snippet-file-name', required: true
|
= f.text_field :file_name, placeholder: "example.rb", class: 'form-control snippet-file-name', required: true
|
||||||
.file-content.code
|
.file-content.code
|
||||||
%pre#editor= @snippet.content
|
%pre#editor= @snippet.content
|
||||||
= f.hidden_field :content, class: 'snippet-file-content'
|
= f.hidden_field :content, class: 'snippet-file-content'
|
||||||
|
|
Loading…
Reference in a new issue