blocks.css 11 KB

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