| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>072 author-styled form controls</title>
- <style>
- body { background: #ffffff; color: #202020; font-family: sans-serif;
- margin: 12px; font-size: 14px; }
- .pane { float: left; width: 330px; margin-right: 20px; }
- /* A: real controls styled like google.com's search page */
- .A input[type="submit"] { background-color: #e8eaed; border: 1px solid #e8eaed;
- border-radius: 8px; color: #3c4043; padding: 0 16px; height: 36px;
- margin: 11px 4px; font-size: 14px; }
- .A .box, .B .box { border: 1px solid #9aa0a6; border-radius: 22px;
- height: 44px; background: #ffffff; }
- .A textarea { width: 100%; background-color: transparent; border: none;
- padding: 0; margin: 0; resize: none; font-size: 16px; }
- /* B: the same look built from plain boxes */
- .B .btn { display: inline-block; background: #e8eaed; border: 1px solid #e8eaed;
- border-radius: 8px; color: #3c4043; padding: 9px 16px;
- margin: 11px 4px; }
- /* Only for forced-colors (high contrast): must not apply here. */
- @media (forced-colors: active) { .A input[type="submit"] { border: 3px solid #ff0000; } }
- </style>
- </head>
- <body>
- <h1>072 — author-styled controls</h1>
- <p>A control with author background/border/radius is painted with that
- style (not the dark UI theme); a transparent borderless textarea is
- invisible inside its rounded box. A and B must look alike.</p>
- <div class="pane A">
- <div class="box"><textarea rows="1"></textarea></div>
- <center><input type="submit" value="Search"><input type="submit" value="Lucky"></center>
- </div>
- <div class="pane B">
- <div class="box"></div>
- <center><span class="btn">Search</span><span class="btn">Lucky</span></center>
- </div>
- </body>
- </html>
|