not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

102 lines
1.9 KiB

  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>inline: onyx toolbar design</title>
  5. <link href="../source/css/onyx.css" rel="stylesheet" type="text/css" />
  6. <style>
  7. /*
  8. the 'inline' class sets up a left-to-right container, with vertically centered children
  9. */
  10. .inline {
  11. white-space: nowrap;
  12. }
  13. .inline > * {
  14. display: inline-block;
  15. vertical-align: middle;
  16. }
  17. .icon {
  18. width: 32px;
  19. height: 32px;
  20. background-image: url(menu-icon-bookmark.png);
  21. }
  22. .bord {
  23. border: 1px solid lightblue;
  24. }
  25. .big {
  26. font-size: 48px;
  27. }
  28. .pad {
  29. padding: 8px;
  30. }
  31. .mh {
  32. min-height: 124px;
  33. }
  34. .lh {
  35. line-height: 86px;
  36. }
  37. </style>
  38. </head>
  39. <body>
  40. <label>"inline" tests</label>
  41. <br /><br />
  42. <div>
  43. <label>no content</label>
  44. <div class="inline bord"></div>
  45. <br />
  46. <label>text only content</label>
  47. <div class="inline bord">Text</div>
  48. <br />
  49. <label>div content</label>
  50. <div class="inline bord">
  51. <div>Text in Div</div>
  52. </div>
  53. <br />
  54. <label>input content</label>
  55. <div class="inline bord">
  56. <input class="" />
  57. </div>
  58. <br />
  59. <label>icon content</label>
  60. <div class="inline bord">
  61. <div class="icon"></div>
  62. </div>
  63. <br />
  64. <label>combo content</label>
  65. <div class="inline bord">
  66. <div>Text in Div</div>
  67. <input class="" />
  68. <div class="icon"></div>
  69. </div>
  70. <br />
  71. <label>combo content: when the text is larger than non-text objects, vertical centering goes wonky</label>
  72. <div class="inline bord big">
  73. <div>Text in Div</div>
  74. <input class="" />
  75. <div class="icon"></div>
  76. </div>
  77. <br />
  78. <label>controlling height</label>
  79. <div class="inline bord big mh">
  80. <div>Text in Div</div>
  81. <input class="" />
  82. <div class="icon"></div>
  83. </div>
  84. <br />
  85. <label>controlling line-height</label>
  86. <div class="inline bord big lh pad">
  87. <div>Text in Div</div>
  88. <input class="" />
  89. <div class="icon"></div>
  90. </div>
  91. <br />
  92. </div>
  93. </body>
  94. </html>