tripal.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. /**
  2. * The Tripal generic node template (node--chado-generc.tpl.php)
  3. * has an outer div box with class 'tripal-contents' and with an inner
  4. * table with an id of 'tripal-contents-table'. The table has a single
  5. * row with two columns. The smaller left column houses the table of
  6. * contents (TOC) for the node data. The larger right column houses the data:
  7. *
  8. * |-----------------------------------------------|
  9. * | .tripal-contents |
  10. * | |-------------------------------------------| |
  11. * | | #tripal-contents-table | |
  12. * | | | | |
  13. * | | | | |
  14. * | | TOC | Data | |
  15. * | | column | Column | |
  16. * | | | | |
  17. * | | | | |
  18. * | | | | |
  19. * | |-------------------------------------------| |
  20. * |-----------------------------------------------|
  21. *
  22. * The tripal-contents box and the inner table are designed to fill the width
  23. * of the contents section of any theme. Customize the CSS below to change
  24. * the look-and-feel.
  25. *
  26. */
  27. .tripal-contents {
  28. width: 100%;
  29. }
  30. #tripal-contents_table {
  31. padding: 0px !important;
  32. margin: 0px !important;
  33. }
  34. /**
  35. * The table formatting must override the default theme. This is because
  36. * the table is meant for organizing the sidebar and contents so they don't
  37. * slip and slide around as would happen with div boxes that were floated.
  38. * Therefore, we use !important to keep the default theme from overrideing
  39. * the table settings.
  40. */
  41. #tripal-contents-table tbody {
  42. padding: 0px !important;
  43. margin: 0px !important;
  44. border: none !important;
  45. background-color: transparent !important;
  46. }
  47. .tripal-contents-table-tr {
  48. padding: 0px !important;
  49. margin: 0px !important;
  50. border: none !important;
  51. background-color: transparent !important;
  52. }
  53. .tripal-contents-table-td-toc {
  54. border: 1px solid #888888 !important;
  55. margin: 0px !important;
  56. padding: 10px !important;
  57. background-color: transparent !important;
  58. text-align: left !important;
  59. vertical-align: top !important;
  60. }
  61. .tripal-contents-table-td-data {
  62. border: none !important;
  63. margin: 0px !important;
  64. padding: 0px 0px 0px 20px !important;
  65. background-color: transparent !important;
  66. text-align: left !important;
  67. vertical-align: top !important;
  68. }
  69. /**
  70. * The table of contents is an unordered list. The following can are used
  71. * to style the list
  72. */
  73. .tripal_toc_list ul {
  74. }
  75. .tripal_toc_list li {
  76. padding: 3px 20px 3px 10px !important;
  77. margin: 2px 0 2px 0 !important;
  78. }
  79. /******************************************************************************
  80. * The links that appear in the TOC section are added dynamically by
  81. * JavaScript code found at the top of the node--chado-generc.tpl.php template.
  82. * Each link in the TOC cooresponds to a "block" of data added to the Data
  83. * Column. Initially, the JavaScript hids all "blocks" except for the "Details"
  84. * block. There will be as many blocks as there are TOC links.
  85. *
  86. * By default, all blocks have the following layout that consists of a
  87. * container div box with the class 'tripal-info-box', a div box to house the
  88. * block title with the class 'tripal-info-box-title', and a div box to
  89. * house a brief description about the block with the class
  90. * 'tripal-info-box-desc'
  91. *
  92. * |-----------------------------------------------|
  93. * | .tripal-info-box |
  94. * | |-------------------------------------------| |
  95. * | | .tripal-info-box-title | |
  96. * | |-------------------------------------------| |
  97. * | | .tripal-info-box-desc | |
  98. * | |-------------------------------------------| |
  99. * | |
  100. * | (Block data goes here) |
  101. * | |
  102. * | |
  103. * | |
  104. * | |
  105. * |-----------------------------------------------|
  106. */
  107. .tripal-info-box {
  108. width: 100%;
  109. padding-bottom: 10px;
  110. }
  111. .tripal-info-box-title {
  112. font-size: 1.5em;
  113. padding-bottom: 15px;
  114. }
  115. .tripal-info-box-desc {
  116. }
  117. /******************************************************************************
  118. * The teaser appears anywhere that a small snippet of the content is required.
  119. * When any node in Drupal is published to the home page a teaser is used.
  120. * Teasers can also be used in views to provide lists of content. The
  121. * teaser template is similar to the block but with the following sections and
  122. * classes
  123. *
  124. * |-----------------------------------------------|
  125. * | .tripal-teaser |
  126. * | |-------------------------------------------| |
  127. * | | .tripal-teaser-title | |
  128. * | |-------------------------------------------| |
  129. * | | .tripal-teaser-text | |
  130. * | | | |
  131. * | |-------------------------------------------| |
  132. * |-----------------------------------------------|
  133. */
  134. .tripal-teaser {
  135. clear_both;
  136. margin-bottom: 10px;
  137. }
  138. .tripal-teaser-title {
  139. font-weight: bold;
  140. margin-bottom: 5px;
  141. }
  142. .tripal-teaser-text {
  143. text-align: justify;
  144. text-justify:inter-word;
  145. }
  146. /**
  147. * some nodes such as the organism node may have images. This class
  148. * is used to format any image that appears in the teaser
  149. */
  150. .tripal-teaser-img {
  151. width: 100px;
  152. float: left;
  153. padding-right: 10px;
  154. padding-bottom: 5px;
  155. }
  156. /******************************************************************************
  157. * Administrative CSS classes
  158. *****************************************************************************/
  159. /**
  160. * This class is used when providing hints or other instructions to the
  161. * site administrator
  162. */
  163. .tripal-site-admin-only {
  164. background-image: url("../images/TripalLogo-sm.png");
  165. background-repeat: no-repeat;
  166. background-color: #BBBBFF;
  167. }
  168. .tripal-site-admin-message {
  169. padding: 10px 10px 10px 55px;
  170. font-style: italic;
  171. }