blocks.css 11 KB

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