_content.scss 6.1 KB

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