components.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <?php
  2. /**
  3. * Layout Object CSS
  4. *
  5. * Image blocks, lists, tables, gallery, messages
  6. *
  7. * @package Elgg.Core
  8. * @subpackage UI
  9. */
  10. ?>
  11. /* <style> /**/
  12. /* ***************************************
  13. Image Block
  14. *************************************** */
  15. .elgg-image-block {
  16. padding: 3px 0;
  17. }
  18. .elgg-image-block .elgg-image {
  19. float: left;
  20. margin-right: 5px;
  21. }
  22. .elgg-image-block .elgg-image-alt {
  23. float: right;
  24. margin-left: 5px;
  25. }
  26. .elgg-avatar > a:focus > img,
  27. .elgg-image > a:focus > img {
  28. opacity: .7;
  29. }
  30. /* ***************************************
  31. List
  32. *************************************** */
  33. .elgg-list {
  34. border-top: 1px dotted #CCCCCC;
  35. margin: 5px 0;
  36. clear: both;
  37. }
  38. .elgg-list > li {
  39. border-bottom: 1px dotted #CCCCCC;
  40. }
  41. .elgg-item .elgg-subtext {
  42. margin-bottom: 5px;
  43. }
  44. .elgg-item .elgg-content {
  45. margin: 10px 5px;
  46. }
  47. /* ***************************************
  48. Gallery
  49. *************************************** */
  50. .elgg-gallery {
  51. border: none;
  52. margin-right: auto;
  53. margin-left: auto;
  54. }
  55. .elgg-gallery td {
  56. padding: 5px;
  57. }
  58. .elgg-gallery-fluid > li {
  59. float: left;
  60. }
  61. .elgg-gallery-users > li {
  62. margin: 0 2px;
  63. }
  64. /* ***************************************
  65. Tables
  66. *************************************** */
  67. .elgg-table {
  68. width: 100%;
  69. border-top: 1px solid #ccc;
  70. }
  71. .elgg-table td, .elgg-table th {
  72. padding: 4px 8px;
  73. border: 1px solid #ccc;
  74. }
  75. .elgg-table th {
  76. background-color: #ddd;
  77. }
  78. .elgg-table tr:nth-child(odd), .elgg-table tr.odd {
  79. background-color: #fff;
  80. }
  81. .elgg-table tr:nth-child(even), .elgg-table tr.even {
  82. background-color: #f0f0f0;
  83. }
  84. .elgg-table-alt {
  85. width: 100%;
  86. border-top: 1px solid #ccc;
  87. }
  88. .elgg-table-alt th {
  89. background-color: #eee;
  90. font-weight: bold;
  91. }
  92. .elgg-table-alt td, .elgg-table-alt th {
  93. padding: 2px 4px 2px 4px;
  94. border-bottom: 1px solid #ccc;
  95. }
  96. .elgg-table-alt td:first-child {
  97. width: 200px;
  98. }
  99. .elgg-table-alt tr:hover {
  100. background: #E4E4E4;
  101. }
  102. /* ***************************************
  103. Owner Block
  104. *************************************** */
  105. .elgg-owner-block {
  106. margin-bottom: 20px;
  107. }
  108. /* ***************************************
  109. Messages
  110. *************************************** */
  111. .elgg-message {
  112. color: white;
  113. font-weight: bold;
  114. display: block;
  115. padding: 3px 10px;
  116. cursor: pointer;
  117. opacity: 0.9;
  118. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
  119. border-radius: 8px;
  120. }
  121. .elgg-state-success {
  122. background-color: black;
  123. }
  124. .elgg-state-error {
  125. background-color: red;
  126. }
  127. .elgg-state-notice {
  128. background-color: #4690D6;
  129. }
  130. /* ***************************************
  131. River
  132. *************************************** */
  133. .elgg-list-river {
  134. border-top: 1px solid #CCC;
  135. }
  136. .elgg-list-river > li {
  137. border-bottom: 1px solid #CCC;
  138. }
  139. .elgg-river-item {
  140. padding: 7px 0;
  141. }
  142. .elgg-river-item .elgg-pict {
  143. margin-right: 20px;
  144. }
  145. .elgg-river-timestamp {
  146. color: #666;
  147. font-size: 85%;
  148. font-style: italic;
  149. line-height: 1.2em;
  150. }
  151. .elgg-river-attachments,
  152. .elgg-river-message,
  153. .elgg-river-content {
  154. border-left: 1px solid #CCC;
  155. font-size: 85%;
  156. line-height: 1.5em;
  157. margin: 8px 0 5px 0;
  158. padding-left: 5px;
  159. }
  160. .elgg-river-attachments .elgg-avatar,
  161. .elgg-river-attachments .elgg-icon {
  162. float: left;
  163. }
  164. .elgg-river-layout .elgg-input-dropdown {
  165. float: right;
  166. margin: 10px 0;
  167. }
  168. .elgg-river-comments-tab {
  169. display: block;
  170. background-color: #EEE;
  171. color: #aaa;
  172. margin-top: 5px;
  173. width: auto;
  174. float: right;
  175. font-size: 85%;
  176. padding: 1px 7px;
  177. border-radius: 5px 5px 0 0;
  178. }
  179. <?php //@todo components.php ?>
  180. .elgg-river-comments {
  181. margin: 0;
  182. border-top: none;
  183. }
  184. .elgg-river-comments li:first-child {
  185. border-radius: 5px 0 0;
  186. }
  187. .elgg-river-comments li:last-child {
  188. border-radius-bottomleft: 0 0 5px 5px;
  189. }
  190. .elgg-river-comments > li {
  191. background-color: #EEE;
  192. border-bottom: none;
  193. padding: 4px;
  194. margin-bottom: 2px;
  195. }
  196. .elgg-river-comments .elgg-media {
  197. padding: 0;
  198. }
  199. .elgg-river-more {
  200. background-color: #EEE;
  201. border-radius: 5px;
  202. padding: 2px 4px;
  203. font-size: 85%;
  204. margin-bottom: 2px;
  205. }
  206. <?php //@todo location-dependent styles ?>
  207. .elgg-river-item form {
  208. background-color: #EEE;
  209. padding: 4px;
  210. border-radius: 5px;
  211. height: 30px;
  212. }
  213. .elgg-river-item input[type=text] {
  214. width: 80%;
  215. }
  216. .elgg-river-item input[type=submit] {
  217. margin: 0 0 0 10px;
  218. }
  219. /* **************************************
  220. Comments (from elgg_view_comments)
  221. ************************************** */
  222. .elgg-comments {
  223. margin-top: 25px;
  224. }
  225. .elgg-comments > form {
  226. margin-top: 15px;
  227. }
  228. .elgg-river-item .elgg-form-comment-save {
  229. height: auto;
  230. }
  231. /* Comment highlighting that automatically fades away */
  232. .elgg-comments .elgg-state-highlight {
  233. -webkit-animation: comment-highlight 5s; /* Chrome, Safari, Opera */
  234. animation: comment-highlight 5s;
  235. }
  236. /* Chrome, Safari, Opera */
  237. @-webkit-keyframes comment-highlight {
  238. from {background: #dff2ff;}
  239. to {background: white;}
  240. }
  241. /* Standard syntax */
  242. @keyframes comment-highlight {
  243. from {background: #dff2ff;}
  244. to {background: white;}
  245. }
  246. /* ***************************************
  247. Image-related
  248. *************************************** */
  249. .elgg-photo {
  250. border: 1px solid #ccc;
  251. padding: 3px;
  252. background-color: white;
  253. }
  254. /* ***************************************
  255. Tags
  256. *************************************** */
  257. .elgg-tags {
  258. font-size: 85%;
  259. }
  260. .elgg-tags > li {
  261. float:left;
  262. margin-right: 5px;
  263. }
  264. .elgg-tags li.elgg-tag:after {
  265. content: ",";
  266. }
  267. .elgg-tags li.elgg-tag:last-child:after {
  268. content: "";
  269. }