Skip to content

Instantly share code, notes, and snippets.

@mariafromkorea
mariafromkorea / BTM_Devops.md
Last active February 13, 2019 17:07
Internal DevOps and Process

#Create New Solr 5 Core

  1. cd in the site root NOT the solr root
  2. run: solr create_core -c wvr -d ./sites/all/modules/contrib/search_api_solr/solr-conf/5.x
  3. swap out the moniker

#Optimize Local Images

  1. cd into theme directory
  2. Run:
    • find images/ -iname *.jpg -exec jpegoptim -p -m70 --strip-all {} ;
  • find . -name *.png | xargs optipng -nc -nb -o7 -full
@mariafromkorea
mariafromkorea / vrFusion Social Media Icons
Last active August 29, 2015 14:06
New Social Icon Partial for vrFusion Sites
//============================
// Social Icons - Footer
//============================
$social-layout: vertical;
$social-spacing: 0;
$social-gap_width: 0.5em; /* Set gap between icons */
$speed: 150ms;
.vrweb-social{
margin:0;
=====================================================
Remove Old IE Splitter & Implement AdvAgg CSS Spliter
=====================================================
#There are 2 different legacy CSS splitters that may be on your site and need to be removed before implementing the new AdvAgg module.
-If your split stylesheets are named in the format of vrweb_foundation_2.css, vrweb_foundation_3.cs (etc.) the configuration for the splitter is in /sites/all/themes/custom/vrweb_foundation/config.rb
Open this file and remove lines #6-#66 and #95-#97.
-If your split stylesheets are named in the format of vrweb_foundation_ie.css, vrweb_foudation_ie-blessed1.css (etc.), the configuration for the splitter are in Gruntfile.js and package.json under /sites/all/themes/custom/vrweb_foundation/
@mariafromkorea
mariafromkorea / cross-browser-select-input-styles
Last active October 26, 2016 20:00
Form Element Styles
//Set global height, border, box shadow and radius for input field and selects
//Remove webkit appearance
input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], select, .form-select:not(.chosen-container), .chosen-container .chosen-single, textarea{
-webkit-appearance:none;
/*replace these scss styles with css if needed*/
@include box-shadow(none);
@include border-radius(0px);
border-color:#ccc;
height:35px;
}