blocks.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. /*
  2. Theme Name: Publication
  3. Description: Used to style Gutenberg Blocks.
  4. */
  5. /*--------------------------------------------------------------
  6. >>> TABLE OF CONTENTS:
  7. ----------------------------------------------------------------
  8. 1.0 General Block Styles
  9. 2.0 Blocks - Common Blocks
  10. 3.0 Blocks - Formatting
  11. 4.0 Blocks - Layout Elements
  12. 5.0 Blocks - Widgets
  13. 6.0 Blocks - Colors
  14. --------------------------------------------------------------*/
  15. /*--------------------------------------------------------------
  16. 1.0 General Block Styles
  17. --------------------------------------------------------------*/
  18. /* Full Width */
  19. .no-sidebar .alignfull {
  20. width: 100vw;
  21. max-width: 100vw;
  22. margin-left: 0;
  23. margin-right: 0;
  24. position: relative;
  25. left: 50%;
  26. transform: translateX( -50% );
  27. }
  28. .no-sidebar .wp-block-columns.alignfull,
  29. .no-sidebar .wp-block-latest-comments.alignfull,
  30. .no-sidebar .wp-block-archives.alignfull,
  31. .no-sidebar .wp-block-categories.alignfull,
  32. .no-sidebar .wp-block-archives.alignfull,
  33. .no-sidebar .wp-block-latest-posts.alignfull,
  34. .no-sidebar .wp-block-file.alignfull {
  35. padding-left: 2em;
  36. padding-right: 2em;
  37. }
  38. .no-sidebar .wp-block-embed.is-type-video.alignfull iframe {
  39. width: 100% !important;
  40. height: 100% !important;
  41. }
  42. .rtl.no-sidebar .alignfull {
  43. left: auto;
  44. right: 50%;
  45. transform: translateX(50%);
  46. }
  47. /* Wide Width */
  48. @media (min-width: 1100px) {
  49. .no-sidebar .alignwide {
  50. width: 1100px;
  51. max-width: 1100px;
  52. margin-left: -268px;
  53. margin-right: -268px;
  54. position: relative;
  55. }
  56. .no-sidebar .wp-block-embed.is-type-video.alignwide iframe {
  57. width: 100% !important;
  58. height: 100% !important;
  59. }
  60. }
  61. /* Captions */
  62. [class^="wp-block-"] figcaption {
  63. font-size: 13px;
  64. line-height: 1.3847;
  65. }
  66. [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  67. border-bottom: 1px solid #eee;
  68. margin: 0;
  69. padding: 0 0 0.5em;
  70. }
  71. /*--------------------------------------------------------------
  72. 2.0 Blocks - Common Blocks
  73. --------------------------------------------------------------*/
  74. /* Paragraph */
  75. p.has-drop-cap:not(:focus)::first-letter {
  76. font-family: Neuton, serif;
  77. font-size: 80px;
  78. margin-top: 0.125em;
  79. }
  80. /* Images */
  81. .wp-block-cover,
  82. .wp-block-cover.alignleft,
  83. .wp-block-cover.alignright,
  84. .wp-block-cover.aligncenter {
  85. display: flex;
  86. }
  87. /* Gallery */
  88. .wp-block-gallery {
  89. margin-bottom: 24px;
  90. margin-left: auto;
  91. margin-right: auto;
  92. max-width: 100%;
  93. }
  94. .rtl .wp-block-gallery:not(.alignfull):not(.alignwide) {
  95. margin-right: auto;
  96. margin-left: auto;
  97. }
  98. /* Quote */
  99. .wp-block-quote {
  100. border-bottom: 3px solid currentcolor;
  101. border-top: 3px solid currentColor;
  102. color: #555;
  103. font-family: Neuton, serif;
  104. font-size: 20px;
  105. font-style: italic;
  106. line-height: 1.2;
  107. margin: 0 0 24px;
  108. padding: 24px 0;
  109. }
  110. .wp-block-quote cite {
  111. color: #222;
  112. font-weight: bold;
  113. font-style: italic;
  114. display: block;
  115. margin-top: 6px;
  116. text-align: left;
  117. }
  118. .wp-block-quote.is-large cite,
  119. .wp-block-quote.is-large footer,
  120. .wp-block-quote.is-style-large cite,
  121. .wp-block-quote.is-style-large footer {
  122. text-align: left;
  123. font-size: 24px;
  124. }
  125. .wp-block-quote.is-large,
  126. .wp-block-quote.is-style-large {
  127. padding: 24px 0;
  128. }
  129. .wp-block-quote.is-large,
  130. .wp-block-quote.is-style-large,
  131. .wp-block-quote.is-large p,
  132. .wp-block-quote.is-style-large p {
  133. font-size: 28px;
  134. }
  135. .wp-block-quote.is-large p,
  136. .wp-block-quote.is-style-large p {
  137. margin-bottom: 24px;
  138. }
  139. .rtl .wp-block-quote {
  140. border: 0;
  141. }
  142. /* Audio */
  143. .wp-block-audio {
  144. margin-bottom: 24px;
  145. }
  146. .wp-block-audio audio {
  147. display: block;
  148. width: 100%;
  149. }
  150. /* File */
  151. .wp-block-file {
  152. margin: 24px 0;
  153. }
  154. .wp-block-file a.wp-block-file__button,
  155. .wp-block-file a.wp-block-file__button:visited {
  156. background: #ef7d0b;
  157. border: 0;
  158. border-radius: 0;
  159. color: #fff;
  160. font-weight: bold;
  161. padding: 6px 12px;
  162. text-transform: uppercase;
  163. }
  164. .wp-block-file a.wp-block-file__button:hover,
  165. .wp-block-file a.wp-block-file__button:focus,
  166. .wp-block-file a.wp-block-file__button:active {
  167. background: #222;
  168. color: #fff;
  169. outline: 0;
  170. }
  171. .rtl .wp-block-file a.wp-block-file__button {
  172. margin-left: 12px;
  173. margin-right: 0;
  174. }
  175. /*--------------------------------------------------------------
  176. 3.0 Blocks - Formatting Blocks
  177. --------------------------------------------------------------*/
  178. /* Verse */
  179. .wp-block-verse {
  180. background: transparent;
  181. color: inherit;
  182. font-family: inherit;
  183. font-size: inherit;
  184. font-style: italic;
  185. line-height: inherit;
  186. margin-bottom: 24px;
  187. max-width: 100%;
  188. overflow: auto;
  189. padding: 0;
  190. }
  191. /* Code */
  192. .wp-block-code {
  193. background: #eee;
  194. font-family: Inconsolata, monospace;
  195. max-width: 100%;
  196. overflow: auto;
  197. padding: 12px;
  198. }
  199. /* Pullquote */
  200. .wp-block-pullquote {
  201. margin: 0;
  202. padding: 0;
  203. border: 0;
  204. }
  205. .wp-block-pullquote blockquote {
  206. border-bottom: 3px solid currentcolor;
  207. border-top: 3px solid currentColor;
  208. color: #555;
  209. font-family: Neuton, serif;
  210. font-size: 28px;
  211. line-height: 33px;
  212. font-style: italic;
  213. margin: 0 0 24px;
  214. padding: 24px 0;
  215. }
  216. .wp-block-pullquote cite {
  217. color: #222;
  218. display: block;
  219. font-weight: bold;
  220. font-size: 16px;
  221. font-style: normal;
  222. letter-spacing: 1px;
  223. text-transform: uppercase;
  224. }
  225. .wp-block-pullquote.alignleft blockquote,
  226. .wp-block-pullquote.alignright blockquote {
  227. padding: 12px 0;
  228. margin: 0 0 12px;
  229. }
  230. .wp-block-pullquote.alignleft p,
  231. .wp-block-pullquote.alignright p {
  232. font-size: 24px;
  233. }
  234. .wp-block-pullquote.alignleft {
  235. margin-right: 24px;
  236. }
  237. .wp-block-pullquote.alignright {
  238. margin-left: 24px;
  239. }
  240. .wp-block-pullquote.alignfull blockquote {
  241. padding-left: 24px;
  242. padding-right: 24px;
  243. }
  244. .wp-block-pullquote p {
  245. margin: 0 0 12px;
  246. line-height: 34px;
  247. }
  248. /* Table */
  249. .no-sidebar .wp-block-table.alignfull {
  250. width: 96vw;
  251. }
  252. /*--------------------------------------------------------------
  253. 4.0 Blocks - Layout Elements
  254. --------------------------------------------------------------*/
  255. /* Buttons */
  256. .wp-block-button .wp-block-button__link {
  257. font-weight: bold;
  258. padding: 6px 18px;
  259. text-transform: uppercase;
  260. box-shadow: none;
  261. }
  262. .wp-block-button__link {
  263. background: #ef7d0b;
  264. color: #fff;
  265. }
  266. .is-style-outline .wp-block-button__link {
  267. background: transparent;
  268. border-color: currentColor;
  269. }
  270. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  271. color: #ef7d0b;
  272. }
  273. .wp-block-button .wp-block-button__link:active,
  274. .wp-block-button .wp-block-button__link:focus,
  275. .wp-block-button .wp-block-button__link:hover {
  276. background: #222;
  277. color: #fff;
  278. }
  279. .wp-block-button.alignleft {
  280. margin-left: 0;
  281. }
  282. .wp-block-button.alignright {
  283. margin-right: 0;
  284. }
  285. .wp-block-button.aligncenter {
  286. margin: 24px auto;
  287. }
  288. /* Seperator */
  289. hr.wp-block-separator {
  290. border: 0;
  291. }
  292. .wp-block-separator {
  293. background-color: #ddd;
  294. border: 0;
  295. height: 1px;
  296. margin-bottom: 24px;
  297. max-width: 100px;
  298. }
  299. .wp-block-separator.is-style-wide {
  300. max-width: 100%;
  301. }
  302. /* Media & Text */
  303. .wp-block-media-text {
  304. margin-bottom: 24px;
  305. }
  306. .wp-block-media-text *:last-child {
  307. margin-bottom: 0;
  308. }
  309. /*--------------------------------------------------------------
  310. 5.0 Blocks - Widget Blocks
  311. --------------------------------------------------------------*/
  312. /* General Widget styles */
  313. .wp-block-categories.aligncenter,
  314. .wp-block-categories.aligncenter ul,
  315. .wp-block-archives.aligncenter,
  316. .wp-block-latest-posts.aligncenter,
  317. .wp-block-latest-comments.aligncenter {
  318. list-style-position: inside;
  319. margin-left: 24px;
  320. margin-right: 24px;
  321. text-align: center;
  322. }
  323. /* Categories */
  324. .wp-block-categories-list.alignleft {
  325. margin-left: 24px;
  326. }
  327. /* Latest Comments */
  328. .wp-block-latest-comments {
  329. margin-left: 0;
  330. margin-right: 0;
  331. }
  332. .wp-block-latest-comments__comment-meta {
  333. font-family: Neuton, serif;
  334. font-size: 20px;
  335. line-height: 1.2;
  336. }
  337. .wp-block-latest-comments__comment-meta a {
  338. color: #222;
  339. font-weight: normal;
  340. box-shadow: none;
  341. }
  342. .wp-block-latest-comments__comment-date {
  343. color: #555;
  344. font-family: Oswald, sans-serif;
  345. font-size: 13px;
  346. font-weight: normal;
  347. letter-spacing: 0.075em;
  348. line-height: 1.8462;
  349. text-transform: uppercase;
  350. }
  351. .wp-block-latest-comments .wp-block-latest-comments__comment {
  352. border-top: 1px solid #dddddd;
  353. margin-bottom: 0;
  354. padding: 12px 0;
  355. }
  356. .wp-block-latest-comments .avatar,
  357. .wp-block-latest-comments__comment-avatar {
  358. margin: 0;
  359. }
  360. .wp-block-latest-comments__comment-excerpt p:last-child {
  361. margin-bottom: 0;
  362. }
  363. /* Latest Posts */
  364. .rtl .wp-block-latest-posts {
  365. margin-left: 0;
  366. margin-right: 0;
  367. }
  368. /* Blog Posts */
  369. .wp-block-newspack-blocks-homepage-articles .entry-wrapper {
  370. width: auto;
  371. }
  372. /*--------------------------------------------------------------
  373. 6.0 Blocks - Colors
  374. --------------------------------------------------------------*/
  375. .has-medium-gray-color,
  376. .has-medium-gray-color:hover,
  377. .has-medium-gray-color:focus,
  378. .has-medium-gray-color:active,
  379. .has-medium-gray-color:visited {
  380. color: #a09a92;
  381. }
  382. .has-medium-gray-background-color,
  383. .has-medium-gray-background-color:hover,
  384. .has-medium-gray-background-color:focus,
  385. .has-medium-gray-background-color:active,
  386. .has-medium-gray-background-color:visited {
  387. background-color: #a09a92;
  388. }
  389. .has-light-gray-color,
  390. .has-light-gray-color:hover,
  391. .has-light-gray-color:focus,
  392. .has-light-gray-color:active,
  393. .has-light-gray-color:visited {
  394. color: #dddddd;
  395. }
  396. .has-light-gray-background-color,
  397. .has-light-gray-background-color:hover,
  398. .has-light-gray-background-color:focus,
  399. .has-light-gray-background-color:active,
  400. .has-light-gray-background-color:visited {
  401. background-color: #dddddd;
  402. }
  403. .has-white-color,
  404. .has-white-color:hover,
  405. .has-white-color:focus,
  406. .has-white-color:active,
  407. .has-white-color:visited {
  408. color: #fff;
  409. }
  410. .has-white-background-color,
  411. .has-white-background-color:hover,
  412. .has-white-background-color:focus,
  413. .has-white-background-color:active,
  414. .has-white-background-color:visited {
  415. background-color: #fff;
  416. }
  417. .has-orange-color,
  418. .has-orange-color:hover,
  419. .has-orange-color:focus,
  420. .has-orange-color:active,
  421. .has-orange-color:visited {
  422. color: #ef7d0b;
  423. }
  424. .has-orange-background-color,
  425. .has-orange-background-color:hover,
  426. .has-orange-background-color:focus,
  427. .has-orange-background-color:active,
  428. .has-orange-background-color:visited {
  429. background-color: #ef7d0b;
  430. }
  431. .has-dark-orange-color,
  432. .has-dark-orange-color:hover,
  433. .has-dark-orange-color:focus,
  434. .has-dark-orange-color:active,
  435. .has-dark-orange-color:visited {
  436. color: #9c8012;
  437. }
  438. .has-dark-orange-background-color,
  439. .has-dark-orange-background-color:hover,
  440. .has-dark-orange-background-color:focus,
  441. .has-dark-orange-background-color:active,
  442. .has-dark-orange-background-color:visited {
  443. background-color: #9c8012;
  444. }
  445. .has-gray-color,
  446. .has-gray-color:hover,
  447. .has-gray-color:focus,
  448. .has-gray-color:active,
  449. .has-gray-color:visited {
  450. color: #85cc36;
  451. }
  452. .has-gray-background-color,
  453. .has-gray-background-color:hover,
  454. .has-gray-background-color:focus,
  455. .has-gray-background-color:active,
  456. .has-gray-background-color:visited {
  457. background-color: #85cc36;
  458. }
  459. .has-dark-gray-color,
  460. .has-dark-gray-color:hover,
  461. .has-dark-gray-color:focus,
  462. .has-dark-gray-color:active,
  463. .has-dark-gray-color:visited {
  464. color: #787065;
  465. }
  466. .has-dark-gray-background-color,
  467. .has-dark-gray-background-color:hover,
  468. .has-dark-gray-background-color:focus,
  469. .has-dark-gray-background-color:active,
  470. .has-dark-gray-background-color:visited {
  471. background-color: #787065;
  472. }
  473. .has-black-color,
  474. .has-black-color:hover,
  475. .has-black-color:focus,
  476. .has-black-color:active,
  477. .has-black-color:visited {
  478. color: #222;
  479. }
  480. .has-black-background-color,
  481. .has-black-background-color:hover,
  482. .has-black-background-color:focus,
  483. .has-black-background-color:active,
  484. .has-black-background-color:visited {
  485. background-color: #222;
  486. }