Skip to content

Commit

Permalink
more sassy
Browse files Browse the repository at this point in the history
  • Loading branch information
boznik committed Apr 29, 2017
1 parent 615beac commit d412261
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 35 deletions.
5 changes: 3 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand All @@ -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']);
}
3 changes: 0 additions & 3 deletions css/soe_regions.css
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -14,6 +12,5 @@
margin-right: auto;
background-color: #9ca4ab; }

/* line 15, ../scss/components/_soe_dm_megamenu.scss */
.region-digital-magazine-megamenu {
width: 1170px; }
17 changes: 0 additions & 17 deletions css/soe_regions_megamenu.css

This file was deleted.

4 changes: 0 additions & 4 deletions css/stanford_soe_regions.css

This file was deleted.

File renamed without changes.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
3 changes: 3 additions & 0 deletions scss/components/_soe_dm_megamenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@
.region-digital-magazine-megamenu {
width: 1170px;
}
.test {

}
16 changes: 8 additions & 8 deletions stanford_soe_regions.module
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d412261

Please sign in to comment.