You are here

isotope_example.css in Isotope (with Masonry and Packery) 7.2

CSS for the provided examples.

File

isotope_example/isotope_example.css
View source
  1. /**
  2. * @file
  3. * CSS for the provided examples.
  4. */
  5. * {
  6. -webkit-box-sizing: border-box;
  7. -moz-box-sizing: border-box;
  8. box-sizing: border-box;
  9. }
  10. /* ---- button ---- */
  11. .filterbutton,
  12. .sorterbutton {
  13. display: inline-block;
  14. padding: 0.5em 1.0em;
  15. background: #eee;
  16. border: none;
  17. border-radius: 7px;
  18. background-image: linear-gradient( to bottom, hsla(0, 0%, 0%, 0), hsla(0, 0%, 0%, 0.2) );
  19. color: #222;
  20. font-family: sans-serif;
  21. font-size: 16px;
  22. text-shadow: 0 1px white;
  23. cursor: pointer;
  24. }
  25. .filterbutton:hover,
  26. .sorterbutton:hover {
  27. background-color: #8cf;
  28. text-shadow: 0 1px hsla(0, 0%, 100%, 0.5);
  29. color: #222;
  30. }
  31. .filterbutton:active,
  32. .filterbutton.selected,
  33. .sorterbutton:active,
  34. .sorterbutton.selected {
  35. background-color: #28f;
  36. }
  37. .filterbutton.selected,
  38. .sorterbutton.selected {
  39. color: white;
  40. text-shadow: 0 -1px hsla(0, 0%, 0%, 0.8);
  41. }
  42. .filterbutton:active,
  43. .sorterbutton:active {
  44. box-shadow: inset 0 1px 10px hsla(0, 0%, 0%, 0.8);
  45. }
  46. /* ---- button-group ---- */
  47. ul.isotope-options {
  48. list-style: none;
  49. margin: 0;
  50. padding: 0;
  51. }
  52. ul.isotope-options li {
  53. float: left;
  54. list-style: none;
  55. margin: 0;
  56. padding: 0;
  57. }
  58. .isotope-options:after {
  59. content: '';
  60. display: block;
  61. clear: both;
  62. }
  63. .isotope-options .filterbutton,
  64. .isotope-options .sorterbutton {
  65. float: left;
  66. border-radius: 0;
  67. margin-left: 0;
  68. margin-right: 1px;
  69. }
  70. .isotope-options li:first-child .filterbutton,
  71. .isotope-options li:first-child .sorterbutton {
  72. border-radius: 0.5em 0 0 0.5em;
  73. }
  74. .isotope-options li:last-child .filterbutton,
  75. .isotope-options li:last-child .sorterbutton {
  76. border-radius: 0 0.5em 0.5em 0;
  77. }
  78. .item-list ul.isotope-options {
  79. list-style: none;
  80. display: inline-block;
  81. margin-right: 20px;
  82. padding: 0;
  83. }
  84. .item-list ul.isotope-options li {
  85. padding: 0;
  86. margin: 0;
  87. }
  88. /* ---- isotope ---- */
  89. .isotope-container {
  90. background: #ddd;
  91. max-width: 1200px;
  92. list-style-type: none;
  93. }
  94. /* clear fix */
  95. .isotope-container:after {
  96. content: '';
  97. display: block;
  98. clear: both;
  99. }
  100. .item-list ul.isotope-container {
  101. list-style: none;
  102. margin: 0;
  103. padding: 0;
  104. }
  105. /* color-shape */
  106. .item-list li.isotope-element {
  107. list-style: none;
  108. margin: 5px;
  109. padding: 0;
  110. }
  111. .isotope-element {
  112. width: 70px;
  113. height: 70px;
  114. margin: 5px;
  115. float: left;
  116. background: black;
  117. }
  118. .isotope-element * {
  119. display: none;
  120. }
  121. .isotope-element.round {
  122. border-radius: 35px;
  123. }
  124. .isotope-element.big.round {
  125. border-radius: 75px;
  126. }
  127. .isotope-element.red {
  128. background: red;
  129. }
  130. .isotope-element.blue {
  131. background: blue;
  132. }
  133. .isotope-element.yellow {
  134. background: yellow;
  135. }
  136. .isotope-element.wide,
  137. .isotope-element.big {
  138. width: 150px;
  139. }
  140. .isotope-element.tall,
  141. .isotope-element.big {
  142. height: 150px;
  143. }
  144. .thisIsCustomisedLabel {
  145. color: red;
  146. }