blocks.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. /*
  2. Theme Name: Intergalactic 2
  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. .singular .entry-content-wrapper {
  20. overflow-x: hidden;
  21. }
  22. /* Wide Width */
  23. @media (min-width: 1024px) {
  24. .alignwide {
  25. width: auto;
  26. margin-left: -20%;
  27. margin-right: -20%;
  28. position: relative;
  29. }
  30. .wp-block-embed.is-type-video.alignwide iframe {
  31. width: 100% !important;
  32. height: 100% !important;
  33. }
  34. }
  35. /* Full Width */
  36. .alignfull {
  37. width: 100vw;
  38. max-width: 100vw;
  39. margin-left: 0;
  40. margin-right: 0;
  41. position: relative;
  42. left: 50%;
  43. transform: translateX( -50% );
  44. }
  45. /* Make non image-based blocks a bit narrower, so they don't get cut off. */
  46. .wp-block-columns.alignfull,
  47. .wp-block-audio.alignfull,
  48. .wp-block-table.alignfull,
  49. .wp-block-latest-comments.alignfull,
  50. .wp-block-categories.alignfull,
  51. .wp-block-latest-posts.alignfull {
  52. max-width: 96vw;
  53. transform: translateX( -50% );
  54. width: 96vw;
  55. }
  56. .wp-block-embed.is-type-video.alignfull iframe {
  57. width: 100% !important;
  58. height: 100% !important;
  59. }
  60. .wp-block-embed.is-type-video iframe {
  61. max-height: 100%;
  62. }
  63. .rtl .alignfull {
  64. left: auto;
  65. right: 50%;
  66. transform: translateX(50%);
  67. }
  68. /* Captions */
  69. [class^="wp-block-"] figcaption {
  70. color: inherit;
  71. font-size: .778em;
  72. }
  73. /*--------------------------------------------------------------
  74. 2.0 Blocks - Common Blocks
  75. --------------------------------------------------------------*/
  76. /* Paragraph */
  77. p.has-drop-cap:not(:focus)::first-letter {
  78. font-size: 124px;
  79. }
  80. /* Image */
  81. .wp-block-image.alignwide {
  82. max-width: 1000%;
  83. }
  84. /* Gallery */
  85. .wp-block-gallery {
  86. margin-bottom: 1.5em;
  87. }
  88. .wp-block-gallery:not(.alignwide):not(.alignfull) {
  89. margin-left: 0;
  90. margin-right: 0;
  91. }
  92. .wp-block-gallery img.size-big,
  93. .wp-block-image img.size-big {
  94. margin: 0;
  95. max-width: 100%;
  96. }
  97. /* Quote */
  98. .wp-block-quote {
  99. margin-bottom: 1.5em;
  100. }
  101. .wp-block-quote.alignleft {
  102. margin-right: 1.5em;
  103. }
  104. .wp-block-quote.alignright {
  105. margin-left: 1.5em;
  106. }
  107. .wp-block-quote.is-large cite,
  108. .wp-block-quote.is-large footer,
  109. .wp-block-quote.is-style-large cite,
  110. .wp-block-quote.is-style-large footer {
  111. font-size: 80%;
  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: 32px;
  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.5em;
  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 a.wp-block-file__button,
  143. .wp-block-file a.wp-block-file__button:visited {
  144. border-radius: 0;
  145. font-size: 18px;
  146. font-weight: bold;
  147. line-height: 1;
  148. padding: .75em;
  149. cursor: pointer;
  150. -webkit-transition: .3s all ease-in-out;
  151. -moz-transition: .3s all ease-in-out;
  152. transition: .3s all ease-in-out;
  153. text-transform: uppercase;
  154. color: #222;
  155. border: 2px solid #222;
  156. background: transparent;
  157. box-shadow: none;
  158. text-shadow: none;
  159. }
  160. .wp-block-file a.wp-block-file__button:hover,
  161. .wp-block-file a.wp-block-file__button:focus {
  162. -webkit-transition: .3s all ease-in-out;
  163. -moz-transition: .3s all ease-in-out;
  164. transition: .3s all ease-in-out;
  165. color: #fff;
  166. border-color: #222;
  167. background: #222;
  168. box-shadow: none;
  169. }
  170. .rtl .wp-block-file * + .wp-block-file__button {
  171. margin-left: 0.75em;
  172. margin-right: 0;
  173. }
  174. /*--------------------------------------------------------------
  175. 3.0 Blocks - Formatting Blocks
  176. --------------------------------------------------------------*/
  177. /* Verse */
  178. .wp-block-verse {
  179. background: transparent;
  180. color: inherit;
  181. font-family: inherit;
  182. font-size: inherit;
  183. font-style: italic;
  184. line-height: inherit;
  185. margin-bottom: 1.5em;
  186. max-width: 100%;
  187. overflow: auto;
  188. padding: 0;
  189. }
  190. /* Code */
  191. .wp-block-code {
  192. background: #eee;
  193. font-family: 'Courier 10 Pitch', Courier, monospace;
  194. font-size: 15px;
  195. line-height: 1.6;
  196. max-width: 100%;
  197. margin-bottom: 1.6em;
  198. overflow: auto;
  199. padding: 1.6em;
  200. }
  201. /* Pullquote */
  202. .wp-block-pullquote {
  203. border: 0;
  204. margin: 0;
  205. padding: 0;
  206. }
  207. .wp-block-pullquote blockquote {
  208. border-top: 2px solid currentColor;
  209. border-bottom: 2px solid currentColor;
  210. font-style: italic;
  211. font-size: 24px;
  212. margin: 0 0 1.5em;
  213. padding: .75em 0;
  214. color: #767676;
  215. }
  216. .wp-block-pullquote.alignleft p,
  217. .wp-block-pullquote.alignright p {
  218. font-size: 24px;
  219. }
  220. .wp-block-pullquote.alignleft {
  221. margin-right: 1.5em;
  222. }
  223. .wp-block-pullquote.alignright {
  224. margin-left: 1.5em;
  225. }
  226. .wp-block-pullquote.alignfull blockquote {
  227. padding-left: 1.5em;
  228. padding-right: 1.5em;
  229. }
  230. .wp-block-pullquote p {
  231. margin: 0;
  232. }
  233. /* Table */
  234. @media (min-width: 964px) {
  235. .wp-block-table.alignwide {
  236. width: 924px;
  237. }
  238. }
  239. .wp-block-table.alignfull {
  240. width: 96vw;
  241. }
  242. /*--------------------------------------------------------------
  243. 4.0 Blocks - Layout Elements
  244. --------------------------------------------------------------*/
  245. /* Buttons */
  246. .wp-block-button .wp-block-button__link {
  247. font-size: 18px;
  248. font-weight: bold;
  249. line-height: 1;
  250. padding: .75em 1.25em;
  251. cursor: pointer;
  252. -webkit-transition: .3s all ease-in-out;
  253. -moz-transition: .3s all ease-in-out;
  254. transition: .3s all ease-in-out;
  255. text-transform: uppercase;
  256. }
  257. .wp-block-button__link,
  258. .wp-block-button__link:visited {
  259. background: #222;
  260. color: #fff;
  261. }
  262. .is-style-outline .wp-block-button__link {
  263. background-color: transparent;
  264. border-color: currentColor;
  265. }
  266. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  267. color: #222;
  268. }
  269. .wp-block-button__link:active,
  270. .wp-block-button__link:focus,
  271. .wp-block-button__link:hover {
  272. opacity: 0.8;
  273. }
  274. /* Seperator */
  275. hr.wp-block-separator {
  276. border: 0;
  277. }
  278. .wp-block-separator {
  279. height: 1px;
  280. margin-bottom: 1.5em;
  281. border: 0;
  282. background-color: #ccc;
  283. max-width: 100%;
  284. }
  285. .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  286. max-width: 100px;
  287. }
  288. /* Media & Text */
  289. .wp-block-media-text {
  290. margin-bottom: 1.5em;
  291. }
  292. .wp-block-media-text *:last-child {
  293. margin-bottom: 0;
  294. }
  295. /*--------------------------------------------------------------
  296. 5.0 Blocks - Widget Blocks
  297. --------------------------------------------------------------*/
  298. /* General Widget styles */
  299. .wp-block-categories.aligncenter,
  300. .wp-block-categories.aligncenter ul,
  301. .wp-block-archives.aligncenter,
  302. .wp-block-latest-posts.aligncenter,
  303. .wp-block-latest-comments.aligncenter {
  304. list-style-position: inside;
  305. text-align: center;
  306. }
  307. /* Categories */
  308. .wp-block-categories-list.alignleft {
  309. margin-left: 1.5em;
  310. }
  311. /* Latest Comments */
  312. .wp-block-latest-comments {
  313. margin-left: 0;
  314. margin-right: 0;
  315. }
  316. .wp-block-latest-comments__comment-meta,
  317. .wp-block-latest-comments__comment-excerpt p {
  318. font-size: 18px;
  319. }
  320. .wp-block-latest-comments__comment-meta a {
  321. color: #222;
  322. text-transform: uppercase;
  323. }
  324. .wp-block-latest-comments__comment-date {
  325. color: #767676;
  326. font-size: 14px;
  327. font-weight: bold;
  328. }
  329. .wp-block-latest-comments .wp-block-latest-comments__comment {
  330. border-top: 1px solid #ccc;
  331. margin-bottom: 0;
  332. padding: 1.75em 0 .75em;
  333. }
  334. /*--------------------------------------------------------------
  335. 6.0 Blocks - Colors
  336. --------------------------------------------------------------*/
  337. .has-dark-gray-color,
  338. .has-dark-gray-color:hover,
  339. .has-dark-gray-color:focus,
  340. .has-dark-gray-color:active,
  341. .has-dark-gray-color:visited {
  342. color: #333333;
  343. }
  344. .has-dark-gray-background-color,
  345. .has-dark-gray-background-color:hover,
  346. .has-dark-gray-background-color:focus,
  347. .has-dark-gray-background-color:active,
  348. .has-dark-gray-background-color:visited {
  349. background-color: #333333;
  350. }
  351. .has-dark-green-color,
  352. .has-dark-green-color:hover,
  353. .has-dark-green-color:focus,
  354. .has-dark-green-color:active,
  355. .has-dark-green-color:visited {
  356. color: #557d73;
  357. }
  358. .has-dark-green-background-color,
  359. .has-dark-green-background-color:hover,
  360. .has-dark-green-background-color:focus,
  361. .has-dark-green-background-color:active,
  362. .has-dark-green-background-color:visited {
  363. background-color: #557d73;
  364. }
  365. .has-light-gray-color,
  366. .has-light-gray-color:hover,
  367. .has-light-gray-color:focus,
  368. .has-light-gray-color:active,
  369. .has-light-gray-color:visited {
  370. color: #cccccc;
  371. }
  372. .has-light-gray-background-color,
  373. .has-light-gray-background-color:hover,
  374. .has-light-gray-background-color:focus,
  375. .has-light-gray-background-color:active,
  376. .has-light-gray-background-color:visited {
  377. background-color: #cccccc;
  378. }
  379. .has-white-color,
  380. .has-white-color:hover,
  381. .has-white-color:focus,
  382. .has-white-color:active,
  383. .has-white-color:visited {
  384. color: #fff;
  385. }
  386. .has-white-background-color,
  387. .has-white-background-color:hover,
  388. .has-white-background-color:focus,
  389. .has-white-background-color:active,
  390. .has-white-background-color:visited {
  391. background-color: #fff;
  392. }
  393. .has-purple-color,
  394. .has-purple-color:hover,
  395. .has-purple-color:focus,
  396. .has-purple-color:active,
  397. .has-purple-color:visited {
  398. color: #81699b;
  399. }
  400. .has-purple-background-color,
  401. .has-purple-background-color:hover,
  402. .has-purple-background-color:focus,
  403. .has-purple-background-color:active,
  404. .has-purple-background-color:visited {
  405. background-color: #81699b;
  406. }
  407. .has-dark-purple-color,
  408. .has-dark-purple-color:hover,
  409. .has-dark-purple-color:focus,
  410. .has-dark-purple-color:active,
  411. .has-dark-purple-color:visited {
  412. color: #553a72;
  413. }
  414. .has-dark-purple-background-color,
  415. .has-dark-purple-background-color:hover,
  416. .has-dark-purple-background-color:focus,
  417. .has-dark-purple-background-color:active,
  418. .has-dark-purple-background-color:visited {
  419. background-color: #553a72;
  420. }
  421. .has-black-color,
  422. .has-black-color:hover,
  423. .has-black-color:focus,
  424. .has-black-color:active,
  425. .has-black-color:visited {
  426. color: #222222;
  427. }
  428. .has-black-background-color,
  429. .has-black-background-color:hover,
  430. .has-black-background-color:focus,
  431. .has-black-background-color:active,
  432. .has-black-background-color:visited {
  433. background-color: #222222;
  434. }