twitter.sass 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. $tw-black: #1c2022
  2. $tw-blue: #2b7bb9
  3. $tw-grey: #697882
  4. .bd-tws-home
  5. background-color: $background
  6. display: flex
  7. flex-wrap: wrap
  8. overflow: auto
  9. padding: 20px
  10. .bd-tw
  11. background-color: #fff
  12. border: 1px solid #e1e8ed
  13. border-radius: 5px
  14. color: $tw-grey
  15. flex-shrink: 0
  16. font-family: Helvetica, Roboto, "Segoe UI", Calibri, sans-serif
  17. font-size: 16px
  18. padding: 20px
  19. .bd-tw-header
  20. align-items: stretch
  21. display: flex
  22. justify-content: flex-start
  23. .bd-tw-author
  24. align-items: center
  25. color: $tw-black
  26. display: flex
  27. line-height: 1.2
  28. &:hover
  29. color: $tw-blue
  30. .bd-tw-avatar
  31. flex-shrink: 0
  32. height: 36px
  33. margin-right: 9px
  34. width: 36px
  35. img
  36. border-radius: 290486px
  37. display: block
  38. height: 36px
  39. width: 36px
  40. .bd-tw-fullname
  41. color: currentColor
  42. display: block
  43. font-size: 16px
  44. font-weight: 700
  45. .bd-tw-username
  46. color: $tw-grey
  47. display: block
  48. font-size: 14px
  49. .bd-tw-content
  50. color: $tw-black
  51. font-size: 16px
  52. line-height: 1.4
  53. margin-top: 14px
  54. a
  55. color: $tw-blue
  56. .Emoji
  57. height: 1.25em
  58. padding: 0 .05em 0 .1em
  59. vertical-align: -.2em
  60. width: 1.25em
  61. .bd-tw-date
  62. font-size: 14px
  63. line-height: 1.4
  64. margin-top: 3.2px
  65. a
  66. color: $tw-grey
  67. &:hover
  68. color: $tw-blue
  69. .Tweet-actions
  70. align-items: center
  71. display: flex
  72. margin-top: 8.4px
  73. .Tweet-action
  74. margin-right: 1.25rem
  75. .TweetAction
  76. align-items: center
  77. display: flex
  78. height: 24px
  79. min-width: 24px
  80. &:hover
  81. .Icon--replyEdge
  82. background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%231DA1F2%22%20d%3D%22M14.046%202.242l-4.148-.01h-.002c-4.374%200-7.8%203.427-7.8%207.802%200%204.098%203.186%207.206%207.465%207.37v3.828c0%20.108.045.286.12.403.143.225.385.347.633.347.138%200%20.277-.038.402-.118.264-.168%206.473-4.14%208.088-5.506%201.902-1.61%203.04-3.97%203.043-6.312v-.017c-.006-4.368-3.43-7.788-7.8-7.79zm3.787%2012.972c-1.134.96-4.862%203.405-6.772%204.643V16.67c0-.414-.334-.75-.75-.75h-.395c-3.66%200-6.318-2.476-6.318-5.886%200-3.534%202.768-6.302%206.3-6.302l4.147.01h.002c3.532%200%206.3%202.766%206.302%206.296-.003%201.91-.942%203.844-2.514%205.176z%22%2F%3E%3C%2Fsvg%3E)
  83. .Icon--retweetEdge
  84. background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%2317BF63%22%20d%3D%22M23.77%2015.67c-.292-.293-.767-.293-1.06%200l-2.22%202.22V7.65c0-2.068-1.683-3.75-3.75-3.75h-5.85c-.414%200-.75.336-.75.75s.336.75.75.75h5.85c1.24%200%202.25%201.01%202.25%202.25v10.24l-2.22-2.22c-.293-.293-.768-.293-1.06%200s-.294.768%200%201.06l3.5%203.5c.145.147.337.22.53.22s.383-.072.53-.22l3.5-3.5c.294-.292.294-.767%200-1.06zm-10.66%203.28H7.26c-1.24%200-2.25-1.01-2.25-2.25V6.46l2.22%202.22c.148.147.34.22.532.22s.384-.073.53-.22c.293-.293.293-.768%200-1.06l-3.5-3.5c-.293-.294-.768-.294-1.06%200l-3.5%203.5c-.294.292-.294.767%200%201.06s.767.293%201.06%200l2.22-2.22V16.7c0%202.068%201.683%203.75%203.75%203.75h5.85c.414%200%20.75-.336.75-.75s-.337-.75-.75-.75z%22%2F%3E%3C%2Fsvg%3E)
  85. .Icon--heartEdge
  86. background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23E0245E%22%20d%3D%22M12%2021.638h-.014C9.403%2021.59%201.95%2014.856%201.95%208.478c0-3.064%202.525-5.754%205.403-5.754%202.29%200%203.83%201.58%204.646%202.73.813-1.148%202.353-2.73%204.644-2.73%202.88%200%205.404%202.69%205.404%205.755%200%206.375-7.454%2013.11-10.037%2013.156H12zM7.354%204.225c-2.08%200-3.903%201.988-3.903%204.255%200%205.74%207.035%2011.596%208.55%2011.658%201.52-.062%208.55-5.917%208.55-11.658%200-2.267-1.822-4.255-3.902-4.255-2.528%200-3.94%202.936-3.952%202.965-.23.562-1.156.562-1.387%200-.015-.03-1.426-2.965-3.955-2.965z%22%2F%3E%3C%2Fsvg%3E)
  87. .Tweet-action--retweet:hover
  88. .TweetAction-stat
  89. color: #17BF63
  90. .Tweet-action--heart:hover
  91. .TweetAction-stat
  92. color: #E0245E
  93. .TweetAction-icon
  94. background-size: contain
  95. height: 20px
  96. width: 20px
  97. .TweetAction-stat
  98. color: $tw-grey
  99. font-size: 14px
  100. margin-left: 5px
  101. margin-top: 1px
  102. .Icon--replyEdge
  103. background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23657786%22%20d%3D%22M14.046%202.242l-4.148-.01h-.002c-4.374%200-7.8%203.427-7.8%207.802%200%204.098%203.186%207.206%207.465%207.37v3.828c0%20.108.045.286.12.403.143.225.385.347.633.347.138%200%20.277-.038.402-.118.264-.168%206.473-4.14%208.088-5.506%201.902-1.61%203.04-3.97%203.043-6.312v-.017c-.006-4.368-3.43-7.788-7.8-7.79zm3.787%2012.972c-1.134.96-4.862%203.405-6.772%204.643V16.67c0-.414-.334-.75-.75-.75h-.395c-3.66%200-6.318-2.476-6.318-5.886%200-3.534%202.768-6.302%206.3-6.302l4.147.01h.002c3.532%200%206.3%202.766%206.302%206.296-.003%201.91-.942%203.844-2.514%205.176z%22%2F%3E%3C%2Fsvg%3E)
  104. .Icon--retweetEdge
  105. background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23657786%22%20d%3D%22M23.77%2015.67c-.292-.293-.767-.293-1.06%200l-2.22%202.22V7.65c0-2.068-1.683-3.75-3.75-3.75h-5.85c-.414%200-.75.336-.75.75s.336.75.75.75h5.85c1.24%200%202.25%201.01%202.25%202.25v10.24l-2.22-2.22c-.293-.293-.768-.293-1.06%200s-.294.768%200%201.06l3.5%203.5c.145.147.337.22.53.22s.383-.072.53-.22l3.5-3.5c.294-.292.294-.767%200-1.06zm-10.66%203.28H7.26c-1.24%200-2.25-1.01-2.25-2.25V6.46l2.22%202.22c.148.147.34.22.532.22s.384-.073.53-.22c.293-.293.293-.768%200-1.06l-3.5-3.5c-.293-.294-.768-.294-1.06%200l-3.5%203.5c-.294.292-.294.767%200%201.06s.767.293%201.06%200l2.22-2.22V16.7c0%202.068%201.683%203.75%203.75%203.75h5.85c.414%200%20.75-.336.75-.75s-.337-.75-.75-.75z%22%2F%3E%3C%2Fsvg%3E)
  106. .Icon--heartEdge
  107. background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23657786%22%20d%3D%22M12%2021.638h-.014C9.403%2021.59%201.95%2014.856%201.95%208.478c0-3.064%202.525-5.754%205.403-5.754%202.29%200%203.83%201.58%204.646%202.73.813-1.148%202.353-2.73%204.644-2.73%202.88%200%205.404%202.69%205.404%205.755%200%206.375-7.454%2013.11-10.037%2013.156H12zM7.354%204.225c-2.08%200-3.903%201.988-3.903%204.255%200%205.74%207.035%2011.596%208.55%2011.658%201.52-.062%208.55-5.917%208.55-11.658%200-2.267-1.822-4.255-3.902-4.255-2.528%200-3.94%202.936-3.952%202.965-.23.562-1.156.562-1.387%200-.015-.03-1.426-2.965-3.955-2.965z%22%2F%3E%3C%2Fsvg%3E)
  108. +mobile
  109. .bd-tws-home
  110. padding: 1.5rem
  111. .bd-tw:not(:last-child)
  112. margin-bottom: 1.5rem
  113. +tablet
  114. .bd-tws-home
  115. padding: 3rem
  116. .bd-tw + .bd-tw
  117. margin-top: 1.5rem
  118. +until($desktop)
  119. .bd-tws-love
  120. .bd-tw:not(:last-child)
  121. margin-bottom: 1.5rem
  122. +desktop
  123. .bd-tws-home
  124. min-height: 595px
  125. .bd-tws-love
  126. display: flex
  127. flex-wrap: wrap
  128. margin: -0.75rem
  129. .bd-tw
  130. margin: 0.75rem
  131. width: calc(33.3333% - 1.5rem)
  132. +widescreen
  133. .bd-tws-home
  134. min-height: 653px
  135. +fullhd
  136. .bd-tws-home
  137. min-height: 632px
  138. .twitter-tweet:not(.twitter-tweet-rendered)
  139. background-color: $white
  140. border: 1px solid #e1e8ed
  141. border-radius: 5px
  142. color: $tw-grey
  143. font-size: 14px
  144. padding: 20px 20px 11.6px
  145. a
  146. color: currentColor
  147. &:hover
  148. text-decoration: underline
  149. p
  150. color: $tw-black
  151. font-size: 16px
  152. margin-bottom: 3.2px
  153. a
  154. color: $tw-blue
  155. .twitter-tweet-rendered
  156. border: none
  157. border-radius: 0
  158. margin: 0 !important
  159. padding: 0 !important