_query.scss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. .is-style-quadrat-diamond-posts {
  2. .post-meta {
  3. justify-content: flex-start;
  4. }
  5. .wp-block-post-title,
  6. .wp-block-query-pagination,
  7. .post-meta {
  8. a {
  9. text-decoration: none;
  10. &:hover {
  11. text-decoration: underline;
  12. }
  13. }
  14. }
  15. .wp-block-column {
  16. flex-basis: auto;
  17. @include break-small() {
  18. &:last-child {
  19. max-width: 300px;
  20. flex-shrink: 0;
  21. }
  22. &:first-child {
  23. padding-right: 2em;
  24. }
  25. }
  26. }
  27. .wp-block-post-featured-image {
  28. width: 300px;
  29. @include break-small-only() {
  30. width: 100%;
  31. }
  32. img {
  33. object-fit: cover;
  34. width: 100%;
  35. height: 300px;
  36. }
  37. }
  38. .wp-block-post-template {
  39. li {
  40. display: flex;
  41. align-items: center;
  42. min-height: 400px;
  43. position: relative;
  44. & > * {
  45. flex-basis: 100%;
  46. }
  47. &:before {
  48. content: "";
  49. background: var(--wp--preset--color--tertiary);
  50. width: 375px;
  51. height: 375px;
  52. position: absolute;
  53. top: 0;
  54. left: 0;
  55. z-index: -1;
  56. opacity:0;
  57. transition: all 0.4s ease-in-out;
  58. }
  59. &:hover:before {
  60. opacity:1;
  61. }
  62. &:nth-child(2n+1):before {
  63. transform: rotate(16deg) translate(-130px, -20px);
  64. }
  65. &:nth-child(2n+1):hover:before {
  66. transform: rotate(-8deg) translate(-110px, 0);
  67. }
  68. &:nth-child(2n+2):before {
  69. transform: rotate(24deg) translate(-130px, 20px);
  70. }
  71. &:nth-child(2n+2):hover:before {
  72. transform: rotate(16deg) translate(-110px, 40px);
  73. }
  74. }
  75. }
  76. }