blocks.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. /*
  2. Theme Name: Independent Publisher 2
  3. Description: Used to style Gutenberg Blocks.
  4. */
  5. /*--------------------------------------------------------------
  6. >>> TABLE OF CONTENTS:
  7. ----------------------------------------------------------------
  8. 1.0 Block Alignments
  9. 2.0 General Block Styles
  10. 3.0 Blocks - Common Blocks
  11. 4.0 Blocks - Formatting
  12. 5.0 Blocks - Layout Elements
  13. 6.0 Blocks - Widgets
  14. 7.0 Blocks - Colors
  15. 8.0 Blocks - Posts List Block
  16. --------------------------------------------------------------*/
  17. /*--------------------------------------------------------------
  18. 1.0 Block Alignments
  19. --------------------------------------------------------------*/
  20. #page {
  21. overflow-x: hidden; /* prevents side-scrolling caused by use of vw */
  22. }
  23. .alignfull,
  24. .alignwide {
  25. clear: both;
  26. }
  27. @media (min-width: 1140px) {
  28. body:not(.has-sidebar) .alignwide,
  29. body:not(.has-sidebar) .wp-block-group.alignfull .alignwide {
  30. margin-left: -25%;
  31. margin-right: -25%;
  32. max-width: 1000%;
  33. width: auto;
  34. }
  35. }
  36. body:not(.has-sidebar) .alignfull,
  37. body:not(.has-sidebar) .wp-block-group.alignfull .alignfull {
  38. margin-left: calc(50% - 50vw);
  39. margin-right: calc(50% - 50vw);
  40. max-width: 1000%;
  41. width: auto;
  42. }
  43. /* Make non image-based blocks a bit narrower, so they don't get cut off. */
  44. body:not(.has-sidebar) .wp-block-columns.alignfull,
  45. body:not(.has-sidebar) .wp-block-audio.alignfull,
  46. body:not(.has-sidebar) .wp-block-table.alignfull,
  47. body:not(.has-sidebar) .wp-block-latest-comments.alignfull,
  48. body:not(.has-sidebar) .wp-block-categories.alignfull,
  49. body:not(.has-sidebar) .wp-block-latest-posts.alignfull {
  50. margin-left: calc(50% - 48vw);
  51. margin-right: calc(50% - 48vw);
  52. }
  53. .wp-block-embed.is-type-video iframe {
  54. max-height: 100%;
  55. }
  56. .wp-block-embed.is-type-video.alignfull iframe {
  57. width: 100% !important;
  58. height: 100% !important;
  59. }
  60. body:not(.has-sidebar) *[class^="wp-block"] .alignwide,
  61. body:not(.has-sidebar) *[class^="wp-block"] .alignfull {
  62. max-width: inherit;
  63. margin-left: inherit;
  64. margin-right: inherit;
  65. }
  66. /*--------------------------------------------------------------
  67. 2.0 General Block Styles
  68. --------------------------------------------------------------*/
  69. /* Captions */
  70. [class^="wp-block-"] figcaption {
  71. font-size: 14.25px;
  72. font-weight: 400;
  73. font-style: italic;
  74. color: inherit;
  75. }
  76. /*--------------------------------------------------------------
  77. 3.0 Blocks - Common Blocks
  78. --------------------------------------------------------------*/
  79. /* Paragraph */
  80. p.has-drop-cap:not(:focus)::first-letter {
  81. font-size: 5em;
  82. margin-top: 0.15em;
  83. }
  84. /* Image */
  85. .wp-block-image.is-style-default img[class*="wp-image-"] {
  86. border-radius: 3px;
  87. }
  88. .wp-block-image.is-style-rounded img[class*="wp-image-"] {
  89. border-radius: 9999px;
  90. }
  91. /* Gallery */
  92. .wp-block-gallery {
  93. margin: 0 0 0.875em;
  94. }
  95. /* Quote */
  96. .wp-block-quote.is-large cite,
  97. .wp-block-quote.is-style-large cite {
  98. text-align: inherit;
  99. }
  100. .rtl .wp-block-quote,
  101. .wp-block-quote[style*="text-align:right"] {
  102. margin-left: .875em;
  103. margin-right: -1.9em;
  104. padding-left: 0;
  105. padding-right: 1.75em;
  106. border-width: 0 3px 0 0;
  107. }
  108. .rtl .wp-block-quote[style*="text-align:left"] {
  109. margin-left: -1.9em;
  110. margin-right: .875em;
  111. padding-left: 1.75em;
  112. padding-right: 0;
  113. border-width: 0 0 0 3px;
  114. }
  115. .wp-block-quote.is-large,
  116. .wp-block-quote.is-style-large,
  117. .wp-block-quote[style*="text-align:center"] {
  118. border: 0;
  119. margin-left: 0;
  120. margin-right: 0;
  121. padding: 0;
  122. }
  123. /* Audio */
  124. .wp-block-audio {
  125. margin-bottom: 0.875em;
  126. }
  127. .wp-block-audio audio {
  128. display: block;
  129. width: 100%;
  130. }
  131. /* Image */
  132. .wp-block-image .alignleft,
  133. .wp-block-image .alignright {
  134. margin-top: 30px;
  135. }
  136. /* Cover */
  137. .wp-block-cover.aligncenter,
  138. .wp-block-cover-image.aligncenter,
  139. .wp-block-cover.alignleft,
  140. .wp-block-cover-image.alignleft,
  141. .wp-block-cover-image.alignright {
  142. display: flex;
  143. }
  144. .wp-block-cover-image .wp-block-cover-image-text,
  145. .wp-block-cover-image .wp-block-cover-text,
  146. .wp-block-cover-image h2,
  147. .wp-block-cover .wp-block-cover-image-text,
  148. .wp-block-cover .wp-block-cover-text, .wp-block-cover h2 {
  149. font-size: 1.5em;
  150. margin-bottom: inherit;
  151. }
  152. .wp-block-cover.alignfull .wp-block-cover__inner-container {
  153. max-width: 740px;
  154. margin: 0 auto;
  155. }
  156. /* File */
  157. .wp-block-file .wp-block-file__button {
  158. background: #0087be;
  159. border: solid 1px transparent;
  160. border-radius: 3px;
  161. box-sizing: content-box;
  162. color: #fff;
  163. cursor: pointer;
  164. -webkit-transition: background 120ms ease-in-out, box-shadow 120ms ease-in-out;
  165. transition: background 120ms ease-in-out, box-shadow 120ms ease-in-out;
  166. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  167. font-size: 16px;
  168. font-weight: 400;
  169. font-style: normal;
  170. padding: .4375em .875em;
  171. text-decoration: none;
  172. -webkit-font-smoothing: antialiased;
  173. -moz-osx-font-smoothing: grayscale;
  174. }
  175. .wp-block-file .wp-block-file__button:focus,
  176. .wp-block-file .wp-block-file__button:active {
  177. outline: 0;
  178. background: #767676;
  179. box-shadow: inset 0 2px 2px rgba(0, 0, 0, .25), 0 0 0 6px rgba(0, 0, 0, .08);
  180. }
  181. .wp-block-file .wp-block-file__button:hover {
  182. text-decoration: none;
  183. color: #fff;
  184. background: #767676;
  185. }
  186. .rtl .wp-block-file * + .wp-block-file__button {
  187. margin-left: .75em;
  188. margin-right: 0;
  189. }
  190. /*--------------------------------------------------------------
  191. 4.0 Blocks - Formatting
  192. --------------------------------------------------------------*/
  193. /* Verse */
  194. .wp-block-verse {
  195. background: none;
  196. font-family: inherit;
  197. font-style: italic;
  198. padding: 0;
  199. }
  200. /* Code */
  201. /* Preformatted */
  202. /* Pullquote */
  203. .wp-block-pullquote {
  204. border: #0087be solid;
  205. border-width: 3px 0;
  206. padding: 0.5em;
  207. }
  208. .wp-block-pullquote blockquote {
  209. margin-left: 0;
  210. margin-right: 0;
  211. }
  212. .wp-block-pullquote.alignleft,
  213. .wp-block-pullquote.alignright {
  214. margin-top: 0.5em;
  215. margin-bottom: 1.0em;
  216. }
  217. .wp-block-pullquote blockquote {
  218. border: 0;
  219. padding: 0;
  220. }
  221. .wp-block-pullquote cite {
  222. font-size: inherit;
  223. font-style: italic;
  224. text-transform: none;
  225. }
  226. /* Table */
  227. @media (min-width: 1140px) {
  228. body:not(.has-sidebar) .wp-block-table.alignwide {
  229. width: 1100px;
  230. }
  231. }
  232. body:not(.has-sidebar) .wp-block-table.alignfull {
  233. width: 96vw;
  234. }
  235. /*--------------------------------------------------------------
  236. 5.0 Blocks - Layout Elements
  237. --------------------------------------------------------------*/
  238. /* Buttons */
  239. .wp-block-button .wp-block-button__link {
  240. box-sizing: content-box;
  241. cursor: pointer;
  242. -webkit-transition: background 120ms ease-in-out, box-shadow 120ms ease-in-out;
  243. transition: background 120ms ease-in-out, box-shadow 120ms ease-in-out;
  244. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  245. font-size: 16px;
  246. font-weight: 400;
  247. font-style: normal;
  248. padding: .4375em .875em;
  249. text-decoration: none;
  250. -webkit-font-smoothing: antialiased;
  251. -moz-osx-font-smoothing: grayscale;
  252. }
  253. .wp-block-button__link,
  254. .wp-block-button__link:visited {
  255. background: #0087be;
  256. color: #fff;
  257. }
  258. .is-style-outline .wp-block-button__link {
  259. border-color: currentColor;
  260. }
  261. .is-style-outline .wp-block-button__link:not(.has-text-color),
  262. .is-style-outline .wp-block-button__link:not(.has-text-color):visited{
  263. color: #0087be;
  264. }
  265. .entry-content .wp-block-button .wp-block-button__link:focus,
  266. .entry-content .wp-block-button .wp-block-button__link:active {
  267. background: #767676;
  268. box-shadow: inset 0 2px 2px rgba(0, 0, 0, .25), 0 0 0 6px rgba(0, 0, 0, .08);
  269. }
  270. .entry-content .wp-block-button .wp-block-button__link:hover {
  271. text-decoration: none;
  272. color: #fff;
  273. background: #767676;
  274. }
  275. /* Group */
  276. .wp-block-group.alignfull .wp-block-group__inner-container {
  277. max-width: 740px;
  278. margin: 0 auto;
  279. }
  280. /* Separator */
  281. .wp-block-separator {
  282. border: 0;
  283. }
  284. .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  285. margin-left: auto;
  286. margin-right: auto;
  287. max-width: 100px;
  288. }
  289. /* Media & Text */
  290. .wp-block-media-text {
  291. margin-bottom: 0.875em;
  292. }
  293. /*--------------------------------------------------------------
  294. 6.0 Blocks - Widgets
  295. --------------------------------------------------------------*/
  296. /* General Widget styles */
  297. .wp-block-categories.aligncenter,
  298. .wp-block-categories.aligncenter ul,
  299. .wp-block-archives.aligncenter,
  300. .wp-block-latest-posts.aligncenter,
  301. .wp-block-latest-comments.aligncenter {
  302. list-style-position: inside;
  303. text-align: center;
  304. }
  305. /* Latest Comments */
  306. .wp-block-latest-comments {
  307. margin-left: 0;
  308. margin-right: 0;
  309. }
  310. .wp-block-latest-comments__comment,
  311. .wp-block-latest-comments__comment-date,
  312. .wp-block-latest-comments__comment-excerpt p {
  313. font-size: 17px;
  314. }
  315. .wp-block-latest-comments__comment-meta a {
  316. color: #000;
  317. font-weight: bold;
  318. }
  319. .wp-block-latest-comments__comment-date {
  320. color: #b3b3b1;
  321. font-size: 14px;
  322. }
  323. /* Latest Posts */
  324. .wp-block-latest-posts.is-grid {
  325. margin-left: 0;
  326. margin-right: 0;
  327. }
  328. /*--------------------------------------------------------------
  329. 7.0 Blocks - Colors
  330. --------------------------------------------------------------*/
  331. .has-medium-blue-color,
  332. .has-medium-blue-color:hover,
  333. .has-medium-blue-color:active,
  334. .has-medium-blue-color:focus,
  335. .has-medium-blue-color:visited {
  336. color: #0087be;
  337. }
  338. .has-medium-blue-background-color,
  339. .has-medium-blue-background-color:hover,
  340. .has-medium-blue-background-color:active,
  341. .has-medium-blue-background-color:focus,
  342. .has-medium-blue-background-color:visited {
  343. background-color: #0087be;
  344. }
  345. .has-bright-blue-color,
  346. .has-bright-blue-color:hover,
  347. .has-bright-blue-color:focus,
  348. .has-bright-blue-color:active,
  349. .has-bright-blue-color:visited {
  350. color: #00aadc;
  351. }
  352. .has-bright-blue-background-color,
  353. .has-bright-blue-background-color:hover,
  354. .has-bright-blue-background-color:focus,
  355. .has-bright-blue-background-color:active,
  356. .has-bright-blue-background-color:visited {
  357. background-color: #00aadc;
  358. }
  359. .has-dark-gray-color,
  360. .has-dark-gray-color:hover,
  361. .has-dark-gray-color:focus,
  362. .has-dark-gray-color:active,
  363. .has-dark-gray-color:visited {
  364. color: #4d4d4b;
  365. }
  366. .has-dark-gray-background-color,
  367. .has-dark-gray-background-color:hover,
  368. .has-dark-gray-background-color:focus,
  369. .has-dark-gray-background-color:active,
  370. .has-dark-gray-background-color:visited {
  371. background-color: #4d4d4b;
  372. }
  373. .has-light-gray-color,
  374. .has-light-gray-color:hover,
  375. .has-light-gray-color:focus,
  376. .has-light-gray-color:active,
  377. .has-light-gray-color:visited {
  378. color: #b3b3b1;
  379. }
  380. .has-light-gray-background-color,
  381. .has-light-gray-background-color:hover,
  382. .has-light-gray-background-color:focus,
  383. .has-light-gray-background-color:active,
  384. .has-light-gray-background-color:visited {
  385. background-color: #b3b3b1;
  386. }
  387. .has-white-color,
  388. .has-white-color:hover,
  389. .has-white-color:focus,
  390. .has-white-color:active,
  391. .has-white-color:visited {
  392. color: #fff;
  393. }
  394. .has-white-background-color,
  395. .has-white-background-color:hover,
  396. .has-white-background-color:focus,
  397. .has-white-background-color:active,
  398. .has-white-background-color:visited {
  399. background-color: #fff;
  400. }
  401. /*--------------------------------------------------------------
  402. 8.0 Blocks - Posts List Block
  403. --------------------------------------------------------------*/
  404. li.a8c-posts-list__item {
  405. margin-top: 0;
  406. }
  407. li.a8c-posts-list__item article {
  408. margin-top: 1.75em;
  409. padding-top: 1.75em;
  410. border-top: solid 1px #ddd;
  411. }
  412. h2.a8c-posts-list-item__title {
  413. font-size: 32px;
  414. margin-top: 0;
  415. margin-bottom: 0;
  416. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  417. line-height: 1.3;
  418. color: #333332;
  419. -webkit-font-smoothing: antialiased;
  420. }
  421. @media screen and (min-width: 32.375em) {
  422. h2.a8c-posts-list-item__title {
  423. font-size: 47px;
  424. }
  425. }
  426. h2.a8c-posts-list-item__title a {
  427. text-decoration: none;
  428. color: inherit;
  429. -webkit-transition: opacity 140ms ease-in-out;
  430. transition: opacity 140ms ease-in-out;
  431. }
  432. h2.a8c-posts-list-item__title a:hover,
  433. h2.a8c-posts-list-item__title a:focus,
  434. h2.a8c-posts-list-item__title a:active {
  435. opacity: .8;
  436. }
  437. div.a8c-posts-list-item__meta {
  438. margin-top: .875em;
  439. margin-bottom: .875em;
  440. color: #b3b3b1;
  441. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  442. font-size: 14px;
  443. font-weight: 400;
  444. font-style: normal;
  445. }
  446. span.a8c-posts-list-item__datetime:before {
  447. content: "\f303";
  448. position: relative;
  449. top: -1px;
  450. display: inline-block;
  451. font-family: "Genericons";
  452. font-size: 16px;
  453. line-height: 1;
  454. vertical-align: middle;
  455. transform: scale(1.25);
  456. -webkit-transform: scale(1.25);
  457. -webkit-font-smoothing: antialiased;
  458. -moz-osx-font-smoothing: grayscale;
  459. padding-right: 5px;
  460. }
  461. span.a8c-posts-list-item__author a {
  462. color: #b3b3b1;
  463. }
  464. div.a8c-posts-list-item__excerpt {
  465. margin-top: .875em;
  466. font-family: Georgia, "Times New Roman", serif;
  467. font-size: 17px;
  468. }
  469. @media screen and (min-width: 32.375em) {
  470. div.a8c-posts-list-item__excerpt {
  471. font-size: 19px;
  472. }
  473. }
  474. figure.a8c-posts-list-item__post-thumbnail {
  475. margin-bottom: 1.75em;
  476. }
  477. a.a8c-posts-list__view-all {
  478. display: inline-block;
  479. box-sizing: content-box;
  480. padding: .4375em .875em;
  481. cursor: pointer;
  482. -webkit-transition: background 120ms ease-in-out, box-shadow 120ms ease-in-out;
  483. transition: background 120ms ease-in-out, box-shadow 120ms ease-in-out;
  484. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  485. font-size: 16px;
  486. font-weight: 400;
  487. font-style: normal;
  488. text-decoration: none;
  489. color: #fff;
  490. border: solid 1px transparent;
  491. border-radius: 3px;
  492. background: #0087be;
  493. -webkit-font-smoothing: antialiased;
  494. -moz-osx-font-smoothing: grayscale;
  495. margin: .875em 0;
  496. }
  497. a.a8c-posts-list__view-all:focus,
  498. a.a8c-posts-list__view-all:active {
  499. outline: 0;
  500. background: #767676;
  501. box-shadow: inset 0 2px 2px rgba(0, 0, 0, .25), 0 0 0 6px rgba(0, 0, 0, .08);
  502. }
  503. a.a8c-posts-list__view-all:hover {
  504. text-decoration: none;
  505. color: #fff;
  506. background: #767676;
  507. }
  508. a.a8c-posts-list__view-all:visited {
  509. color: white;
  510. }