blocks.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. /*
  2. Theme Name: Lodestar
  3. Description: Used to style Gutenberg Blocks.
  4. */
  5. /*--------------------------------------------------------------
  6. >>> TABLE OF CONTENTS:
  7. ----------------------------------------------------------------
  8. 1.0 Block Alignments
  9. 2.0 General Block Styles
  10. 3.0 Blocks - Common Blocks
  11. 4.0 Blocks - Formatting
  12. 5.0 Blocks - Layout Elements
  13. 6.0 Blocks - Widgets
  14. 7.0 Blocks - Colors
  15. --------------------------------------------------------------*/
  16. /*--------------------------------------------------------------
  17. 1.0 Block Alignments
  18. --------------------------------------------------------------*/
  19. body:not(.has-sidebar) .site-content {
  20. overflow-x: hidden; /* prevents side-scrolling caused by use of vw */
  21. }
  22. .alignfull,
  23. .alignwide {
  24. clear: both;
  25. }
  26. @media (min-width: 1140px) {
  27. body:not(.has-sidebar):not(.lodestar-front-page) .alignwide,
  28. body.lodestar-front-page .lodestar-panel:not(.two-column) .alignwide {
  29. margin-left: -25%;
  30. margin-right: -25%;
  31. max-width: 1000%;
  32. width: auto;
  33. }
  34. body:not(.has-sidebar):not(.lodestar-front-page) .wp-block-embed.is-type-video.alignwide iframe,
  35. body.lodestar-front-page .lodestar-panel:not(.two-column) .wp-block-embed.is-type-video.alignwide iframe {
  36. width: 100% !important;
  37. height: 100% !important;
  38. }
  39. }
  40. body:not(.has-sidebar) .alignfull,
  41. body:not(.has-sidebar).lodestar-front-page .lodestar-panel:not(.two-column) .alignfull,
  42. body:not(.has-sidebar).lodestar-front-page .lodestar-intro:not(.two-column) .alignfull {
  43. margin-left: calc(50% - 50vw);
  44. margin-right: calc(50% - 50vw);
  45. max-width: 1000%;
  46. width: auto;
  47. }
  48. /* Make non image-based blocks a bit narrower, so they don't get cut off. */
  49. body:not(.has-sidebar):not(.lodestar-front-page) .wp-block-columns.alignfull,
  50. body.lodestar-front-page:not(.has-sidebar) .lodestar-panel:not(.two-column) .wp-block-columns.alignfull,
  51. body:not(.has-sidebar):not(.lodestar-front-page) .wp-block-audio.alignfull,
  52. body.lodestar-front-page:not(.has-sidebar) .lodestar-panel:not(.two-column) .wp-block-audio.alignfull,
  53. body:not(.has-sidebar):not(.lodestar-front-page) .wp-block-table.alignfull,
  54. body.lodestar-front-page:not(.has-sidebar) .lodestar-panel:not(.two-column) .wp-block-table.alignfull,
  55. body:not(.has-sidebar):not(.lodestar-front-page) .wp-block-latest-comments.alignfull,
  56. body.lodestar-front-page:not(.has-sidebar) .lodestar-panel:not(.two-column) .wp-block-latest-comments.alignfull,
  57. body:not(.has-sidebar):not(.lodestar-front-page) .wp-block-categories.alignfull,
  58. body.lodestar-front-page:not(.has-sidebar) .lodestar-panel:not(.two-column) .wp-block-categories.alignfull,
  59. body:not(.has-sidebar):not(.lodestar-front-page) .wp-block-latest-posts.alignfull,
  60. body.lodestar-front-page:not(.has-sidebar) .lodestar-panel:not(.two-column) .wp-block-latest-posts.alignfull {
  61. margin-left: calc(50% - 48vw);
  62. margin-right: calc(50% - 48vw);
  63. }
  64. body:not(.has-sidebar):not(.lodestar-front-page) .wp-block-embed.is-type-video iframe,
  65. body.lodestar-front-page:not(.has-sidebar) .lodestar-panel:not(.two-column) .wp-block-embed.is-type-video iframe {
  66. max-height: 100%;
  67. }
  68. body:not(.has-sidebar):not(.lodestar-front-page) .wp-block-embed.is-type-video.alignfull iframe,
  69. body.lodestar-front-page:not(.has-sidebar) .lodestar-panel:not(.two-column) .wp-block-embed.is-type-video.alignfull iframe {
  70. width: 100% !important;
  71. height: 100% !important;
  72. }
  73. /*--------------------------------------------------------------
  74. 2.0 General Block Styles
  75. --------------------------------------------------------------*/
  76. [class^="wp-block-"] figcaption {
  77. font-size: 16px;
  78. line-height: 1.5;
  79. }
  80. [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  81. color: inherit;
  82. }
  83. /*--------------------------------------------------------------
  84. 3.0 Blocks - Common Blocks
  85. --------------------------------------------------------------*/
  86. /* Paragraph */
  87. p.has-drop-cap:not(:focus)::first-letter {
  88. font-size: 5em;
  89. margin-top: 0.15em;
  90. }
  91. /* Gallery */
  92. .wp-block-gallery {
  93. margin: 0 0 1.5em;
  94. }
  95. /* Quote */
  96. .wp-block-quote[style*="text-align:center"] {
  97. border: 0;
  98. padding-left: 0;
  99. padding-right: 0;
  100. }
  101. .rtl .wp-block-style,
  102. .wp-block-quote[style*="text-align:right"] {
  103. border: 0;
  104. border-right: 4px solid #ddd;
  105. padding-left: 0;
  106. padding-right: 1.5em;
  107. }
  108. .rtl .wp-block-quote[style*="text-align:left"] {
  109. border: 0;
  110. border-left: 4px solid #ddd;
  111. padding-left: 1.5em;
  112. padding-right: 0;
  113. }
  114. .wp-block-quote.is-large,
  115. .wp-block-quote.is-style-large {
  116. margin-left: 2em;
  117. margin-right: 2em;
  118. padding-left: 1.5em;
  119. }
  120. .rtl .wp-block-quote.is-large,
  121. .rtl .wp-block-quote.is-style-large {
  122. padding-left: 0;
  123. padding-right: 1.5em;
  124. }
  125. /* Audio */
  126. .wp-block-audio {
  127. margin: 0 0 1.5em;
  128. }
  129. .wp-block-audio audio {
  130. display: block;
  131. width: 100%;
  132. }
  133. /* Cover */
  134. .wp-block-cover.aligncenter,
  135. .wp-block-cover-image.aligncenter,
  136. .wp-block-cover.alignleft,
  137. .wp-block-cover-image.alignleft,
  138. .wp-block-cover.alignright,
  139. .wp-block-cover-image.alignright {
  140. }
  141. .wp-block-cover-image .wp-block-cover-image-text,
  142. .wp-block-cover-image .wp-block-cover-text,
  143. .wp-block-cover-image h2,
  144. .wp-block-cover .wp-block-cover-image-text,
  145. .wp-block-cover .wp-block-cover-text,
  146. .wp-block-cover h2 {
  147. font-size: 1.5em;
  148. }
  149. /* File */
  150. .wp-block-file a.wp-block-file__button,
  151. .wp-block-file a.wp-block-file__button:visited {
  152. background: #29292a;
  153. border: 0;
  154. border-radius: 0;
  155. box-shadow: none;
  156. color: #fff;
  157. font-size: 14px;
  158. font-size: 0.875rem;
  159. letter-spacing: 0.05em;
  160. line-height: 1;
  161. padding: 1em 1.5em;
  162. text-shadow: none;
  163. text-transform: uppercase;
  164. transition: background 0.2s;
  165. }
  166. .wp-block-file a.wp-block-file__button:hover,
  167. .wp-block-file a.wp-block-file__button:focus,
  168. .wp-block-file a.wp-block-file__button:active {
  169. background: #555;
  170. }
  171. .rtl .wp-block-file * + .wp-block-file__button {
  172. margin-left: .75em;
  173. margin-right: 0;
  174. }
  175. /* Video */
  176. .wp-block-video video {
  177. width: 100%;
  178. }
  179. /*--------------------------------------------------------------
  180. 4.0 Blocks - Formatting
  181. --------------------------------------------------------------*/
  182. /* Verse */
  183. .wp-block-verse {
  184. background: transparent;
  185. font-family: inherit;
  186. font-style: italic;
  187. padding: 0;
  188. }
  189. /* Pullquote */
  190. .wp-block-pullquote blockquote {
  191. border: 0;
  192. margin-left: 0;
  193. margin-right: 0;
  194. padding-left: 0;
  195. padding-right: 0;
  196. }
  197. .wp-block-pullquote blockquote p {
  198. }
  199. .wp-block-pullquote cite,
  200. .wp-block-pullquote.alignleft cite,
  201. .wp-block-pullquote.alignright cite {
  202. }
  203. /* Table */
  204. .wp-block-table th {
  205. text-align: left;
  206. }
  207. @media (min-width: 1130px) {
  208. body:not(.has-sidebar):not(.lodestar-front-page) .wp-block-table.alignwide,
  209. body.lodestar-front-page:not(.has-sidebar) .lodestar-panel:not(.two-column) .wp-block-table.alignwide {
  210. width: 1050px;
  211. }
  212. }
  213. body:not(.has-sidebar):not(.lodestar-front-page) .wp-block-table.alignfull,
  214. body.lodestar-front-page:not(.has-sidebar) .lodestar-panel:not(.two-column) .wp-block-table.alignfull {
  215. width: 96vw;
  216. }
  217. .rtl .wp-block-table th {
  218. text-align: right;
  219. }
  220. /*--------------------------------------------------------------
  221. 5.0 Blocks - Layout Elements
  222. --------------------------------------------------------------*/
  223. /* Buttons */
  224. .wp-block-button .wp-block-button__link {
  225. box-shadow: none;
  226. border: 0;
  227. font-size: 14px;
  228. font-size: 0.875rem;
  229. letter-spacing: 0.05em;
  230. line-height: 1;
  231. padding: 1em 1.5em;
  232. text-shadow: none;
  233. text-transform: uppercase;
  234. transition: background 0.2s;
  235. }
  236. .wp-block-button__link,
  237. .wp-block-button__link:visited {
  238. background: #29292a;
  239. color: #fff;
  240. }
  241. .wp-block-button.is-style-outline .wp-block-button__link {
  242. border: 2px solid currentColor;
  243. }
  244. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  245. color: #29292a;
  246. }
  247. .wp-block-button .wp-block-button__link:hover,
  248. .wp-block-button .wp-block-button__link:focus,
  249. .wp-block-button .wp-block-button__link:active {
  250. background: #555;
  251. color: #fff;
  252. box-shadow: none;
  253. }
  254. /* Separator */
  255. .wp-block-separator {
  256. border: 0;
  257. }
  258. .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  259. margin-left: auto;
  260. margin-right: auto;
  261. max-width: 100px;
  262. }
  263. /* Media & Text */
  264. .wp-block-media-text {
  265. margin-bottom: 1.5em;
  266. }
  267. .wp-block-media-text *:last-child {
  268. margin-bottom: 0;
  269. }
  270. /*--------------------------------------------------------------
  271. 6.0 Blocks - Widgets
  272. --------------------------------------------------------------*/
  273. /* General Widget styles */
  274. .wp-block-categories.aligncenter,
  275. .wp-block-categories.aligncenter ul,
  276. .wp-block-archives.aligncenter,
  277. .wp-block-latest-posts.aligncenter,
  278. .wp-block-latest-comments.aligncenter {
  279. list-style-position: inside;
  280. text-align: center;
  281. }
  282. /* Latest Comments */
  283. .wp-block-latest-comments {
  284. margin-left: 0;
  285. margin-right: 0;
  286. }
  287. .wp-block-latest-comments__comment-date,
  288. .wp-block-latest-comments__comment-excerpt p {
  289. color: inherit;
  290. font-size: inherit;
  291. }
  292. /* Latest Posts */
  293. .wp-block-latest-posts.is-grid {
  294. margin-left: 0;
  295. margin-right: 0;
  296. }
  297. /*--------------------------------------------------------------
  298. 7.0 Blocks - Colors
  299. --------------------------------------------------------------*/
  300. .has-pale-pink-color,
  301. .has-pale-pink-color:hover,
  302. .has-pale-pink-color:focus,
  303. .has-pale-pink-color:active,
  304. .has-pale-pink-color:visited {
  305. color: #f78da7;
  306. }
  307. .has-pale-pink-background-color,
  308. .has-pale-pink-background-color:hover.
  309. .has-pale-pink-background-color:focus,
  310. .has-pale-pink-background-color:active,
  311. .has-pale-pink-background-color:visited {
  312. background-color: #f78da7;
  313. }
  314. .has-vivid-red-color,
  315. .has-vivid-red-color:hover,
  316. .has-vivid-red-color:focus,
  317. .has-vivid-red-color:active,
  318. .has-vivid-red-color:visited {
  319. color: #cf2e2e;
  320. }
  321. .has-vivid-red-background-color,
  322. .has-vivid-red-background-color:hover,
  323. .has-vivid-red-background-color:focus,
  324. .has-vivid-red-background-color:active,
  325. .has-vivid-red-background-color:visited {
  326. background-color: #cf2e2e;
  327. }
  328. .has-luminous-vivid-orange-color,
  329. .has-luminous-vivid-orange-color:hover,
  330. .has-luminous-vivid-orange-color:focus,
  331. .has-luminous-vivid-orange-color:active,
  332. .has-luminous-vivid-orange-color:visited {
  333. color: #ff6900;
  334. }
  335. .has-luminous-vivid-orange-background-color,
  336. .has-luminous-vivid-orange-background-color:hover,
  337. .has-luminous-vivid-orange-background-color:focus,
  338. .has-luminous-vivid-orange-background-color:active,
  339. .has-luminous-vivid-orange-background-color:visited {
  340. background-color: #ff6900;
  341. }
  342. .has-luminous-vivid-amber-color,
  343. .has-luminous-vivid-amber-color:hover,
  344. .has-luminous-vivid-amber-color:focus,
  345. .has-luminous-vivid-amber-color:active,
  346. .has-luminous-vivid-amber-color:visited {
  347. color: #fcb900;
  348. }
  349. .has-luminous-vivid-amber-background-color,
  350. .has-luminous-vivid-amber-background-color:hover,
  351. .has-luminous-vivid-amber-background-color:focus,
  352. .has-luminous-vivid-amber-background-color:active,
  353. .has-luminous-vivid-amber-background-color:visited {
  354. background-color: #fcb900;
  355. }
  356. .has-light-green-cyan-color,
  357. .has-light-green-cyan-color:hover,
  358. .has-light-green-cyan-color:focus,
  359. .has-light-green-cyan-color:active,
  360. .has-light-green-cyan-color:visited {
  361. color: #7bdcb5;
  362. }
  363. .has-light-green-cyan-background-color,
  364. .has-light-green-cyan-background-color:hover,
  365. .has-light-green-cyan-background-color:focus,
  366. .has-light-green-cyan-background-color:active,
  367. .has-light-green-cyan-background-color:visited {
  368. background-color: #7bdcb5;
  369. }
  370. .has-vivid-green-cyan-color,
  371. .has-vivid-green-cyan-color:hover,
  372. .has-vivid-green-cyan-color:focus,
  373. .has-vivid-green-cyan-color:active,
  374. .has-vivid-green-cyan-color:visited {
  375. color: #00d084;
  376. }
  377. .has-vivid-green-cyan-background-color,
  378. .has-vivid-green-cyan-background-color:hover,
  379. .has-vivid-green-cyan-background-color:focus,
  380. .has-vivid-green-cyan-background-color:active,
  381. .has-vivid-green-cyan-background-color:visited {
  382. background-color: #00d084;
  383. }
  384. .has-pale-cyan-blue-color,
  385. .has-pale-cyan-blue-color:hover,
  386. .has-pale-cyan-blue-color:focus,
  387. .has-pale-cyan-blue-color:active,
  388. .has-pale-cyan-blue-color:visited {
  389. color: #8ed1fc;
  390. }
  391. .has-pale-cyan-blue-background-color,
  392. .has-pale-cyan-blue-background-color:hover,
  393. .has-pale-cyan-blue-background-color:focus,
  394. .has-pale-cyan-blue-background-color:active,
  395. .has-pale-cyan-blue-background-color:visited {
  396. background-color: #8ed1fc;
  397. }
  398. .has-vivid-cyan-blue-color,
  399. .has-vivid-cyan-blue-color:hover,
  400. .has-vivid-cyan-blue-color:focus,
  401. .has-vivid-cyan-blue-color:active,
  402. .has-vivid-cyan-blue-color:visited {
  403. color: #0693e3;
  404. }
  405. .has-vivid-cyan-blue-background-color,
  406. .has-vivid-cyan-blue-background-color:hover,
  407. .has-vivid-cyan-blue-background-color:focus,
  408. .has-vivid-cyan-blue-background-color:active,
  409. .has-vivid-cyan-blue-background-color:visited {
  410. background-color: #0693e3;
  411. }
  412. .has-very-light-gray-color,
  413. .has-very-light-gray-color:hover,
  414. .has-very-light-gray-color:focus,
  415. .has-very-light-gray-color:active,
  416. .has-very-light-gray-color:visited {
  417. color: #eee;
  418. }
  419. .has-very-light-gray-background-color,
  420. .has-very-light-gray-background-color:hover,
  421. .has-very-light-gray-background-color:focus,
  422. .has-very-light-gray-background-color:active,
  423. .has-very-light-gray-background-color:visited {
  424. background-color: #eee;
  425. }
  426. .has-cyan-bluish-gray-color,
  427. .has-cyan-bluish-gray-color:hover,
  428. .has-cyan-bluish-gray-color:focus,
  429. .has-cyan-bluish-gray-color:active,
  430. .has-cyan-bluish-gray-color:visited {
  431. color: #abb8c3;
  432. }
  433. .has-cyan-bluish-gray-background-color,
  434. .has-cyan-bluish-gray-background-color:hover,
  435. .has-cyan-bluish-gray-background-color:focus,
  436. .has-cyan-bluish-gray-background-color:active,
  437. .has-cyan-bluish-gray-background-color:visited {
  438. background-color: #abb8c3;
  439. }
  440. .has-very-dark-gray-color,
  441. .has-very-dark-gray-color:hover,
  442. .has-very-dark-gray-color:focus,
  443. .has-very-dark-gray-color:active,
  444. .has-very-dark-gray-color:visited {
  445. color: #313131;
  446. }
  447. .has-very-dark-gray-background-color,
  448. .has-very-dark-gray-background-color:hover,
  449. .has-very-dark-gray-background-color:focus,
  450. .has-very-dark-gray-background-color:active,
  451. .has-very-dark-gray-background-color:visited {
  452. background-color: #313131;
  453. }