_content.scss 5.6 KB

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