PatMigliaccio

I'm Pat, a software developer. You'll find a collection of articles I've written as well as open-source code I've worked on here.

Operating at the moment.

Settings / Attributes

Fill

<path style="fill:#656c7a;" />

Size

<svg width="24" height="24" viewBox="0 0 24 24">

Resources

Icon Finder

SVG Icons with filtering for free usage.

https://www.iconfinder.com/search/?q=linkedin&license=2&maximum=32&type=vector&price=free

Misc

Trim SVG Whitespae

Sets the viewable area to the edges of the SVG, mimicking a trim of an image. After use, saving the HTML to a file preserves the changes.

// Reference: https://gist.github.com/john-doherty/2ad94360771902b16f459f590b833d44

function trimSvgWhitespace() {
  var svgs = document.getElementsByTagName("svg");

  for (var i = 0, l = svgs.length; i < l; i++) {
    var svg = svgs[i],
      // retrieves visual boundary
      box = svg.getBBox(),
      viewBox = [box.x, box.y, box.width, box.height].join(" ");

    // set viewable area
    svg.setAttribute("viewBox", viewBox);
  }
}