[Groonga-commit] ranguba/epub-searcher at 27dd1ff [master] Migrate Bootstrap version from 2 to 3

Back to archive index

KITAITI Makoto null+****@clear*****
Tue Dec 23 06:14:02 JST 2014


KITAITI Makoto	2014-12-23 06:14:02 +0900 (Tue, 23 Dec 2014)

  New Revision: 27dd1ff23845cf0e8be3c1da722a8fe817a4f6cf
  https://github.com/ranguba/epub-searcher/commit/27dd1ff23845cf0e8be3c1da722a8fe817a4f6cf

  Message:
    Migrate Bootstrap version from 2 to 3
    
    According to http://getbootstrap.com/migration/

  Modified files:
    app/stylesheets/groonga.scss
    app/views/index.haml
    public/stylesheets/groonga.css

  Modified: app/stylesheets/groonga.scss (+7 -2)
===================================================================
--- app/stylesheets/groonga.scss    2014-12-23 05:08:19 +0900 (a008b5b)
+++ app/stylesheets/groonga.scss    2014-12-23 06:14:02 +0900 (831e9c3)
@@ -1,5 +1,10 @@
-.centered {
-  text-align: center;
+form {
+  margin-top: 1em;
+  margin-bottom: 1em;
+}
+
+.media-heading {
+  font-weight: 600;
 }
 
 .keyword {

  Modified: app/views/index.haml (+9 -6)
===================================================================
--- app/views/index.haml    2014-12-23 05:08:19 +0900 (649c073)
+++ app/views/index.haml    2014-12-23 06:14:02 +0900 (7936d85)
@@ -3,13 +3,16 @@
   %div{:class => 'page-header'}
     %h1= link_to 'EPUB Searcher', url_for(:index)
 
-  %form{:class => 'form-search centered', :action => '/', :method => 'GET'}
-    %input{:type => 'text', :class => 'input-xxlarge search-query', :name => 'q'}
-    %button{:class => 'btn'} Search
+  %form{:class => 'row', :action => '/', :method => 'GET'}
+    %div{:class => 'form-group'}
+      %div{:class => 'col-md-6 col-md-offset-2'}
+        %input{:type => 'text', :class => 'form-control', :name => 'q'}
+      %div{:class => 'col-md-2'}
+        %button{:class => 'form-control btn btn-default'} Search
 
   %div{:class => 'row'}
-    %div{:class => 'span2'}
-    %div{:class => 'span8'}
+    %div{:class => 'col-md-2'}
+    %div{:class => 'col-md-8'}
       %ul{:class => 'media-list'}
         = partial 'result', :collection => @results if @results
-    %div{:class => 'span2'}
+    %div{:class => 'col-md-2'}

  Modified: public/stylesheets/groonga.css (+6 -2)
===================================================================
--- public/stylesheets/groonga.css    2014-12-23 05:08:19 +0900 (99e86af)
+++ public/stylesheets/groonga.css    2014-12-23 06:14:02 +0900 (ee05149)
@@ -1,5 +1,9 @@
-.centered {
-  text-align: center; }
+form {
+  margin-top: 1em;
+  margin-bottom: 1em; }
+
+.media-heading {
+  font-weight: 600; }
 
 .keyword {
   color: red; }
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index