Skip to content

Instantly share code, notes, and snippets.

View slater's full-sized avatar
💭
m... moo...?

Mark Slater slater

💭
m... moo...?
View GitHub Profile
@slater
slater / dn2
Created November 24, 2014 04:25
DN 2.0 tools
<%@ Master Language="C#" MasterPageFile="~/MasterPages/SkinDefault.Master" AutoEventWireup="true" %>
<asp:Content ContentPlaceHolderID="head" runat="server">
<asp:ContentPlaceHolder ID="head" runat="server" />
<!--
<style type="text/css">
/* Overrides */
html body #nfgContainer, html body #nfgContainer img, html body #nfgContainer h1, html body #nfgContainer h2, html body #nfgContainer h3, html body #nfgContainer h4, html body #nfgContainer h5, html body #nfgContainer h6, html body #nfgContainer p, html body #nfgContainer a, html body #nfgContainer span, html body #nfgContainer ul, html body #nfgContainer li, html body #nfgContainer div, html body #nfgContainer input, html body #nfgContainer textarea, html body #nfgContainer .clear, html body #nfgContainer .button, html body #nfgContainer .clearfix, html body #nfgContainer table, html body #nfgContainer tr, html body #nfgContainer td, html body #nfgContainer label, html body #nfgContainer section, html body #nfgContainer article, html body #nfgContainer mai
@slater
slater / CSS minimizer
Created November 24, 2014 04:24
CSS minimizer and de-commentor in PHP
<head>
<title>CSS Minimizer and de-commentor</title>
<style type="text/css">
* {margin:0; padding:0; border:0; box-sizing:border-box; outline:0; font-family: sans-serif; font-size:medium !important;}
body {width:50%; margin:1rem auto;}
textarea, input {border:1px solid #ccc; border-radius:3px 3px; margin:0 0 1rem 0; padding:1rem;}
input[type=submit] {width:50%; margin:0 auto; display: block; border-bottom:1px solid #aaa; cursor: pointer; box-shadow: 0 3px 7px rgba(0,0,0,0.1); background-color:#eee;}
input[type=submit]:hover {border:1px solid #aaa; background-color:#aaa; color:#fff;}
</style>