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.

255 lines
4.6 KiB

  1. /*
  2. * # Semantic - Image
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'element';
  15. @element : 'image';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Image
  19. *******************************/
  20. .ui.image {
  21. position: relative;
  22. display: inline-block;
  23. vertical-align: middle;
  24. max-width: 100%;
  25. background-color: @placeholderColor;
  26. }
  27. img.ui.image {
  28. display: block;
  29. background: none;
  30. }
  31. .ui.image img {
  32. display: block;
  33. max-width: 100%;
  34. height: auto;
  35. }
  36. /*******************************
  37. States
  38. *******************************/
  39. .ui.disabled.image {
  40. cursor: default;
  41. opacity: @disabledOpacity;
  42. }
  43. /*******************************
  44. Variations
  45. *******************************/
  46. /*--------------
  47. Inline
  48. ---------------*/
  49. .ui.inline.image,
  50. .ui.inline.image img {
  51. display: inline-block;
  52. }
  53. /*------------------
  54. Vertical Aligned
  55. -------------------*/
  56. .ui.top.aligned.images .image,
  57. .ui.top.aligned.image,
  58. .ui.top.aligned.image img {
  59. display: inline-block;
  60. vertical-align: top;
  61. }
  62. .ui.middle.aligned.images .image,
  63. .ui.middle.aligned.image,
  64. .ui.middle.aligned.image img {
  65. display: inline-block;
  66. vertical-align: middle;
  67. }
  68. .ui.bottom.aligned.images .image,
  69. .ui.bottom.aligned.image,
  70. .ui.bottom.aligned.image img {
  71. display: inline-block;
  72. vertical-align: bottom;
  73. }
  74. /*--------------
  75. Rounded
  76. ---------------*/
  77. .ui.rounded.images .image,
  78. .ui.rounded.images img,
  79. .ui.rounded.image img,
  80. .ui.rounded.image {
  81. border-radius: @roundedBorderRadius;
  82. }
  83. /*--------------
  84. Bordered
  85. ---------------*/
  86. .ui.bordered.images .image,
  87. .ui.bordered.images img,
  88. .ui.bordered.image img,
  89. img.ui.bordered.image {
  90. border: @imageBorder;
  91. }
  92. /*--------------
  93. Circular
  94. ---------------*/
  95. .ui.circular.images .image,
  96. .ui.circular.images img,
  97. .ui.circular.image img,
  98. .ui.circular.image {
  99. -webkit-border-radius: @circularRadius;
  100. -moz-border-radius: @circularRadius;
  101. border-radius: @circularRadius;
  102. }
  103. /*--------------
  104. Fluid
  105. ---------------*/
  106. .ui.fluid.images,
  107. .ui.fluid.image,
  108. .ui.fluid.images img,
  109. .ui.fluid.image img {
  110. display: block;
  111. width: 100%;
  112. }
  113. /*--------------
  114. Avatar
  115. ---------------*/
  116. .ui.avatar.images .image,
  117. .ui.avatar.images img,
  118. .ui.avatar.image img,
  119. .ui.avatar.image {
  120. margin-right: @avatarMargin;
  121. display: inline-block;
  122. width: @avatarSize;
  123. height: @avatarSize;
  124. -webkit-border-radius: @circularRadius;
  125. -moz-border-radius: @circularRadius;
  126. border-radius: @circularRadius;
  127. }
  128. /*-------------------
  129. Floated
  130. --------------------*/
  131. .ui.floated.image,
  132. .ui.floated.images {
  133. float: left;
  134. margin-right: @floatedHorizontalMargin;
  135. margin-bottom: @floatedVerticalMargin;
  136. }
  137. .ui.right.floated.images,
  138. .ui.right.floated.image {
  139. float: right;
  140. margin-right: 0em;
  141. margin-bottom: @floatedVerticalMargin;
  142. margin-left: @floatedHorizontalMargin;
  143. }
  144. .ui.floated.images:last-child,
  145. .ui.floated.image:last-child {
  146. margin-bottom: 0em;
  147. }
  148. .ui.centered.images,
  149. .ui.centered.image {
  150. margin-left: auto;
  151. margin-right: auto;
  152. }
  153. /*--------------
  154. Sizes
  155. ---------------*/
  156. .ui.mini.images .image,
  157. .ui.mini.images img,
  158. .ui.mini.image {
  159. width: @miniWidth;
  160. font-size: @mini;
  161. }
  162. .ui.tiny.images .image,
  163. .ui.tiny.images img,
  164. .ui.tiny.image {
  165. width: @tinyWidth;
  166. font-size: @tiny;
  167. }
  168. .ui.small.images .image,
  169. .ui.small.images img,
  170. .ui.small.image {
  171. width: @smallWidth;
  172. font-size: @small;
  173. }
  174. .ui.medium.images .image,
  175. .ui.medium.images img,
  176. .ui.medium.image {
  177. width: @mediumWidth;
  178. font-size: @medium;
  179. }
  180. .ui.large.images .image,
  181. .ui.large.images img,
  182. .ui.large.image {
  183. width: @largeWidth;
  184. font-size: @large;
  185. }
  186. .ui.big.images .image,
  187. .ui.big.images img,
  188. .ui.big.image {
  189. width: @bigWidth;
  190. font-size: @big;
  191. }
  192. .ui.huge.images .image,
  193. .ui.huge.images img,
  194. .ui.huge.image {
  195. width: @hugeWidth;
  196. font-size: @huge;
  197. }
  198. .ui.massive.images .image,
  199. .ui.massive.images img,
  200. .ui.massive.image {
  201. width: @massiveWidth;
  202. font-size: @massive;
  203. }
  204. /*******************************
  205. Groups
  206. *******************************/
  207. .ui.images {
  208. font-size: 0em;
  209. margin: 0em -@imageHorizontalMargin 0rem;
  210. }
  211. .ui.images .image,
  212. .ui.images img {
  213. display: inline-block;
  214. margin: 0em @imageHorizontalMargin @imageVerticalMargin;
  215. }
  216. .loadUIOverrides();