tripal.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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-right: 1px solid #888888 !important;
  55. margin: 0px !important;
  56. padding: 0px !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 {
  74. }
  75. .tripal_toc_list_item {
  76. padding: 3px 20px 3px 0px !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-data-block {
  108. padding: 0;
  109. margin: 0;
  110. width: 100%;
  111. }
  112. .tripal-data-block-title {
  113. font-size: 1.5em;
  114. padding-bottom: 5px;
  115. }
  116. .tripal-info-box-desc {
  117. margin-bottom: 10px;
  118. }
  119. /**
  120. * Within the block data
  121. */
  122. .tripal-data-table {
  123. margin-top: 0px;
  124. margin-bottom: 10px;
  125. }
  126. /******************************************************************************
  127. * The teaser appears anywhere that a small snippet of the content is required.
  128. * When any node in Drupal is published to the home page a teaser is used.
  129. * Teasers can also be used in views to provide lists of content. The
  130. * teaser template is similar to the block but with the following sections and
  131. * classes
  132. *
  133. * |-----------------------------------------------|
  134. * | .tripal-teaser |
  135. * | |-------------------------------------------| |
  136. * | | .tripal-teaser-title | |
  137. * | |-------------------------------------------| |
  138. * | | .tripal-teaser-text | |
  139. * | | | |
  140. * | |-------------------------------------------| |
  141. * |-----------------------------------------------|
  142. */
  143. .tripal-teaser {
  144. clear_both;
  145. margin-bottom: 10px;
  146. }
  147. .tripal-teaser-title {
  148. font-weight: bold;
  149. margin-bottom: 5px;
  150. }
  151. .tripal-teaser-text {
  152. text-align: justify;
  153. text-justify:inter-word;
  154. }
  155. /**
  156. * some nodes such as the organism node may have images. This class
  157. * is used to format any image that appears in the teaser
  158. */
  159. .tripal-teaser-img {
  160. width: 100px;
  161. float: left;
  162. padding-right: 10px;
  163. padding-bottom: 5px;
  164. }
  165. /******************************************************************************
  166. * Administrative CSS classes
  167. *****************************************************************************/
  168. /**
  169. * This class is used when providing hints or other instructions to the
  170. * site administrator
  171. */
  172. .tripal-site-admin-only {
  173. background-image: url("../images/TripalLogo-sm.png");
  174. background-repeat: no-repeat;
  175. background-color: #cce3ff;
  176. margin-top: 10px;
  177. margin-bottom: 10px;
  178. border: 1px solid #888888;
  179. min-height: 50px;
  180. clear: both;
  181. }
  182. .tripal-site-admin-message {
  183. padding: 10px 10px 10px 55px;
  184. font-style: italic;
  185. }
  186. .tripal-site-admin-only-table-row {
  187. background-color: #cce3ff;
  188. border: 1px solid #888888;
  189. color: black;
  190. }