blocks.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  1. /*
  2. Theme Name: Libretto
  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. color: #a09a92;
  21. font-size: 16px;
  22. font-style: italic;
  23. line-height: 1.2;
  24. text-align: center;
  25. }
  26. /*--------------------------------------------------------------
  27. 2.0 Blocks - Common Blocks
  28. --------------------------------------------------------------*/
  29. /* Paragraph */
  30. p.has-drop-cap:not(:focus)::first-letter {
  31. color: #b7b1a9;
  32. display: inline-block;
  33. float: left;
  34. font-family: "Playfair Display";
  35. font-size: 70px;
  36. font-style: normal;
  37. font-weight: 700;
  38. line-height: 40px;
  39. margin: 6px 10px 0 -5px;
  40. }
  41. /* Images */
  42. .wp-block-cover,
  43. .wp-block-cover.alignleft,
  44. .wp-block-cover.alignright,
  45. .wp-block-cover.aligncenter {
  46. display: flex;
  47. }
  48. .libretto-oversized {
  49. margin-left: auto;
  50. margin-right: auto;
  51. max-width: 100%;
  52. }
  53. /* Gallery */
  54. .wp-block-gallery {
  55. margin-bottom: .5em;
  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 {
  66. margin: 0 0 .75em;
  67. }
  68. .wp-block-quote cite {
  69. display: block;
  70. width: 100%;
  71. float: none;
  72. text-align: right;
  73. }
  74. .wp-block-quote.is-large,
  75. .wp-block-quote.is-style-large,
  76. .wp-block-quote.is-large p,
  77. .wp-block-quote.is-style-large p {
  78. font-size: 32px;
  79. }
  80. .wp-block-quote.is-large p,
  81. .wp-block-quote.is-style-large p {
  82. margin-bottom: .75em;
  83. }
  84. .wp-block-quote.is-large cite,
  85. .wp-block-quote.is-style-large cite {
  86. text-align: left;
  87. }
  88. .rtl .wp-block-quote {
  89. border: 0;
  90. }
  91. .rtl blockquote.wp-block-quote cite:before {
  92. float: none;
  93. }
  94. .rtl .wp-block-quote.is-large cite,
  95. .rtl .wp-block-quote.is-style-large cite {
  96. text-align: right;
  97. }
  98. .wp-block-quote[style="text-align:right"]:before {
  99. content: "\201D";
  100. left: auto;
  101. right: -35px;
  102. }
  103. .rtl .wp-block-quote[style="text-align:left"]:before {
  104. content: "\201C";
  105. left: -35px;
  106. right: auto;
  107. }
  108. /* Audio */
  109. .wp-block-audio {
  110. margin-bottom: 1.5em;
  111. }
  112. .wp-block-audio audio {
  113. display: block;
  114. width: 100%;
  115. }
  116. /* File */
  117. .wp-block-file {
  118. margin: 1.5em 0;
  119. }
  120. .wp-block-file a.wp-block-file__button,
  121. .wp-block-file a.wp-block-file__button:visited {
  122. border-radius: 0;
  123. background: #a09a92;
  124. border: 1px solid #eae9e6;
  125. color: #eae9e6;
  126. font-size: 12px;
  127. letter-spacing: 1px;
  128. outline: 4px solid #a09a92;
  129. padding: 0.7rem 1.4rem;
  130. position: relative;
  131. text-transform: uppercase;
  132. }
  133. .wp-block-file a.wp-block-file__button:hover,
  134. .wp-block-file a.wp-block-file__button:focus {
  135. background: #a09a92;
  136. color: #faf9f5;
  137. outline: 2px solid #a09a92;
  138. }
  139. .wp-block-file a.wp-block-file__button:active {
  140. background: #363431;
  141. outline: 5px solid #363431;
  142. }
  143. .rtl .wp-block-file a.wp-block-file__button {
  144. margin-left: .75em;
  145. margin-right: 0;
  146. }
  147. /*--------------------------------------------------------------
  148. 3.0 Blocks - Formatting Blocks
  149. --------------------------------------------------------------*/
  150. /* Verse */
  151. .wp-block-verse {
  152. background: transparent;
  153. color: inherit;
  154. font-family: inherit;
  155. font-size: inherit;
  156. font-style: italic;
  157. line-height: inherit;
  158. margin-bottom: 1.5em;
  159. max-width: 100%;
  160. overflow: auto;
  161. padding: 0;
  162. }
  163. /* Code */
  164. .wp-block-code {
  165. background: #d9d6d0;
  166. font-family: "Droid Sans Mono", "Andale Mono", Consolas, "DejaVu Sans Mono", monospace;
  167. font-size: 16px;
  168. line-height: 1.6;
  169. margin-bottom: 1.6em;
  170. max-width: 100%;
  171. padding: 1.6em;
  172. white-space: pre;
  173. white-space: pre-wrap;
  174. }
  175. /* Pullquote */
  176. .wp-block-pullquote {
  177. margin: 0;
  178. padding: 0;
  179. border: 0;
  180. }
  181. .wp-block-pullquote blockquote:before {
  182. display: none;
  183. }
  184. .wp-block-pullquote blockquote {
  185. border-top: 2px solid currentColor;
  186. border-bottom: 2px solid currentColor;
  187. font-style: italic;
  188. font-size: 27px;
  189. margin: 0 0 1.5em;
  190. padding: .75em 0;
  191. }
  192. .wp-block-pullquote cite {
  193. float: none;
  194. font-size: 18px;
  195. font-style: normal;
  196. }
  197. .wp-block-pullquote.alignleft,
  198. .wp-block-pullquote.alignright {
  199. background: #fff;
  200. border-bottom: 1px solid #ebe7e1;
  201. border-top: 2px solid #a09a92;
  202. box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.025);
  203. font-size: 27px;
  204. max-width: 75%;
  205. padding: 0.5em;
  206. }
  207. .wp-block-pullquote.alignleft cite,
  208. .wp-block-pullquote.alignright cite {
  209. display: block;
  210. width: 100%;
  211. text-align: right;
  212. }
  213. .wp-block-pullquote.alignleft blockquote,
  214. .wp-block-pullquote.alignright blockquote {
  215. border: 0;
  216. padding: 0;
  217. margin: 0;
  218. }
  219. @media only screen and (min-width: 641px) {
  220. .rtl .wp-block-pullquote.alignleft,
  221. .wp-block-pullquote.alignleft {
  222. margin-left: -1.5em;
  223. }
  224. .rtl .wp-block-pullquote.alignright,
  225. .wp-block-pullquote.alignright {
  226. margin-right: -1.5em;
  227. }
  228. }
  229. @media only screen and (min-width: 860px) {
  230. .rtl .wp-block-pullquote.alignleft,
  231. .wp-block-pullquote.alignleft {
  232. margin-left: -6em;
  233. }
  234. .rtl .wp-block-pullquote.alignright,
  235. .wp-block-pullquote.alignright {
  236. margin-right: -6em;
  237. }
  238. }
  239. .wp-block-pullquote.alignleft p,
  240. .wp-block-pullquote.alignright p {
  241. font-size: 24px;
  242. }
  243. .wp-block-pullquote.alignleft {
  244. margin-right: 1.5em;
  245. }
  246. .wp-block-pullquote.alignright {
  247. margin-left: 1.5em;
  248. }
  249. .wp-block-pullquote.alignfull blockquote {
  250. padding-left: 1.5em;
  251. padding-right: 1.5em;
  252. }
  253. .rtl .wp-block-pullquote cite:before {
  254. float: none;
  255. }
  256. .wp-block-pullquote p {
  257. margin: 0 0 .75em;
  258. }
  259. /*--------------------------------------------------------------
  260. 4.0 Blocks - Layout Elements
  261. --------------------------------------------------------------*/
  262. /* Buttons */
  263. .wp-block-button .wp-block-button__link {
  264. font-size: 12px;
  265. letter-spacing: 1px;
  266. padding: 0.7rem 1.4rem;
  267. position: relative;
  268. text-transform: uppercase;
  269. }
  270. .wp-block-button__link:not(.has-background) {
  271. background: #a09a92;
  272. box-shadow: 0 0 0 4px #a09a92;
  273. }
  274. .wp-block-button__link:not(.has-text-color) {
  275. border: 1px solid #eae9e6;
  276. color: #eae9e6;
  277. }
  278. .wp-block-button__link.has-background {
  279. padding: calc( 0.7rem + 4px ) calc( 1.4rem + 4px );
  280. }
  281. .is-style-outline .wp-block-button__link {
  282. background: transparent;
  283. border-color: currentColor;
  284. box-shadow: none;
  285. border-width: 2px;
  286. }
  287. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  288. color: #a09a92;
  289. }
  290. .wp-block-button .wp-block-button__link:active {
  291. background: #363431;
  292. color: #eae9e6;
  293. }
  294. .wp-block-button .wp-block-button__link:not(.has-background):active {
  295. box-shadow: 0 0 0 5px #363431;
  296. }
  297. .wp-block-button .wp-block-button__link:focus,
  298. .wp-block-button .wp-block-button__link:hover {
  299. background: #a09a92;
  300. color: #faf9f5;
  301. }
  302. .wp-block-button .wp-block-button__link:not(.has-background):focus,
  303. .wp-block-button .wp-block-button__link:not(.has-background):hover {
  304. box-shadow: 0 0 0 2px #a09a92;
  305. }
  306. .wp-block-button.alignleft {
  307. margin-left: 0;
  308. }
  309. .wp-block-button.alignright {
  310. margin-right: 0;
  311. }
  312. .wp-block-button.aligncenter {
  313. margin: 1.5em auto;
  314. }
  315. /* Seperator */
  316. hr.wp-block-separator {
  317. border: 0;
  318. }
  319. .wp-block-separator {
  320. background-color: #d9d6d0;
  321. border: 0;
  322. height: 1px;
  323. margin-bottom: 1.5em;
  324. max-width: 100px;
  325. }
  326. .wp-block-separator.is-style-wide {
  327. max-width: 100%;
  328. }
  329. /*--------------------------------------------------------------
  330. 5.0 Blocks - Widget Blocks
  331. --------------------------------------------------------------*/
  332. /* General Widget styles */
  333. .wp-block-categories.aligncenter,
  334. .wp-block-categories.aligncenter ul,
  335. .wp-block-archives.aligncenter,
  336. .wp-block-latest-posts.aligncenter,
  337. .wp-block-latest-comments.aligncenter {
  338. list-style-position: inside;
  339. text-align: center;
  340. }
  341. /* Categories */
  342. .wp-block-categories-list.alignleft {
  343. margin-left: 1.5em;
  344. }
  345. /* Latest Comments */
  346. .wp-block-latest-comments {
  347. margin-left: 0;
  348. margin-right: 0;
  349. }
  350. .wp-block-latest-comments__comment {
  351. margin-bottom: 2em;
  352. }
  353. .wp-block-latest-comments__comment-meta {
  354. font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  355. font-size: 14px;
  356. font-size: 1.4rem;
  357. font-weight: normal;
  358. letter-spacing: 1px;
  359. text-transform: uppercase;
  360. }
  361. .wp-block-latest-comments__comment-meta a {
  362. color: #363431;
  363. }
  364. .wp-block-latest-comments__comment-date {
  365. color: #787065;
  366. }
  367. .wp-block-latest-comments .avatar,
  368. .wp-block-latest-comments__comment-avatar {
  369. margin: 0;
  370. }
  371. .wp-block-latest-comments__comment-excerpt p:last-child {
  372. margin-bottom: 0;
  373. }
  374. .rtl .wp-block-latest-posts {
  375. margin-left: 0;
  376. margin-right: 0;
  377. }
  378. /*--------------------------------------------------------------
  379. 6.0 Blocks - Colors
  380. --------------------------------------------------------------*/
  381. .has-medium-gray-color,
  382. .has-medium-gray-color:hover,
  383. .has-medium-gray-color:focus,
  384. .has-medium-gray-color:active,
  385. .has-medium-gray-color:visited {
  386. color: #a09a92;
  387. }
  388. .has-medium-gray-background-color,
  389. .has-medium-gray-background-color:hover,
  390. .has-medium-gray-background-color:focus,
  391. .has-medium-gray-background-color:active,
  392. .has-medium-gray-background-color:visited {
  393. background-color: #a09a92;
  394. }
  395. .has-light-gray-color,
  396. .has-light-gray-color:hover,
  397. .has-light-gray-color:focus,
  398. .has-light-gray-color:active,
  399. .has-light-gray-color:visited {
  400. color: #d9d6d0;
  401. }
  402. .has-light-gray-background-color,
  403. .has-light-gray-background-color:hover,
  404. .has-light-gray-background-color:focus,
  405. .has-light-gray-background-color:active,
  406. .has-light-gray-background-color:visited {
  407. background-color: #d9d6d0;
  408. }
  409. .has-white-color,
  410. .has-white-color:hover,
  411. .has-white-color:focus,
  412. .has-white-color:active,
  413. .has-white-color:visited {
  414. color: #fff;
  415. }
  416. .has-white-background-color,
  417. .has-white-background-color:hover,
  418. .has-white-background-color:focus,
  419. .has-white-background-color:active,
  420. .has-white-background-color:visited {
  421. background-color: #fff;
  422. }
  423. .has-red-color,
  424. .has-red-color:hover,
  425. .has-red-color:focus,
  426. .has-red-color:active,
  427. .has-red-color:visited {
  428. color: #932817;
  429. }
  430. .has-red-background-color,
  431. .has-red-background-color:hover,
  432. .has-red-background-color:focus,
  433. .has-red-background-color:active,
  434. .has-red-background-color:visited {
  435. background-color: #932817;
  436. }
  437. .has-dark-red-color,
  438. .has-dark-red-color:hover,
  439. .has-dark-red-color:focus,
  440. .has-dark-red-color:active,
  441. .has-dark-red-color:visited {
  442. color: #712012;
  443. }
  444. .has-dark-red-background-color,
  445. .has-dark-red-background-color:hover,
  446. .has-dark-red-background-color:focus,
  447. .has-dark-red-background-color:active,
  448. .has-dark-red-background-color:visited {
  449. background-color: #712012;
  450. }
  451. .has-gray-color,
  452. .has-gray-color:hover,
  453. .has-gray-color:focus,
  454. .has-gray-color:active,
  455. .has-gray-color:visited {
  456. color: #85cc36;
  457. }
  458. .has-gray-background-color,
  459. .has-gray-background-color:hover,
  460. .has-gray-background-color:focus,
  461. .has-gray-background-color:active,
  462. .has-gray-background-color:visited {
  463. background-color: #85cc36;
  464. }
  465. .has-dark-gray-color,
  466. .has-dark-gray-color:hover,
  467. .has-dark-gray-color:focus,
  468. .has-dark-gray-color:active,
  469. .has-dark-gray-color:visited {
  470. color: #787065;
  471. }
  472. .has-dark-gray-background-color,
  473. .has-dark-gray-background-color:hover,
  474. .has-dark-gray-background-color:focus,
  475. .has-dark-gray-background-color:active,
  476. .has-dark-gray-background-color:visited {
  477. background-color: #787065;
  478. }
  479. .has-black-color,
  480. .has-black-color:hover,
  481. .has-black-color:focus,
  482. .has-black-color:active,
  483. .has-black-color:visited {
  484. color: #26231e;
  485. }
  486. .has-black-background-color,
  487. .has-black-background-color:hover,
  488. .has-black-background-color:focus,
  489. .has-black-background-color:active,
  490. .has-black-background-color:visited {
  491. background-color: #26231e;
  492. }