shared.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. /* -- Clear Fix -- */
  2. .clearfix:after {content: "."; display: block; height: 0; clear: both; visibility: hidden;}
  3. /* wrapper for all css */
  4. .ccs-shared {
  5. position: relative;
  6. font-family: "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", Helvetica, Arial, sans-serif;
  7. font-size: 12px;
  8. }
  9. /* all links default styles */
  10. .ccs-shared a {
  11. color: #3e528c;
  12. text-decoration: none;
  13. cursor: pointer;
  14. outline: none;
  15. }
  16. .ccs-shared .jframe_ignore a {
  17. text-decoration: none;
  18. }
  19. .ccs-shared a:hover {
  20. text-decoration: underline;
  21. }
  22. /* all imgs default styles */
  23. .ccs-shared img {
  24. border: 0px;
  25. }
  26. /* all paragraph default styles */
  27. .ccs-shared p {
  28. margin-bottom: 12px;
  29. }
  30. /* all input and form element default styles */
  31. .ccs-shared input, .ccs-shared textarea {
  32. padding: 2px;
  33. }
  34. .ccs-shared label {
  35. cursor: pointer;
  36. }
  37. .ccs-shared pre {
  38. font-family: monaco, courier;
  39. }
  40. /* errors */
  41. .ccs-error {
  42. color: #900;
  43. }
  44. /* all em default styles */
  45. .ccs-shared em, .ccs-shared i {
  46. font-style: italic;
  47. }
  48. /* all code default styles */
  49. .ccs-shared .ccs-code, .ccs-shared.ccs-code, .ccs-code {
  50. font-family: "Andale Mono", "Monaco", "Courier New" !important;
  51. }
  52. /* text is not selectable; good for double click actions like links to prevent the double click from selecting
  53. note that the user cannot select this text even if that's their intention; use sparingly */
  54. .ccs-no_select, .ccs-no_select * {
  55. user-select: none;
  56. -moz-user-select: none;
  57. -webkit-user-select: none;
  58. }
  59. /* OverText - input lables using OverText.js from MooTools More */
  60. .ccs-shared label.overTxtLabel {
  61. font-size: 11px;
  62. color: #999;
  63. margin-top: 3px;
  64. }
  65. .ccs-shared label.OverText-ArtInput {
  66. margin-top: 0px;
  67. }
  68. /* clear both sides of floats */
  69. .ccs-shared .ccs-clear {
  70. clear:both;
  71. }
  72. /* center text */
  73. .ccs-shared .ccs-center {
  74. text-align: center;
  75. }
  76. /* float left */
  77. .ccs-shared .ccs-left {
  78. float: left;
  79. }
  80. /* float right */
  81. .ccs-shared .ccs-right {
  82. float: right;
  83. }
  84. /* not displayed */
  85. .ccs-shared .ccs-hidden {
  86. display: none;
  87. }
  88. /* cursor pointer to connote clickability */
  89. .ccs-shared .ccs-pointer {
  90. cursor:pointer;
  91. }
  92. /* inline block display; makes elements block level, but follows page flow */
  93. .ccs-shared .ccs-inline, .ccs-shared ul.css-inline_list li {
  94. display:-moz-inline-box; /* FF2 */
  95. display:inline-block; /* webkit and FF3 */
  96. #zoom: 1; /* set hasLayout:true to mimic inline-block */
  97. #display:inline;
  98. border:0;
  99. padding:0;
  100. vertical-align:middle;
  101. #vertical-align: auto; /* makes TextBox,Button line up w/native counterparts on IE6 */
  102. position: relative;
  103. }
  104. /* down divot image */
  105. .ccs-shared .ccs-down_divot {
  106. width: 11px;
  107. height: 11px;
  108. display: block;
  109. background: url(../art/divots.png) -11px -11px no-repeat;
  110. }
  111. /* tabbed layout */
  112. /* .css-tabs, a ul; container for the tabs
  113. <ul class="ccs-tabs">
  114. <li><span>Tab 1</span></li>
  115. <li><span>Tab 2</span></li>
  116. <li><span>Tab 3</span></li>
  117. </ul>
  118. <ul class="ccs-tab_sections">
  119. <li> section for tab 1 </li>
  120. <li> section for tab 2 </li>
  121. <li> section for tab 3 </li>
  122. </ul>
  123. */
  124. .ccs-shared ul.ccs-tabs {
  125. margin: none;
  126. padding: none;
  127. }
  128. .ccs-shared .right_col pre {
  129. overflow: visible;
  130. }
  131. .ccs-shared .right_col ul.ccs-tab_sections {
  132. overflow: visible;
  133. }
  134. .ccs-shared ul.ccs-tab_sections {
  135. overflow: visible;
  136. }
  137. /* the tab elements, li elements */
  138. .ccs-shared .ccs-tabs li {
  139. cursor: pointer;
  140. height: 19px;
  141. line-height: 19px;
  142. background: url(/static/art/tabs.png);
  143. margin-right: 8px !important;
  144. color: #444;
  145. }
  146. /* each tab's text/html is wrapped in a span */
  147. .ccs-tabs li span {
  148. height: 18px;
  149. display: block;
  150. background: url(/static/art/tabs.png) right top;
  151. position: relative;
  152. left: 6px;
  153. padding: 1px 6px 0px 0px;
  154. }
  155. .ccs-shared .ccs-tabs > li {
  156. list-style: none;
  157. float: left;
  158. }
  159. .ccs-shared .ccs-tabs li.tabSelected {
  160. color: #000;
  161. background: url(/static/art/tabs.png) left 38px;
  162. }
  163. .ccs-shared .ccs-tabs li.tabSelected span {
  164. background: url(/static/art/tabs.png) right 38px;
  165. }
  166. .ccs-shared .ccs-tabs li:hover {
  167. color: #000;
  168. background: url(/static/art/tabs.png) left 19px;
  169. }
  170. .ccs-shared .ccs-tabs li:hover span {
  171. background: url(/static/art/tabs.png) right 19px;
  172. }
  173. /* stripy table */
  174. /*
  175. see: HtmlTable.js, HtmlTable.Zebra.js, HtmlTable.Select.js, HtmlTable.Sort.js in MooTools More
  176. <table data-filters="HtmlTable" class="selectable sortable" cellpadding="0" cellspacing="0">
  177. <thead>
  178. <tr>
  179. <th>Header for Column 1</th>
  180. <th>Header for Column 2</th>
  181. <th>Header for Column 3</th>
  182. </tr>
  183. </thead>
  184. <tbody>
  185. <tr><td> col 1 </td><td> col 2 </td><td> col 3 </td></tr>
  186. <tr><td> col 1 </td><td> col 2 </td><td> col 3 </td></tr>
  187. <tr><td> col 1 </td><td> col 2 </td><td> col 3 </td></tr>
  188. <tr><td> col 1 </td><td> col 2 </td><td> col 3 </td></tr>
  189. </tbody>
  190. </table>
  191. give it class "selectable" to allow the user to select rows
  192. give it class "sortable" to allow the user to sort the table
  193. */
  194. table[data-filters*=HtmlTable] {
  195. width: 100%;
  196. }
  197. table[data-filters*=HtmlTable] thead {
  198. background: url(/static/art/th_back.png);
  199. }
  200. table[data-filters*=HtmlTable] thead th {
  201. text-align: left;
  202. white-space: nowrap;
  203. padding: 0px 6px;
  204. border: 1px solid #b2b2b2;
  205. border-width: 0px 1px 1px 0px;
  206. height: 16px !important;
  207. line-height: 16px !important;
  208. font-size: 12px;
  209. font-weight: normal;
  210. overflow: hidden;
  211. }
  212. table[data-filters*=HtmlTable] th:last-child {
  213. border-right: none;
  214. }
  215. table[data-filters*=HtmlTable] td {
  216. white-space: nowrap;
  217. padding: 0px 8px;
  218. height: 20px;
  219. line-height: 20px;
  220. background: #fff;
  221. border: none;
  222. }
  223. table[data-filters*=HtmlTable] tr.table-tr-odd td {
  224. background: #f3f3f3;
  225. }
  226. table[data-filters*=HtmlTable] tr:nth-child(odd) td {
  227. background: #f3f3f3;
  228. }
  229. table[data-filters*=HtmlTable] tr:hover > td, table[data-filters*=HtmlTable] tr.table-tr-hovered td {
  230. background-color: #d4e7f8;
  231. color: #000;
  232. cursor: pointer;
  233. }
  234. table[data-filters*=HtmlTable].noSelect tr:hover > td, table[data-filters*=HtmlTable].noSelect tr.table-tr-hovered td {
  235. cursor: auto;
  236. }
  237. table[data-filters*=HtmlTable] tr.selected td, table[data-filters*=HtmlTable] tr.table-tr-selected td, table[data-filters*=HtmlTable] tr.selected td a, table[data-filters*=HtmlTable] tr.table-tr-selected td a {
  238. background-color: #3875d7;
  239. color: #fff;
  240. }
  241. table.table-sortable th {
  242. cursor: pointer;
  243. }
  244. table.table-sortable th div {
  245. position: relative;
  246. padding-right: 10px;
  247. }
  248. span.table-th-sort-span {
  249. width: 7px;
  250. height: 16px;
  251. display: block;
  252. cursor: pointer;
  253. position: absolute;
  254. right: -2px;
  255. top: 0px;
  256. }
  257. .table-th-sort span.table-th-sort-span {
  258. background: url(/static/art/icons/bullet_arrow_down.png) -4px top no-repeat;
  259. }
  260. .table-th-sort-rev span.table-th-sort-span {
  261. background: url(/static/art/icons/bullet_arrow_up.png) -4px top no-repeat;
  262. }
  263. /* stickywin solid; this is the login window styles */
  264. div.solid-win div.body-left {
  265. background: url(../art/sticky-win-solid-back.png);
  266. width: 16px !important;
  267. overflow: visible;
  268. position: relative;
  269. z-index: 1;
  270. }
  271. div.solid-win div.body {
  272. position: relative;
  273. left: 16px;
  274. padding: 10px 16px 1px 0px;
  275. background: url(../art/sticky-win-solid-back.png) top right;
  276. }
  277. div.solid-win div.bottom {
  278. z-index: 0;
  279. background: url(../art/sticky-win-solid-back.png) bottom left;
  280. width: 16px !important;
  281. overflow: visible;
  282. position: relative;
  283. clear: both;
  284. }
  285. div.solid-win div.bottom_lr {
  286. position: relative;
  287. left: 16px;
  288. background: url(../art/sticky-win-solid-back.png) bottom right;
  289. height: 20px;
  290. padding-right: 16px;
  291. }
  292. /* JFrame styles */
  293. /* these are applied for you by default */
  294. div.jframe_wrapper {
  295. position: relative;
  296. height: 100%;
  297. }
  298. div.jframe_contents {
  299. min-height: 100%;
  300. }
  301. div.jframe_default h1, h2, h3, h4, h5 {
  302. padding: 0;
  303. margin: 0;
  304. margin-bottom: .3em;
  305. }
  306. /* put this on your root element (or any element you want to have a 10px padding)
  307. jframe content without this will be flush with the borders of the window */
  308. .jframe_padded {
  309. padding: 10px;
  310. }
  311. /* apply jframe_default class if you want to give your layout standard HTML-like layout
  312. good for documents for example. */
  313. div.jframe_default ul,
  314. div.jframe_default ol {
  315. padding-left: 1.5em;
  316. margin: 0;
  317. margin-bottom: 1em;
  318. }
  319. div.jframe_default ul li{
  320. list-style-type: disc;
  321. margin-bottom: 0.5em;
  322. }
  323. div.jframe_default a{
  324. font-weight: bold;
  325. }
  326. div.jframe_default code {
  327. font-family: fixed;
  328. }
  329. div.jframe_default table {
  330. border-collapse: separate;
  331. }
  332. div.jframe_default h1,
  333. div.jframe_default h2,
  334. div.jframe_default h3,
  335. div.jframe_default h4,
  336. div.jframe_default h5 { font-weight: bold; }
  337. div.jframe_default h1 { font-size: 150%; margin-bottom: 0.3em; padding-top: 8px; margin-top: 0px;}
  338. div.jframe_default h2 { font-size: 130%; margin-bottom: 0.3em; padding-top: 8px; margin-top: 0px;}
  339. div.jframe_default h3 { font-size: 120%; margin-bottom: 0.3em; padding-top: 8px; margin-top: 0px;}
  340. div.jframe_default h4 { font-size: 110%; margin-bottom: 0.3em; padding-top: 8px; margin-top: 0px;}
  341. div.jframe_default h5 { font-size: 105%; margin-bottom: 0.3em; padding-top: 8px; margin-top: 0px;}
  342. /* context menu */
  343. /*
  344. Create a UL element with the class context-menu (a ul with li items for each menu item). Put it inside the container you want to give a right click menu (like a div; for tables, put it inside a td - if you want the tr to have the right click behaviore, still put it in a td)
  345. Give the parent that has the right click control define the following in its data-context-menu-actions property:
  346. [ //array of actions; this allows support for more than one context menu in a single parent
  347. {
  348. 'events':['contextmenu','click:relay(.myapp-options)'], //when the user right clicks, or clicks a .myapp-options element
  349. 'menu':'ul.context-menu' //it shows this menu
  350. }
  351. ]
  352. Note that you can have more than one right click menu per container. This allows a table row to be right clicked and show a different menu if the user right clicks, say, an image vs a link or different td elements. See CCS.ContextMenu.js.
  353. */
  354. .ccs-shared ul.context-menu {
  355. border-radius: 2px;
  356. -moz-border-radius: 2px;
  357. -webkit-border-radius: 2px;
  358. background: #fff;
  359. border: solid #777;
  360. border-width: 1px;
  361. position: absolute;
  362. z-index: 1;
  363. display: none;
  364. overflow: visible;
  365. }
  366. .ccs-shared ul.context-menu * {
  367. white-space: nowrap;
  368. }
  369. .ccs-shared ul.context-menu li {
  370. border-bottom: 1px solid #ccc;
  371. padding: 3px;
  372. }
  373. .ccs-shared table[data-filters*=HtmlTable] tr.table-tr-selected td ul.context-menu li a {
  374. color: #000;
  375. background-color: #fff;
  376. text-decoration: none;
  377. }
  378. .ccs-shared .context-menu li:hover, .ccs-shared table[data-filters*=HtmlTable] tr.table-tr-selected td ul.context-menu li:hover a, .ccs-shared ul.context-menu li:hover a {
  379. text-decoration: none;
  380. background-color: #333;
  381. color: #fff;
  382. }
  383. .ccs-shared ul.context-menu li:last-child {
  384. border: none;
  385. }
  386. /* button bar */
  387. input[data-filters*=ArtButton] {
  388. padding: 0px 0px 0px 0px;
  389. /* webkit madness:
  390. put this padding statement in place and buttons are still padding 0/8/0/8px
  391. add the border: 0px statement below
  392. and they all go to 0/0/0/0px
  393. */
  394. border: 0px;
  395. }
  396. .ccs-shared [data-filters*=ArtButtonBar] a {
  397. float: left;
  398. height: 19px;
  399. }
  400. .ccs-shared [data-filters*=ArtButtonBar] li {
  401. margin-right: 0 !important;
  402. }
  403. /* side by side select */
  404. /*
  405. Takes a multi-select box and makes it so you can click to move elements from a selected list to a non-selected list.
  406. */
  407. .sideBySideSelect {
  408. user-select: none;
  409. -moz-user-select: none;
  410. -webkit-user-select: none;
  411. min-width:340px;
  412. }
  413. .sideBySideSelect div.deselected, .sideBySideSelect div.selected {
  414. border: 1px solid #333;
  415. float: left;
  416. width: 45%;
  417. height: 150px;
  418. background: #fff;
  419. overflow: auto;
  420. }
  421. .sideBySideSelect .spacer {
  422. padding-top: 50px;
  423. width: 30px;
  424. float: left;
  425. }
  426. .sideBySideSelect .spacer a {
  427. display: block;
  428. width: 16px;
  429. height: 16px;
  430. text-indent: -900px;
  431. margin: 5px auto;
  432. }
  433. .sideBySideSelect .spacer .moveRight {
  434. background: url(/static/art/led-icons/arrow_right.png) no-repeat;
  435. }
  436. .sideBySideSelect .spacer .moveLeft {
  437. background: url(/static/art/led-icons/arrow_left.png) no-repeat;
  438. }
  439. /* help text links */
  440. [data-filters*=HelpTip], [data-filters*=InfoTip] {
  441. display:-moz-inline-box; /* FF2 */
  442. display:inline-block; /* webkit and FF3 */
  443. #zoom: 1; /* set hasLayout:true to mimic inline-block */
  444. #display:inline;
  445. border:0;
  446. padding:0;
  447. vertical-align:middle;
  448. #vertical-align: auto; /* makes TextBox,Button line up w/native counterparts on IE6 */
  449. position: relative;
  450. width: 14px;
  451. height: 14px;
  452. background: url(/static/art/help.png);
  453. text-indent: -200px;
  454. overflow: hidden;
  455. }
  456. [data-filters*=InfoTip] {
  457. background: url(/static/art/info.png);
  458. }
  459. [data-filters*=ArtInput] {
  460. display: none;
  461. }
  462. [data-filters*=SizeTo] {
  463. overflow: auto;
  464. }
  465. .vertical .art-splitview-splitter {
  466. box-shadow: 0px -1px 3px #aaa;
  467. -webkit-box-shadow: 0px -1px 3px #aaa;
  468. -moz-box-shadow: 0px -1px 3px #aaa;
  469. }