stylesheet.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. body {
  2. font-family: Arial;
  3. margin: 0;
  4. }
  5. /* page layout */
  6. .wrapper {
  7. display: grid;
  8. grid-template-areas:
  9. "header"
  10. "settings"
  11. "graphs"
  12. "tree";
  13. width: 100%;
  14. grid-gap: 30px;
  15. }
  16. .main-head {
  17. grid-area: header;
  18. padding: 60px;
  19. text-align: center;
  20. background: #1abc9c;
  21. color: white;
  22. font-size: 48pt;
  23. }
  24. #tree {
  25. grid-area: tree;
  26. margin: 0 10px;
  27. }
  28. #settings {
  29. grid-area: settings;
  30. margin: 0 10px;
  31. }
  32. /* texts and spacers */
  33. #tree li.spacer {
  34. padding-top: 20px;
  35. }
  36. #tree .channel.header {
  37. font-weight: bold;
  38. }
  39. /* counts and checkboxes */
  40. #tree, #tree li {
  41. display: grid;
  42. grid-template-columns: auto 20px 20px;
  43. align-content: start;
  44. }
  45. #tree .name {
  46. grid-row: 1/2;
  47. grid-column: 1/2;
  48. }
  49. #tree .count {
  50. grid-row: 1/2;
  51. grid-column: 2/3;
  52. justify-self: end;
  53. width: 100%;
  54. }
  55. #tree .checkbox {
  56. grid-row: 1/2;
  57. grid-column: 3/4;
  58. }
  59. #tree ul {
  60. grid-row: 2/3;
  61. grid-column: 1/4;
  62. }
  63. /*tree borders */
  64. #tree ul {
  65. list-style-type: none;
  66. margin: 0;
  67. padding: 0;
  68. position: relative;
  69. }
  70. #tree li {
  71. border-left: 2px solid #000;
  72. margin-left: 1em;
  73. }
  74. #tree .name {
  75. padding-left: 1em;
  76. position: relative;
  77. }
  78. #tree li .name::before {
  79. content:'';
  80. position: absolute;
  81. top: 0;
  82. left: -2px;
  83. bottom: 50%;
  84. width: 100%;
  85. border: 2px solid #000;
  86. border-top: 0 none transparent;
  87. border-right: 0 none transparent;
  88. z-index: -10;
  89. }
  90. #tree .channel {
  91. position: relative;
  92. background-color: white;
  93. font-weight: bold;
  94. }
  95. #tree .channel:first-child {
  96. margin-left: 5px;
  97. }
  98. #tree .channel.normal {
  99. font-weight: normal;
  100. }
  101. #tree .channel > span{
  102. background-color: white;
  103. padding: 0 5px;
  104. }
  105. #tree .channel.center {
  106. background-color: transparent;
  107. text-align: center;
  108. }
  109. #tree .channel.center > span::before {
  110. content: '';
  111. position: absolute;
  112. height: 19px;
  113. left: 50%;
  114. right: 0;
  115. background-color: white;
  116. z-index: -1;
  117. }
  118. #tree .channel.right {
  119. background-color: transparent;
  120. text-align: right;
  121. }
  122. #tree ul > li:first-child::before {
  123. content: '';
  124. position: absolute;
  125. top: calc(-0.5em - 3px);
  126. height: 19px;
  127. left: 1em;
  128. border-left: 2px solid #000;
  129. }
  130. #tree ul > li:last-child {
  131. border-left: 2px solid transparent;
  132. }
  133. /* graphs */
  134. #graphs {
  135. grid-area: graphs;
  136. display: flex;
  137. flex-wrap: wrap;
  138. align-content: flex-start;
  139. align-items: stretch;
  140. }
  141. .demo-container {
  142. box-sizing: border-box;
  143. min-width: 100%;
  144. max-width: 100vw;
  145. height: 400px;
  146. padding: 20px 15px 15px 15px;
  147. margin: 0 auto 30px auto;
  148. border: 1px solid #ddd;
  149. background: #fff;
  150. background: linear-gradient(#f6f6f6 0, #fff 50px);
  151. box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  152. user-select: none;
  153. flex-grow: 1;
  154. }
  155. .demo-placeholder {
  156. width: 100%;
  157. height: 100%;
  158. font-size: 14px;
  159. }
  160. @media (min-width: 600px) {
  161. .wrapper {
  162. grid-template-areas:
  163. "header header"
  164. "tree settings"
  165. "tree graphs";
  166. grid-template-columns: 400px auto;
  167. grid-template-rows: auto 50px auto;
  168. }
  169. .demo-container {
  170. min-width: 850px;
  171. }
  172. #tree {
  173. margin-left: 10px;
  174. }
  175. #settings {
  176. margin-right: 10px;
  177. }
  178. #graphs {
  179. margin-right: 10px;
  180. }
  181. }