askrobots / dbbasic-web
Public
A Unix-style Python web framework: filesystem routing, flat files, messages and cron, with CGI's simplicity at modern speed.
Dan Quellhorst
Replace multipart parser with stdlib-only implementation
eb957a2
9 months, 2 weeks ago
History
app.css · 1.5 KB · 111 lines
| 1 | * { |
| 2 | margin: 0; |
| 3 | padding: 0; |
| 4 | box-sizing: border-box; |
| 5 | } |
| 6 | |
| 7 | body { |
| 8 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; |
| 9 | line-height: 1.6; |
| 10 | color: #333; |
| 11 | max-width: 900px; |
| 12 | margin: 0 auto; |
| 13 | padding: 20px; |
| 14 | } |
| 15 | |
| 16 | header { |
| 17 | border-bottom: 2px solid #007acc; |
| 18 | padding-bottom: 20px; |
| 19 | margin-bottom: 40px; |
| 20 | } |
| 21 | |
| 22 | header h1 { |
| 23 | color: #007acc; |
| 24 | font-size: 2em; |
| 25 | } |
| 26 | |
| 27 | nav { |
| 28 | margin-top: 15px; |
| 29 | } |
| 30 | |
| 31 | nav a { |
| 32 | margin-right: 20px; |
| 33 | color: #007acc; |
| 34 | text-decoration: none; |
| 35 | } |
| 36 | |
| 37 | nav a:hover { |
| 38 | text-decoration: underline; |
| 39 | } |
| 40 | |
| 41 | main { |
| 42 | min-height: 60vh; |
| 43 | } |
| 44 | |
| 45 | section { |
| 46 | margin-bottom: 40px; |
| 47 | } |
| 48 | |
| 49 | h2 { |
| 50 | color: #007acc; |
| 51 | margin-bottom: 15px; |
| 52 | } |
| 53 | |
| 54 | h3 { |
| 55 | margin-top: 25px; |
| 56 | margin-bottom: 10px; |
| 57 | } |
| 58 | |
| 59 | ul { |
| 60 | margin-left: 25px; |
| 61 | margin-bottom: 20px; |
| 62 | } |
| 63 | |
| 64 | li { |
| 65 | margin-bottom: 8px; |
| 66 | } |
| 67 | |
| 68 | a { |
| 69 | color: #007acc; |
| 70 | } |
| 71 | |
| 72 | button { |
| 73 | background: #007acc; |
| 74 | color: white; |
| 75 | border: none; |
| 76 | padding: 10px 20px; |
| 77 | margin: 5px; |
| 78 | cursor: pointer; |
| 79 | border-radius: 4px; |
| 80 | } |
| 81 | |
| 82 | button:hover { |
| 83 | background: #005a9e; |
| 84 | } |
| 85 | |
| 86 | #ws-messages, #sse-messages { |
| 87 | margin-top: 15px; |
| 88 | padding: 15px; |
| 89 | background: #f5f5f5; |
| 90 | border-radius: 4px; |
| 91 | min-height: 100px; |
| 92 | max-height: 300px; |
| 93 | overflow-y: auto; |
| 94 | font-family: 'Courier New', monospace; |
| 95 | font-size: 0.9em; |
| 96 | } |
| 97 | |
| 98 | .message { |
| 99 | margin: 5px 0; |
| 100 | padding: 5px; |
| 101 | background: white; |
| 102 | border-left: 3px solid #007acc; |
| 103 | } |
| 104 | |
| 105 | footer { |
| 106 | margin-top: 60px; |
| 107 | padding-top: 20px; |
| 108 | border-top: 1px solid #ccc; |
| 109 | text-align: center; |
| 110 | color: #666; |
| 111 | } |