]> gitweb.fluxo.info Git - drupal/nuvemwidget.git/commitdiff
Auto-adjust width master
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 29 Oct 2015 13:07:23 +0000 (11:07 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 29 Oct 2015 13:07:23 +0000 (11:07 -0200)
nuvemwidget.info
screen.js [new file with mode: 0644]
style.css

index 2c607ba922ca6d737aae24d704d7f47acd590557..e8ca9e19b97b54792bfe1c3dea989789fc12e126 100644 (file)
@@ -33,6 +33,7 @@ regions[footer_message] = Footer
 
 stylesheets[all][] = style.css
 scripts[] = script.js
+scripts[] = screen.js
 ; Information added by drupal.org packaging script on 2011-09-13
 version = "7.x-1.0"
 core = "7.x"
diff --git a/screen.js b/screen.js
new file mode 100644 (file)
index 0000000..3d1b8c2
--- /dev/null
+++ b/screen.js
@@ -0,0 +1,9 @@
+(function ($) {
+
+  Drupal.behaviors.nuvemWidget = {
+    attach: function (context, settings) {
+      $('.b2-sheet').css('width', $(document).width());
+    }
+  };
+
+})(jQuery);
index f4255d86f1316f5685f45aacc01c21df3a8256c8..67970f926dcb33a8e1d59ce43d155ef312763863 100644 (file)
--- a/style.css
+++ b/style.css
@@ -757,7 +757,7 @@ h2.b2-logo-text a:hover
   cursor:auto;
   /*width: 1000px;*/
   /*width: 700px;*/
-  width: 600px;
+  /*width: 600px;*/
 }
 
 .b2-sheet-body