isotope.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. /* Start: Recommended Isotope styles */
  2. /**** Isotope Filtering ****/
  3. .isotope-item {
  4. z-index: 2;
  5. padding: 5px;
  6. background: #FFE4A9;
  7. }
  8. .isotope-hidden.isotope-item {
  9. pointer-events: none;
  10. z-index: 1;
  11. }
  12. /**** Isotope CSS3 transitions ****/
  13. .isotope,
  14. .isotope .isotope-item {
  15. -webkit-transition-duration: 0.8s;
  16. -moz-transition-duration: 0.8s;
  17. -ms-transition-duration: 0.8s;
  18. -o-transition-duration: 0.8s;
  19. transition-duration: 0.8s;
  20. }
  21. .isotope {
  22. -webkit-transition-property: height, width;
  23. -moz-transition-property: height, width;
  24. -ms-transition-property: height, width;
  25. -o-transition-property: height, width;
  26. transition-property: height, width;
  27. }
  28. .isotope .isotope-item {
  29. -webkit-transition-property: -webkit-transform, opacity;
  30. -moz-transition-property: -moz-transform, opacity;
  31. -ms-transition-property: -ms-transform, opacity;
  32. -o-transition-property: top, left, opacity;
  33. transition-property: transform, opacity;
  34. }
  35. /**** disabling Isotope CSS3 transitions ****/
  36. .isotope.no-transition,
  37. .isotope.no-transition .isotope-item,
  38. .isotope .isotope-item.no-transition {
  39. -webkit-transition-duration: 0s;
  40. -moz-transition-duration: 0s;
  41. -ms-transition-duration: 0s;
  42. -o-transition-duration: 0s;
  43. transition-duration: 0s;
  44. }
  45. /* End: Recommended Isotope styles */
  46. /* disable CSS transitions for containers with infinite scrolling*/
  47. .isotope.infinite-scrolling {
  48. -webkit-transition: none;
  49. -moz-transition: none;
  50. -ms-transition: none;
  51. -o-transition: none;
  52. transition: none;
  53. }
  54. /**** Isotope styles ****/
  55. /* required for containers to inherit vertical size from window */
  56. /*html,
  57. body {
  58. height: 100%;
  59. }*/
  60. #container {
  61. border: 1px solid #666;
  62. padding: 5px;
  63. margin-bottom: 20px;
  64. }
  65. .element {
  66. width: 110px;
  67. height: 110px;
  68. margin: 5px;
  69. float: left;
  70. overflow: hidden;
  71. position: relative;
  72. background: #888;
  73. color: #222;
  74. -webkit-border-top-right-radius: 1.2em;
  75. -moz-border-radius-topright: 1.2em;
  76. border-top-right-radius: 1.2em;
  77. }
  78. .element.alkali {
  79. background: #F00;
  80. background: hsl(0, 100%, 50%);
  81. }
  82. .element.alkaline-earth {
  83. background: #F80;
  84. background: hsl(36, 100%, 50%);
  85. }
  86. .element.lanthanoid {
  87. background: #FF0;
  88. background: hsl(72, 100%, 50%);
  89. }
  90. .element.actinoid {
  91. background: #0F0;
  92. background: hsl(108, 100%, 50%);
  93. }
  94. .element.transition {
  95. background: #0F8;
  96. background: hsl(144, 100%, 50%);
  97. }
  98. .element.post-transition {
  99. background: #0FF;
  100. background: hsl(180, 100%, 50%);
  101. }
  102. .element.metalloid {
  103. background: #08F;
  104. background: hsl(216, 100%, 50%);
  105. }
  106. .element.other.nonmetal {
  107. background: #00F;
  108. background: hsl(252, 100%, 50%);
  109. }
  110. .element.halogen {
  111. background: #F0F;
  112. background: hsl(288, 100%, 50%);
  113. }
  114. .element.noble-gas {
  115. background: #F08;
  116. background: hsl(324, 100%, 50%);
  117. }
  118. .element * {
  119. position: absolute;
  120. margin: 0;
  121. }
  122. .element .symbol {
  123. left: 0.2em;
  124. top: 0.4em;
  125. font-size: 3.8em;
  126. line-height: 1.0em;
  127. color: #FFF;
  128. }
  129. .element.large .symbol {
  130. font-size: 4.5em;
  131. }
  132. .element.fake .symbol {
  133. color: #000;
  134. }
  135. .element .name {
  136. left: 0.5em;
  137. bottom: 1.6em;
  138. font-size: 1.05em;
  139. }
  140. .element .weight {
  141. font-size: 0.9em;
  142. left: 0.5em;
  143. bottom: 0.5em;
  144. }
  145. .element .number {
  146. font-size: 1.25em;
  147. font-weight: bold;
  148. color: hsla(0, 0%, 0%, .5);
  149. right: 0.5em;
  150. top: 0.5em;
  151. }
  152. .variable-sizes .element.width2 {
  153. width: 230px;
  154. }
  155. .variable-sizes .element.height2 {
  156. height: 230px;
  157. }
  158. .variable-sizes .element.width2.height2 {
  159. font-size: 2.0em;
  160. }
  161. .element.large,
  162. .variable-sizes .element.large,
  163. .variable-sizes .element.large.width2.height2 {
  164. font-size: 3.0em;
  165. width: 350px;
  166. height: 350px;
  167. z-index: 100;
  168. }
  169. .clickable .element:hover {
  170. cursor: pointer;
  171. }
  172. .clickable .element:hover h3 {
  173. text-shadow: 0 0 10px white,
  174. 0 0 10px white;
  175. }
  176. .clickable .element:hover h2 {
  177. color: white;
  178. }