swee 修订了这个 Gist 6 months ago. 转到此修订
1 file changed, 95 insertions
fiddleSave.html(文件已创建)
| @@ -0,0 +1,95 @@ | |||
| 1 | + | <!DOCTYPE html> | |
| 2 | + | <html lang="en"> | |
| 3 | + | <head> | |
| 4 | + | <meta charset="UTF-8"> | |
| 5 | + | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| 6 | + | <style> | |
| 7 | + | iframe { | |
| 8 | + | width: 95vw; | |
| 9 | + | max-height: 512px; | |
| 10 | + | border: none; | |
| 11 | + | } | |
| 12 | + | .logo { | |
| 13 | + | max-width: 75vw; | |
| 14 | + | } | |
| 15 | + | .leftbox { | |
| 16 | + | font-size: 24pt; | |
| 17 | + | background-color: #121224; | |
| 18 | + | word-wrap: break-word; | |
| 19 | + | margin-bottom: 15px; | |
| 20 | + | border-radius: 5px; | |
| 21 | + | padding-bottom: 5px; | |
| 22 | + | display: inline-block; | |
| 23 | + | width: 95vw; | |
| 24 | + | } | |
| 25 | + | .leftbar { | |
| 26 | + | max-width: 95vw; | |
| 27 | + | display:none; | |
| 28 | + | } | |
| 29 | + | .content { | |
| 30 | + | background-color: #222; | |
| 31 | + | padding: 5px 5px 5px 5px; | |
| 32 | + | } | |
| 33 | + | body { | |
| 34 | + | background-color: #121212; | |
| 35 | + | color: #DDD | |
| 36 | + | } | |
| 37 | + | a { | |
| 38 | + | color: #F0F; | |
| 39 | + | text-decoration: none; | |
| 40 | + | } | |
| 41 | + | .thumb { | |
| 42 | + | background-color: #111; | |
| 43 | + | border: solid 2px; | |
| 44 | + | border-radius: 10px; | |
| 45 | + | display: inline-block; | |
| 46 | + | padding-left: 10px; | |
| 47 | + | padding-right: 10px; | |
| 48 | + | } | |
| 49 | + | .float-right { | |
| 50 | + | float: right; | |
| 51 | + | } | |
| 52 | + | .mobilebar { | |
| 53 | + | font-size: 24px; | |
| 54 | + | background-color: #000; | |
| 55 | + | } | |
| 56 | + | #mobilebutton { | |
| 57 | + | display: none; | |
| 58 | + | } | |
| 59 | + | .menuicon { | |
| 60 | + | font-size: 48px; | |
| 61 | + | cursor: pointer; | |
| 62 | + | } | |
| 63 | + | #mobilebutton:checked + .leftbar { | |
| 64 | + | display: block; | |
| 65 | + | } | |
| 66 | + | </style> | |
| 67 | + | </head> | |
| 68 | + | <body> | |
| 69 | + | ||
| 70 | + | <!-- Mobile bar --> | |
| 71 | + | <div class="mobilebar"> | |
| 72 | + | <label for="mobilebutton" class="menuicon"> | |
| 73 | + | ☰ | |
| 74 | + | </label> | |
| 75 | + | Wikyll | |
| 76 | + | </div> | |
| 77 | + | <input type="checkbox" name="mobilebutton" id="mobilebutton"> | |
| 78 | + | <!-- Widgets --> | |
| 79 | + | <div class="leftbar"> | |
| 80 | + | <div class="leftbox"> | |
| 81 | + | <img class="logo" src="https://git.swee.codes/swee/Wikyll/raw/branch/main/files/wikyll.png"> | |
| 82 | + | <h1>Wikyll</h1> | |
| 83 | + | <a href="/mainPage">Main Page</a> | |
| 84 | + | </div> | |
| 85 | + | <div class="leftbox"> | |
| 86 | + | <iframe src="https://swee.codes" height=512px> | |
| 87 | + | </div> | |
| 88 | + | </div> | |
| 89 | + | <!-- Content --> | |
| 90 | + | <div class="content"> | |
| 91 | + | <h1>Main Page</h1> | |
| 92 | + | <p>Demonstrate the experience of the Mobile UI of Wikyll</p> | |
| 93 | + | </div> | |
| 94 | + | </body> | |
| 95 | + | </html> | |
上一页
下一页