upr.git  about / heads / tags
Upload Progress for Rack
blob 0e5f9c7b089058fdc79c06149aa5d49b700ae207 787 bytes (raw)
$ git show HEAD:examples/rails_app-2.3.4/public/stylesheets/site.css	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
/*
 * stolen from ry dahl's mongrel_streaming_upload_progress
 * http://rubyforge.org/pipermail/mongrel-users/2007-July/003747.html
 */
.notice {
  border: 1px solid red;
  margin: 5em;
  padding: 1em;
  text-align: center;
}
#progress-bar {
   width:500px;
   height:25px;
   margin:15px;
   border:solid 1px #000;
   position:relative;
 }

 #progress-bar #status-bar {
   display:block;
   height:25px;
   width:0;
   background-color:#ffa;
   border-right:solid 1px #000;
   position:absolute;
   top:0; left:0;
 }

 #progress-bar #status-text {
   display:block;
   padding: 0 15px;
   line-height:25px;
   position:absolute;
   top:0; left:0;
 }
 #upload-console, #upload-target {
   width: 100%; height: 100px;
   background-color: #eee;
   border: 0;
   margin: 0; padding: 0;
 }

git clone https://yhbt.net/upr.git