ui.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. /*
  2. This file is part of CPEE.
  3. CPEE is free software: you can redistribute it and/or modify it under the terms
  4. of the GNU General Public License as published by the Free Software Foundation,
  5. either version 3 of the License, or (at your option) any later version.
  6. CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
  7. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  8. PARTICULAR PURPOSE. See the GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along with
  10. CPEE (file COPYING in the main directory). If not, see
  11. <http://www.gnu.org/licenses/>.
  12. */
  13. :root {
  14. --x-ui-border-color: #a1a1a1;
  15. --x-ui-outside-color: #ffffff;
  16. --x-ui-background-color: #ffffff;
  17. --x-ui-light-text-color: #333;
  18. --x-ui-light-back-color: #e8e8e8;
  19. --x-ui-link-color: #425d73;
  20. }
  21. body {
  22. font-family: sans-serif;
  23. font-size: 1em;
  24. }
  25. *[is=x-ui] {
  26. font-family: sans-serif,Arial,Verdana,Helvetica;
  27. font-size: 0.85em;
  28. height: 100vh;
  29. display: flex;
  30. flex-direction: column;
  31. background-color: var(--x-ui-outside-color);
  32. padding:0;
  33. margin:0;
  34. color: var(--x-ui-light-text-color);
  35. overflow: hidden;
  36. }
  37. /* Browser Bug, set textarea explicitly */
  38. *[is=x-ui] textarea, input, select, button {
  39. font-family: Verdana, Helvetica, sans-serif;
  40. font-size: 1em;
  41. resize: none;
  42. }
  43. *[is=x-ui] button {
  44. padding: .1em .2em;
  45. border: 1pt solid var(--x-ui-border-color);
  46. border-radius: 0.2em;
  47. margin: 0;
  48. font-size: 0.9em;
  49. background: var(--x-ui-light-back-color);
  50. background: -webkit-gradient(linear, left top, left bottom, from(white), to(var(--x-ui-light-back-color)));
  51. background: -moz-linear-gradient(top, white, var(--x-ui-light-back-color));
  52. }
  53. *[is=x-ui] button::-moz-focus-inner {
  54. border: 0 none;
  55. padding: 0;
  56. margin: 0;
  57. }
  58. *[is=x-ui] button.highlight {
  59. background: -webkit-gradient(linear, left top, left bottom, from(white), to(Highlight));
  60. background: -moz-linear-gradient(top, white, Highlight);
  61. }
  62. *[is=x-ui] input { font-family: sans-serif; font-size: 1em; }
  63. *[is=x-ui] input::-webkit-input-placeholder { color: red; }
  64. *[is=x-ui] input:-moz-placeholder { color: red; }
  65. *[is=x-ui] a:link { color:var(--x-ui-link-color); text-decoration:none; }
  66. *[is=x-ui] a:visited { color:var(--x-ui-link-color); text-decoration:none; }
  67. *[is=x-ui] a:hover { color:var(--x-ui-light-text-color); text-decoration:underline; }
  68. *[is=x-ui] a:active { color:var(--x-ui-light-text-color); text-decoration:underline; }
  69. *[is=x-ui] ui-tabbed {
  70. background-color: var(--x-ui-outside-color);
  71. min-height: -webkit-min-content;
  72. min-height: -moz-min-content;
  73. min-height: min-content;
  74. margin-left: 0.5em;
  75. margin-right: 0.5em;
  76. }
  77. *[is=x-ui] ui-rest {
  78. display: flex;
  79. background-color: var(--x-ui-background-color);
  80. align-items: stretch;
  81. flex-direction: column;
  82. padding: 0;
  83. margin: 0;
  84. flex: 1 1 auto;
  85. }
  86. *[is=x-ui] ui-tabbed.off {
  87. border-bottom: 0.2em solid var(--x-ui-border-color);
  88. border-radius: 0;
  89. }
  90. *[is=x-ui] ui-tabbed.off > ui-content {
  91. display: none;
  92. }
  93. *[is=x-ui] ui-tabbed.off > ui-tabbar > ui-behind {
  94. display: none;
  95. }
  96. *[is=x-ui] ui-tabbar {
  97. background-color: var(--x-ui-outside-color);
  98. display: flex;
  99. align-items: stretch;
  100. flex-direction: row;
  101. padding: 0;
  102. margin: 0;
  103. padding-top: 0.5em;
  104. -webkit-user-select: none;
  105. -moz-user-select: none;
  106. -ms-user-select: none;
  107. user-select: none;
  108. }
  109. *[is=x-ui] ui-tabbed > ui-tabbar > ui-tab.switch {
  110. background-color: var(--x-ui-light-back-color);
  111. }
  112. *[is=x-ui] ui-tabbed > ui-tabbar > ui-tab.switch:after {
  113. content: "▽";
  114. font-weight: bold;
  115. vertical-align:top;
  116. color: var(--x-ui-light-text-color);
  117. }
  118. *[is=x-ui] ui-tabbed.off > ui-tabbar > ui-tab.switch:after {
  119. content: "▶";
  120. font-weight: bold;
  121. color: var(--x-ui-light-text-color);
  122. vertical-align:top;
  123. }
  124. *[is=x-ui] ui-tabbar > ui-tab {
  125. font-size: 1.4em;
  126. font-weight: bold;
  127. white-space: nowrap;
  128. cursor: pointer;
  129. padding: 0.3em 0.5em;
  130. border: 1pt solid var(--x-ui-border-color);
  131. border-bottom: 1pt solid var(--x-ui-background-color);
  132. border-radius: 0.7em;
  133. border-bottom-left-radius: 0em;
  134. border-bottom-right-radius: 0em;
  135. background: var(--x-ui-background-color);
  136. }
  137. *[is=x-ui] ui-tabbar > ui-tab.inactive, ui-tabbed > ui-tabbar > ui-tab.switch {
  138. border: 1pt solid var(--x-ui-border-color);
  139. border-radius: 0.7em;
  140. border-bottom-left-radius: 0em;
  141. border-bottom-right-radius: 0em;
  142. }
  143. *[is=x-ui] ui-tabbar > ui-behind {
  144. flex: 1 1 auto;
  145. vertical-align:bottom;
  146. padding: 0;
  147. padding-top: 0.9em;
  148. border-bottom: 1pt solid var(--x-ui-border-color);
  149. border-radius: 0.7em;
  150. border-bottom-left-radius: 0em;
  151. border-bottom-right-radius: 0em;
  152. text-align:right;
  153. white-space: nowrap;
  154. }
  155. *[is=x-ui] ui-rest > ui-tabbar > ui-behind {
  156. padding-right: 0.5em;
  157. }
  158. *[is=x-ui] ui-rest > ui-tabbar > ui-before {
  159. border-bottom: 1pt solid var(--x-ui-border-color);
  160. padding-left:0.5em;
  161. }
  162. *[is=x-ui] ui-content {
  163. background-color: var(--x-ui-background-color);
  164. padding: 1em;
  165. margin: 0;
  166. border-bottom: 1pt solid var(--x-ui-border-color);
  167. border-left: 1pt solid var(--x-ui-border-color);
  168. border-right: 1pt solid var(--x-ui-border-color);
  169. border-bottom-left-radius: 1em;
  170. border-bottom-right-radius: 1em;
  171. }
  172. *[is=x-ui] ui-rest > ui-content {
  173. padding: 0;
  174. margin: 0;
  175. border-radius: 0;
  176. border: 0 none;
  177. display: flex;
  178. height: 0;
  179. flex-direction: row;
  180. flex: 1 1 auto;
  181. }
  182. *[is=x-ui] ui-rest > ui-content > ui-area {
  183. flex: 1 1 0%;
  184. overflow-x: auto;
  185. overflow-y: scroll;
  186. }
  187. *[is=x-ui] ui-rest > ui-content > ui-resizehandle {
  188. width: 0em;
  189. }
  190. *[is=x-ui] ui-rest > ui-content > ui-resizehandle + ui-area > ui-tabbed {
  191. margin-left: 1.5em;
  192. }
  193. *[is=x-ui] ui-rest > ui-content > ui-resizehandle + ui-area > ui-rest > ui-tabbar > ui-before {
  194. padding-left: 1.5em;
  195. }
  196. *[is=x-ui] ui-close {
  197. margin-left: 0.5em;
  198. }
  199. *[is=x-ui] ui-rest > ui-content > ui-resizehandle::before {
  200. display: block;
  201. position: absolute;
  202. color: var(--x-ui-border-color);
  203. white-space:nowrap;
  204. cursor: ew-resize;
  205. -webkit-transform: rotate(90deg);
  206. -webkit-transform-origin: 0% 0%;
  207. -moz-transform: rotate(90deg);
  208. -moz-transform-origin: left top;
  209. margin-left: 1.4em;
  210. margin-top: 0.2em;
  211. content: attr(data-label);
  212. }
  213. *[is=x-ui] ui-content > ui-area {
  214. margin: 0;
  215. padding: 0;
  216. }
  217. *[is=x-ui] > ui-resizehandle {
  218. color: var(--x-ui-border-color);
  219. white-space:nowrap;
  220. z-index: 99999;
  221. cursor: s-resize;
  222. text-align: right;
  223. margin-top: 0.2em;
  224. margin-right: 0.5em;
  225. }
  226. *[is=x-ui] ui-tabbed, ui-content, ui-area { display: block; }
  227. *[is=x-ui] ui-content > ui-area.inactive, ui-content > ui-resizehandle.inactive, ui-rest > ui-content > ui-resizehandle.inactive { display: none }
  228. *[is=x-ui] ui-content > ui-area .x-ui-layout {
  229. width: 100%;
  230. border-collapse:collapse;
  231. border-spacing:0;
  232. border: 0 none;
  233. padding:0;
  234. margin:0;
  235. }
  236. *[is=x-ui] ui-rest > ui-content > ui-area .x-ui-layout {
  237. border:1em solid var(--x-ui-background-color);
  238. box-sizing:border-box;
  239. }
  240. *[is=x-ui] ui-content > ui-area .x-ui-layout td {
  241. border:0 none;
  242. padding:0;
  243. margin:0;
  244. }
  245. *[is=x-ui] ui-content > ui-area .x-ui-layout tr {
  246. border:0 none;
  247. padding:0;
  248. margin:0;
  249. }
  250. *[is=x-ui] ui-content > ui-area .x-ui-compact {
  251. border-collapse:collapse;
  252. border-spacing:0;
  253. border:0 none;
  254. padding:0;
  255. margin:0;
  256. }
  257. *[is=x-ui] ui-content > ui-area .x-ui-compact td {
  258. border:0 none;
  259. padding:0;
  260. margin:0;
  261. }
  262. *[is=x-ui] ui-content > ui-area .x-ui-compact tr {
  263. border:0 none;
  264. padding:0;
  265. margin:0;
  266. }
  267. *[is=x-ui] ui-content > ui-area .x-ui-layout .fixed { white-space:nowrap; }
  268. *[is=x-ui] ui-content > ui-area .x-ui-layout .top { vertical-align: top; }
  269. *[is=x-ui] .hidden {
  270. display: none;
  271. }