_content.scss 5.5 KB

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