From 34ad9aaec7b5f6e2e65c4865659c8fdf18b5de8a Mon Sep 17 00:00:00 2001 From: rulingcom Date: Fri, 17 Sep 2021 16:09:44 +0800 Subject: [PATCH] Updated --- assets/javascripts/app.js | 9 +++++++++ assets/stylesheets/template/layout/content.scss | 9 +++++++-- home/index.html.erb | 5 ++++- template.json | 2 +- 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 51a28e2..afd7ecb 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -623,14 +623,23 @@ extendPanelWidget(); // // } //RWD 自動縮放headerbannner + function headerH() { if ($(window).width() < 768) { const navH = $('.layout-header .navbar-header').outerHeight(); + $('.extra-box').after($('.box')); + }else{ + $('.modules-menu-level-0').after($('.box')); } } headerH(); $(window).resize(function() { headerH(); + if ($(window).width() < 769) { + $('.extra-box').after($('.box')); + }else{ + $('.modules-menu-level-0').after($('.box')); + } }) init(); diff --git a/assets/stylesheets/template/layout/content.scss b/assets/stylesheets/template/layout/content.scss index 542f63b..0fdd6a0 100644 --- a/assets/stylesheets/template/layout/content.scss +++ b/assets/stylesheets/template/layout/content.scss @@ -12,10 +12,15 @@ } .layout-content-inner{ +} +.colorwraper{ + padding: 0; } .colerbox{ - background: #288e8e; - padding: 0.9375em; + padding: 0; +} +.colerbox2{ + } .middlebox{ .w-annc__widget-title{ diff --git a/home/index.html.erb b/home/index.html.erb index 765dcfb..6fdc74e 100644 --- a/home/index.html.erb +++ b/home/index.html.erb @@ -13,7 +13,10 @@
-
+
+
+
+
diff --git a/template.json b/template.json index 86b013f..b68f202 100644 --- a/template.json +++ b/template.json @@ -1 +1 @@ -{"key":"asia_kstyle4","title":"asia_Kstyle4","author":"kenlee","thumbnail":"assets/images/design_thumb.png"} \ No newline at end of file +{"key":"asia_Kstyle4","title":"asia_Kstyle4","author":"kenlee","thumbnail":"assets/images/design_thumb.png"} \ No newline at end of file