blocks.css 13 KB

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