blocks.css 13 KB

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