forked from HamptonMakes/wikimedia-mobile
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hampton Catlin
committed
Dec 24, 2008
1 parent
d11f1c6
commit b480d4d
Showing
6 changed files
with
211 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
require File.expand_path(File.dirname(__FILE__) + "/../../config/init") | ||
|
||
namespace :todo do | ||
desc 'List TODOs in all .rb files under app/' | ||
task(:list) do | ||
FileList["app/**/*.rb"].egrep(/TODO/) | ||
end | ||
|
||
desc 'Edit all TODOs in VIM' # or your favorite editor | ||
task(:edit) do | ||
# jump to the first TODO in the first file | ||
cmd = 'vim +/TODO/' | ||
|
||
filelist = [] | ||
FileList["app/**/*.rb"].egrep(/TODO/) {|fn,cnt,line| filelist << fn} | ||
|
||
# will fork a new process and exit, if you're using gvim | ||
system("#{cmd} #{filelist.sort.join(' ')}") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,177 @@ | ||
|
||
span.t, sup[style*="help"], .reference, .portal, .editsection, #protected-icon, .references-small, .sisterproject, .printfooter, .catlinks, .magnify, #siteSub, #jump-to-nav { display: none; } | ||
|
||
.logo { text-align: right; padding-top: 5px; } | ||
.logo a { clear: right; } | ||
|
||
#main_box { margin-top: -20px; } | ||
|
||
|
||
html { font-size: 67.5%; } | ||
|
||
body { line-height: 1; font-size: 1.2em; color: #000; background: #fff; font-family: sans-serif; overflow-x: hidden; -webkit-user-select: none; -webkit-text-size-adjust: none; } | ||
|
||
p, li, dl, #featured_article { line-height: 1.65; } | ||
|
||
pre { white-space: pre-wrap; } | ||
|
||
h2 { border-bottom: 1px solid #aaa; padding: 5px 0; } | ||
|
||
a { text-decoration: none; color: #002bb8; } | ||
a:visited { color: #5a3696; } | ||
a:active { color: #faa700; } | ||
a:hover { text-decoration: underline; } | ||
|
||
.links { float: left; padding: 10px; } | ||
|
||
|
||
#contentSub, .dablink { margin-bottom: 10px; } | ||
|
||
img.thumbborder { border: 1px solid #ccc; } | ||
|
||
|
||
.thumb { border: 1px solid #ccc; background: #f9f9f9; margin-bottom: 10px; } | ||
.thumb .thumbinner[style] { margin: 5px auto; } | ||
.thumb .thumbcaption { width: 100%; margin: 5px 10px 0; text-align: center; width: auto !important; } | ||
|
||
|
||
table { border-spacing: 0 !important; width: 100%; border-collapse: collapse !important; border: 1px solid #ccc; padding: 3px; margin-bottom: 15px; } | ||
table td, table th { border: 1px solid #ccc; padding: 3px; } | ||
table table { border: 0; } | ||
table table td, table table th { border: 0; } | ||
table.toc { background: #f9f9f9; } | ||
table.toc h2 { border: 0; padding: 0; margin-top: 5px; } | ||
table.navbox { font-size: 0.9em; width: 100% !important; } | ||
table.navbox th.navbox-title { background: #CCCCFF; padding: 5px; } | ||
table.navbox td.navbox-abovebelow { padding: 3px; } | ||
table.navbox td.navbox-group { background: #DDDDFF; width: 25%; padding: 3px; } | ||
table.navbox td.navbox-group+td { padding: 3px; } | ||
table.navbox div[style*="padding"] { padding-left: 0 !important; padding-right: 0 !important; } | ||
table.navbox div[style*="padding"] a { white-space: pre-wrap; } | ||
table.navbox span[style*="white"] { white-space: pre-wrap !important; } | ||
table.navbox td, table.navbox th { padding: 0; } | ||
table.navbox table { margin-bottom: 0; } | ||
table.wikitable th { background: #f3f3f3; } | ||
table[style] { width: 100% !important; float: none !important; margin-left: 0 !important; } | ||
table.infobox { background: #f9f9f9; } | ||
table.infobox th, table.infobox td { border: 0; } | ||
table.infobox td[colspan="3"], table.infobox th[colspan="3"] { border: 1px solid #ccc; } | ||
table.gallery { background: #f9f9f9; border-bottom: 0; } | ||
table.gallery th, table.gallery td { display: block; border: 0; border-bottom: 1px solid #ccc; } | ||
table.gallery .gallerybox[style] { width: auto !important; margin-bottom: -16px; } | ||
table.gallery .thumb[style] { border: 0; padding: 0 !important; width: auto !important; margin: 0 auto; } | ||
table.gallery .gallerytext { margin-top: -12px; text-align: center; } | ||
table.geography[style] th { text-align: left; } | ||
table.geography[style] span span { display: block; } | ||
table.geography[style] td[style*="text-align"], table.geography[style] td[colspan="2"] { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; } | ||
table.geography[style] td[style*="text-align"] div[style], table.geography[style] td[colspan="2"] div[style] { text-align: left !important; } | ||
|
||
table.admin { width: 300px; } | ||
|
||
|
||
.help dt { font-weight: bold; border-bottom: 1px solid #aaa; padding-bottom: 2px; font-size: 1.05em; } | ||
.help dd { margin-bottom: 25px; margin-left: 20px; } | ||
|
||
.today .noprint { display: none; } | ||
span.t, sup[style*="help"], .reference, .portal, .editsection, #protected-icon, .references-small, .sisterproject, .printfooter, .catlinks, .magnify, #siteSub, #jump-to-nav { | ||
display: none; } | ||
|
||
.logo { | ||
text-align: right; | ||
padding-top: 5px; } | ||
.logo a { | ||
clear: right; } | ||
|
||
#main_box { | ||
margin-top: -20px; } | ||
|
||
|
||
html { | ||
font-size: 67.5%; } | ||
|
||
body { | ||
line-height: 1; | ||
font-size: 1.2em; | ||
color: #000; | ||
background: #fff; | ||
font-family: sans-serif; | ||
overflow-x: hidden; | ||
-webkit-user-select: none; | ||
-webkit-text-size-adjust: none; } | ||
|
||
p, li, dl, #featured_article { | ||
line-height: 1.65; } | ||
|
||
pre { | ||
white-space: pre-wrap; } | ||
|
||
h2 { | ||
border-bottom: 1px solid #aaa; | ||
padding: 5px 0; } | ||
|
||
a { | ||
text-decoration: none; | ||
color: #002bb8; } | ||
a:visited { | ||
color: #5a3696; } | ||
a:active { | ||
color: #faa700; } | ||
a:hover { | ||
text-decoration: underline; } | ||
|
||
.links { | ||
float: left; | ||
padding: 10px; } | ||
|
||
|
||
#contentSub, .dablink { | ||
margin-bottom: 10px; } | ||
|
||
img.thumbborder { | ||
border: 1px solid #ccc; } | ||
|
||
|
||
.thumb { | ||
border: 1px solid #ccc; | ||
background: #f9f9f9; | ||
margin-bottom: 10px; } | ||
.thumb .thumbinner[style] { | ||
margin: 5px auto; } | ||
.thumb .thumbcaption { | ||
width: 100%; | ||
margin: 5px 10px 0; | ||
text-align: center; | ||
width: auto !important; } | ||
|
||
|
||
table { | ||
border-spacing: 0 !important; | ||
width: 100%; | ||
border-collapse: collapse !important; | ||
border: 1px solid #ccc; | ||
padding: 3px; | ||
margin-bottom: 15px; } | ||
table td, table th { | ||
border: 1px solid #ccc; | ||
padding: 3px; } | ||
table table { | ||
border: 0; } | ||
table table td, table table th { | ||
border: 0; } | ||
table.toc { | ||
background: #f9f9f9; } | ||
table.toc h2 { | ||
border: 0; | ||
padding: 0; | ||
margin-top: 5px; } | ||
table.navbox { | ||
font-size: 0.9em; | ||
width: 100% !important; } | ||
table.navbox th.navbox-title { | ||
background: #CCCCFF; | ||
padding: 5px; } | ||
table.navbox td.navbox-abovebelow { | ||
padding: 3px; } | ||
table.navbox td.navbox-group { | ||
background: #DDDDFF; | ||
width: 25%; | ||
padding: 3px; } | ||
table.navbox td.navbox-group+td { | ||
padding: 3px; } | ||
table.navbox div[style*="padding"] { | ||
padding-left: 0 !important; | ||
padding-right: 0 !important; } | ||
table.navbox div[style*="padding"] a { | ||
white-space: pre-wrap; } | ||
table.navbox span[style*="white"] { | ||
white-space: pre-wrap !important; } | ||
table.navbox td, table.navbox th { | ||
padding: 0; } | ||
table.navbox table { | ||
margin-bottom: 0; } | ||
table.wikitable th { | ||
background: #f3f3f3; } | ||
table[style] { | ||
width: 100% !important; | ||
float: none !important; | ||
margin-left: 0 !important; } | ||
table.infobox { | ||
background: #f9f9f9; } | ||
table.infobox th, table.infobox td { | ||
border: 0; } | ||
table.infobox td[colspan="3"], table.infobox th[colspan="3"] { | ||
border: 1px solid #ccc; } | ||
table.gallery { | ||
background: #f9f9f9; | ||
border-bottom: 0; } | ||
table.gallery th, table.gallery td { | ||
display: block; | ||
border: 0; | ||
border-bottom: 1px solid #ccc; } | ||
table.gallery .gallerybox[style] { | ||
width: auto !important; | ||
margin-bottom: -16px; } | ||
table.gallery .thumb[style] { | ||
border: 0; | ||
padding: 0 !important; | ||
width: auto !important; | ||
margin: 0 auto; } | ||
table.gallery .gallerytext { | ||
margin-top: -12px; | ||
text-align: center; } | ||
table.geography[style] th { | ||
text-align: left; } | ||
table.geography[style] span span { | ||
display: block; } | ||
table.geography[style] td[style*="text-align"], table.geography[style] td[colspan="2"] { | ||
text-align: left !important; | ||
margin-left: 0 !important; | ||
margin-right: 0 !important; } | ||
table.geography[style] td[style*="text-align"] div[style], table.geography[style] td[colspan="2"] div[style] { | ||
text-align: left !important; } | ||
|
||
table.admin { | ||
width: 300px; } | ||
|
||
|
||
.help dt { | ||
font-weight: bold; | ||
border-bottom: 1px solid #aaa; | ||
padding-bottom: 2px; | ||
font-size: 1.05em; } | ||
.help dd { | ||
margin-bottom: 25px; | ||
margin-left: 20px; } | ||
|
||
.today .noprint { | ||
display: none; } | ||
|
||
|
||
.floatright { | ||
float: right; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters