layout.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. .horizontal, .vertical {
  2. display: -webkit-box !important;
  3. display: -ms-flexbox !important;
  4. display: -moz-flex !important;
  5. display: -webkit-flex !important;
  6. display: flex !important;
  7. }
  8. .horizontal {
  9. -webkit-box-orient: horizontal;
  10. -ms-flex-direction: row;
  11. -moz-flex-direction: row;
  12. -webkit-flex-direction: row;
  13. flex-direction: row;
  14. }
  15. .horizontal.reverse {
  16. -webkit-box-direction: reverse;
  17. -ms-flex-direction: row-reverse;
  18. -moz-flex-direction: row-reverse;
  19. -webkit-flex-direction: row-reverse;
  20. flex-direction: row-reverse;
  21. }
  22. .vertical {
  23. -webkit-box-orient: vertical;
  24. -ms-flex-direction: column;
  25. -moz-flex-direction: column;
  26. -webkit-flex-direction: column;
  27. flex-direction: column;
  28. }
  29. .vertical.reverse {
  30. -webkit-box-direction: reverse;
  31. -ms-flex-direction: column-reverse;
  32. -moz-flex-direction: column-reverse;
  33. -webkit-flex-direction: column-reverse;
  34. flex-direction: column-reverse;
  35. }
  36. .relative {
  37. position: relative;
  38. }
  39. .fit {
  40. position: absolute;
  41. top: 0;
  42. left: 0;
  43. height: 100%;
  44. width: 100%;
  45. }
  46. body.fit {
  47. margin: 0;
  48. }
  49. .flex {
  50. -webkit-box-flex: 1;
  51. -ms-flex: 1;
  52. -moz-flex: 1;
  53. -webkit-flex: 1;
  54. flex: 1;
  55. }
  56. .flex-auto {
  57. -webkit-box-flex: 1;
  58. -ms-flex: 1 1 auto;
  59. -moz-flex: 1 1 auto;
  60. -webkit-flex: 1 1 auto;
  61. flex: 1 1 auto;
  62. }
  63. .flex-none {
  64. -webkit-box-flex: none;
  65. -ms-flex: none;
  66. -moz-flex: none;
  67. -webkit-flex: none;
  68. flex: none;
  69. }
  70. .flex-1 {
  71. -webkit-box-flex: 1;
  72. -ms-flex: 1;
  73. -moz-flex: 1;
  74. -webkit-flex: 1;
  75. flex: 1;
  76. }
  77. .flex-2 {
  78. -webkit-box-flex: 2;
  79. -ms-flex: 2;
  80. -moz-flex: 2;
  81. -webkit-flex: 2;
  82. flex: 2;
  83. }
  84. .flex-3 {
  85. -webkit-box-flex: 3;
  86. -ms-flex: 3;
  87. -moz-flex: 3;
  88. -webkit-flex: 3;
  89. flex: 3;
  90. }
  91. .justify-start {
  92. -webkit-box-pack: start;
  93. -ms-flex-pack: start;
  94. -moz-justify-content: flex-start;
  95. -webkit-justify-content: flex-start;
  96. justify-content: flex-start;
  97. }
  98. .justified {
  99. -webkit-box-pack: center;
  100. -ms-flex-pack: center;
  101. -moz-justify-content: center;
  102. -webkit-justify-content: center;
  103. justify-content: center;
  104. }
  105. .justify-end {
  106. -webkit-box-pack: end;
  107. -ms-flex-pack: end;
  108. -moz-justify-content: flex-end;
  109. -webkit-justify-content: flex-end;
  110. justify-content: flex-end;
  111. }
  112. .justify-between {
  113. -webkit-box-pack: justify;
  114. -ms-flex-pack: justify;
  115. -moz-justify-content: space-between;
  116. -webkit-justify-content: space-between;
  117. justify-content: space-between;
  118. }
  119. .start {
  120. -webkit-box-align: start;
  121. -ms-flex-align: start;
  122. -moz-align-items: flex-start;
  123. -webkit-align-items: flex-start;
  124. align-items: flex-start;
  125. }
  126. .center {
  127. -webkit-box-align: center;
  128. -ms-flex-align: center;
  129. -moz-align-items: center;
  130. -webkit-align-items: center;
  131. align-items: center;
  132. }
  133. .end {
  134. -webkit-box-align: end;
  135. -ms-flex-align: end;
  136. -moz-align-items: flex-end;
  137. -webkit-align-items: flex-end;
  138. align-items: flex-end;
  139. }