style.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. html,body{
  2. width: 100%;
  3. height: 100%;
  4. padding: 0;
  5. margin: 0;
  6. overflow: hidden;
  7. }
  8. .unselectable{
  9. cursor: default;
  10. }
  11. .fill{
  12. width: 100%;
  13. height: 100%;
  14. }
  15. .row{
  16. display: table-row;
  17. }
  18. .cell{
  19. display: table-cell;
  20. }
  21. .unselectable,#tabs-list div.tab{
  22. -webkit-touch-callout: none;
  23. -webkit-user-select: none;
  24. -khtml-user-select: none;
  25. -moz-user-select: none;
  26. -ms-user-select: none;
  27. user-select: none;
  28. }
  29. .close-button{
  30. float: right;
  31. font-weight: bold;
  32. font-size: 24px;
  33. margin-top: -5px;
  34. font-family: Arial,Liberation Sans,DejaVu Sans,sans-serif;
  35. }
  36. .close-button:hover{
  37. color: red;
  38. }
  39. #head{
  40. right: 0;
  41. top: 0;
  42. width: 100%;
  43. height: 40px;
  44. border-bottom-style: solid;
  45. background-color: white;
  46. transition: height 0.3s;
  47. z-index: 10;
  48. }
  49. #info{
  50. display: table;
  51. width: 100%;
  52. }
  53. #title{
  54. display: table-cell;
  55. }
  56. #topic{
  57. display: table-cell;
  58. text-align: right;
  59. }
  60. #content{
  61. width: 100%;
  62. height: calc(100% - 61px);
  63. top: 41px;
  64. left: 0;
  65. }
  66. #settings,#users{
  67. bottom: 0;
  68. height: 18px;
  69. background-color: white;
  70. border-left-style: solid;
  71. border-top-style: solid;
  72. margin-top: -1px;
  73. transition: width 0.5s, height 0.5s, right 0.5s;
  74. }
  75. #settings span,#users span{
  76. cursor: pointer;
  77. }
  78. #users{
  79. right: 0;
  80. width: 36px;
  81. z-index: 1;
  82. }
  83. #settings{
  84. width: 52px;
  85. border-right-style: solid;
  86. right: 36px;
  87. }
  88. #settings.hovered,#users.hovered{
  89. height: 21px;
  90. }
  91. #settings.open,#users.open{
  92. width: 150px;
  93. height: 100%;
  94. right: 0;
  95. z-index: 20;
  96. }
  97. #settings.open{
  98. width: 300px;
  99. }
  100. #entry{
  101. width: 100%;
  102. border-top-style: solid;
  103. height: 18px;
  104. bottom: 0;
  105. }
  106. #input{
  107. width: calc(100% - 126px);
  108. height: 16px;
  109. margin: 0;
  110. padding: 1px;
  111. border-style: none;
  112. background-color: grey;
  113. clear: none;
  114. bottom: 0;
  115. left: 0;
  116. }
  117. #send{
  118. clear: none;
  119. bottom: 0;
  120. right: 88px;
  121. width: 36px;
  122. padding: 0;
  123. margin: 0;
  124. height: 18px;
  125. border-style: none;
  126. border-left-style: solid;
  127. background-color: white;
  128. transition: background-color 0.2s;
  129. }
  130. #send:hover{
  131. background-color: grey;
  132. }
  133. #send.clicked{
  134. background-color: red;
  135. }
  136. #content,#head,#users,#entry,#input,#send,#settings{
  137. border-color: black;
  138. border-width: 1px;
  139. overflow: hidden;
  140. position: absolute;
  141. }
  142. #users,#input,#send,#settings{
  143. position: fixed;
  144. }
  145. #content-list,#user-list,#settings-list,#tabs-list{
  146. list-style-type: none;
  147. margin: 0;
  148. padding: 0;
  149. overflow: auto;
  150. }
  151. #content-list,#user-list,#tabs-list{
  152. width: 100%;
  153. height: 100%;
  154. }
  155. #settings-list{
  156. display: table;
  157. }
  158. #settings-list > li{
  159. line-height: 4px;
  160. }
  161. #user-list{
  162. padding-left: 5px;
  163. }
  164. #tabs-list{
  165. width: calc(100% - 42px);
  166. height: 20px;
  167. position: absolute;
  168. left: 0;
  169. top: 20px;
  170. overflow: hidden;
  171. }
  172. #tabs-list div.tab{
  173. float: left;
  174. min-width: 100px;
  175. max-width: 200px;
  176. height: 19px;
  177. overflow: hidden;
  178. position: relative;
  179. }
  180. #tabs-list div.tab.clicked{
  181. background-color: lightgrey;
  182. }
  183. #tabs-scroll-left{
  184. position: absolute;
  185. right: 20px;
  186. top: 20px;
  187. height: 20px;
  188. width: 20px;
  189. }
  190. #tabs-scroll-right{
  191. position: absolute;
  192. right: 0;
  193. top: 20px;
  194. height: 20px;
  195. width: 20px;
  196. }
  197. #tabs-list div.tab, #tabs-scroll-right,#tabs-scroll-left{
  198. border-style: solid;
  199. border-top-right-radius: 3px;
  200. border-top-left-radius: 3px;
  201. border-color: black;
  202. border-top-style: solid;
  203. border-right-style: solid;
  204. border-left-style: solid;
  205. border-bottom-style: none;
  206. border-width: 1px;
  207. padding: 0;
  208. margin: 0;
  209. background-color: white;
  210. cursor: pointer;
  211. clear: none;
  212. }
  213. #tabs-list div.tab:hover, #tabs-scroll-right:hover,#tabs-scroll-left:hover{
  214. background-color: grey;
  215. }
  216. #tabs-scroll-left.disabled, #tabs-scroll-right.disabled{
  217. background-color: lightgrey;
  218. }