blocks.css 11 KB

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