_content.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. /*************************************************
  2. * Page content
  3. **************************************************/
  4. article {
  5. animation: intro 0.3s both;
  6. animation-delay: 0.15s;
  7. }
  8. .article-container {
  9. max-width: 760px;
  10. padding: 0 20px 0 20px;
  11. margin: 0 auto 0 auto;
  12. }
  13. .page-subtitle {
  14. font-size: 1.15rem;
  15. color: rgba(0,0,0,.54);
  16. margin-bottom: 1rem;
  17. }
  18. .dark .page-subtitle {
  19. color: rgba(255,255,255,0.54);
  20. }
  21. .article-header {
  22. position: relative; /* Required for caption positioning */
  23. clear: both;
  24. }
  25. .article-banner {
  26. width: 100%;
  27. height: auto;
  28. }
  29. .featured-image-wrapper {
  30. position: relative;
  31. padding-left: 0; /* Override container padding. */
  32. padding-right: 0; /* Override container padding. */
  33. }
  34. .featured-image {
  35. position: relative;
  36. width: 100%;
  37. display: block;
  38. margin: 0 auto;
  39. }
  40. .article-header-caption {
  41. position: absolute;
  42. bottom: 0;
  43. right: 0;
  44. margin: 0 auto;
  45. padding: 2px 5px;
  46. color: #fff;
  47. font-size: .7em;
  48. background: #000;
  49. text-align: right;
  50. z-index: 5;
  51. opacity: 0.65;
  52. border-radius: 5px 0 0 0;
  53. }
  54. @media (min-width: 64em) {
  55. .article-header-caption {
  56. padding: 5px 10px;
  57. }
  58. }
  59. .article-header-caption a {
  60. color: #fff;
  61. text-decoration: none;
  62. }
  63. .article-title {
  64. font-size: 1.75rem;
  65. }
  66. .article-title a {
  67. color: #151515;
  68. transition: color 0.6s ease;
  69. }
  70. .dark .text-muted {
  71. color: rgba(255,255,255,0.54) !important;
  72. }
  73. .article-metadata {
  74. margin-bottom: 15px;
  75. overflow: hidden;
  76. font-size: 14px;
  77. letter-spacing: 0.03em;
  78. color: rgba(0,0,0,0.54);
  79. }
  80. .dark .article-metadata {
  81. color: rgba(255,255,255,0.54);
  82. }
  83. .stream-meta.article-metadata {
  84. margin-bottom: 5px;
  85. }
  86. /* For article page only, not lists. */
  87. article .article-metadata {
  88. margin-bottom: 20px;
  89. }
  90. .article-metadata a {
  91. color: rgba(0,0,0,.54);
  92. }
  93. .dark .article-metadata a {
  94. color: rgba(255,255,255,0.54);
  95. }
  96. .article-metadata a:hover {
  97. color: $sta-primary;
  98. }
  99. .article-metadata .author-notes {
  100. cursor: help;
  101. vertical-align: super;
  102. font-size: 0.7em;
  103. }
  104. .article-categories {
  105. white-space: nowrap; /* Keep category icon on same line as category links, otherwise context lost. */
  106. }
  107. .middot-divider {
  108. padding-right: .45em;
  109. padding-left: .45em;
  110. font-size: 15px;
  111. }
  112. .middot-divider::after {
  113. content: '\00B7';
  114. }
  115. .article-style img,
  116. .article-style video {
  117. margin-left: auto;
  118. margin-right: auto;
  119. margin-top: 2rem;
  120. margin-bottom: 2rem;
  121. padding: 0;
  122. }
  123. .article-style td img,
  124. .article-style td video {
  125. margin-top: 0;
  126. margin-bottom: 0;
  127. }
  128. .article-style figure {
  129. margin-top: 2rem;
  130. margin-bottom: 2rem;
  131. }
  132. .article-style figure img {
  133. margin-top: 0;
  134. margin-bottom: 0;
  135. }
  136. /*************************************************
  137. * Publications
  138. **************************************************/
  139. .pub-banner {
  140. max-width: 100%;
  141. height: auto;
  142. margin-left: auto;
  143. margin-right: auto;
  144. }
  145. .pub-row-heading {
  146. font-weight: bold;
  147. }
  148. #container-publications {
  149. display: block;
  150. position: relative;
  151. overflow: hidden;
  152. }
  153. .li-cite-author {
  154. font-size: 1em;
  155. color: inherit;
  156. }
  157. .li-cite-author a {
  158. color: inherit;
  159. }
  160. .dark .li-cite-author a {
  161. color: rgb(248, 248, 242);
  162. }
  163. /*************************************************
  164. * Content widgets
  165. **************************************************/
  166. .content-widget-hr {
  167. margin-top: 1.2rem;
  168. padding-top: 1.2rem;
  169. border-top: 1px solid rgba(0,0,0,.05);
  170. }
  171. .dark .content-widget-hr {
  172. border-top: 1px solid rgba(255,255,255,.05);
  173. }
  174. /*************************************************
  175. * Tags
  176. **************************************************/
  177. .article-tags {
  178. margin-top: 1.2rem;
  179. }
  180. /*************************************************
  181. * Sharing
  182. **************************************************/
  183. .share-box {
  184. margin-top: 0.7rem;
  185. }
  186. ul.share {
  187. display: flex;
  188. align-items: center;
  189. justify-content: center;
  190. flex-direction: row;
  191. flex-wrap: wrap;
  192. list-style: none;
  193. margin: 0;
  194. padding: 0;
  195. }
  196. ul.share li {
  197. display: inline-flex;
  198. margin-right: 8px;
  199. }
  200. ul.share li:last-of-type {
  201. margin-right: 0;
  202. }
  203. ul.share li i {
  204. display: block;
  205. width: 30px;
  206. height: 30px;
  207. line-height: 30px;
  208. font-size: 22px;
  209. text-align: center;
  210. transition: all 150ms ease-in-out;
  211. }
  212. ul.share li a {
  213. text-decoration: none !important;
  214. color: rgba(0, 0, 0, 0.84);
  215. }
  216. .dark ul.share li a {
  217. color: rgba(255, 255, 255, 0.84);
  218. }
  219. ul.share li:hover i {
  220. transform: scale(1.2)
  221. }
  222. /*************************************************
  223. * Author profile card
  224. **************************************************/
  225. .author-card .avatar {
  226. width: 60px;
  227. height: 60px;
  228. }
  229. .author-card .card-title {
  230. margin-top: 0;
  231. margin-bottom: 15px;
  232. font-weight: 600;
  233. color: rgba(0, 0, 0, 0.84);
  234. }
  235. .author-card .card-title a {
  236. color: rgba(0, 0, 0, 0.84);
  237. }
  238. .dark .author-card .card-title,
  239. .dark .author-card .card-title a {
  240. color: rgba(255, 255, 255, 0.84);
  241. }
  242. .author-card p {
  243. margin-bottom: 5px;
  244. }
  245. .author-card .card-subtitle {
  246. font-weight: 300;
  247. font-size: 0.8rem;
  248. color: rgba(0, 0, 0, 0.54);
  249. margin-bottom: 7px;
  250. }
  251. .dark .author-card .card-subtitle {
  252. color: rgba(255, 255, 255, 0.54);
  253. }
  254. .author-card .card-text {
  255. color: rgba(0, 0, 0, 0.76);
  256. font-size: 0.8rem;
  257. margin-bottom: 4px;
  258. }
  259. .dark .author-card .card-text {
  260. color: rgba(255, 255, 255, 0.76);
  261. }
  262. /*************************************************
  263. * Comments
  264. **************************************************/
  265. #comments {
  266. padding-top: 1rem;
  267. }
  268. /*************************************************
  269. * Related content
  270. **************************************************/
  271. .article-widget {
  272. padding-top: 1.2rem; /* Match .content-widget-hr */
  273. }
  274. .article-widget h3 {
  275. margin-top: 0;
  276. }