Skip to content

Instantly share code, notes, and snippets.

@procload
procload / default.css
Created August 16, 2012 19:12
Default DNN CSS
/* GENERIC */
h1, h2{ font-size:20px;font-weight:normal;}
h3, h4{ font-size:12px;font-weight:normal;}
h5, h6, dt{ font-size:11px;font-weight:bold;}
tfoot, thead{font-size:12px;color:#036;}
th{vertical-align:baseline;font-size:12px;font-weight:bold;}
img{border: none;}
a:link, a:visited, a:active{text-decoration:none;color:#036;}
a:hover{text-decoration:underline;color:#f00;}
@procload
procload / modified-dnn.css
Created August 16, 2012 19:17
Modified DNN Admin Stylesheet
.dnn-admin h1, .dnn-admin h2{ font-size:20px;font-weight:normal;}
.dnn-admin h3, .dnn-admin h4{ font-size:12px;font-weight:normal;}
.dnn-admin h5, .dnn-admin h6, .dnn-admin dt{ font-size:11px;font-weight:bold;}
.dnn-admin tfoot, .dnn-admin thead{font-size:12px;color:#036;}
.dnn-admin th{vertical-align:baseline;font-size:12px;font-weight:bold;}
.dnn-admin img{border: none;}
.dnn-admin a:link,
.dnn-admin a:visited,
.dnn-admin a:active{text-decoration:none;color:#036;}
.dnn-admin a:hover{text-decoration:underline;color:#f00;}
# call jRespond and add breakpoints
jRes = jRespond([
label: "handheld"
enter: 0
exit: 768
,
label: "tablet"
enter: 768
exit: 939
,
$('.carousel-item').each ->
pattern = /url\(|\)|"|'/g;
background = $(this).css('backgroundImage').replace(pattern,"");
console.log background
$(this).anystretch background
positionX: 'right'
.thumbnail-header {
min-height: 200px
.item & {
min-height: 305px;
}
}
//Results in
.thumbnail-header {
min-height: 200px
// Public SCSS file which is included in my public.html.erb layout
@import 'base';
@import 'global';
@import 'public/**/*';
// Header Styles
// *************************************
.header-search {
pages = Page.create([
{ :name => 'Test Page One', :permalink => 'test-page-one', :body => 'Lorem ipsum dolor sit amet.', :active => true },
{ :name => 'Test Page Two', :permalink => 'test-page-two', :body => 'Lorem ipsum dolor sit amet.', :active => true },
{ :name => 'Test Page Three', :permalink => 'test-page-three', :body => 'Lorem ipsum dolor sit amet.', :active => true }
{ :name => 'Test Page Four', :permalink => 'test-page-four', :body => 'Lorem ipsum dolor sit amet.', :active => true }
{ :name => 'Child Test Page', :permalink => 'test-page-five', :body => 'Lorem ipsum dolor sit amet.', :active => true, :parent => }
{ :name => 'Child Test Page Two', :permalink => 'test-page-six', :body => 'Lorem ipsum dolor sit amet.', :active => true, :parent => }
{ :name => 'Child Test Page Three', :permalink => 'test-page-seven', :body => 'Lorem ipsum dolor sit amet.', :active => true, :parent => }
{ :name => 'Child Test Page Four', :permalink => 'test-page-eight', :body => 'Lorem ipsum dolor sit a
<style>
a {
border-radius: 3px;
display: inline-block;
background: #000;
color: #FFF;
}
</style>
<a href="#">This is my button</a>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<style>
a {
border-radius: 3px;
display: inline-block;
background: #000;
color: #FFF;
@procload
procload / gist:4665226
Last active December 11, 2015 21:49
Bill Maher's Monologue

America needs to show it's the home of the brave by acting like it. Did you know that the defense budget of the United States is bigger than the defense budgets of the next 13 countries combined? Most of whom are allies and none of whom are enemies.

So, let me ask you, if a guy on your block was so frightened of mostly non-existent prowlers that he spent all his resources on alarm systems and guns and cameras, so much so that he didn't even have enough money left to maintain his home or send his kids to college, would you call him "brave?"

Well...tonight, I'd like to take a few minutes to try and answer that question and find out just how we became such a nation of d**kless, armchair warriors. Starting with the story of the football hero who last night attempted to explain himself to Katie Couric, and even after years of taking vicious hits to the head, still answered her questions better than Sarah Palin did.

But, what puzzles me is not the scandal of whether he lied, but the relationship itself. Oh, sure