_content.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  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-categories {
  100. white-space: nowrap; /* Keep category icon on same line as category links, otherwise context lost. */
  101. }
  102. .middot-divider {
  103. padding-right: .45em;
  104. padding-left: .45em;
  105. font-size: 15px;
  106. }
  107. .middot-divider::after {
  108. content: '\00B7';
  109. }
  110. .article-style img,
  111. .article-style video {
  112. margin-left: auto;
  113. margin-right: auto;
  114. margin-top: 2rem;
  115. margin-bottom: 2rem;
  116. padding: 0;
  117. }
  118. .article-style td img,
  119. .article-style td video {
  120. margin-top: 0;
  121. margin-bottom: 0;
  122. }
  123. .article-style figure {
  124. margin-top: 2rem;
  125. margin-bottom: 2rem;
  126. }
  127. .article-style figure img {
  128. margin-top: 0;
  129. margin-bottom: 0;
  130. }
  131. /*************************************************
  132. * Publications
  133. **************************************************/
  134. .pub-banner {
  135. max-width: 100%;
  136. height: auto;
  137. margin-left: auto;
  138. margin-right: auto;
  139. }
  140. .pub-row-heading {
  141. font-weight: bold;
  142. }
  143. #container-publications {
  144. display: block;
  145. position: relative;
  146. overflow: hidden;
  147. }
  148. .li-cite-author {
  149. font-size: 1em;
  150. color: inherit;
  151. }
  152. .li-cite-author a {
  153. color: inherit;
  154. }
  155. .dark .li-cite-author a {
  156. color: rgb(248, 248, 242);
  157. }
  158. /*************************************************
  159. * Content widgets
  160. **************************************************/
  161. .content-widget-hr {
  162. margin-top: 1.2rem;
  163. padding-top: 1.2rem;
  164. border-top: 1px solid rgba(0,0,0,.05);
  165. }
  166. .dark .content-widget-hr {
  167. border-top: 1px solid rgba(255,255,255,.05);
  168. }
  169. /*************************************************
  170. * Tags
  171. **************************************************/
  172. .article-tags {
  173. margin-top: 1.2rem;
  174. }
  175. /*************************************************
  176. * Sharing
  177. **************************************************/
  178. .share-box {
  179. margin-top: 0.7rem;
  180. }
  181. ul.share {
  182. display: flex;
  183. align-items: center;
  184. justify-content: center;
  185. flex-direction: row;
  186. flex-wrap: wrap;
  187. list-style: none;
  188. margin: 0;
  189. padding: 0;
  190. }
  191. ul.share li {
  192. display: inline-flex;
  193. margin-right: 8px;
  194. }
  195. ul.share li:last-of-type {
  196. margin-right: 0;
  197. }
  198. ul.share li i {
  199. display: block;
  200. width: 30px;
  201. height: 30px;
  202. line-height: 30px;
  203. font-size: 22px;
  204. text-align: center;
  205. transition: all 150ms ease-in-out;
  206. }
  207. ul.share li a {
  208. text-decoration: none !important;
  209. color: rgba(0, 0, 0, 0.84);
  210. }
  211. .dark ul.share li a {
  212. color: rgba(255, 255, 255, 0.84);
  213. }
  214. ul.share li:hover i {
  215. transform: scale(1.2)
  216. }
  217. /*************************************************
  218. * Author profile card
  219. **************************************************/
  220. .author-card .portrait {
  221. width: 60px;
  222. height: 60px;
  223. margin: 0 auto;
  224. border-radius: 50%;
  225. object-fit: cover;
  226. }
  227. .author-card .card-title {
  228. margin-top: 0;
  229. margin-bottom: 15px;
  230. font-weight: 600;
  231. color: rgba(0, 0, 0, 0.84);
  232. }
  233. .author-card .card-title a {
  234. color: rgba(0, 0, 0, 0.84);
  235. }
  236. .dark .author-card .card-title,
  237. .dark .author-card .card-title a {
  238. color: rgba(255, 255, 255, 0.84);
  239. }
  240. .author-card p {
  241. margin-bottom: 5px;
  242. }
  243. .author-card .card-subtitle {
  244. font-weight: 300;
  245. font-size: 0.8rem;
  246. color: rgba(0, 0, 0, 0.54);
  247. margin-bottom: 7px;
  248. }
  249. .dark .author-card .card-subtitle {
  250. color: rgba(255, 255, 255, 0.54);
  251. }
  252. .author-card .card-text {
  253. color: rgba(0, 0, 0, 0.76);
  254. font-size: 0.8rem;
  255. margin-bottom: 4px;
  256. }
  257. .dark .author-card .card-text {
  258. color: rgba(255, 255, 255, 0.76);
  259. }
  260. /*************************************************
  261. * Comments
  262. **************************************************/
  263. #comments {
  264. padding-top: 1rem;
  265. }
  266. /*************************************************
  267. * Related content
  268. **************************************************/
  269. .article-widget {
  270. padding-top: 1.2rem; /* Match .content-widget-hr */
  271. }
  272. .article-widget h3 {
  273. margin-top: 0;
  274. }