_content.scss 5.0 KB

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