editor-blocks.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. /*
  2. Theme Name: Pique
  3. Description: Used to style Gutenberg Blocks in the editor.
  4. */
  5. /*--------------------------------------------------------------
  6. >>> TABLE OF CONTENTS:
  7. ----------------------------------------------------------------
  8. 1.0 General Typography
  9. 2.0 General Block Settings
  10. 3.0 Blocks - Common Blocks
  11. 4.0 Blocks - Formatting
  12. 5.0 Blocks - Layout Elements
  13. 6.0 Blocks - Widgets
  14. --------------------------------------------------------------*/
  15. /*--------------------------------------------------------------
  16. 1.0 General Typography
  17. --------------------------------------------------------------*/
  18. .edit-post-visual-editor .editor-block-list__block,
  19. .editor-default-block-appender textarea.editor-default-block-appender__content {
  20. font-family: Lora, Georgia, serif;
  21. }
  22. /* Font size */
  23. .edit-post-visual-editor .editor-block-list__block,
  24. .edit-post-visual-editor .editor-block-list__block p,
  25. .editor-default-block-appender textarea.editor-default-block-appender__content {
  26. font-size: 18px;
  27. line-height: 1.5;
  28. }
  29. /* Color */
  30. .edit-post-visual-editor .editor-block-list__block {
  31. color: #726b60;
  32. }
  33. /* Post title */
  34. .editor-post-title__block .editor-post-title__input {
  35. color: #83b6cc;
  36. font-family: Lora, Georgia, serif;
  37. font-size: 38.4px;
  38. font-style: italic;
  39. font-weight: 400;
  40. }
  41. /* Headings */
  42. .edit-post-visual-editor h1,
  43. .wp-block-freeform.block-library-rich-text__tinymce h1,
  44. .edit-post-visual-editor h2,
  45. .wp-block-freeform.block-library-rich-text__tinymce h2,
  46. .edit-post-visual-editor h3,
  47. .wp-block-freeform.block-library-rich-text__tinymce h3,
  48. .edit-post-visual-editor h4,
  49. .wp-block-freeform.block-library-rich-text__tinymce h4,
  50. .edit-post-visual-editor h5,
  51. .wp-block-freeform.block-library-rich-text__tinymce h5,
  52. .edit-post-visual-editor h6,
  53. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  54. color: #83b6cc;
  55. font-family: Karla, Arial, sans-serif;
  56. font-weight: 400;
  57. }
  58. .edit-post-visual-editor h1,
  59. .wp-block-freeform.block-library-rich-text__tinymce h1 {
  60. font-family: Lora, Georgia, serif;
  61. font-size: 38.4px;
  62. font-style: italic;
  63. }
  64. .edit-post-visual-editor h2,
  65. .wp-block-freeform.block-library-rich-text__tinymce h2 {
  66. font-size: 25.6px;
  67. font-weight: 600;
  68. letter-spacing: 2px;
  69. text-transform: uppercase;
  70. }
  71. .edit-post-visual-editor h3,
  72. .wp-block-freeform.block-library-rich-text__tinymce h3 {
  73. font-size: 1.2em;
  74. font-weight: 700;
  75. letter-spacing: 1px;
  76. text-transform: uppercase;
  77. }
  78. .edit-post-visual-editor h4,
  79. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  80. font-size: 1.999em;
  81. }
  82. .edit-post-visual-editor h5,
  83. .wp-block-freeform.block-library-rich-text__tinymce h5 {
  84. font-size: 1.414em;
  85. }
  86. .edit-post-visual-editor h6,
  87. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  88. font-size: 1em;
  89. }
  90. /*--------------------------------------------------------------
  91. 2.0 General Block Settings
  92. --------------------------------------------------------------*/
  93. /* Main content width */
  94. .wp-block {
  95. max-width: 805px; /* 775px + 30px to account for padding */
  96. }
  97. /* Background */
  98. .edit-post-layout {
  99. background: rgba(252, 251, 249, 0.9);
  100. }
  101. /* Link styles */
  102. .edit-post-visual-editor a,
  103. .editor-block-list__block a,
  104. .wp-block-freeform.block-library-rich-text__tinymce a {
  105. color: #83b6cc;
  106. text-decoration: none;
  107. }
  108. /* Table styles */
  109. .wp-block-freeform.block-library-rich-text__tinymce table,
  110. .wp-block-freeform.block-library-rich-text__tinymce table th,
  111. .wp-block-freeform.block-library-rich-text__tinymce table td {
  112. border: 0;
  113. }
  114. .wp-block-freeform.block-library-rich-text__tinymce table th,
  115. .wp-block-freeform.block-library-rich-text__tinymce table td {
  116. padding: 0;
  117. }
  118. .rtl .wp-block-freeform.block-library-rich-text__tinymce td,
  119. .rtl .wp-block-freeform.block-library-rich-text__tinymce th {
  120. text-align: right;
  121. }
  122. /* Quote styles */
  123. .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  124. border: 0;
  125. border-top: 2px solid;
  126. color: #909090;
  127. font-style: italic;
  128. margin: 3em auto;
  129. max-width: 933.33333px;
  130. padding: 0;
  131. }
  132. .wp-block-freeform.block-library-rich-text__tinymce blockquote:before {
  133. content: '\201c';
  134. display: block;
  135. font-family: Georgia, serif;
  136. font-size: 93.4px;
  137. font-style: normal;
  138. font-weight: bolder;
  139. line-height: 0.25em;
  140. margin: 4px auto 0;
  141. text-shadow: none;
  142. text-align: center;
  143. }
  144. .edit-post-visual-editor .editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
  145. font-size: 23.4px;
  146. }
  147. /* Code styles */
  148. .wp-block-freeform.block-library-rich-text__tinymce code {
  149. background: transparent;
  150. }
  151. /* Caption styles */
  152. [class^="wp-block-"] figcaption {
  153. font-size: inherit;
  154. font-style: italic;
  155. }
  156. [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  157. color: inherit;
  158. }
  159. /* Definition List styles */
  160. .wp-block-freeform.block-library-rich-text__tinymce dt {
  161. font-weight: bold;
  162. }
  163. .wp-block-freeform.block-library-rich-text__tinymce dd {
  164. margin-left: 0;
  165. margin-right: 0;
  166. }
  167. /* Pre styles */
  168. .wp-block-freeform.block-library-rich-text__tinymce pre {
  169. color: inherit;
  170. }
  171. /*--------------------------------------------------------------
  172. 3.0 Blocks - Common Blocks
  173. --------------------------------------------------------------*/
  174. /* Paragraph */
  175. p.has-drop-cap:not(:focus)::first-letter {
  176. font-size: 5em;
  177. margin-top: 0.125em;
  178. }
  179. /* Quote */
  180. .editor-styles-wrapper .wp-block-quote,
  181. .wp-block-quote:not(.is-large):not(.is-style-large) {
  182. }
  183. .wp-block-quote,
  184. .wp-block-quote:not(.is-large):not(.is-style-large) {
  185. border: 0;
  186. border-top: 2px solid;
  187. color: #909090;
  188. font-style: italic;
  189. margin: 3em auto;
  190. max-width: 933.33333px;
  191. padding: 0;
  192. }
  193. .wp-block-quote:before {
  194. content: '\201c';
  195. display: block;
  196. font-family: Georgia, serif;
  197. font-size: 93.4px;
  198. font-style: normal;
  199. font-weight: bolder;
  200. line-height: 0.25em;
  201. margin: 4px auto 0;
  202. text-shadow: none;
  203. text-align: center;
  204. }
  205. .editor-styles-wrapper .wp-block-quote.is-large,
  206. .editor-styles-wrapper .wp-block-quote.is-style-large {
  207. padding: 0;
  208. }
  209. .editor-styles-wrapper .wp-block-quote p {
  210. font-size: 23.4px;
  211. }
  212. .editor-styles-wrapper .wp-block-quote.is-large p,
  213. .editor-styles-wrapper .wp-block-quote.is-style-large p {
  214. font-size: 28px
  215. }
  216. .wp-block-quote .wp-block-quote__citation {
  217. color: #83b6cc;
  218. font-family: Karla, Arial, sans-serif;
  219. font-size: 12px;
  220. font-weight: 700;
  221. letter-spacing: 1px;
  222. margin-top: 1.5rem;
  223. text-align: right;
  224. text-transform: uppercase;
  225. }
  226. .wp-block-quote.is-large .wp-block-quote__citation,
  227. .wp-block-quote.is-style-large .wp-block-quote__citation {
  228. font-size: 18px;
  229. }
  230. .rtl .wp-block-quote .wp-block-quote__citation {
  231. text-align: left;
  232. }
  233. /* Cover */
  234. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
  235. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
  236. .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
  237. .edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
  238. .edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
  239. .edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
  240. font-size: 1.5em;
  241. }
  242. /* File */
  243. .wp-block-file__textlink {
  244. color: #83b6cc;
  245. }
  246. .wp-block-file .wp-block-file__button,
  247. .wp-block-file .wp-block-file__button:visited {
  248. background-color: #83b6cc;
  249. border: 2px solid transparent;
  250. border-radius: 2em;
  251. color: #eff6f9;
  252. display: inline-block;
  253. font-family: Karla, Arial, sans-serif;
  254. font-size: 15.2px;
  255. font-size: 0.95rem;
  256. font-weight: bold;
  257. letter-spacing: 1px;
  258. line-height: 1;
  259. padding: 1em 3em;
  260. text-shadow: none;
  261. text-transform: uppercase;
  262. transition: background-color 0.125s ease-in;
  263. -webkit-appearance: none;
  264. }
  265. /*--------------------------------------------------------------
  266. 4.0 Blocks - Formatting
  267. --------------------------------------------------------------*/
  268. /* Verse */
  269. .wp-block-verse pre {
  270. color: #726b60;
  271. font-style: italic;
  272. padding: 0;
  273. }
  274. /* Code */
  275. .wp-block-code {
  276. border: none;
  277. border-radius: 0;
  278. }
  279. .wp-block-code textarea {
  280. background: transparent;
  281. }
  282. /* Preformatted */
  283. .wp-block-preformatted {
  284. }
  285. /* Pullquote */
  286. .wp-block-pullquote {
  287. border: 0;
  288. }
  289. .wp-block-pullquote blockquote {
  290. border-top: 2px solid;
  291. color: #909090;
  292. font-style: italic;
  293. }
  294. .wp-block-pullquote blockquote:before {
  295. content: '\201c';
  296. display: block;
  297. font-family: Georgia, serif;
  298. font-size: 94px;
  299. font-style: normal;
  300. font-weight: bolder;
  301. line-height: 0.25em;
  302. margin: 4px auto 0;
  303. text-shadow: none;
  304. }
  305. .wp-block-pullquote__citation {
  306. font-size: 18px;
  307. text-transform: none;
  308. }
  309. .wp-block-pullquote.alignleft blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
  310. .wp-block-pullquote.alignright blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
  311. .wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
  312. .wp-block-pullquote.alignright blockquote > .editor-rich-text p {
  313. font-size: 20px;
  314. }
  315. /* Table */
  316. .wp-block-table th,
  317. .wp-block-table td {
  318. border: 0;
  319. padding: 0;
  320. }
  321. .wp-block-table th {
  322. text-align: left;
  323. }
  324. .wp-block-table__cell-content {
  325. padding: 0;
  326. }
  327. .rtl .wp-block-table th {
  328. text-align: right;
  329. }
  330. /*--------------------------------------------------------------
  331. 5.0 Blocks - Layout Elements
  332. --------------------------------------------------------------*/
  333. /* Buttons */
  334. .wp-block-button .editor-rich-text__tinymce.mce-content-body {
  335. line-height: 1;
  336. }
  337. .wp-block-button .wp-block-button__link {
  338. border: 2px solid transparent;
  339. display: inline-block;
  340. font-family: Karla, Arial, sans-serif;
  341. font-size: 15.2px;
  342. font-size: 0.95rem;
  343. font-weight: bold;
  344. letter-spacing: 1px;
  345. line-height: 1;
  346. padding: 1em 3em;
  347. text-shadow: none;
  348. text-transform: uppercase;
  349. transition: background-color 0.125s ease-in;
  350. -webkit-appearance: none;
  351. }
  352. .wp-block-button__link {
  353. background-color: #83b6cc;
  354. border-radius: 2em;
  355. color: #eff6f9;
  356. }
  357. .is-style-outline .wp-block-button__link {
  358. border-color: currentColor;
  359. background: transparent;
  360. }
  361. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  362. color: #83b6cc;
  363. }
  364. /* Separator */
  365. .wp-block-separator {
  366. border-color: #e9d5c0;
  367. border-width: 1px;
  368. }
  369. /*--------------------------------------------------------------
  370. 6.0 Blocks - Widgets
  371. --------------------------------------------------------------*/
  372. /* General Widget styles */
  373. .edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
  374. .edit-post-visual-editor [data-align="center"] .wp-block-archives,
  375. .edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
  376. list-style-position: inside;
  377. }
  378. /* Latest Comments */
  379. .wp-block-latest-comments {
  380. margin-left: 0;
  381. margin-right: 0;
  382. }
  383. .wp-block-latest-comments__comment-excerpt p {
  384. font-size: inherit;
  385. }
  386. .wp-block-latest-comments__comment-date {
  387. color: inherit;
  388. font-family: Karla, Arial, sans-serif;
  389. font-size: 13.6px;
  390. font-size: 0.85rem;
  391. font-weight: bold;
  392. letter-spacing: 0.05rem;
  393. text-transform: uppercase;
  394. }
  395. /*--------------------------------------------------------------
  396. 7.0 Blocks - Colors
  397. --------------------------------------------------------------*/
  398. .has-light-blue-color {
  399. color: #83b6cc;
  400. }
  401. .has-light-blue-background-color {
  402. background-color: #83b6cc;
  403. }
  404. .has-medium-blue-color {
  405. color: #3c7993;
  406. }
  407. .has-medium-blue-background-color {
  408. background-color: #3c7993;
  409. }
  410. .has-dark-blue-color {
  411. color: #293940;
  412. }
  413. .has-dark-blue-background-color {
  414. background-color: #293940;
  415. }
  416. .has-dark-brown-color {
  417. color: #2d2a26;
  418. }
  419. .has-dark-brown-background-color {
  420. background-color: #2d2a26;
  421. }
  422. .has-dark-gray-color {
  423. color: #5d5d5d;
  424. }
  425. .has-dark-gray-background-color {
  426. background-color: #5d5d5d;
  427. }
  428. .has-medium-gray-color {
  429. color: #a9a9a9;
  430. }
  431. .has-medium-gray-background-color {
  432. background-color: #a9a9a9;
  433. }
  434. .has-white-color {
  435. color: #fff;
  436. }
  437. .has-white-background-color {
  438. background-color: #fff;
  439. }