You are here

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

CSS for the provided examples.

File

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