_content.scss 5.2 KB

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