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.

110 lines
2.1 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. /**/
  18. .toolbar {
  19. padding: 8px;
  20. border: 1px solid #3A3A3A;
  21. background: #4C4C4C url(../images/gradient.png) repeat-x 0 bottom;
  22. color: white;
  23. }
  24. /**/
  25. .icon {
  26. width: 32px;
  27. height: 32px;
  28. background-image: url(menu-icon-bookmark.png);
  29. }
  30. .bord {
  31. border: 1px solid lightblue;
  32. }
  33. .big {
  34. font-size: 48px;
  35. }
  36. .pad {
  37. padding: 8px;
  38. }
  39. .mh {
  40. min-height: 124px;
  41. }
  42. .lh {
  43. line-height: 86px;
  44. }
  45. </style>
  46. </head>
  47. <body>
  48. <label>"toolbar" tests</label>
  49. <br /><br />
  50. <div>
  51. <label>no content</label>
  52. <div class="inline toolbar"></div>
  53. <br />
  54. <label>text only content</label>
  55. <div class="inline toolbar">Text</div>
  56. <br />
  57. <label>div content</label>
  58. <div class="inline toolbar">
  59. <div>Text in Div</div>
  60. </div>
  61. <br />
  62. <label>input content</label>
  63. <div class="inline toolbar">
  64. <input class="" />
  65. </div>
  66. <br />
  67. <label>icon content</label>
  68. <div class="inline toolbar">
  69. <div class="icon"></div>
  70. </div>
  71. <br />
  72. <label>combo content</label>
  73. <div class="inline toolbar">
  74. <div>Text in Div</div>
  75. <input class="" />
  76. <div class="icon"></div>
  77. </div>
  78. <br />
  79. <label>combo content: when the text is larger than non-text objects, vertical centering goes wonky</label>
  80. <div class="inline toolbar big">
  81. <div>Text in Div</div>
  82. <input class="" />
  83. <div class="icon"></div>
  84. </div>
  85. <br />
  86. <label>controlling height</label>
  87. <div class="inline toolbar big mh">
  88. <div>Text in Div</div>
  89. <input class="" />
  90. <div class="icon"></div>
  91. </div>
  92. <br />
  93. <label>controlling line-height</label>
  94. <div class="inline toolbar big lh pad">
  95. <div>Text in Div</div>
  96. <input class="" />
  97. <div class="icon"></div>
  98. </div>
  99. <br />
  100. </div>
  101. </body>
  102. </html>