diff --git a/Gruntfile.js b/Gruntfile.js index 7fb95f2..d41f106 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -5,9 +5,11 @@ module.exports = function(grunt) { options: { lineNumbers: true, sourcemap: 'none', - keepSpecialComments: false }, dist: { + options: { + lineNumbers: false + }, files: { 'css/soe_regions.css': 'scss/soe_regions.scss' } @@ -24,5 +26,4 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-sass'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.registerTask('default', ['watch']); - grunt.registerTask('default', ['stripCssComments']); } diff --git a/css/soe_regions.css b/css/soe_regions.css index 7db7b1b..5f23a11 100644 --- a/css/soe_regions.css +++ b/css/soe_regions.css @@ -1,8 +1,6 @@ -/* line 1, ../scss/components/_soe_dm_megamenu.scss */ #digital-magazine-megamenu { z-index: 9999; } -/* line 4, ../scss/components/_soe_dm_megamenu.scss */ #digital-magazine-megamenu .container { position: absolute; z-index: 9999; @@ -14,6 +12,5 @@ margin-right: auto; background-color: #9ca4ab; } -/* line 15, ../scss/components/_soe_dm_megamenu.scss */ .region-digital-magazine-megamenu { width: 1170px; } diff --git a/css/soe_regions_megamenu.css b/css/soe_regions_megamenu.css deleted file mode 100644 index 8996495..0000000 --- a/css/soe_regions_megamenu.css +++ /dev/null @@ -1,17 +0,0 @@ -#digital-magazine-megamenu { - z-index: 9999; -} -#digital-magazine-megamenu .container { - position: absolute; - z-index: 9999; - display: flex; - align-items: center; - justify-content: center; - padding: 0; - margin-left: auto; - margin-right: auto; - background-color: #9ca4ab; -} -.region-digital-magazine-megamenu { - width: 1170px; -} diff --git a/css/stanford_soe_regions.css b/css/stanford_soe_regions.css deleted file mode 100644 index ed0c577..0000000 --- a/css/stanford_soe_regions.css +++ /dev/null @@ -1,4 +0,0 @@ -#full-width-super-hero { -} - - diff --git a/js/stanford_soe_regions.js b/js/soe_regions.js similarity index 100% rename from js/stanford_soe_regions.js rename to js/soe_regions.js diff --git a/package.json b/package.json index 7690af9..6801105 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,8 @@ "grunt": "^1.0.1", "grunt-contrib-sass": "^1.0.0", "grunt-contrib-watch": "^1.0.0", - "grunt-sass": "^2.0.0" + "grunt-sass": "^2.0.0", + "grunt-strip-css-comments": "^1.3.0", + "grunt-stripcomments": "^0.7.2" } } diff --git a/scss/components/_soe_dm_megamenu.scss b/scss/components/_soe_dm_megamenu.scss index 8996495..a003f7b 100644 --- a/scss/components/_soe_dm_megamenu.scss +++ b/scss/components/_soe_dm_megamenu.scss @@ -15,3 +15,6 @@ .region-digital-magazine-megamenu { width: 1170px; } +.test { + +} diff --git a/stanford_soe_regions.module b/stanford_soe_regions.module index 2286524..12d67e1 100644 --- a/stanford_soe_regions.module +++ b/stanford_soe_regions.module @@ -11,32 +11,32 @@ function stanford_soe_regions_define_regions() { $region['full_width_super_hero'] = array( 'title' => 'Full Width Super Hero', - //'js' => drupal_get_path('module', 'stanford_soe_regions') . '/js/stanford_soe_regions.js', - //'css' => drupal_get_path('module', 'stanford_soe_regions') . '/css/stanford_soe_regions.css', + //'js' => drupal_get_path('module', 'stanford_soe_regions') . '/js/soe_regions.js', + //'css' => drupal_get_path('module', 'stanford_soe_regions') . '/css/soe_regions.css', 'render_callback' => '_full_width_super_hero_render_region', ); $region['content_body_lower'] = array( 'title' => 'Content Body Lower', - //'js' => drupal_get_path('module', 'stanford_soe_regions') . '/js/stanford_soe_regions.js', - //'css' => drupal_get_path('module', 'stanford_soe_regions') . '/css/stanford_soe_regions.css', + //'js' => drupal_get_path('module', 'stanford_soe_regions') . '/js/soe_regions.js', + //'css' => drupal_get_path('module', 'stanford_soe_regions') . '/css/soe_regions.css', 'render_callback' => '_content_body_lower_render_region', ); $region['full_width_middle'] = array( 'title' => 'Full Width Middle', - //'js' => drupal_get_path('module', 'stanford_soe_regions') . '/js/stanford_soe_regions.js', - //'css' => drupal_get_path('module', 'stanford_soe_regions') . '/css/stanford_soe_regions.css', + //'js' => drupal_get_path('module', 'stanford_soe_regions') . '/js/soe_regions.js', + //'css' => drupal_get_path('module', 'stanford_soe_regions') . '/css/soe_regions.css', 'render_callback' => '_full_width_middle_render_region', ); $region['content_body_bottom'] = array( 'title' => 'Content Body Lower', //'js' => drupal_get_path('module', 'stanford_soe_regions') . '/js/stanford_soe_regions.js', - //'css' => drupal_get_path('module', 'stanford_soe_regions') . '/css/stanford_soe_regions.css', + //'css' => drupal_get_path('module', 'stanford_soe_regions') . '/css/soe_regions.css', 'render_callback' => '_content_body_bottom_render_region', ); $region['digital_magazine_megamenu'] = array( 'title' => 'Digital Magazine Megamenu', 'js' => drupal_get_path('module', 'stanford_soe_regions') . '/js/stanford_soe_regions_megamenu.js', - 'css' => drupal_get_path('module', 'stanford_soe_regions') . '/css/stanford_soe_regions_megamenu.css', + 'css' => drupal_get_path('module', 'stanford_soe_regions') . '/css/soe_regions.css', 'render_callback' => '_digital_magazine_megamenu_render_region', ); return $region;