blocks.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  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. font-size: .778em;
  71. }
  72. /*--------------------------------------------------------------
  73. 2.0 Blocks - Common Blocks
  74. --------------------------------------------------------------*/
  75. /* Paragraph */
  76. p.has-drop-cap:not(:focus)::first-letter {
  77. font-size: 124px;
  78. }
  79. /* Image */
  80. .wp-block-image.alignwide {
  81. max-width: 1000%;
  82. }
  83. /* Gallery */
  84. .wp-block-gallery {
  85. margin-bottom: 1.5em;
  86. }
  87. .wp-block-gallery:not(.alignwide):not(.alignfull) {
  88. margin-left: 0;
  89. margin-right: 0;
  90. }
  91. .wp-block-gallery img.size-big,
  92. .wp-block-image img.size-big {
  93. margin: 0;
  94. max-width: 100%;
  95. }
  96. /* Quote */
  97. .wp-block-quote {
  98. margin-bottom: 1.5em;
  99. }
  100. .wp-block-quote.alignleft {
  101. margin-right: 1.5em;
  102. }
  103. .wp-block-quote.alignright {
  104. margin-left: 1.5em;
  105. }
  106. .wp-block-quote.is-large cite,
  107. .wp-block-quote.is-large footer,
  108. .wp-block-quote.is-style-large cite,
  109. .wp-block-quote.is-style-large footer {
  110. font-size: 80%;
  111. }
  112. .wp-block-quote.is-large,
  113. .wp-block-quote.is-style-large,
  114. .wp-block-quote.is-large p,
  115. .wp-block-quote.is-style-large p {
  116. font-size: 32px;
  117. }
  118. .wp-block-quote.is-large p,
  119. .wp-block-quote.is-style-large p {
  120. margin-bottom: .8em;
  121. }
  122. .rtl .wp-block-quote {
  123. border: 0;
  124. }
  125. /* Audio */
  126. .wp-block-audio {
  127. margin-bottom: 1.5em;
  128. }
  129. .wp-block-audio audio {
  130. display: block;
  131. width: 100%;
  132. }
  133. /* Cover */
  134. .wp-block-cover,
  135. .wp-block-cover.alignleft,
  136. .wp-block-cover.alignright,
  137. .wp-block-cover.aligncenter {
  138. display: flex;
  139. }
  140. /* File */
  141. .wp-block-file a.wp-block-file__button,
  142. .wp-block-file a.wp-block-file__button:visited {
  143. border-radius: 0;
  144. font-size: 18px;
  145. font-weight: bold;
  146. line-height: 1;
  147. padding: .75em;
  148. cursor: pointer;
  149. -webkit-transition: .3s all ease-in-out;
  150. -moz-transition: .3s all ease-in-out;
  151. transition: .3s all ease-in-out;
  152. text-transform: uppercase;
  153. color: #222;
  154. border: 2px solid #222;
  155. background: transparent;
  156. box-shadow: none;
  157. text-shadow: none;
  158. }
  159. .wp-block-file a.wp-block-file__button:hover,
  160. .wp-block-file a.wp-block-file__button:focus {
  161. -webkit-transition: .3s all ease-in-out;
  162. -moz-transition: .3s all ease-in-out;
  163. transition: .3s all ease-in-out;
  164. color: #fff;
  165. border-color: #222;
  166. background: #222;
  167. box-shadow: 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. max-width: 100%;
  196. margin-bottom: 1.6em;
  197. overflow: auto;
  198. padding: 1.6em;
  199. }
  200. /* Pullquote */
  201. .wp-block-pullquote {
  202. border: 0;
  203. margin: 0;
  204. padding: 0;
  205. }
  206. .wp-block-pullquote blockquote {
  207. border-top: 2px solid currentColor;
  208. border-bottom: 2px solid currentColor;
  209. font-style: italic;
  210. font-size: 24px;
  211. margin: 0 0 1.5em;
  212. padding: .75em 0;
  213. color: #767676;
  214. }
  215. .wp-block-pullquote.alignleft p,
  216. .wp-block-pullquote.alignright p {
  217. font-size: 24px;
  218. }
  219. .wp-block-pullquote.alignleft {
  220. margin-right: 1.5em;
  221. }
  222. .wp-block-pullquote.alignright {
  223. margin-left: 1.5em;
  224. }
  225. .wp-block-pullquote.alignfull blockquote {
  226. padding-left: 1.5em;
  227. padding-right: 1.5em;
  228. }
  229. .wp-block-pullquote p {
  230. margin: 0;
  231. }
  232. /* Table */
  233. @media (min-width: 964px) {
  234. .wp-block-table.alignwide {
  235. width: 924px;
  236. }
  237. }
  238. .wp-block-table.alignfull {
  239. width: 96vw;
  240. }
  241. /*--------------------------------------------------------------
  242. 4.0 Blocks - Layout Elements
  243. --------------------------------------------------------------*/
  244. /* Buttons */
  245. .wp-block-button .wp-block-button__link {
  246. font-size: 18px;
  247. font-weight: bold;
  248. line-height: 1;
  249. padding: .75em 1.25em;
  250. cursor: pointer;
  251. -webkit-transition: .3s all ease-in-out;
  252. -moz-transition: .3s all ease-in-out;
  253. transition: .3s all ease-in-out;
  254. text-transform: uppercase;
  255. }
  256. .wp-block-button__link,
  257. .wp-block-button__link:visited {
  258. background: #222;
  259. color: #fff;
  260. }
  261. .is-style-outline .wp-block-button__link {
  262. background-color: transparent;
  263. border-color: currentColor;
  264. }
  265. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  266. color: #222;
  267. }
  268. .wp-block-button__link:active,
  269. .wp-block-button__link:focus,
  270. .wp-block-button__link:hover {
  271. opacity: 0.8;
  272. }
  273. /* Seperator */
  274. hr.wp-block-separator {
  275. border: 0;
  276. }
  277. .wp-block-separator {
  278. height: 1px;
  279. margin-bottom: 1.5em;
  280. border: 0;
  281. background-color: #ccc;
  282. max-width: 100%;
  283. }
  284. .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  285. max-width: 100px;
  286. }
  287. /* Media & Text */
  288. .wp-block-media-text {
  289. margin-bottom: 1.5em;
  290. }
  291. .wp-block-media-text *:last-child {
  292. margin-bottom: 0;
  293. }
  294. /*--------------------------------------------------------------
  295. 5.0 Blocks - Widget Blocks
  296. --------------------------------------------------------------*/
  297. /* General Widget styles */
  298. .wp-block-categories.aligncenter,
  299. .wp-block-categories.aligncenter ul,
  300. .wp-block-archives.aligncenter,
  301. .wp-block-latest-posts.aligncenter,
  302. .wp-block-latest-comments.aligncenter {
  303. list-style-position: inside;
  304. text-align: center;
  305. }
  306. /* Categories */
  307. .wp-block-categories-list.alignleft {
  308. margin-left: 1.5em;
  309. }
  310. /* Latest Comments */
  311. .wp-block-latest-comments {
  312. margin-left: 0;
  313. margin-right: 0;
  314. }
  315. .wp-block-latest-comments__comment-meta,
  316. .wp-block-latest-comments__comment-excerpt p {
  317. font-size: 18px;
  318. }
  319. .wp-block-latest-comments__comment-meta a {
  320. color: #222;
  321. text-transform: uppercase;
  322. }
  323. .wp-block-latest-comments__comment-date {
  324. color: #767676;
  325. font-size: 14px;
  326. font-weight: bold;
  327. }
  328. .wp-block-latest-comments .wp-block-latest-comments__comment {
  329. border-top: 1px solid #ccc;
  330. margin-bottom: 0;
  331. padding: 1.75em 0 .75em;
  332. }
  333. /*--------------------------------------------------------------
  334. 6.0 Blocks - Colors
  335. --------------------------------------------------------------*/
  336. .has-dark-gray-color,
  337. .has-dark-gray-color:hover,
  338. .has-dark-gray-color:focus,
  339. .has-dark-gray-color:active,
  340. .has-dark-gray-color:visited {
  341. color: #333333;
  342. }
  343. .has-dark-gray-background-color,
  344. .has-dark-gray-background-color:hover,
  345. .has-dark-gray-background-color:focus,
  346. .has-dark-gray-background-color:active,
  347. .has-dark-gray-background-color:visited {
  348. background-color: #333333;
  349. }
  350. .has-dark-green-color,
  351. .has-dark-green-color:hover,
  352. .has-dark-green-color:focus,
  353. .has-dark-green-color:active,
  354. .has-dark-green-color:visited {
  355. color: #557d73;
  356. }
  357. .has-dark-green-background-color,
  358. .has-dark-green-background-color:hover,
  359. .has-dark-green-background-color:focus,
  360. .has-dark-green-background-color:active,
  361. .has-dark-green-background-color:visited {
  362. background-color: #557d73;
  363. }
  364. .has-light-gray-color,
  365. .has-light-gray-color:hover,
  366. .has-light-gray-color:focus,
  367. .has-light-gray-color:active,
  368. .has-light-gray-color:visited {
  369. color: #cccccc;
  370. }
  371. .has-light-gray-background-color,
  372. .has-light-gray-background-color:hover,
  373. .has-light-gray-background-color:focus,
  374. .has-light-gray-background-color:active,
  375. .has-light-gray-background-color:visited {
  376. background-color: #cccccc;
  377. }
  378. .has-white-color,
  379. .has-white-color:hover,
  380. .has-white-color:focus,
  381. .has-white-color:active,
  382. .has-white-color:visited {
  383. color: #fff;
  384. }
  385. .has-white-background-color,
  386. .has-white-background-color:hover,
  387. .has-white-background-color:focus,
  388. .has-white-background-color:active,
  389. .has-white-background-color:visited {
  390. background-color: #fff;
  391. }
  392. .has-purple-color,
  393. .has-purple-color:hover,
  394. .has-purple-color:focus,
  395. .has-purple-color:active,
  396. .has-purple-color:visited {
  397. color: #81699b;
  398. }
  399. .has-purple-background-color,
  400. .has-purple-background-color:hover,
  401. .has-purple-background-color:focus,
  402. .has-purple-background-color:active,
  403. .has-purple-background-color:visited {
  404. background-color: #81699b;
  405. }
  406. .has-dark-purple-color,
  407. .has-dark-purple-color:hover,
  408. .has-dark-purple-color:focus,
  409. .has-dark-purple-color:active,
  410. .has-dark-purple-color:visited {
  411. color: #553a72;
  412. }
  413. .has-dark-purple-background-color,
  414. .has-dark-purple-background-color:hover,
  415. .has-dark-purple-background-color:focus,
  416. .has-dark-purple-background-color:active,
  417. .has-dark-purple-background-color:visited {
  418. background-color: #553a72;
  419. }
  420. .has-black-color,
  421. .has-black-color:hover,
  422. .has-black-color:focus,
  423. .has-black-color:active,
  424. .has-black-color:visited {
  425. color: #222222;
  426. }
  427. .has-black-background-color,
  428. .has-black-background-color:hover,
  429. .has-black-background-color:focus,
  430. .has-black-background-color:active,
  431. .has-black-background-color:visited {
  432. background-color: #222222;
  433. }