flex_05-ref.rml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <rml>
  2. <head>
  3. <title>Flex 05 ref</title>
  4. <link type="text/rcss" href="../../style.rcss"/>
  5. <meta name="Reference" content="The size of the flex containers should match the size of the block boxes in the reference." />
  6. <style>
  7. h1 {
  8. text-align: center;
  9. margin-bottom: 5dp;
  10. padding: 0.25em 0;
  11. border-color: #333;
  12. border-width: 1dp 0;
  13. }
  14. h1:first-child { margin-top: 0; }
  15. h1, h2 { white-space: nowrap; }
  16. .flex {
  17. display: block;
  18. margin: 1dp 0 3dp;
  19. border: 1dp #999;
  20. }
  21. .wrap {
  22. flex-wrap: wrap;
  23. }
  24. .column {
  25. flex-direction: column;
  26. }
  27. .height {
  28. height: 40dp;
  29. }
  30. .min-height {
  31. height: 40dp;
  32. }
  33. .max-height {
  34. height: 40dp;
  35. }
  36. </style>
  37. </head>
  38. <body>
  39. <h1>height, rows</h1>
  40. <div class="flex wrap height">
  41. </div>
  42. <div class="flex height">
  43. </div>
  44. <h1>height, columns</h1>
  45. <div class="flex column wrap height">
  46. </div>
  47. <div class="flex column height">
  48. </div>
  49. <h1>min-height, rows</h1>
  50. <div class="flex wrap min-height">
  51. </div>
  52. <div class="flex min-height">
  53. </div>
  54. <h1>min-height, columns</h1>
  55. <div class="flex column wrap min-height">
  56. </div>
  57. <div class="flex column min-height">
  58. </div>
  59. <h1>max-height, rows</h1>
  60. <div class="flex wrap max-height">
  61. </div>
  62. <div class="flex max-height">
  63. </div>
  64. <h1>max-height, columns</h1>
  65. <div class="flex column wrap max-height">
  66. </div>
  67. <div class="flex column max-height">
  68. </div>
  69. <handle size_target="#document"/>
  70. </body>
  71. </rml>