Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. /**
  2. * Units
  3. */
  4. const u = 1,
  5. bump = {
  6. small: 1.25,
  7. medium: 1.5,
  8. large: 2,
  9. extra: 3,
  10. }
  11.  
  12. /**
  13. * Post component styles
  14. */
  15. const postStyles = {
  16. blockquotes: `
  17. background: black;
  18. color: white;
  19. padding: ${u*bump.extra}em;
  20. margin-top: ${u*bump.large}em;
  21. margin-bottom: ${u*bump.large}em;
  22.  
  23. p {
  24. font-size: ${u*bump.medium}em;
  25. margin-bottom: ${u}em;
  26.  
  27. br {
  28. display: none;
  29. }
  30. }
  31.  
  32. cite {
  33. display: inline-block;
  34. margin-top: ${u}em;
  35. font-size: ${u*bump.medium}em;
  36. font-weight: strong;
  37. text-align: right;
  38. }
  39. `,
  40.  
  41. lists: `
  42. margin-top: ${u}em;
  43. margin-bottom: ${u}em;
  44. list-style-type: square;
  45. list-style-position: inside;
  46.  
  47. li {
  48. margin-bottom: ${u}em;
  49. }
  50. `,
  51.  
  52. paragraph: `
  53. font-size: ${u*bump.small}em;
  54. margin-bottom: ${u}em;
  55. `
  56. }
  57.  
  58. const Content = styled(Box)`
  59. blockquote {
  60. ${postStyles.blockquotes}
  61. }
  62.  
  63. p {
  64. ${postStyles.paragraph}
  65. }
  66.  
  67. ul {
  68. ${postStyles.lists}
  69. }
  70. `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement