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.

181 lines
3.0 KiB

  1. /*
  2. * # Semantic - Image
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Image
  13. *******************************/
  14. .ui.image {
  15. position: relative;
  16. display: inline-block;
  17. vertical-align: middle;
  18. max-width: 100%;
  19. background-color: rgba(0, 0, 0, 0.05);
  20. }
  21. img.ui.image {
  22. display: block;
  23. background: none;
  24. }
  25. .ui.image img {
  26. display: block;
  27. max-width: 100%;
  28. height: auto;
  29. }
  30. /*******************************
  31. States
  32. *******************************/
  33. .ui.disabled.image {
  34. cursor: default;
  35. opacity: 0.3;
  36. }
  37. /*******************************
  38. Variations
  39. *******************************/
  40. /*--------------
  41. Rounded
  42. ---------------*/
  43. .ui.rounded.images .image,
  44. .ui.rounded.images img,
  45. .ui.rounded.image img,
  46. .ui.rounded.image {
  47. -webkit-border-radius: 0.3125em;
  48. -moz-border-radius: 0.3125em;
  49. border-radius: 0.3125em;
  50. }
  51. /*--------------
  52. Circular
  53. ---------------*/
  54. .ui.circular.images .image,
  55. .ui.circular.images img,
  56. .ui.circular.image img,
  57. .ui.circular.image {
  58. -webkit-border-radius: 500rem;
  59. -moz-border-radius: 500rem;
  60. border-radius: 500rem;
  61. }
  62. /*--------------
  63. Fluid
  64. ---------------*/
  65. .ui.fluid.images,
  66. .ui.fluid.image,
  67. .ui.fluid.images img,
  68. .ui.fluid.image img {
  69. display: block;
  70. width: 100%;
  71. }
  72. /*--------------
  73. Avatar
  74. ---------------*/
  75. .ui.avatar.images .image,
  76. .ui.avatar.images img,
  77. .ui.avatar.image img,
  78. .ui.avatar.image {
  79. margin-right: 0.5em;
  80. display: inline-block;
  81. width: 2em;
  82. height: 2em;
  83. -webkit-border-radius: 500rem;
  84. -moz-border-radius: 500rem;
  85. border-radius: 500rem;
  86. }
  87. /*-------------------
  88. Floated
  89. --------------------*/
  90. .ui.floated.image,
  91. .ui.floated.images {
  92. float: left;
  93. margin-right: 1em;
  94. margin-bottom: 1em;
  95. }
  96. .ui.right.floated.images,
  97. .ui.right.floated.image {
  98. float: right;
  99. margin-bottom: 1em;
  100. margin-left: 1em;
  101. }
  102. /*--------------
  103. Sizes
  104. ---------------*/
  105. .ui.tiny.images .image,
  106. .ui.tiny.images img,
  107. .ui.tiny.image {
  108. width: 20px;
  109. font-size: 0.7rem;
  110. }
  111. .ui.mini.images .image,
  112. .ui.mini.images img,
  113. .ui.mini.image {
  114. width: 35px;
  115. font-size: 0.8rem;
  116. }
  117. .ui.small.images .image,
  118. .ui.small.images img,
  119. .ui.small.image {
  120. width: 80px;
  121. font-size: 0.9rem;
  122. }
  123. .ui.medium.images .image,
  124. .ui.medium.images img,
  125. .ui.medium.image {
  126. width: 300px;
  127. font-size: 1rem;
  128. }
  129. .ui.large.images .image,
  130. .ui.large.images img,
  131. .ui.large.image {
  132. width: 450px;
  133. font-size: 1.1rem;
  134. }
  135. .ui.huge.images .image,
  136. .ui.huge.images img,
  137. .ui.huge.image {
  138. width: 600px;
  139. font-size: 1.2rem;
  140. }
  141. /*******************************
  142. Groups
  143. *******************************/
  144. .ui.images {
  145. font-size: 0em;
  146. margin: 0em -0.25rem 0rem;
  147. }
  148. .ui.images .image,
  149. .ui.images img {
  150. display: inline-block;
  151. margin: 0em 0.25em 0.5em;
  152. }