node.pcss.css

Same filename in this branch
  1. 10 core/themes/claro/css/components/node.pcss.css
Same filename and directory in other branches
  1. 11.x core/themes/olivero/css/components/node.pcss.css
  2. 11.x core/themes/claro/css/components/node.pcss.css
  3. 9 core/themes/olivero/css/components/node.pcss.css
  4. 9 core/themes/claro/css/components/node.pcss.css
  5. 8.9.x core/themes/claro/css/components/node.pcss.css

Node specific styles.

File

core/themes/olivero/css/components/node.pcss.css

View source
  1. /**
  2. * @file
  3. * Node specific styles.
  4. */
  5. @import "../base/media-queries.pcss.css";
  6. .node__meta {
  7. display: flex;
  8. align-items: center;
  9. margin-block-end: var(--sp1);
  10. color: var(--color-text-neutral-soft);
  11. font-size: 14px;
  12. line-height: var(--sp);
  13. & a {
  14. font-weight: bold;
  15. }
  16. @media (--sm) {
  17. margin-block-end: var(--sp2);
  18. }
  19. }
  20. .node__author-image img {
  21. width: var(--sp2-5);
  22. height: var(--sp2-5);
  23. margin-inline-end: var(--sp0-5);
  24. object-fit: cover;
  25. border-radius: 50%;
  26. }
  27. .node__title {
  28. & a {
  29. padding-block-end: 3px;
  30. transition:
  31. background-size 0.2s,
  32. color 0.2s;
  33. text-decoration: none;
  34. color: var(--color-text-neutral-loud);
  35. background-color: transparent;
  36. background-image: linear-gradient(var(--color--primary-50), var(--color--primary-50)); /* Two values are needed for IE11 support. */
  37. background-repeat: no-repeat;
  38. background-position: bottom left; /* LTR */
  39. background-size: 0 3px;
  40. &:hover,
  41. &:focus {
  42. color: var(--color-text-primary-medium);
  43. }
  44. }
  45. }
  46. [dir="rtl"] .node__title {
  47. background-position: bottom right;
  48. }
  49. .node__content {
  50. padding-block-end: var(--sp1-5);
  51. @media (--lg) {
  52. padding-block-end: var(--sp3);
  53. }
  54. }
  55. .node--unpublished {
  56. /* There is no variable for the color - #fff4f4. */
  57. background-color: #fff4f4;
  58. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.