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.

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