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.

398 lines
7.2 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
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. color: @headerColor;
  132. }
  133. /* Default Header Size */
  134. .ui.items > .item > .content > .header:not(.ui) {
  135. font-size: @headerFontSize;
  136. }
  137. .ui.items > .item > .content > .meta + .description{
  138. margin-top: @descriptionDistance;
  139. }
  140. /*--------------
  141. Floated
  142. ---------------*/
  143. .ui.items > .item .left.floated {
  144. float: left;
  145. }
  146. .ui.items > .item [class*="right floated"] {
  147. float: right;
  148. }
  149. /*--------------
  150. Content Image
  151. ---------------*/
  152. .ui.items > .item .content img {
  153. display: inline-block;
  154. vertical-align: @contentImageVerticalAlign;
  155. width: @contentImageWidth;
  156. }
  157. .ui.items > .item img.avatar,
  158. .ui.items > .item .avatar img {
  159. width: @avatarSize;
  160. height: @avatarSize;
  161. border-radius: @avatarBorderRadius;
  162. }
  163. /*--------------
  164. Description
  165. ---------------*/
  166. .ui.items > .item > .content > .description {
  167. font-size: @descriptionFontSize;
  168. line-height: @descriptionLineHeight;
  169. color: @descriptionColor;
  170. }
  171. /*--------------
  172. Paragraph
  173. ---------------*/
  174. .ui.items > .item > .content p {
  175. margin: 0em 0em @paragraphDistance;
  176. }
  177. .ui.items > .item > .content p:last-child {
  178. margin-bottom: 0em;
  179. }
  180. /*--------------
  181. Meta
  182. ---------------*/
  183. .ui.items > .item .meta {
  184. font-size: @metaFontSize;
  185. color: @metaColor;
  186. }
  187. .ui.items > .item .meta * {
  188. margin-right: @metaSpacing;
  189. }
  190. .ui.items > .item .meta :last-child {
  191. margin-right: 0em;
  192. }
  193. .ui.items > .item .meta [class*="right floated"] {
  194. margin-right: 0em;
  195. margin-left: @metaSpacing;
  196. }
  197. /*--------------
  198. Links
  199. ---------------*/
  200. /* Generic */
  201. .ui.items > .item > .content a {
  202. color: @contentLinkColor;
  203. transition: @contentLinkTransition;
  204. }
  205. .ui.items > .item > .content a:hover {
  206. color: @contentLinkHoverColor;
  207. }
  208. /* Header */
  209. .ui.items > .item > .content > a.header {
  210. color: @headerLinkColor;
  211. }
  212. .ui.items > .item > .content > a.header:hover {
  213. color: @headerLinkHoverColor;
  214. }
  215. /* Meta */
  216. .ui.items > .item .meta a {
  217. color: @metaLinkColor;
  218. }
  219. .ui.items > .item .meta a:hover {
  220. color: @metaLinkHoverColor;
  221. }
  222. /*--------------
  223. Labels
  224. ---------------*/
  225. /*-----Star----- */
  226. /* Icon */
  227. .ui.items > .item > .content .star.icon {
  228. cursor: pointer;
  229. opacity: @actionOpacity;
  230. transition: @actionTransition;
  231. }
  232. .ui.items > .item > .content .star.icon:hover {
  233. opacity: @actionHoverOpacity;
  234. color: @starColor;
  235. }
  236. .ui.items > .item > .content .active.star.icon {
  237. color: @starActiveColor;
  238. }
  239. /*-----Like----- */
  240. /* Icon */
  241. .ui.items > .item > .content .like.icon {
  242. cursor: pointer;
  243. opacity: @actionOpacity;
  244. transition: @actionTransition;
  245. }
  246. .ui.items > .item > .content .like.icon:hover {
  247. opacity: @actionHoverOpacity;
  248. color: @likeColor;
  249. }
  250. .ui.items > .item > .content .active.like.icon {
  251. color: @likeActiveColor;
  252. }
  253. /*----------------
  254. Extra Content
  255. -----------------*/
  256. .ui.items > .item .extra {
  257. display: @extraDisplay;
  258. position: @extraPosition;
  259. background: @extraBackground;
  260. margin: @extraMargin;
  261. width: @extraWidth;
  262. padding: @extraPadding;
  263. top: @extraTop;
  264. left: @extraLeft;
  265. color: @extraColor;
  266. box-shadow: @extraBoxShadow;
  267. transition: @extraTransition;
  268. border-top: @extraDivider;
  269. }
  270. .ui.items > .item .extra > * {
  271. margin-right: @extraSpacing;
  272. }
  273. .ui.items > .item .extra > [class*="right floated"] {
  274. margin-left: @extraSpacing;
  275. }
  276. .ui.items > .item .extra:after {
  277. display: block;
  278. content: ' ';
  279. height: 0px;
  280. clear: both;
  281. overflow: hidden;
  282. visibility: hidden;
  283. }
  284. /*******************************
  285. Variations
  286. *******************************/
  287. /*-------------------
  288. Aligned
  289. --------------------*/
  290. .ui.items > .item > .image + [class*="top aligned"].content {
  291. vertical-align: top;
  292. }
  293. .ui.items > .item > .image + [class*="middle aligned"].content {
  294. vertical-align: middle;
  295. }
  296. .ui.items > .item > .image + [class*="bottom aligned"].content {
  297. vertical-align: bottom;
  298. }
  299. /*-------------------
  300. Divided
  301. --------------------*/
  302. .ui.divided.items > .item {
  303. border-top: @dividedBorder;
  304. margin: @dividedMargin;
  305. padding: @dividedPadding;
  306. }
  307. .ui.divided.items > .item:first-child {
  308. border-top: none;
  309. margin-top: @dividedFirstLastMargin;
  310. padding-top: @dividedFirstLastPadding;
  311. }
  312. .ui.divided.items > .item:last-child {
  313. margin-bottom: @dividedFirstLastMargin;
  314. padding-bottom: @dividedFirstLastPadding;
  315. }
  316. /*-------------------
  317. Link
  318. --------------------*/
  319. .ui.items a.item:hover,
  320. .ui.link.item > .item:hover {
  321. cursor: pointer;
  322. }
  323. .ui.items a.item:hover .content .header,
  324. .ui.link.item > .item:hover .content .header {
  325. color: @headerLinkHoverColor;
  326. }
  327. /*--------------
  328. Size
  329. ---------------*/
  330. .ui.items > .item {
  331. font-size: @medium;
  332. }
  333. .loadUIOverrides();