_content.scss 6.1 KB

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