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.

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