_style.scss 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. .a8c-posts-list__listing {
  2. list-style: none;
  3. margin: 0;
  4. padding: 0;
  5. &:not(:last-child) {
  6. margin-bottom: calc(3 * #{map-deep-get($config-global, "spacing", "vertical")});
  7. }
  8. }
  9. .a8c-posts-list-item__featured span {
  10. color: #{map-deep-get($config-global, "color", "background", "default")};
  11. background-color: #{map-deep-get($config-global, "color", "primary", "default")};
  12. @include font-family( map-deep-get($config-global, "font", "family", "primary") );
  13. font-weight: bold;
  14. font-size: #{map-deep-get($config-global, "font", "size", "sm")};
  15. line-height: 1;
  16. padding: calc(0.5 * #{map-deep-get($config-global, "spacing", "unit")}) calc(0.66 * #{map-deep-get($config-global, "spacing", "unit")} );
  17. }
  18. .a8c-posts-list__item {
  19. display: block;
  20. /* Vertical margins logic between posts */
  21. margin-top: calc(3 * #{map-deep-get($config-global, "spacing", "vertical")});
  22. margin-bottom: calc(3 * #{map-deep-get($config-global, "spacing", "vertical")});
  23. &:first-child {
  24. margin-top: 0;
  25. }
  26. &:last-child {
  27. margin-bottom: 0;
  28. }
  29. .entry > * {
  30. /* Vertical margins logic between post details */
  31. margin-top: #{map-deep-get($config-global, "spacing", "unit")};
  32. margin-bottom: #{map-deep-get($config-global, "spacing", "unit")};
  33. &:first-child {
  34. margin-top: 0;
  35. }
  36. &:last-child {
  37. margin-bottom: 0;
  38. }
  39. }
  40. .a8c-posts-list-item__meta {
  41. color: #{map-deep-get($config-global, "color", "foreground", "light")};
  42. font-size: #{map-deep-get($config-global, "font", "size", "sm")};
  43. a {
  44. color: currentColor;
  45. &:hover,
  46. &:active {
  47. color: #{map-deep-get($config-global, "color", "primary", "hover")};
  48. }
  49. }
  50. }
  51. .a8c-posts-list-item__edit-link {
  52. margin-left: #{map-deep-get($config-global, "spacing", "unit")};
  53. }
  54. }
  55. .a8c-posts-list__view-all {
  56. // Extend button style
  57. @extend %button-style;
  58. display: inline-block;
  59. }