blocks.css 11 KB

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