Untitled

Arduino Detected Guest 25 Views Size: 4.58 KB Posted on: Sep 10, 25 @ 7:09 PM
  1. 1/* Fluid base sizing on small screens */
  2. 2@media (max-width: 768px){
  3. 3 html{ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  4. 4 body{ font-size: clamp(15px, 3.9vw, 17px); line-height: 1.4; }
  5. 5}
  6. 6
  7. 7/* Page wrap: breathing room + full width */
  8. 8@media (max-width: 768px){
  9. 9 #wrap{
  10. 10 max-width: 100%;
  11. 11 padding: clamp(12px, 4vw, 20px);
  12. 12 }
  13. 13 #wrap h1{
  14. 14 font-size: clamp(1.2rem, 5.5vw, 1.6rem);
  15. 15 margin: 1rem 0 .6rem;
  16. 16 line-height: 1.25;
  17. 17 }
  18. 18 #wrap p, #wrap small{ opacity: .9; }
  19. 19}
  20. 20
  21. 21/* Action links at top (refresh/connect) chunkier tap area */
  22. 22@media (max-width: 768px){
  23. 23 .af{
  24. 24 display: inline-block;
  25. 25 padding: .55em .9em;
  26. 26 border-radius: .5em;
  27. 27 line-height: 1.2;
  28. 28 margin: .25em .35em .25em 0;
  29. 29 }
  30. 30}
  31. 31
  32. 32/* List of upload targets block buttons */
  33. 33@media (max-width: 768px){
  34. 34 #wrap ul{ list-style: none; padding: 0; margin: .5rem 0 1.2rem; }
  35. 35 #wrap li + li{ margin-top: .5rem; }
  36. 36 #wrap li a{
  37. 37 display: block;
  38. 38 padding: .9em 1.1em;
  39. 39 border-radius: .6em;
  40. 40 border: 1px solid var(--bg-u5);
  41. 41 background: rgba(255,255,255,.03);
  42. 42 }
  43. 43 html.y #wrap li a{ background: rgba(0,0,0,.04); border-color: #ddd; }
  44. 44}
  45. 45
  46. 46/* Login form tidy responsive grid */
  47. 47@media (max-width: 768px){
  48. 48 #lf{
  49. 49 display: grid;
  50. 50 grid-template-columns: 1fr auto;
  51. 51 gap: .6rem;
  52. 52 align-items: center;
  53. 53 margin: .6rem 0 1.4rem;
  54. 54 }
  55. 55 #lf input[type="password"],
  56. 56 #lf input[type="text"]{
  57. 57 width: 100%;
  58. 58 min-height: 44px; /* comfy tap target */
  59. 59 padding: .6em .8em;
  60. 60 border-radius: .5em;
  61. 61 }
  62. 62 #lf input[type="submit"]{
  63. 63 min-height: 44px;
  64. 64 padding: .6em 1.1em;
  65. 65 border-radius: .5em;
  66. 66 }
  67. 67}
  68. 68/* Narrow phones: stack button under input */
  69. 69@media (max-width: 420px){
  70. 70 #lf{ grid-template-columns: 1fr; }
  71. 71 #lf input[type="submit"]{ width: 100%; }
  72. 72}
  73. 73
  74. 74/* Toast: safe-area aware, full-width-ish, smoother scroll */
  75. 75@media (max-width: 768px){
  76. 76 #toast{
  77. 77 inset: auto calc(1em + var(--sa-right)) calc(1em + var(--sa-bottom)) calc(1em + var(--sa-left));
  78. 78 width: min(92vw, 34em);
  79. 79 margin: 0;
  80. 80 right: auto; /* avoid fighting inset */
  81. 81 transform: none; /* no slide-offscreen on mobile */
  82. 82 border-width: .3em 0;
  83. 83 line-height: 1.4;
  84. 84 }
  85. 85 #toast.vis{ transform: none; }
  86. 86 #toastb{
  87. 87 -webkit-overflow-scrolling: touch;
  88. 88 max-height: min(70svh, 70vh);
  89. 89 }
  90. 90 #toast.scroll #toastb{ margin-right: 0; padding-right: .25em; }
  91. 91 #toast a#toastc{ left: -.6em; width: .6em; padding: .3em .8em; }
  92. 92}
  93. 93
  94. 94/* Tooltip: smaller & less jumpy */
  95. 95@media (max-width: 768px){
  96. 96 #tth{ font-size: .8rem; padding: .15em .4em; }
  97. 97}
  98. 98
  99. 99/* Compact tip box (#tt) on phones */
  100. 100@media (max-width: 768px){
  101. 101 #tt{ max-width: calc(100% - 2.2em); margin: .6em 0; }
  102. 102 #tt.show{ padding: .8em 1em; }
  103. 103 #tt.show.b{ padding: 1.1em 1.4em; }
  104. 104}
  105. 105
  106. 106/* Modal overlay: edge-to-edge with safe-areas; scrollable body */
  107. 107@media (max-width: 768px){
  108. 108 #modal{ padding: var(--sa-top) var(--sa-right) var(--sa-bottom) var(--sa-left); }
  109. 109 #modal>table{ width: 100%; height: auto; }
  110. 110 #modal td{ vertical-align: top; }
  111. 111 #modalc{
  112. 112 margin: clamp(.5em, 2.5vw, 1em) auto;
  113. 113 width: min(92vw, 48em);
  114. 114 max-height: 80svh;
  115. 115 overflow: auto;
  116. 116 -webkit-overflow-scrolling: touch;
  117. 117 padding: .9em 1em;
  118. 118 border-radius: .6em;
  119. 119 }
  120. 120 #modalb{ padding-top: .6em; }
  121. 121 #modali{ width: 100%; margin: .8em 0 0; }
  122. 122}
  123. 123
  124. 124/* Centered fixed frame (#cf_frame) fluid on mobile */
  125. 125@media (max-width: 768px){
  126. 126 #cf_frame{
  127. 127 top: 5svh;
  128. 128 left: 50%;
  129. 129 transform: translateX(-50%);
  130. 130 width: min(92vw, 40em);
  131. 131 height: 70svh;
  132. 132 margin-left: 0;
  133. 133 border-width: .3em;
  134. 134 border-radius: .5em;
  135. 135 }
  136. 136}
  137. 137
  138. 138/* Markdown-ish (.mdo) smaller borders/margins on phones */
  139. 139@media (max-width: 768px){
  140. 140 .mdo h1{
  141. 141 margin: 1.2rem 0 .6rem;
  142. 142 padding: .4rem .2rem;
  143. 143 border-width: .25rem 0;
  144. 144 font-size: clamp(1.2rem, 6vw, 1.5rem);
  145. 145 }
  146. 146 .mdo h2{
  147. 147 margin-top: 1rem;
  148. 148 padding-left: .4rem;
  149. 149 font-size: clamp(1.05rem, 4.8vw, 1.3rem);
  150. 150 }
  151. 151 .mdo pre code{ padding: .5em .6em; }
  152. 152 .mdo ul, .mdo ol{ padding-left: .9em; }
  153. 153 .mdo ul ul, .mdo ul ol, .mdo ol ul, .mdo ol ol{
  154. 154 padding-left: 1.2em; border-left-width: .2em;
  155. 155 }
  156. 156 .mdo th, .mdo td{ padding: .25em .4em; }
  157. 157}
  158. 158
  159. 159/* repl button */
  160. 160@media (max-width: 768px){
  161. 161 #repl{
  162. 162 position: fixed;
  163. 163 right: calc(1rem + var(--sa-right));
  164. 164 bottom: calc(1rem + var(--sa-bottom));
  165. 165 display: inline-flex;
  166. 166 align-items: center;
  167. 167 justify-content: center;
  168. 168 width: 48px; height: 48px;
  169. 169 border-radius: 999px;
  170. 170 text-decoration: none;
  171. 171 }
  172. 172}

Raw Paste

Comments 0
Login to post a comment.
  • No comments yet. Be the first.
Login to post a comment. Login or Register
We use cookies. To comply with GDPR in the EU and the UK we have to show you these.

We use cookies and similar technologies to keep this website functional (including spam protection via Google reCAPTCHA), and — with your consent — to measure usage and show ads. See Privacy.