Permalink
Browse files

stylesheet / template work

  • Loading branch information...
1 parent b895b53 commit 716a1dfc9ba60165b8f462067e847a39be0607a2 @gnugeek committed Dec 26, 2008
Showing with 45 additions and 7 deletions.
  1. +0 −1 views/index.haml
  2. +11 −6 views/layout.haml
  3. +34 −0 views/style.sass
View
@@ -1,4 +1,3 @@
-#content
.intro
Welcome to Wordnatra.
%br
View
@@ -5,11 +5,16 @@
%link{:rel=>'stylesheet', :href=>'/stylesheets/style.css', :type => "text/css"}
%script{:type=>'text/javascript', :src=>'jquery.js'}
%body
- #banner Wordnatra
-
- #wordnet-search
- %form{:method => 'post'}
- %input{:type=>'text', :size=>40, :name=>'lemma', :id=>'lemma_search'}
+ #banner
+ Wordnatra
+ #search
+ %form{:method => 'post', :action=> '/'}
+ %input{:type=>'text', :size=>40, :name=>'lemma', :id=>'lemma-search'}
%input{:type =>'submit', :value=>'word'}
+ #content
+ =yield
- =yield
+%script
+ :plain
+ document.getElementById('lemma-search').focus();
+
View
@@ -0,0 +1,34 @@
+body
+ :background #000
+
+#banner
+ :font-family arial
+ :font-size 24px
+ :color #fff
+ :height 40px
+ :background #556
+ :text-align left
+ :padding 5px
+
+#search
+ :height 40px
+ :background #aab
+ :text-align left
+ :font-size 24px
+ :padding 5px
+
+#content
+ :font-family arial
+ :padding 5px
+ :margin 5px
+
+table.results
+ :font-family arial
+ :width 40%
+ :border 1px solid gray
+ :background #aaf
+ td
+ :text-align left
+ th
+ :text-align left
+

0 comments on commit 716a1df

Please sign in to comment.