editor-blocks.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. /*
  2. Theme Name: Altofocus
  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 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 - Animations
  15. --------------------------------------------------------------*/
  16. /*--------------------------------------------------------------
  17. 1.0 General Typography
  18. --------------------------------------------------------------*/
  19. .edit-post-visual-editor .editor-block-list__block,
  20. .editor-default-block-appender textarea.editor-default-block-appender__content {
  21. font-size: 13.875px;
  22. font-family: "Libre Baskerville", "Georgia", Georgia, "Times New Roman", Times, serif;
  23. font-weight: 300;
  24. line-height: 1.75em;
  25. }
  26. .edit-post-visual-editor .editor-block-list__block {
  27. color: #111;
  28. }
  29. .edit-post-visual-editor .editor-block-list__block p {
  30. font-size: 13.875px;
  31. }
  32. .edit-post-visual-editor .editor-block-list__block p:not(:last-child) {
  33. margin-bottom: 1.75em
  34. }
  35. .editor-post-title__block .editor-post-title__input {
  36. font-size: 19.6875px;
  37. font-family: "Libre Baskerville", "Georgia", Georgia, "Times New Roman", Times, serif;
  38. font-weight: 300;
  39. line-height: 1.25;
  40. }
  41. .wp-block-heading h1,
  42. .wp-block-heading h2,
  43. .wp-block-heading h3,
  44. .wp-block-heading h4,
  45. .wp-block-heading h5,
  46. .wp-block-heading h6,
  47. .wp-block-freeform.block-library-rich-text__tinymce h1,
  48. .wp-block-freeform.block-library-rich-text__tinymce h2,
  49. .wp-block-freeform.block-library-rich-text__tinymce h3,
  50. .wp-block-freeform.block-library-rich-text__tinymce h4,
  51. .wp-block-freeform.block-library-rich-text__tinymce h5,
  52. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  53. clear: both;
  54. }
  55. .wp-block-heading h1,
  56. .wp-block-freeform.block-library-rich-text__tinymce h1 {
  57. font-size: 30px;
  58. }
  59. .wp-block-heading h2,
  60. .wp-block-freeform.block-library-rich-text__tinymce h2 {
  61. font-size: 22px;
  62. }
  63. .wp-block-heading h3,
  64. .wp-block-freeform.block-library-rich-text__tinymce h3 {
  65. font-size: 17px;
  66. }
  67. .wp-block-heading h4,
  68. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  69. font-size: 15px;
  70. }
  71. .wp-block-heading h5,
  72. .wp-block-freeform.block-library-rich-text__tinymce h5 {
  73. font-size: 12px;
  74. }
  75. .wp-block-heading h6,
  76. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  77. font-size: 10px;
  78. }
  79. @media screen and (min-width: 37.5em) {
  80. .edit-post-visual-editor .editor-block-list__block,
  81. .edit-post-visual-editor .editor-block-list__block p,
  82. .editor-default-block-appender textarea.editor-default-block-appender__content {
  83. font-size: 16.875px;
  84. }
  85. .editor-post-title__block .editor-post-title__input {
  86. font-size: 37.5px;
  87. }
  88. .wp-block-heading h1,
  89. .wp-block-freeform.block-library-rich-text__tinymce h1 {
  90. font-size: 36px;
  91. }
  92. .wp-block-heading h2,
  93. .wp-block-freeform.block-library-rich-text__tinymce h2 {
  94. font-size: 27px;
  95. }
  96. .wp-block-heading h3,
  97. .wp-block-freeform.block-library-rich-text__tinymce h3 {
  98. font-size: 21px;
  99. }
  100. .wp-block-heading h4,
  101. .wp-block-freeform.block-library-rich-text__tinymce h4 {
  102. font-size: 18px;
  103. }
  104. .wp-block-heading h5,
  105. .wp-block-freeform.block-library-rich-text__tinymce h5 {
  106. font-size: 15px;
  107. }
  108. .wp-block-heading h6,
  109. .wp-block-freeform.block-library-rich-text__tinymce h6 {
  110. font-size: 12px;
  111. }
  112. }
  113. /*--------------------------------------------------------------
  114. 2.0 General Block Styles
  115. --------------------------------------------------------------*/
  116. /* Main column width */
  117. .wp-block {
  118. max-width: 777px; /* 747px + 30px for padding; should be 840px for pages */
  119. }
  120. /* Alignments */
  121. .alignleft {
  122. margin-right: 1.5em;
  123. }
  124. .alignright {
  125. margin-left: 1.5em;
  126. }
  127. /* Link styles */
  128. .edit-post-visual-editor a,
  129. .editor-block-list__block a,
  130. .wp-block-freeform.block-library-rich-text__tinymce a {
  131. color: #e38900;
  132. text-decoration: none;
  133. }
  134. /* Caption styles */
  135. [class^="wp-block-"] figcaption {
  136. color: inherit;
  137. font-size: inherit;
  138. }
  139. /* Blockquote styles */
  140. .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  141. border: 0;
  142. }
  143. .wp-block-freeform.block-library-rich-text__tinymce cite {
  144. color: #888;
  145. }
  146. .wp-block-freeform.block-library-rich-text__tinymce cite:before {
  147. content: "\2014";
  148. }
  149. /* List styles */
  150. .wp-block-freeform.block-library-rich-text__tinymce ol {
  151. list-style: decimal;
  152. margin-left: 1.5em;
  153. padding: 0;
  154. }
  155. .wp-block-freeform.block-library-rich-text__tinymce li > ol {
  156. margin-left: 1.5em;
  157. }
  158. /* Table styles */
  159. .wp-block-freeform.block-library-rich-text__tinymce table {
  160. border-collapse: collapse;
  161. border: 0;
  162. border-top: 1px solid rgba(0, 0, 0, 0.2);
  163. margin: 0 0 1.75em;
  164. width: 100%;
  165. }
  166. .wp-block-freeform.block-library-rich-text__tinymce table th,
  167. .wp-block-freeform.block-library-rich-text__tinymce table td {
  168. border: 0;
  169. border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  170. padding: 12.5px;
  171. }
  172. /* Definition List styles */
  173. .wp-block-freeform.block-library-rich-text__tinymce dt {
  174. font-weight: bold;
  175. }
  176. /* Pre */
  177. .wp-block-freeform.block-library-rich-text__tinymce pre {
  178. background-color: #eee;
  179. padding: 1.6em;
  180. }
  181. /* Address */
  182. .wp-block-freeform.block-library-rich-text__tinymce address {
  183. margin-bottom: 1.5em;
  184. }
  185. /* Definition List styles */
  186. .wp-block-freeform.block-library-rich-text__tinymce dt {
  187. font-weight: bold;
  188. }
  189. .wp-block-freeform.block-library-rich-text__tinymce dd {
  190. margin: 0 1.5em 1.5em;
  191. }
  192. /* Code styles */
  193. .wp-block-freeform.block-library-rich-text__tinymce code,
  194. .wp-block-freeform.block-library-rich-text__tinymce kbd,
  195. .wp-block-freeform.block-library-rich-text__tinymce tt,
  196. .wp-block-freeform.block-library-rich-text__tinymce var {
  197. background: transparent;
  198. font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  199. font-size: 14.0625px;
  200. }
  201. /* Mark, Ins styles */
  202. .wp-block-freeform.block-library-rich-text__tinymce mark,
  203. .wp-block-freeform.block-library-rich-text__tinymce ins {
  204. background: #fff9c0;
  205. text-decoration: none;
  206. }
  207. /*--------------------------------------------------------------
  208. 3.0 Blocks - Common Blocks
  209. --------------------------------------------------------------*/
  210. /* Paragraph */
  211. p.has-drop-cap:not(:focus)::first-letter {
  212. font-size: 5em;
  213. }
  214. /* List */
  215. .edit-post-visual-editor ul:not(.wp-block-gallery),
  216. .editor-block-list__block ul:not(.wp-block-gallery),
  217. .block-library-list ul {
  218. list-style: disc;
  219. }
  220. .edit-post-visual-editor ol,
  221. .editor-block-list__block ol,
  222. .block-library-list ol.editor-rich-text__tinymce {
  223. list-style: decimal;
  224. }
  225. .edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
  226. .editor-block-list__block ul:not(.wp-block-gallery) li > ul,
  227. .block-library-list li > ul,
  228. .edit-post-visual-editor li > ol,
  229. .editor-block-list__block li > ol,
  230. .block-library-list li > ol {
  231. margin-bottom: 0;
  232. margin-left: 1.5em;
  233. }
  234. .rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
  235. .rtl .editor-block-list__block ul:not(.wp-block-gallery),
  236. .rtl .block-library-list ul,
  237. .rtl .edit-post-visual-editor ol,
  238. .rtl .editor-block-list__block ol,
  239. .rtl .block-library-list ol.editor-rich-text__tinymce {
  240. margin-left: 0;
  241. margin-right: 1.5em;
  242. padding: 0;
  243. }
  244. /* Quote */
  245. .wp-block-quote:not(.is-large):not(.is-style-large) {
  246. border: 0;
  247. margin: 0 25px;
  248. padding: 0;
  249. }
  250. .wp-block-quote .wp-block-quote__citation {
  251. color: #888;
  252. font-size: inherit;
  253. font-style: italic;
  254. }
  255. .wp-block-quote .wp-block-quote__citation:before{
  256. content: "\2014";
  257. }
  258. .wp-block-quote.is-large p,
  259. .wp-block-quote.is-style-large p {
  260. font-size: 24px;
  261. font-style: normal;
  262. line-height: 1.6;
  263. }
  264. /* Cover */
  265. .edit-post-visual-editor .editor-block-list__block p.wp-block-cover-text {
  266. font-size: 24px;
  267. }
  268. /* File */
  269. .wp-block-file .wp-block-file__textlink {
  270. color: #e38900;
  271. }
  272. .wp-block-file .wp-block-file__button {
  273. -webkit-border-radius: 30px;
  274. -moz-border-radius: 30px;
  275. border-radius: 30px;
  276. background: #fff;
  277. border: 1px solid;
  278. border-color: rgba(0, 0, 0, 0.2);
  279. box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.25);
  280. color: #111111;
  281. display: inline-block;
  282. font-family: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;
  283. font-size: 13.875px;
  284. font-size: 0.925rem;
  285. font-weight: 300;
  286. line-height: 1;
  287. outline: none;
  288. padding: 1em 25px;
  289. text-transform: uppercase;
  290. word-break: break-word;
  291. }
  292. /*--------------------------------------------------------------
  293. 4.0 Blocks - Formatting
  294. --------------------------------------------------------------*/
  295. /* Verse */
  296. .wp-block-verse pre {
  297. font-style: italic;
  298. padding: 0;
  299. }
  300. /* Code */
  301. .wp-block-code {
  302. background: #eee;
  303. border: 0;
  304. border-radius: 0;
  305. margin-bottom: 1.75em;
  306. padding: 1.6em;
  307. }
  308. .wp-block-code textarea {
  309. background: transparent;
  310. }
  311. /* Preformatted */
  312. .wp-block-preformatted {
  313. background: #eee;
  314. margin-bottom: 1.75em;
  315. padding: 1.6em;
  316. }
  317. .wp-block-preformatted pre {
  318. font-family: "Courier 10 Pitch", Courier, monospace;
  319. font-size: 14.0625px;
  320. line-height: 1.875;
  321. }
  322. /* Pullquote */
  323. .wp-block-pullquote {
  324. border: 0;
  325. padding: 0;
  326. }
  327. .wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
  328. .wp-block-pullquote.alignright blockquote > .editor-rich-text p {
  329. font-size: 20px;
  330. }
  331. .wp-block-pullquote .wp-block-pullquote__citation {
  332. color: #888;
  333. font-size: inherit;
  334. font-style: italic;
  335. text-transform: none;
  336. }
  337. .wp-block-pullquote .wp-block-pullquote__citation:before{
  338. content: "\2014";
  339. }
  340. /* Table */
  341. .wp-block-table {
  342. border-collapse: collapse;
  343. border-top: 1px solid rgba(0, 0, 0, 0.2);
  344. margin: 0 0 1.75em;
  345. width: 100%;
  346. }
  347. .wp-block-table th,
  348. .wp-block-table td {
  349. border: 0;
  350. border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  351. padding: 12.5px;
  352. }
  353. .wp-block-table__cell-content {
  354. padding: 0;
  355. }
  356. /*--------------------------------------------------------------
  357. 5.0 Blocks - Layout Elements
  358. --------------------------------------------------------------*/
  359. /* Button */
  360. .wp-block-button .wp-block-button__link {
  361. box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.25);
  362. display: inline-block;
  363. font-family: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;
  364. font-size: 13.875px;
  365. font-size: 0.925rem;
  366. font-weight: 300;
  367. line-height: 1;
  368. outline: none;
  369. padding: 1em 25px;
  370. text-transform: uppercase;
  371. word-break: break-word;
  372. }
  373. .wp-block-button__link {
  374. background-color: #111;
  375. color: #fff;
  376. }
  377. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  378. color: #111;
  379. }
  380. @media screen and (min-width: 37.5em) {
  381. .wp-block-button .wp-block-button__link {
  382. font-size: 15px;
  383. font-size: 1rem;
  384. }
  385. }
  386. /* Seperator */
  387. .wp-block-separator {
  388. background-color: #ccc;
  389. border: 0;
  390. height: 1px;
  391. }
  392. /*--------------------------------------------------------------
  393. 6.0 Blocks - Widgets
  394. --------------------------------------------------------------*/
  395. .editor-styles-wrapper .wp-block-archives ul,
  396. .editor-styles-wrapper .wp-block-categories ul,
  397. .editor-styles-wrapper .wp-block-categories ul ul,
  398. .editor-styles-wrapper .wp-block-latest-posts ul {
  399. list-style: disc;
  400. }
  401. .edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
  402. .edit-post-visual-editor [data-align="center"] .wp-block-archives,
  403. .edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
  404. list-style-position: inside;
  405. }
  406. .editor-styles-wrapper .wp-block-archives li,
  407. .editor-styles-wrapper .wp-block-categories li,
  408. .editor-styles-wrapper .wp-block-latest-posts li {
  409. margin-bottom: 0;
  410. }
  411. .editor-styles-wrapper .wp-block-latest-posts.is-grid {
  412. list-style: none;
  413. }
  414. /*--------------------------------------------------------------
  415. 7.0 Blocks - Animations
  416. --------------------------------------------------------------*/
  417. @-webkit-keyframes bounce-reveal {
  418. 0%,
  419. 100% {
  420. -webkit-transform: scale(1);
  421. transform: scale(1);
  422. }
  423. 33% {
  424. -webkit-transform: scale(1.1);
  425. transform: scale(1.1);
  426. }
  427. 66% {
  428. -webkit-transform: scale(0.9);
  429. transform: scale(0.9);
  430. }
  431. }
  432. @-moz-keyframes bounce-reveal {
  433. 0%,
  434. 100% {
  435. -moz-transform: scale(1);
  436. transform: scale(1);
  437. }
  438. 33% {
  439. -moz-transform: scale(1.1);
  440. transform: scale(1.1);
  441. }
  442. 66% {
  443. -moz-transform: scale(0.9);
  444. transform: scale(0.9);
  445. }
  446. }
  447. @-o-keyframes bounce-reveal {
  448. 0%,
  449. 100% {
  450. -o-transform: scale(1);
  451. transform: scale(1);
  452. }
  453. 33% {
  454. -o-transform: scale(1.1);
  455. transform: scale(1.1);
  456. }
  457. 66% {
  458. -o-transform: scale(0.9);
  459. transform: scale(0.9);
  460. }
  461. }
  462. @keyframes bounce-reveal {
  463. 0%,
  464. 100% {
  465. transform: scale(1);
  466. }
  467. 33% {
  468. transform: scale(1.1);
  469. }
  470. 66% {
  471. transform: scale(0.9);
  472. }
  473. }