updated styles for delicious and twitter

This commit is contained in:
B Mathis 2009-11-09 23:38:48 -06:00
parent 8cb2f15487
commit bc033cfa8e
6 changed files with 46 additions and 38 deletions

View File

@ -156,6 +156,15 @@ module Helpers
# My added helpers # My added helpers
def show_part (file)
data = ''
f = File.open(Dir.pwd+"/source/"+file)
f.each_line do |line|
data += line
end
data
end
def shorten_words (string, word_limit = 25) def shorten_words (string, word_limit = 25)
words = string.split(/\s/) words = string.split(/\s/)
if words.size >= word_limit if words.size >= word_limit

View File

@ -6,6 +6,7 @@ tweet_count: 3
show_replies: false show_replies: false
delicious_user: imathis delicious_user: imathis
delicious_count: 3
full_url: full_url:
disqus_short_name: disqus_short_name:
@ -82,13 +83,13 @@ google_analytics: true
- if page.respond_to? :delicious_user - if page.respond_to? :delicious_user
%h4 My Delicious <a class="small" href="http://delicious.com/#{page.delicious_user}">more &rarr;</a> %h4 My Delicious <a class="small" href="http://delicious.com/#{page.delicious_user}">more &rarr;</a>
#delicious #delicious
%script(type="text/javascript" src="http://feeds.delicious.com/v2/js/#{page.delicious_user}?title=&count=5&sort=date&extended") %script(type="text/javascript" src="http://feeds.delicious.com/v2/js/#{page.delicious_user}?title=&count=#{page.delicious_count}&sort=date&extended")
#footer #footer
.page_width .page_width
Copyright &copy; #{Time.now.strftime('%Y')} - #{page.blog_title} - Copyright &copy; #{Time.now.strftime('%Y')} - #{page.blog_title} -
%span.credit Powered by <a href="http://github.com/imathis/octopress/">Octopress</a> %span.credit Powered by <a href="http://github.com/imathis/octopress/">Octopress</a>
- if page.respond_to? :disqus_short_name - if page.respond_to? :disqus_short_name
//Disqus Commens code //Disqus Comments code
:javascript :javascript
(function() { (function() {
var links = document.getElementsByTagName('a'); var links = document.getElementsByTagName('a');

View File

@ -140,7 +140,7 @@ var TwitterGitter = new Class({
//format //format
linkify: function(text) { linkify: function(text) {
//courtesy of Jeremy Parrish (rrish.org) //courtesy of Jeremy Parrish (rrish.org)
return text.replace(/(https?:\/\/\S+)/gi,'<a href="$1">$1</a>').replace(/(^|\s)@(\w+)/g,'$1<a href="http://twitter.com/$2">@$2</a>').replace(/(^|\s)#(\w+)/g,'$1<a href="http://search.twitter.com/search?q=%23$2">#$2</a>'); return text.replace(/(https?:\/\/[\w\-:;?&=+.%#\/]+)/gi,'<a href="$1">$1</a>').replace(/(^|\s)@(\w+)/g,'$1<a class="user" href="http://twitter.com/$2">@$2</a>').replace(/(^|\s)#(\w+)/g,'$1<a class="topic" href="http://search.twitter.com/search?q=%23$2">#$2</a>');
} }
}); });
//Compact Jsonp from http://clientcide.com/js //Compact Jsonp from http://clientcide.com/js

View File

@ -42,9 +42,4 @@
!textinput_border_right = #c3c3c3 !textinput_border_right = #c3c3c3
!textinput_border_focus = #989898 !textinput_border_focus = #989898
!cancel_link = #555 !twitter_topic = #888
// Button Colors
!default_button_text_color = #fff
!default_button_bg = yellow
!blue_btn = desaturate(adjust_hue(!default_button_bg, -16), 25)

View File

@ -10,12 +10,28 @@
.small .small
+sans-font +sans-font
font-size: 50% font-size: 50%
font-size: 80%
line-height: 1.625em
#twitter, #delicious
+border-radius
background: #f8f8f8
border: 1px solid #eee
padding: 5px 0
ul
list-style-type: none
margin: 0
li
margin: 0 15px
padding: 10px 0 0
border-bottom: #ddd 1px dashed
&:last-child
border-bottom: 0
#delicious #delicious
p p
font-style: italic font-style: italic
li li
font-size: 90%
color: #666 color: #666
font-style: normal font-style: normal
padding-bottom: 8px padding-bottom: 8px

View File

@ -1,28 +1,15 @@
#twitter #twitter
font-size: 80% p
+border-radius padding-bottom: 10px
background: #f8f8f8 a.topic
border: 1px solid #eee color= !twitter_topic
padding: 5px 0 .meta
ul color= !light_text
list-style-type: none font-size: 80%
margin: 0 display: block
li padding: 8px 0 0
margin: 0 15px a
padding: 10px 0 0 color: inherit
border-bottom: #ddd 1px dashed text-decoration: none
line-height: 1.625em &:hover
&:last-child text-decoration: underline
border-bottom: 0
p
padding-bottom: 10px
.meta
color= !light_text
font-size: 80%
display: block
padding: 8px 0 0
a
color: inherit
text-decoration: none
&:hover
text-decoration: underline