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.

468 lines
8.8 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
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: @itemSpacing 0em;
  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: @groupMargin;
  45. }
  46. .ui.items:first-child {
  47. margin-top: 0em !important;
  48. }
  49. .ui.items:last-child {
  50. margin-bottom: 0em !important;
  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. /*--------------
  95. Content
  96. ---------------*/
  97. .ui.items > .item > .content {
  98. display: block;
  99. background: @contentBackground;
  100. margin: @contentMargin;
  101. padding: @contentPadding;
  102. box-shadow: @contentBoxShadow;
  103. font-size: @contentFontSize;
  104. border: @contentBorder;
  105. border-radius: @contentBorderRadius;
  106. }
  107. .ui.items > .item > .content:after {
  108. display: block;
  109. content: ' ';
  110. height: 0px;
  111. clear: both;
  112. overflow: hidden;
  113. visibility: hidden;
  114. }
  115. .ui.items > .item > .image + .content {
  116. width: @contentWidth;
  117. display: @contentDisplay;
  118. margin-left: @contentOffset;
  119. vertical-align: @contentVerticalAlign;
  120. padding-left: @contentImageDistance;
  121. }
  122. .ui.items > .item > .content > .header {
  123. display: inline-block;
  124. margin: @headerMargin;
  125. font-family: @headerFont;
  126. font-weight: @headerFontWeight;
  127. color: @headerColor;
  128. }
  129. /* Default Header Size */
  130. .ui.items > .item > .content > .header:not(.ui) {
  131. font-size: @headerFontSize;
  132. }
  133. .ui.items > .item > .content > .meta + .description{
  134. margin-top: @descriptionDistance;
  135. }
  136. /*--------------
  137. Floated
  138. ---------------*/
  139. .ui.items > .item .left.floated {
  140. float: left;
  141. }
  142. .ui.items > .item [class*="right floated"] {
  143. float: right;
  144. }
  145. /*--------------
  146. Content Image
  147. ---------------*/
  148. .ui.items > .item .content img {
  149. display: inline-block;
  150. vertical-align: @contentImageVerticalAlign;
  151. width: @contentImageWidth;
  152. }
  153. .ui.items > .item img.avatar,
  154. .ui.items > .item .avatar img {
  155. width: @avatarSize;
  156. height: @avatarSize;
  157. border-radius: @avatarBorderRadius;
  158. }
  159. /*--------------
  160. Description
  161. ---------------*/
  162. .ui.items > .item > .content > .description {
  163. max-width: @descriptionMaxWidth;
  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. line-height: @metaLineHeight;
  183. color: @metaColor;
  184. }
  185. .ui.items > .item .meta * {
  186. margin-right: @metaSpacing;
  187. }
  188. .ui.items > .item .meta :last-child {
  189. margin-right: 0em;
  190. }
  191. .ui.items > .item .meta [class*="right floated"] {
  192. margin-right: 0em;
  193. margin-left: @metaSpacing;
  194. }
  195. /*--------------
  196. Links
  197. ---------------*/
  198. /* Generic */
  199. .ui.items > .item > .content a {
  200. color: @contentLinkColor;
  201. transition: @contentLinkTransition;
  202. }
  203. .ui.items > .item > .content a:hover {
  204. color: @contentLinkHoverColor;
  205. }
  206. /* Header */
  207. .ui.items > .item > .content > a.header {
  208. color: @headerLinkColor;
  209. }
  210. .ui.items > .item > .content > a.header:hover {
  211. color: @headerLinkHoverColor;
  212. }
  213. /* Meta */
  214. .ui.items > .item .meta a {
  215. color: @metaLinkColor;
  216. }
  217. .ui.items > .item .meta a:hover {
  218. color: @metaLinkHoverColor;
  219. }
  220. /*--------------
  221. Labels
  222. ---------------*/
  223. /*-----Star----- */
  224. /* Icon */
  225. .ui.items > .item > .content .favorite.icon {
  226. cursor: pointer;
  227. opacity: @actionOpacity;
  228. transition: @actionTransition;
  229. }
  230. .ui.items > .item > .content .favorite.icon:hover {
  231. opacity: @actionHoverOpacity;
  232. color: @favoriteColor;
  233. }
  234. .ui.items > .item > .content .active.favorite.icon {
  235. color: @favoriteActiveColor;
  236. }
  237. /*-----Like----- */
  238. /* Icon */
  239. .ui.items > .item > .content .like.icon {
  240. cursor: pointer;
  241. opacity: @actionOpacity;
  242. transition: @actionTransition;
  243. }
  244. .ui.items > .item > .content .like.icon:hover {
  245. opacity: @actionHoverOpacity;
  246. color: @likeColor;
  247. }
  248. .ui.items > .item > .content .active.like.icon {
  249. color: @likeActiveColor;
  250. }
  251. /*----------------
  252. Extra Content
  253. -----------------*/
  254. .ui.items > .item .extra {
  255. display: @extraDisplay;
  256. position: @extraPosition;
  257. background: @extraBackground;
  258. margin: @extraMargin;
  259. width: @extraWidth;
  260. padding: @extraPadding;
  261. top: @extraTop;
  262. left: @extraLeft;
  263. color: @extraColor;
  264. box-shadow: @extraBoxShadow;
  265. transition: @extraTransition;
  266. border-top: @extraDivider;
  267. }
  268. .ui.items > .item .extra > * {
  269. margin: @extraRowSpacing @extraSpacing 0em 0em;
  270. }
  271. .ui.items > .item .extra > [class*="right floated"] {
  272. margin: @extraRowSpacing 0em 0em @extraSpacing;
  273. }
  274. .ui.items > .item .extra:after {
  275. display: block;
  276. content: ' ';
  277. height: 0px;
  278. clear: both;
  279. overflow: hidden;
  280. visibility: hidden;
  281. }
  282. /*******************************
  283. Responsive
  284. *******************************/
  285. /* Default Image Width */
  286. .ui.items > .item > .image:not(.ui) {
  287. width: @imageWidth;
  288. }
  289. /* Tablet Only */
  290. @media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
  291. .ui.items > .item {
  292. margin: @tabletItemSpacing 0em;
  293. }
  294. .ui.items > .item > .image:not(.ui) {
  295. width: @tabletImageWidth;
  296. }
  297. .ui.items > .item > .image + .content {
  298. display: block;
  299. padding: 0em 0em 0em @tabletContentImageDistance;
  300. }
  301. }
  302. /* Mobily Only */
  303. @media only screen and (max-width: @largestMobileScreen) {
  304. .ui.items > .item {
  305. margin: @mobileItemSpacing 0em;
  306. }
  307. .ui.items > .item > .image {
  308. display: block;
  309. margin-left: auto;
  310. margin-right: auto;
  311. }
  312. .ui.items > .item > .image,
  313. .ui.items > .item > .image > img {
  314. max-width: 100% !important;
  315. width: @mobileImageWidth !important;
  316. max-height: @mobileImageMaxHeight !important;
  317. }
  318. .ui.items > .item > .image + .content {
  319. display: block;
  320. padding: @mobileContentImageDistance 0em 0em;
  321. }
  322. }
  323. /*******************************
  324. Variations
  325. *******************************/
  326. /*-------------------
  327. Aligned
  328. --------------------*/
  329. .ui.items > .item > .image + [class*="top aligned"].content {
  330. vertical-align: top;
  331. }
  332. .ui.items > .item > .image + [class*="middle aligned"].content {
  333. vertical-align: middle;
  334. }
  335. .ui.items > .item > .image + [class*="bottom aligned"].content {
  336. vertical-align: bottom;
  337. }
  338. /*--------------
  339. Relaxed
  340. ---------------*/
  341. .ui.relaxed.items > .item {
  342. margin: @relaxedItemSpacing 0em;
  343. }
  344. .ui[class*="very relaxed"].items > .item {
  345. margin: @veryRelaxedItemSpacing 0em;
  346. }
  347. /*-------------------
  348. Divided
  349. --------------------*/
  350. .ui.divided.items > .item {
  351. border-top: @dividedBorder;
  352. margin: @dividedMargin;
  353. padding: @dividedPadding;
  354. }
  355. .ui.divided.items > .item:first-child {
  356. border-top: none;
  357. margin-top: @dividedFirstLastMargin !important;
  358. padding-top: @dividedFirstLastPadding !important;
  359. }
  360. .ui.divided.items > .item:last-child {
  361. margin-bottom: @dividedFirstLastMargin !important;
  362. padding-bottom: @dividedFirstLastPadding !important;
  363. }
  364. /* Relaxed Divided */
  365. .ui.relaxed.divided.items > .item {
  366. margin: 0em;
  367. padding: @relaxedItemSpacing 0em;
  368. }
  369. .ui[class*="very relaxed"].divided.items > .item {
  370. margin: 0em;
  371. padding: @veryRelaxedItemSpacing 0em;
  372. }
  373. /*-------------------
  374. Link
  375. --------------------*/
  376. .ui.items a.item:hover,
  377. .ui.link.items > .item:hover {
  378. cursor: pointer;
  379. }
  380. .ui.items a.item:hover .content .header,
  381. .ui.link.items > .item:hover .content .header {
  382. color: @headerLinkHoverColor;
  383. }
  384. /*--------------
  385. Size
  386. ---------------*/
  387. .ui.items > .item {
  388. font-size: @medium;
  389. }
  390. .loadUIOverrides();