Kouhei Sutou
null+****@clear*****
Wed Jul 5 16:10:07 JST 2017
Kouhei Sutou 2017-07-05 16:10:07 +0900 (Wed, 05 Jul 2017) New Revision: 5c0ad82b6b95159878678e2549c7489b07bca928 https://github.com/ranguba/chupa-text-http-server/commit/5c0ad82b6b95159878678e2549c7489b07bca928 Message: Style Added files: .dir-locals.el Modified files: app/assets/stylesheets/application.scss app/views/extractions/create.html.erb app/views/layouts/application.html.erb Added: .dir-locals.el (+4 -0) 100644 =================================================================== --- /dev/null +++ .dir-locals.el 2017-07-05 16:10:07 +0900 (b168118) @@ -0,0 +1,4 @@ +((scss-mode . ((indent-tabs-mode . nil) + (css-indent-offset . 2))) + (js-mode . ((indent-tabs-mode . nil) + (js-indent-level . 2)))) Modified: app/assets/stylesheets/application.scss (+32 -0) =================================================================== --- app/assets/stylesheets/application.scss 2017-07-05 15:52:44 +0900 (cbd46a7) +++ app/assets/stylesheets/application.scss 2017-07-05 16:10:07 +0900 (d41722e) @@ -1 +1,33 @@ @import "bootstrap"; + +nav { + @extend .navbar; + @extend .navbar-light; + @extend .bg-faded; + + a:first-child { + @extend .navbar-brand; + } +} + +form { + .field { + @extend .form-group; + + label { + } + + input[type=file] { + @extend .form-control-file; + } + } + + .actions { + @extend .form-group; + + input[type=submit] { + @extend .btn; + @extend .btn-primary; + } + } +} Modified: app/views/extractions/create.html.erb (+1 -1) =================================================================== --- app/views/extractions/create.html.erb 2017-07-05 15:52:44 +0900 (db1cc33) +++ app/views/extractions/create.html.erb 2017-07-05 16:10:07 +0900 (479c644) @@ -2,4 +2,4 @@ <%= render 'form', extraction: @extraction %> -<pre><code><%= JSON.pretty_generate(@extraction.extract) %></code>e</pre> +<pre><code><%= JSON.pretty_generate(@extraction.extract) %></code></pre> Modified: app/views/layouts/application.html.erb (+13 -2) =================================================================== --- app/views/layouts/application.html.erb 2017-07-05 15:52:44 +0900 (6271e0b) +++ app/views/layouts/application.html.erb 2017-07-05 16:10:07 +0900 (6e01349) @@ -1,7 +1,12 @@ <!DOCTYPE html> <html> <head> - <title>ChupaTextHttpServer</title> + <meta charset="utf-8"> + <meta name="viewport" + content="width=device-width, initial-scale=1, shrink-to-fit=no"> + + <title>ChupaText</title> + <%= csrf_meta_tags %> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> @@ -9,6 +14,12 @@ </head> <body> - <%= yield %> + <nav> + <%= link_to "ChupaText", root_path %> + </nav> + + <div class="container-fluid"> + <%= yield %> + </div> </body> </html> -------------- next part -------------- HTML����������������������������... Download