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.

388 lines
7.0 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
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
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
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
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
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Item
  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 : 'item';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Standard
  19. *******************************/
  20. /*--------------
  21. Item
  22. ---------------*/
  23. .ui.items > .item {
  24. table-layout: fixed;
  25. display: @display;
  26. margin: @margin;
  27. width: @width;
  28. min-height: @minHeight;
  29. background: @background;
  30. padding: @padding;
  31. border: @border;
  32. border-radius: @borderRadius;
  33. box-shadow: @boxShadow;
  34. transition: @transition;
  35. z-index: @zIndex;
  36. }
  37. .ui.items > .item a {
  38. cursor: pointer;
  39. }
  40. /*--------------
  41. Items
  42. ---------------*/
  43. .ui.items {
  44. margin: @itemsMargin;
  45. }
  46. .ui.items:first-child {
  47. margin-top: 0em;
  48. }
  49. .ui.items:last-child {
  50. margin-bottom: 0em;
  51. }
  52. /*--------------
  53. Item
  54. ---------------*/
  55. .ui.items > .item {
  56. min-width: 100%;
  57. }
  58. .ui.items > .item:after {
  59. display: block;
  60. content: ' ';
  61. height: 0px;
  62. clear: both;
  63. overflow: hidden;
  64. visibility: hidden;
  65. }
  66. .ui.items > .item:first-child {
  67. margin-top: 0em;
  68. }
  69. .ui.items > .item:last-child {
  70. margin-bottom: 0em;
  71. }
  72. /*--------------
  73. Images
  74. ---------------*/
  75. .ui.items > .item > .image {
  76. position: relative;
  77. display: @imageDisplay;
  78. float: @imageFloat;
  79. margin: @imageMargin;
  80. padding: @imagePadding;
  81. max-height: @imageMaxHeight;
  82. vertical-align: @imageVerticalAlign;
  83. }
  84. .ui.items > .item > .image > img {
  85. display: block;
  86. width: 100%;
  87. height: auto;
  88. border-radius: @imageBorderRadius;
  89. border: @imageBorder;
  90. }
  91. .ui.items > .item > .image:only-child > img {
  92. border-radius: @borderRadius;
  93. }
  94. /* Default Image Width */
  95. .ui.items > .item > .image:not(.ui) {
  96. width: @imageWidth;
  97. }
  98. /*--------------
  99. Content
  100. ---------------*/
  101. .ui.items > .item > .content {
  102. display: block;
  103. background: @contentBackground;
  104. margin: @contentMargin;
  105. padding: @contentPadding;
  106. box-shadow: @contentBoxShadow;
  107. font-size: @contentFontSize;
  108. border: @contentBorder;
  109. border-radius: @contentBorderRadius;
  110. }
  111. .ui.items > .item > .content:after {
  112. display: block;
  113. content: ' ';
  114. height: 0px;
  115. clear: both;
  116. overflow: hidden;
  117. visibility: hidden;
  118. }
  119. .ui.items > .item > .image + .content {
  120. width: @contentWidth;
  121. display: @contentDisplay;
  122. margin-left: @contentOffset;
  123. vertical-align: @contentVerticalAlign;
  124. padding-left: @contentImagePadding;
  125. }
  126. .ui.items > .item > .content > .header {
  127. display: inline-block;
  128. margin: @headerMargin;
  129. font-family: @headerFont;
  130. font-weight: @headerFontWeight;
  131. font-size: @headerFontSize;
  132. color: @headerColor;
  133. }
  134. .ui.items > .item > .content > .meta + .description{
  135. margin-top: @descriptionDistance;
  136. }
  137. /*--------------
  138. Floated
  139. ---------------*/
  140. .ui.items > .item .left.floated {
  141. float: left;
  142. }
  143. .ui.items > .item .right.floated {
  144. float: right;
  145. }
  146. /*--------------
  147. Content Image
  148. ---------------*/
  149. .ui.items > .item .content img {
  150. display: inline-block;
  151. vertical-align: @contentImageVerticalAlign;
  152. width: @contentImageWidth;
  153. }
  154. .ui.items > .item img.avatar,
  155. .ui.items > .item .avatar img {
  156. width: @avatarSize;
  157. height: @avatarSize;
  158. border-radius: @avatarBorderRadius;
  159. }
  160. /*--------------
  161. Description
  162. ---------------*/
  163. .ui.items > .item > .content > .description {
  164. font-size: @descriptionFontSize;
  165. line-height: @descriptionLineHeight;
  166. color: @descriptionColor;
  167. }
  168. /*--------------
  169. Paragraph
  170. ---------------*/
  171. .ui.items > .item > .content p {
  172. margin: 0em 0em @paragraphDistance;
  173. }
  174. .ui.items > .item > .content p:last-child {
  175. margin-bottom: 0em;
  176. }
  177. /*--------------
  178. Meta
  179. ---------------*/
  180. .ui.items > .item .meta {
  181. font-size: @metaFontSize;
  182. color: @metaColor;
  183. }
  184. .ui.items > .item .meta * {
  185. margin-right: @metaSpacing;
  186. }
  187. .ui.items > .item .meta :last-child {
  188. margin-right: 0em;
  189. }
  190. .ui.items > .item .meta .right.floated {
  191. margin-right: 0em;
  192. margin-left: @metaSpacing;
  193. }
  194. /*--------------
  195. Links
  196. ---------------*/
  197. /* Generic */
  198. .ui.items > .item > .content a {
  199. color: @contentLinkColor;
  200. transition: @contentLinkTransition;
  201. }
  202. .ui.items > .item > .content a:hover {
  203. color: @contentLinkHoverColor;
  204. }
  205. /* Header */
  206. .ui.items > .item > .content > a.header {
  207. color: @headerLinkColor;
  208. }
  209. .ui.items > .item > .content > a.header:hover {
  210. color: @headerLinkHoverColor;
  211. }
  212. /* Meta */
  213. .ui.items > .item .meta a {
  214. color: @metaLinkColor;
  215. }
  216. .ui.items > .item .meta a:hover {
  217. color: @metaLinkHoverColor;
  218. }
  219. /*--------------
  220. Labels
  221. ---------------*/
  222. /*-----Star----- */
  223. /* Icon */
  224. .ui.items > .item > .content .star.icon {
  225. cursor: pointer;
  226. opacity: @actionOpacity;
  227. transition: @actionTransition;
  228. }
  229. .ui.items > .item > .content .star.icon:hover {
  230. opacity: @actionHoverOpacity;
  231. color: @starColor;
  232. }
  233. .ui.items > .item > .content .active.star.icon {
  234. color: @starActiveColor;
  235. }
  236. /*-----Like----- */
  237. /* Icon */
  238. .ui.items > .item > .content .like.icon {
  239. cursor: pointer;
  240. opacity: @actionOpacity;
  241. transition: @actionTransition;
  242. }
  243. .ui.items > .item > .content .like.icon:hover {
  244. opacity: @actionHoverOpacity;
  245. color: @likeColor;
  246. }
  247. .ui.items > .item > .content .active.like.icon {
  248. color: @likeActiveColor;
  249. }
  250. /*----------------
  251. Extra Content
  252. -----------------*/
  253. .ui.items > .item .extra {
  254. display: @extraDisplay;
  255. position: @extraPosition;
  256. background: @extraBackground;
  257. margin: @extraMargin;
  258. width: @extraWidth;
  259. padding: @extraPadding;
  260. top: @extraTop;
  261. left: @extraLeft;
  262. color: @extraColor;
  263. box-shadow: @extraBoxShadow;
  264. transition: @extraTransition;
  265. border-top: @extraDivider;
  266. }
  267. .ui.items > .item .extra:after {
  268. display: block;
  269. content: ' ';
  270. height: 0px;
  271. clear: both;
  272. overflow: hidden;
  273. visibility: hidden;
  274. }
  275. /*******************************
  276. Variations
  277. *******************************/
  278. /*-------------------
  279. Aligned
  280. --------------------*/
  281. .ui.items > .item > .image + .top.aligned.content {
  282. vertical-align: top;
  283. }
  284. .ui.items > .item > .image + .middle.aligned.content {
  285. vertical-align: middle;
  286. }
  287. .ui.items > .item > .image + .bottom.aligned.content {
  288. vertical-align: bottom;
  289. }
  290. /*-------------------
  291. Divided
  292. --------------------*/
  293. .ui.divided.items > .item {
  294. border-top: @dividedBorder;
  295. margin: @dividedMargin;
  296. padding: @dividedPadding;
  297. }
  298. .ui.divided.items > .item:first-child {
  299. border-top: none;
  300. margin-top: @dividedFirstLastMargin;
  301. padding-top: @dividedFirstLastPadding;
  302. }
  303. .ui.divided.items > .item:last-child {
  304. margin-bottom: @dividedFirstLastMargin;
  305. padding-bottom: @dividedFirstLastPadding;
  306. }
  307. /*-------------------
  308. Link
  309. --------------------*/
  310. .ui.items a.item:hover,
  311. .ui.link.item > .item:hover {
  312. cursor: pointer;
  313. }
  314. .ui.items a.item:hover .content .header,
  315. .ui.link.item > .item:hover .content .header {
  316. color: @headerLinkHoverColor;
  317. }
  318. /*--------------
  319. Size
  320. ---------------*/
  321. .ui.items > .item {
  322. font-size: @medium;
  323. }
  324. .loadUIOverrides();