blocks.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  1. /*
  2. Theme Name: Scratchpad
  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. font-family: "Kalam", "Chalkboard", "Comic Sans", script;
  21. font-size: 15px;
  22. line-height: 1.5;
  23. }
  24. [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  25. border-bottom: 1px solid #ddd;
  26. color: #b9b9b9;
  27. margin-top: 0;
  28. padding-bottom: 0.5em;
  29. }
  30. /*--------------------------------------------------------------
  31. 2.0 Blocks - Common Blocks
  32. --------------------------------------------------------------*/
  33. /* Paragraph */
  34. p.has-drop-cap:not(:focus)::first-letter {
  35. font-size: 5em;
  36. margin-top: 0.16em;
  37. }
  38. /* Images */
  39. .wp-block-cover,
  40. .wp-block-cover.alignleft,
  41. .wp-block-cover.alignright,
  42. .wp-block-cover.aligncenter {
  43. display: flex;
  44. }
  45. .wp-block-cover-image .wp-block-cover-image-text,
  46. .wp-block-cover-image .wp-block-cover-text,
  47. .wp-block-cover-image h2,
  48. .wp-block-cover .wp-block-cover-image-text,
  49. .wp-block-cover .wp-block-cover-text,
  50. .wp-block-cover h2 {
  51. font-family: "Kalam", "Chalkboard", "Comic Sans", script;
  52. }
  53. /* Gallery */
  54. .wp-block-gallery {
  55. margin-bottom: 1.75em;
  56. margin-left: auto;
  57. margin-right: auto;
  58. max-width: 100%;
  59. }
  60. .rtl .wp-block-gallery:not(.alignfull):not(.alignwide) {
  61. margin-right: auto;
  62. margin-left: auto;
  63. }
  64. /* Quote */
  65. .wp-block-quote.is-large,
  66. .wp-block-quote.is-style-large,
  67. .rtl .wp-block-quote[style*="text-align:left"] {
  68. padding-left: 70px;
  69. padding-right: 0;
  70. }
  71. .wp-block-quote.is-large,
  72. .wp-block-quote.is-style-large,
  73. .wp-block-quote.is-large p,
  74. .wp-block-quote.is-style-large p {
  75. font-size: 32px;
  76. }
  77. .wp-block-quote.is-large p,
  78. .wp-block-quote.is-style-large p {
  79. margin-bottom: 1.5em;
  80. }
  81. .rtl .wp-block-quote {
  82. border: 0;
  83. }
  84. .rtl .wp-block-quote.is-large,
  85. .rtl .wp-block-quote.is-style-large,
  86. .wp-block-quote[style*="text-align:right"],
  87. .wp-block-quote.is-large[style*="text-align:right"],
  88. .wp-block-quote.is-style-large[style*="text-align:right"] {
  89. padding-right: 70px;
  90. padding-left: 0;
  91. }
  92. .wp-block-quote[style*="text-align:right"]::before {
  93. left: auto;
  94. right: 0;
  95. }
  96. .rtl .wp-block-quote[style*="text-align:left"]::before {
  97. left: 0;
  98. right: auto;
  99. }
  100. /* Audio */
  101. .wp-block-audio {
  102. margin-bottom: 1.75em;
  103. }
  104. .wp-block-audio audio {
  105. display: block;
  106. width: 100%;
  107. }
  108. /* File */
  109. .wp-block-file {
  110. margin: 1.5em 0;
  111. }
  112. .wp-block-file a.wp-block-file__button,
  113. .wp-block-file a.wp-block-file__button:visited {
  114. background: transparent;
  115. border: 2px solid rgba(119, 119, 119, 0.5);
  116. border-radius: 255px 15px 225px 15px/15px 225px 15px;
  117. color: rgba(119, 119, 119, 0.8);
  118. font-family: "Kalam", "Chalkboard", "Comic Sans", script;
  119. font-size: 14px;
  120. letter-spacing: 0.05em;
  121. outline: none;
  122. padding: 10px 20px;
  123. text-shadow: none;
  124. text-transform: uppercase;
  125. -webkit-transition: color 0.2s, border-color 0.2s;
  126. -moz-transition: color 0.2s, border-color 0.2s;
  127. transition: color 0.2s, border-color 0.2s;
  128. }
  129. .wp-block-file a.wp-block-file__button:hover,
  130. .wp-block-file a.wp-block-file__button:focus,
  131. .wp-block-file a.wp-block-file__button:active {
  132. border-color: rgba(119, 119, 119, 0.8);
  133. color: #777;
  134. }
  135. .rtl .wp-block-file a.wp-block-file__button {
  136. margin-left: 10px;
  137. margin-right: 0;
  138. }
  139. /*--------------------------------------------------------------
  140. 3.0 Blocks - Formatting Blocks
  141. --------------------------------------------------------------*/
  142. /* Verse */
  143. .wp-block-verse {
  144. background: transparent;
  145. color: inherit;
  146. font-family: "Kalam", "Chalkboard", "Comic Sans", script;
  147. font-size: inherit;
  148. line-height: inherit;
  149. margin-bottom: 1.5em;
  150. max-width: 100%;
  151. overflow: auto;
  152. padding: 0;
  153. }
  154. /* Code */
  155. .wp-block-code {
  156. background: #eee;
  157. font-family: "Courier 10 Pitch", Courier, monospace;
  158. font-size: 15px;
  159. font-size: 0.9375rem;
  160. line-height: 1.6;
  161. margin-bottom: 1.6em;
  162. max-width: 100%;
  163. overflow: auto;
  164. padding: 1.6em;
  165. }
  166. /* Pullquote */
  167. .wp-block-pullquote {
  168. margin: 0;
  169. padding: 0;
  170. border: 0;
  171. }
  172. .wp-block-pullquote blockquote:before {
  173. display: none;
  174. }
  175. .wp-block-pullquote blockquote {
  176. border-left: 0;
  177. border-bottom: 2px solid #bdcbcc;
  178. border-top: 5px solid #bdcbcc;
  179. font-size: 28px;
  180. line-height: 1.6;
  181. margin: 0 0 1.5em;
  182. padding: 1.5em;
  183. }
  184. .rtl .wp-block-pullquote blockquote {
  185. border-right: 0;
  186. }
  187. .wp-block-pullquote cite {
  188. color: inherit;
  189. font-size: 18px;
  190. }
  191. .wp-block-pullquote.alignleft,
  192. .wp-block-pullquote.alignright {
  193. }
  194. .wp-block-pullquote.alignleft blockquote,
  195. .wp-block-pullquote.alignright blockquote {
  196. padding: 1.5em 0;
  197. margin: 0 0 .75em;
  198. }
  199. .wp-block-pullquote.alignleft p,
  200. .wp-block-pullquote.alignright p {
  201. font-size: 22px;
  202. }
  203. .wp-block-pullquote.alignleft {
  204. margin-right: 1.5em;
  205. }
  206. .wp-block-pullquote.alignright {
  207. margin-left: 1.5em;
  208. }
  209. .wp-block-pullquote.alignfull blockquote {
  210. padding-left: 1.5em;
  211. padding-right: 1.5em;
  212. }
  213. .wp-block-pullquote p {
  214. margin: 0 0 .75em;
  215. }
  216. /*--------------------------------------------------------------
  217. 4.0 Blocks - Layout Elements
  218. --------------------------------------------------------------*/
  219. /* Buttons */
  220. .wp-block-button .wp-block-button__link {
  221. font-family: "Kalam", "Chalkboard", "Comic Sans", script;
  222. font-size: 14px;
  223. letter-spacing: 0.05em;
  224. outline: none;
  225. padding: 12px 20px 10px;
  226. text-shadow: none;
  227. text-transform: uppercase;
  228. -webkit-transition: color 0.2s, border-color 0.2s;
  229. -moz-transition: color 0.2s, border-color 0.2s;
  230. transition: color 0.2s, border-color 0.2s;
  231. }
  232. .wp-block-button__link {
  233. background-color: rgba(119, 119, 119, 0.8);
  234. color: #fff;
  235. }
  236. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  237. color: rgba(119, 119, 119, 0.8);
  238. }
  239. .wp-block-button .wp-block-button__link:active,
  240. .wp-block-button .wp-block-button__link:hover,
  241. .wp-block-button .wp-block-button__link:focus {
  242. box-shadow: none;
  243. background: #777;
  244. color: #fff;
  245. text-decoration: none;
  246. }
  247. .wp-block-button.alignleft {
  248. margin-left: 0;
  249. }
  250. .wp-block-button.alignright {
  251. margin-right: 0;
  252. }
  253. .wp-block-button.aligncenter {
  254. margin: 1.5em auto;
  255. }
  256. /* Seperator */
  257. hr.wp-block-separator {
  258. border: 0;
  259. }
  260. .wp-block-separator {
  261. background-color: #ccc;
  262. border: 0;
  263. height: 1px;
  264. margin-bottom: 1.5em;
  265. max-width: 100px;
  266. }
  267. .wp-block-separator.is-style-wide {
  268. max-width: 100%;
  269. }
  270. /* Media & Text */
  271. .wp-block-media-text {
  272. margin-bottom: 1.75em;
  273. }
  274. .wp-block-media-text *:last-child {
  275. margin-bottom: 0;
  276. }
  277. /*--------------------------------------------------------------
  278. 5.0 Blocks - Widget Blocks
  279. --------------------------------------------------------------*/
  280. /* General Widget styles */
  281. .wp-block-categories.aligncenter,
  282. .wp-block-categories.aligncenter ul,
  283. .wp-block-archives.aligncenter,
  284. .wp-block-latest-posts.aligncenter,
  285. .wp-block-latest-comments.aligncenter {
  286. list-style-position: inside;
  287. text-align: center;
  288. }
  289. /* Categories */
  290. .wp-block-categories-list.alignleft {
  291. margin-left: 1.5em;
  292. }
  293. /* Latest Comments */
  294. .wp-block-latest-comments {
  295. margin-left: 0;
  296. margin-right: 0;
  297. }
  298. .wp-block-latest-comments__comment-meta a {
  299. font-weight: 700;
  300. text-decoration: none;
  301. }
  302. .wp-block-latest-comments .wp-block-latest-comments__comment {
  303. margin-bottom: 0;
  304. padding: 0.75em 0;
  305. }
  306. .wp-block-latest-comments .avatar,
  307. .wp-block-latest-comments__comment-avatar {
  308. margin: 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: inherit;
  314. }
  315. .wp-block-latest-comments__comment-date {
  316. color: #999;
  317. font-family: "Kalam", "Chalkboard", "Comic Sans", script;
  318. font-size: 16px;
  319. font-size: 1rem;
  320. }
  321. /* Latest Posts */
  322. .wp-block-latest-posts.is-grid,
  323. .rtl .wp-block-latest-posts.is-grid {
  324. margin-left: 0;
  325. margin-right: 0;
  326. }
  327. /*--------------------------------------------------------------
  328. 6.0 Blocks - Colors
  329. --------------------------------------------------------------*/
  330. .has-medium-gray-color,
  331. .has-medium-gray-color:hover,
  332. .has-medium-gray-color:focus,
  333. .has-medium-gray-color:active,
  334. .has-medium-gray-color:visited {
  335. color: #999;
  336. }
  337. .has-medium-gray-background-color,
  338. .has-medium-gray-background-color:hover,
  339. .has-medium-gray-background-color:focus,
  340. .has-medium-gray-background-color:active,
  341. .has-medium-gray-background-color:visited {
  342. background-color: #999;
  343. }
  344. .has-light-gray-color,
  345. .has-light-gray-color:hover,
  346. .has-light-gray-color:focus,
  347. .has-light-gray-color:active,
  348. .has-light-gray-color:visited {
  349. color: #bdcbcc;
  350. }
  351. .has-light-gray-background-color,
  352. .has-light-gray-background-color:hover,
  353. .has-light-gray-background-color:focus,
  354. .has-light-gray-background-color:active,
  355. .has-light-gray-background-color:visited {
  356. background-color: #bdcbcc;
  357. }
  358. .has-white-color,
  359. .has-white-color:hover,
  360. .has-white-color:focus,
  361. .has-white-color:active,
  362. .has-white-color:visited {
  363. color: #fff;
  364. }
  365. .has-white-background-color,
  366. .has-white-background-color:hover,
  367. .has-white-background-color:focus,
  368. .has-white-background-color:active,
  369. .has-white-background-color:visited {
  370. background-color: #fff;
  371. }
  372. .has-orange-color,
  373. .has-orange-color:hover,
  374. .has-orange-color:focus,
  375. .has-orange-color:active {
  376. color: #d16221;
  377. }
  378. .has-orange-background-color,
  379. .has-orange-background-color:hover,
  380. .has-orange-background-color:focus,
  381. .has-orange-background-color:active {
  382. background-color: #d16221;
  383. }
  384. .has-yellow-color,
  385. .has-yellow-color:hover,
  386. .has-yellow-color:focus,
  387. .has-yellow-color:active {
  388. color: #e4b500;
  389. }
  390. .has-yellow-background-color,
  391. .has-yellow-background-color:hover,
  392. .has-yellow-background-color:focus,
  393. .has-yellow-background-color:active {
  394. background-color: #e4b500;
  395. }
  396. .has-blue-color,
  397. .has-blue-color:hover,
  398. .has-blue-color:focus,
  399. .has-blue-color:active {
  400. color: #7ba6a9;
  401. }
  402. .has-blue-background-color,
  403. .has-blue-background-color:hover,
  404. .has-blue-background-color:focus,
  405. .has-blue-background-color:active {
  406. background-color: #7ba6a9;
  407. }
  408. .has-dark-blue-color,
  409. .has-dark-blue-color:hover,
  410. .has-dark-blue-color:focus,
  411. .has-dark-blue-color:active {
  412. color: #537375;
  413. }
  414. .has-dark-blue-background-color,
  415. .has-dark-blue-background-color:hover,
  416. .has-dark-blue-background-color:focus,
  417. .has-dark-blue-background-color:active {
  418. background-color: #537375;
  419. }
  420. .has-dark-gray-color,
  421. .has-dark-gray-color:hover,
  422. .has-dark-gray-color:focus,
  423. .has-dark-gray-color:active {
  424. color: #777;
  425. }
  426. .has-dark-gray-background-color,
  427. .has-dark-gray-background-color:hover,
  428. .has-dark-gray-background-color:focus,
  429. .has-dark-gray-background-color:active {
  430. background-color: #777;
  431. }
  432. .has-black-color,
  433. .has-black-color:hover,
  434. .has-black-color:focus,
  435. .has-black-color:active {
  436. color: #222;
  437. }
  438. .has-black-background-color,
  439. .has-black-background-color:hover,
  440. .has-black-background-color:focus,
  441. .has-black-background-color:active {
  442. background-color: #222;
  443. }