22< html lang ="en ">
33< head >
44< meta charset ="utf-8 ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
56< title > ReadOne</ title >
67< link rel ="icon " type ="image/svg+xml " href ="/assets/logo.svg ">
78< script defer src ="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js "> </ script >
89< style >
10+ * { box-sizing : border-box; }
911 body { font-family : -apple-system, sans-serif; max-width : 720px ; margin : 40px auto; padding : 0 16px ; color : # 1a1a1a ; }
1012 h1 { display : flex; align-items : center; gap : 10px ; }
1113 h1 img { width : 32px ; height : 32px ; }
1214 .import { display : flex; gap : 8px ; margin-bottom : 12px ; }
13- .import input [type = url ] { flex : 1 ; padding : 8px ; font-size : 14px ; }
14- .actions { display : flex; gap : 10px ; align-items : center; margin : 16px 0 ; }
15+ .import input [type = url ] { flex : 1 ; min-width : 0 ; padding : 8px ; font-size : 14px ; border : 1 px solid # ccc ; border-radius : 4 px ; background : # fff ; color : # 1a1a1a ; }
16+ .actions { display : flex; flex-wrap : wrap; gap : 10px ; align-items : center; margin : 16px 0 ; }
1517 a .button , button { padding : 8px 14px ; border : 1px solid # ccc ; background : # f5f5f5 ; border-radius : 4px ; cursor : pointer; font-size : 14px ; text-decoration : none; color : inherit; }
1618 a .button : hover , button : hover { background : # eee ; }
1719 button : disabled { opacity : .5 ; cursor : not-allowed; }
18- table { width : 100% ; border-collapse : collapse; margin-top : 16px ; }
20+ .table-wrap { overflow-x : auto; margin-top : 16px ; }
21+ table { width : 100% ; border-collapse : collapse; }
1922 th , td { text-align : left; padding : 8px ; border-bottom : 1px solid # eee ; font-size : 14px ; vertical-align : top; }
20- td .meta { color : # 666 ; font-size : 12px ; }
23+ td .meta { color : # 666 ; font-size : 12px ; white-space : nowrap; }
2124 td a { color : # 06c ; }
2225 .error { color : # b00020 ; font-size : 14px ; margin : 8px 0 ; }
26+
27+ @media (max-width : 480px ) {
28+ body { margin : 20px auto; }
29+ .import { flex-direction : column; }
30+ }
31+
32+ @media (prefers-color-scheme : dark) {
33+ body { background : # 1a1a1a ; color : # eee ; }
34+ .import input [type = url ] { background : # 2a2a2a ; border-color : # 444 ; color : # eee ; }
35+ a .button , button { background : # 2a2a2a ; border-color : # 444 ; color : # eee ; }
36+ a .button : hover , button : hover { background : # 333 ; }
37+ th , td { border-bottom-color : # 333 ; }
38+ td .meta { color : # 999 ; }
39+ td a { color : # 6cb2ff ; }
40+ .error { color : # ff6b6b ; }
41+ }
2342</ style >
2443</ head >
2544< body x-data ="app() " x-init ="init() ">
@@ -39,6 +58,7 @@ <h1><img src="/assets/logo.svg" alt=""> ReadOne</h1>
3958 </ button >
4059 </ div >
4160
61+ < div class ="table-wrap ">
4262 < table >
4363 < thead >
4464 < tr >
@@ -62,6 +82,7 @@ <h1><img src="/assets/logo.svg" alt=""> ReadOne</h1>
6282 </ template >
6383 </ tbody >
6484 </ table >
85+ </ div >
6586
6687 < script >
6788 function app ( ) {
0 commit comments