You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/09/26 22:23:32 UTC

[whimsy] branch master updated: tweak stylesheet

This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 760413a  tweak stylesheet
760413a is described below

commit 760413a2c01024ae60f68ce46135341b3bba9203
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Tue Sep 26 18:23:20 2017 -0400

    tweak stylesheet
---
 www/board/agenda/public/stylesheets/app.css | 11 +++++++++++
 www/board/agenda/routes.rb                  |  1 +
 www/board/agenda/views/new.html.rb          |  9 ++++-----
 3 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/www/board/agenda/public/stylesheets/app.css b/www/board/agenda/public/stylesheets/app.css
index 87dfb44..48efc03 100644
--- a/www/board/agenda/public/stylesheets/app.css
+++ b/www/board/agenda/public/stylesheets/app.css
@@ -506,3 +506,14 @@ input[type=file]#upload {
   font-size: 24px;
   padding-top: 5px;
 }
+
+/* post a new agenda */
+#new-agenda .text-center {
+  margin: 1em;
+}
+
+#new-agenda textarea {
+  font-family: monospace;
+  overflow: hidden;
+}
+}
diff --git a/www/board/agenda/routes.rb b/www/board/agenda/routes.rb
index c689950..b755dd3 100755
--- a/www/board/agenda/routes.rb
+++ b/www/board/agenda/routes.rb
@@ -354,6 +354,7 @@ get '/new' do
   template = File.read('data/agenda.erb')
   @agenda = Erubis::Eruby.new(template).result(binding)
 
+  @cssmtime = File.mtime('public/stylesheets/app.css').to_i
   _html :new
 end
 
diff --git a/www/board/agenda/views/new.html.rb b/www/board/agenda/views/new.html.rb
index adb7092..f9ac956 100644
--- a/www/board/agenda/views/new.html.rb
+++ b/www/board/agenda/views/new.html.rb
@@ -5,19 +5,18 @@
 _html do
   _base href: @base
   _title 'ASF Board Agenda'
-  _link rel: 'stylesheet', href: "../stylesheets/app.css?#{@cssmtime}"
+  _link rel: 'stylesheet', href: "stylesheets/app.css?#{@cssmtime}"
   _meta name: 'viewport', content: 'width=device-width, initial-scale=1.0'
 
-  _div.container do
+  _div.container.new_agenda! do
     _form method: 'post',  action: @meeting.strftime("%Y-%m-%d/") do
 
-      _div.text_center style: 'margin: 1em' do
+      _div.text_center do
         _button.btn.btn_primary 'Post'
       end
 
       _textarea.form_control @agenda, name: 'agenda',
-        rows: [@agenda.split("\n").length, 20].max,
-        style: 'overflow: hidden'
+        rows: [@agenda.split("\n").length, 20].max
     end
   end
 end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].