blocks.css 11 KB

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