blocks.css 13 KB

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