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.

140 lines
2.6 KiB

  1. /*
  2. * # Semantic Image
  3. * http://github.com/quirkyinc/semantic
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. * Released: April 17 2013
  11. */
  12. /*******************************
  13. Image
  14. *******************************/
  15. .ui.image {
  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: 500em;
  59. -moz-border-radius: 500em;
  60. border-radius: 500em;
  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: 500em;
  74. -moz-border-radius: 500em;
  75. border-radius: 500em;
  76. }
  77. /*-------------------
  78. Floated
  79. --------------------*/
  80. .ui.floated.image,
  81. .ui.floated.images {
  82. float: left;
  83. margin-right: 0.5em;
  84. }
  85. .ui.right.floated.images,
  86. .ui.right.floated.image {
  87. float: right;
  88. margin-left: 0.5em;
  89. }
  90. /*--------------
  91. Sizes
  92. ---------------*/
  93. .ui.tiny.images .image,
  94. .ui.tiny.images img,
  95. .ui.tiny.image {
  96. width: 20px;
  97. font-size: 0.7rem;
  98. }
  99. .ui.mini.images .image,
  100. .ui.mini.images img,
  101. .ui.mini.image {
  102. width: 35px;
  103. font-size: 0.8rem;
  104. }
  105. .ui.small.images .image,
  106. .ui.small.images img,
  107. .ui.small.image {
  108. width: 80px;
  109. font-size: 0.9rem;
  110. }
  111. .ui.medium.images .image,
  112. .ui.medium.images img,
  113. .ui.medium.image {
  114. width: 300px;
  115. font-size: 1rem;
  116. }
  117. .ui.large.images .image,
  118. .ui.large.images img,
  119. .ui.large.image {
  120. width: 450px;
  121. font-size: 1.1rem;
  122. }
  123. .ui.huge.images .image,
  124. .ui.huge.images img,
  125. .ui.huge.image {
  126. width: 600px;
  127. font-size: 1.2rem;
  128. }
  129. /*******************************
  130. Groups
  131. *******************************/
  132. .ui.images {
  133. font-size: 0em;
  134. margin: 0em -0.25rem 0rem;
  135. }
  136. .ui.images .image,
  137. .ui.images img {
  138. display: inline-block;
  139. margin: 0em 0.25em 0.5em;
  140. }