You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

271 lines
5.7 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Feed
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'view';
  15. @element : 'feed';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Activity Feed
  19. *******************************/
  20. .ui.feed {
  21. margin: @margin;
  22. }
  23. .ui.feed:first-child {
  24. margin-top: 0em;
  25. }
  26. .ui.feed:last-child {
  27. margin-top: 0em;
  28. }
  29. /*******************************
  30. Content
  31. *******************************/
  32. /* Event */
  33. .ui.feed > .event {
  34. display: @eventDisplay;
  35. width: @eventWidth;
  36. padding: @eventPadding;
  37. margin: @eventMargin;
  38. background: @eventBackground;
  39. border-top: @eventDivider;
  40. }
  41. .ui.feed > .event:first-child {
  42. border-top: 0px;
  43. padding-top: 0em;
  44. }
  45. .ui.feed > .event:last-child {
  46. padding-bottom: 0em;
  47. }
  48. /* Event Label */
  49. .ui.feed > .event > .label {
  50. display: @labelDisplay;
  51. width: @labelWidth;
  52. height: @labelHeight;
  53. vertical-align: @labelVerticalAlign;
  54. text-align: @labelTextAlign;
  55. }
  56. .ui.feed > .event > .label .icon {
  57. opacity: @iconLabelOpacity;
  58. font-size: @iconLabelSize;
  59. width: @iconLabelWidth;
  60. padding: @iconLabelPadding;
  61. background: @iconLabelBackground;
  62. border: @iconLabelBorder;
  63. border-radius: @iconLabelBorderRadius;
  64. color: @iconLabelColor;
  65. }
  66. .ui.feed > .event > .label img {
  67. width: @imageLabelWidth;
  68. height: @imageLabelHeight;
  69. border-radius: @imageLabelBorderRadius;
  70. }
  71. .ui.feed > .event > .label + .content {
  72. padding: @labeledContentPadding;
  73. }
  74. /* Content */
  75. .ui.feed > .event > .content {
  76. display: @contentDisplay;
  77. vertical-align: @contentVerticalAlign;
  78. text-align: @contentTextAlign;
  79. word-wrap: @contentWordWrap;
  80. }
  81. .ui.feed > .event:last-child > .content {
  82. padding-bottom: @lastLabeledContentPadding;
  83. }
  84. /* Link */
  85. .ui.feed > .event > .content a {
  86. cursor: pointer;
  87. }
  88. /*--------------
  89. Date
  90. ---------------*/
  91. .ui.feed > .event > .content .date {
  92. margin: @dateMargin;
  93. padding: @datePadding;
  94. color: @dateColor;
  95. font-weight: @dateFontWeight;
  96. font-size: @dateFontSize;
  97. font-style: @dateFontStyle;
  98. color: @dateColor;
  99. }
  100. /*--------------
  101. Summary
  102. ---------------*/
  103. .ui.feed > .event > .content .summary {
  104. margin: @summaryMargin;
  105. font-size: @summaryFontSize;
  106. font-weight: @summaryFontWeight;
  107. color: @summaryColor;
  108. }
  109. /* Summary Image */
  110. .ui.feed > .event > .content .summary img {
  111. display: inline-block;
  112. width: @summaryImageWidth;
  113. height: @summaryImageHeight;
  114. margin: @summaryImageMargin;
  115. border-radius: @summaryImageBorderRadius;
  116. vertical-align: @summaryImageVerticalAlign;
  117. }
  118. /*--------------
  119. User
  120. ---------------*/
  121. .ui.feed > .event > .content .user {
  122. display: inline-block;
  123. font-weight: @userFontWeight;
  124. margin-right: @userDistance;
  125. vertical-align: baseline;
  126. }
  127. .ui.feed > .event > .content .user img {
  128. margin: @userImageMargin;
  129. width: @userImageWidth;
  130. height: @userImageHeight;
  131. vertical-align: @userImageVerticalAlign;
  132. }
  133. /*--------------
  134. Inline Date
  135. ---------------*/
  136. /* Date inside Summary */
  137. .ui.feed > .event > .content .summary > .date {
  138. display: @summaryDateDisplay;
  139. float: @summaryDateFloat;
  140. font-weight: @summaryDateFontWeight;
  141. font-size: @summaryDateFontSize;
  142. font-style: @summaryDateFontStyle;
  143. margin: @summaryDateMargin;
  144. padding: @summaryDatePadding;
  145. color: @summaryDateColor;
  146. }
  147. /*--------------
  148. Extra Summary
  149. ---------------*/
  150. .ui.feed > .event > .content .extra {
  151. margin: @extraMargin;
  152. background: @extraBackground;
  153. padding: @extraPadding;
  154. color: @extraColor;
  155. }
  156. /* Images */
  157. .ui.feed > .event > .content .extra.images img {
  158. display: inline-block;
  159. margin: @extraImageMargin;
  160. width: @extraImageWidth;
  161. }
  162. /* Text */
  163. .ui.feed > .event > .content .extra.text {
  164. padding: @extraTextPadding;
  165. border-left: @extraTextPointer;
  166. font-size: @extraTextFontSize;
  167. max-width: @extraTextMaxWidth;
  168. line-height: @extraTextLineHeight;
  169. }
  170. /*--------------
  171. Meta
  172. ---------------*/
  173. .ui.feed > .event > .content .meta {
  174. display: @metadataDisplay;
  175. font-size: @metadataFontSize;
  176. margin: @metadataMargin;
  177. background: @metadataBackground;
  178. border: @metadataBorder;
  179. border-radius: @metadataBorderRadius;
  180. box-shadow: @metadataBoxShadow;
  181. padding: @metadataPadding;
  182. color: @metadataColor;
  183. }
  184. .ui.feed > .event > .content .meta > * {
  185. position: relative;
  186. margin-left: @metadataElementSpacing;
  187. }
  188. .ui.feed > .event > .content .meta > *:after {
  189. content: @metadataDivider;
  190. color: @metadataDividerColor;
  191. top: 0em;
  192. left: @metadataDividerOffset;
  193. opacity: 1;
  194. position: absolute;
  195. vertical-align: top;
  196. }
  197. .ui.feed > .event > .content .meta .like {
  198. color: @likeColor;
  199. transition: @likeTransition;
  200. }
  201. .ui.feed > .event > .content .meta .like:hover .icon {
  202. color: @likeHoverColor;
  203. }
  204. .ui.feed > .event > .content .meta .active.like .icon {
  205. color: @likeActiveColor;
  206. }
  207. /* First element */
  208. .ui.feed > .event > .content .meta > :first-child {
  209. margin-left: 0em;
  210. }
  211. .ui.feed > .event > .content .meta > :first-child::after {
  212. display: none;
  213. }
  214. /* Action */
  215. .ui.feed > .event > .content .meta a,
  216. .ui.feed > .event > .content .meta > .icon {
  217. cursor: @metadataActionCursor;
  218. opacity: @metadataActionOpacity;
  219. color: @metadataActionColor;
  220. transition: @metadataActionTransition;
  221. }
  222. .ui.feed > .event > .content .meta a:hover,
  223. .ui.feed > .event > .content .meta a:hover .icon,
  224. .ui.feed > .event > .content .meta > .icon:hover {
  225. color: @metadataActionHoverColor;
  226. }
  227. /*******************************
  228. Variations
  229. *******************************/
  230. .ui.small.feed {
  231. font-size: @small;
  232. }
  233. .ui.feed {
  234. font-size: @medium;
  235. }
  236. .ui.large.feed {
  237. font-size: @large;
  238. }
  239. .loadUIOverrides();