From 541d558e3ce4378326f07311e9aad692ef8be74b Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Mon, 16 Jan 2012 23:18:14 -0500 Subject: [PATCH] Tons --- snipt/media/cache/snipt.css | 52 +++++++++++++++++++++++++++++++++++++ snipt/media/cache/snipt.js | 9 ++++--- snipt/media/css/style.css | 52 +++++++++++++++++++++++++++++++++++++ 3 files changed, 109 insertions(+), 4 deletions(-) diff --git a/snipt/media/cache/snipt.css b/snipt/media/cache/snipt.css index 94fd272..294f976 100644 --- a/snipt/media/cache/snipt.css +++ b/snipt/media/cache/snipt.css @@ -991,6 +991,9 @@ article.private-snipt div.container header { background: url('https://snipt.s3.amazonaws.com/images/private-icon.png') top right no-repeat, -moz-linear-gradient(center top, #ffffff 0%, #fffaf2 100%); background: url('https://snipt.s3.amazonaws.com/images/private-icon.png') top right no-repeat, -moz-gradient(center top, #ffffff 0%, #fffaf2 100%); } +article.private-snipt div.container header h1 a { + padding-right: 25px; +} div.pagination { margin: 0 15px 35px 15px; text-align: center; @@ -1013,6 +1016,55 @@ div.pagination ul li.active a { div.pagination ul li.prev { line-height: 2px; } +body.detail div.right-y { + display: none; +} +body.detail section.main div.inner { + width: 100%; +} +body.detail section.main div.inner section.snipts div#disqus_thread { + margin-bottom: 0; + margin-left: 15px; + width: 825px; +} +body.detail section.main div.inner section.snipts div#disqus_thread #dsq-content { + margin-top: -38px; +} +body.detail section.main div.inner section.snipts div#disqus_thread #dsq-content #dsq-global-toolbar { + margin-bottom: 18px; + margin-top: 0; +} +body.detail section.main div.inner section.snipts div#disqus_thread #dsq-content #dsq-sort-by { + display: none; +} +body.detail section.main div.inner section.snipts div#disqus_thread #dsq-content .dsq-comment-text { + color: #666; +} +body.detail section.main div.inner section.snipts div#disqus_thread #dsq-content h3 { + display: none; +} +body.detail section.main div.inner section.snipts div#disqus_thread #dsq-footer { + display: none; +} +body.detail section.main div.inner section.snipts article.snipt { + margin-bottom: 0; +} +body.detail section.main div.inner section.snipts article.snipt div.container { + width: 839px; +} +body.detail section.main div.inner section.snipts article.snipt div.container header h1 a { + white-space: normal; +} +body.detail section.main div.inner section.snipts article.snipt div.container section.code { + height: auto; +} +body.detail section.main div.inner section.snipts article.snipt div.container:after { + bottom: 11px; + height: 23px; +} +body.detail section.main div.inner section.snipts article.snipt aside { + margin-right: 0; +} .group:after { content: "."; display: block; diff --git a/snipt/media/cache/snipt.js b/snipt/media/cache/snipt.js index d003a91..0c41def 100644 --- a/snipt/media/cache/snipt.js +++ b/snipt/media/cache/snipt.js @@ -996,7 +996,7 @@ jQuery(function($) { events: { 'click a.copy': 'copy', 'click a.expand': 'expand', - 'click .container': 'clickSelect', + 'click .container': 'selectFromClick', 'copy': 'copy', 'detail': 'detail', 'deselect': 'deselect', @@ -1006,9 +1006,6 @@ jQuery(function($) { 'select': 'select' }, - clickSelect: function() { - this.select(true); - }, copy: function() { var cmd; if (navigator.platform == 'MacPPC' || @@ -1031,6 +1028,7 @@ jQuery(function($) { expand: function() { this.$container.toggleClass('expanded', 100); this.$tags.toggleClass('expanded'); + this.select(); return false; }, next: function() { @@ -1061,6 +1059,9 @@ jQuery(function($) { } window.$selected = this.$el; + }, + selectFromClick: function() { + this.select(true); } }); SniptListView = Backbone.View.extend({ diff --git a/snipt/media/css/style.css b/snipt/media/css/style.css index d7e0f78..2182c82 100644 --- a/snipt/media/css/style.css +++ b/snipt/media/css/style.css @@ -587,6 +587,9 @@ article.private-snipt div.container header { background: url('https://snipt.s3.amazonaws.com/images/private-icon.png') top right no-repeat, -moz-linear-gradient(center top, #ffffff 0%, #fffaf2 100%); background: url('https://snipt.s3.amazonaws.com/images/private-icon.png') top right no-repeat, -moz-gradient(center top, #ffffff 0%, #fffaf2 100%); } +article.private-snipt div.container header h1 a { + padding-right: 25px; +} div.pagination { margin: 0 15px 35px 15px; text-align: center; @@ -609,6 +612,55 @@ div.pagination ul li.active a { div.pagination ul li.prev { line-height: 2px; } +body.detail div.right-y { + display: none; +} +body.detail section.main div.inner { + width: 100%; +} +body.detail section.main div.inner section.snipts div#disqus_thread { + margin-bottom: 0; + margin-left: 15px; + width: 825px; +} +body.detail section.main div.inner section.snipts div#disqus_thread #dsq-content { + margin-top: -38px; +} +body.detail section.main div.inner section.snipts div#disqus_thread #dsq-content #dsq-global-toolbar { + margin-bottom: 18px; + margin-top: 0; +} +body.detail section.main div.inner section.snipts div#disqus_thread #dsq-content #dsq-sort-by { + display: none; +} +body.detail section.main div.inner section.snipts div#disqus_thread #dsq-content .dsq-comment-text { + color: #666; +} +body.detail section.main div.inner section.snipts div#disqus_thread #dsq-content h3 { + display: none; +} +body.detail section.main div.inner section.snipts div#disqus_thread #dsq-footer { + display: none; +} +body.detail section.main div.inner section.snipts article.snipt { + margin-bottom: 0; +} +body.detail section.main div.inner section.snipts article.snipt div.container { + width: 839px; +} +body.detail section.main div.inner section.snipts article.snipt div.container header h1 a { + white-space: normal; +} +body.detail section.main div.inner section.snipts article.snipt div.container section.code { + height: auto; +} +body.detail section.main div.inner section.snipts article.snipt div.container:after { + bottom: 11px; + height: 23px; +} +body.detail section.main div.inner section.snipts article.snipt aside { + margin-right: 0; +} .group:after { content: "."; display: block;