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.

173 lines
2.7 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. border-radius: 0.3125em;
  48. }
  49. /*--------------
  50. Circular
  51. ---------------*/
  52. .ui.circular.images .image,
  53. .ui.circular.images img,
  54. .ui.circular.image img,
  55. .ui.circular.image {
  56. border-radius: 500rem;
  57. }
  58. /*--------------
  59. Fluid
  60. ---------------*/
  61. .ui.fluid.images,
  62. .ui.fluid.image,
  63. .ui.fluid.images img,
  64. .ui.fluid.image img {
  65. display: block;
  66. width: 100%;
  67. }
  68. /*--------------
  69. Avatar
  70. ---------------*/
  71. .ui.avatar.images .image,
  72. .ui.avatar.images img,
  73. .ui.avatar.image img,
  74. .ui.avatar.image {
  75. margin-left: 0.5em;
  76. display: inline-block;
  77. width: 2em;
  78. height: 2em;
  79. border-radius: 500rem;
  80. }
  81. /*-------------------
  82. Floated
  83. --------------------*/
  84. .ui.floated.image,
  85. .ui.floated.images {
  86. float: right;
  87. margin-left: 1em;
  88. margin-bottom: 1em;
  89. }
  90. .ui.right.floated.images,
  91. .ui.right.floated.image {
  92. float: left;
  93. margin-bottom: 1em;
  94. margin-right: 1em;
  95. }
  96. /*--------------
  97. Sizes
  98. ---------------*/
  99. .ui.tiny.images .image,
  100. .ui.tiny.images img,
  101. .ui.tiny.image {
  102. width: 20px;
  103. font-size: 0.7rem;
  104. }
  105. .ui.mini.images .image,
  106. .ui.mini.images img,
  107. .ui.mini.image {
  108. width: 35px;
  109. font-size: 0.8rem;
  110. }
  111. .ui.small.images .image,
  112. .ui.small.images img,
  113. .ui.small.image {
  114. width: 80px;
  115. font-size: 0.9rem;
  116. }
  117. .ui.medium.images .image,
  118. .ui.medium.images img,
  119. .ui.medium.image {
  120. width: 300px;
  121. font-size: 1rem;
  122. }
  123. .ui.large.images .image,
  124. .ui.large.images img,
  125. .ui.large.image {
  126. width: 450px;
  127. font-size: 1.1rem;
  128. }
  129. .ui.huge.images .image,
  130. .ui.huge.images img,
  131. .ui.huge.image {
  132. width: 600px;
  133. font-size: 1.2rem;
  134. }
  135. /*******************************
  136. Groups
  137. *******************************/
  138. .ui.images {
  139. font-size: 0em;
  140. margin: 0em -0.25rem 0rem;
  141. }
  142. .ui.images .image,
  143. .ui.images img {
  144. display: inline-block;
  145. margin: 0em 0.25em 0.5em;
  146. }