From 280bce7d0aeee0c219fd5f038249fff3ec32ccf5 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 29 Oct 2015 11:07:23 -0200 Subject: Auto-adjust width --- nuvemwidget.info | 1 + screen.js | 9 +++++++++ style.css | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 screen.js diff --git a/nuvemwidget.info b/nuvemwidget.info index 2c607ba..e8ca9e1 100644 --- a/nuvemwidget.info +++ b/nuvemwidget.info @@ -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 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); diff --git a/style.css b/style.css index f4255d8..67970f9 100644 --- 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 -- cgit v1.2.3