blocks.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. /*
  2. Theme Name: Pique
  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. .site-content {
  20. overflow-x: hidden;
  21. }
  22. .alignfull,
  23. .alignwide {
  24. clear: both;
  25. }
  26. body:not(.pique-sidebar).pique-singular .alignfull,
  27. body.home .alignfull,
  28. body.blog .alignfull,
  29. body.archive .alignfull {
  30. margin-left: calc(50% - 50vw);
  31. margin-right: calc(50% - 50vw);
  32. width: auto;
  33. max-width: 1400px;
  34. }
  35. body:not(.pique-sidebar).pique-singular .alignwide,
  36. body.home .alignwide,
  37. body.blog .alignwide,
  38. body.archive .alignwide {
  39. margin-left: calc(25% - 25vw);
  40. margin-right: calc(25% - 25vw);
  41. width: auto;
  42. max-width: 1400px;
  43. }
  44. @media (min-width: 1400px) {
  45. body:not(.pique-sidebar).pique-singular .alignwide,
  46. body.home .alignwide,
  47. body.blog .alignwide,
  48. body.archive .alignwide {
  49. margin-left: -15%;
  50. margin-right: -15%;
  51. }
  52. }
  53. body:not(.pique-sidebar).pique-singular .wp-block-embed.is-type-video.alignfull iframe,
  54. body:not(.pique-sidebar).pique-singular .wp-block-embed.is-type-video.alignwide iframe,
  55. body.home .wp-block-embed.is-type-video.alignfull iframe,
  56. body.blog .wp-block-embed.is-type-video.alignfull iframe,
  57. body.archive .wp-block-embed.is-type-video.alignfull iframe,
  58. body.home .wp-block-embed.is-type-video.alignwide iframe,
  59. body.blog .wp-block-embed.is-type-video.alignwide iframe,
  60. body.archive .wp-block-embed.is-type-video.alignwide iframe {
  61. width: 100% !important;
  62. height: 100% !important;
  63. }
  64. /* Make non image-based blocks a bit narrower, so they don't get cut off. */
  65. body:not(.pique-sidebar).pique-singular .wp-block-columns.alignfull,
  66. body.home .wp-block-columns.alignfull,
  67. body.blog .wp-block-columns.alignfull,
  68. body.archive .wp-block-columns.alignfull,
  69. body:not(.pique-sidebar).pique-singular .wp-block-audio.alignfull,
  70. body.home .wp-block-audio.alignfull,
  71. body.blog .wp-block-audio.alignfull,
  72. body.archive .wp-block-audio.alignfull,
  73. body:not(.pique-sidebar).pique-singular .wp-block-table.alignfull,
  74. body.home .wp-block-table.alignfull,
  75. body.blog .wp-block-table.alignfull,
  76. body.archive .wp-block-table.alignfull,
  77. body:not(.pique-sidebar).pique-singular .wp-block-latest-comments.alignfull,
  78. body.home .wp-block-latest-comments.alignfull,
  79. body.blog .wp-block-latest-comments.alignfull,
  80. body.archive .wp-block-latest-comments.alignfull,
  81. body:not(.pique-sidebar).pique-singular .wp-block-latest-posts.alignfull,
  82. body.home .wp-block-latest-posts.alignfull,
  83. body.blog .wp-block-latest-posts.alignfull,
  84. body.archive .wp-block-latest-posts.alignfull,
  85. body:not(.pique-sidebar).pique-singular .wp-block-categories.alignfull,
  86. body.home .wp-block-categories.alignfull,
  87. body.blog .wp-block-categories.alignfull,
  88. body.archive .wp-block-categories.alignfull,
  89. body:not(.pique-sidebar).pique-singular .wp-block-archives.alignfull,
  90. body.home .wp-block-archives.alignfull,
  91. body.blog .wp-block-archives.alignfull,
  92. body.archive .wp-block-archives.alignfull {
  93. margin-left: calc(50% - 48vw);
  94. margin-right: calc(50% - 48vw);
  95. }
  96. /* When sidebar is below the content */
  97. @media (max-width: 999px) {
  98. body.pique-sidebar.pique-singular .alignwide {
  99. margin-left: -15%;
  100. margin-right: -15%;
  101. width: auto;
  102. max-width: 1400px;
  103. }
  104. body.pique-sidebar.pique-singular .alignfull {
  105. margin-left: calc(50% - 50vw);
  106. margin-right: calc(50% - 50vw);
  107. width: auto;
  108. max-width: 1400px;
  109. }
  110. /* Make non image-based blocks a bit narrower, so they don't get cut off. */
  111. body.pique-sidebar.pique-singular .wp-block-columns.alignfull,
  112. body.pique-sidebar.pique-singular .wp-block-audio.alignfull,
  113. body.pique-sidebar.pique-singular .wp-block-table.alignfull,
  114. body.pique-sidebar.pique-singular .wp-block-latest-comments.alignfull,
  115. body.pique-sidebar.pique-singular .wp-block-latest-posts.alignfull,
  116. body.pique-sidebar.pique-singular .wp-block-categories.alignfull,
  117. body.pique-sidebar.pique-singular .wp-block-archives.alignfull {
  118. margin-left: calc(50% - 48vw);
  119. margin-right: calc(50% - 48vw);
  120. }
  121. }
  122. /* Make sure the full and wide blocks still stay in Twenty Thirteen's wide container */
  123. @media (min-width: 1400px) {
  124. body:not(.pique-sidebar).pique-singular .alignfull,
  125. body.home .alignfull,
  126. body.blog .alignfull,
  127. body.archive .alignfull {
  128. margin-left: calc(50% - 700px);
  129. margin-right: calc(50% - 700px);
  130. width: auto;
  131. max-width: 1000%;
  132. }
  133. /* Make non image-based blocks a bit narrower, so they don't get cut off. */
  134. body:not(.pique-sidebar).pique-singular .wp-block-columns.alignfull,
  135. body.home .wp-block-columns.alignfull,
  136. body.blog .wp-block-columns.alignfull,
  137. body.archive .wp-block-columns.alignfull,
  138. body:not(.pique-sidebar).pique-singular .wp-block-audio.alignfull,
  139. body.home .wp-block-audio.alignfull,
  140. body.blog .wp-block-audio.alignfull,
  141. body.archive .wp-block-audio.alignfull,
  142. body:not(.pique-sidebar).pique-singular .wp-block-table.alignfull,
  143. body.home .wp-block-table.alignfull,
  144. body.blog .wp-block-table.alignfull,
  145. body.archive .wp-block-table.alignfull,
  146. body:not(.pique-sidebar).pique-singular .wp-block-latest-comments.alignfull,
  147. body.home .wp-block-latest-comments.alignfull,
  148. body.blog .wp-block-latest-comments.alignfull,
  149. body.archive .wp-block-latest-comments.alignfull,
  150. body:not(.pique-sidebar).pique-singular .wp-block-latest-posts.alignfull,
  151. body.home .wp-block-latest-posts.alignfull,
  152. body.blog .wp-block-latest-posts.alignfull,
  153. body.archive .wp-block-latest-posts.alignfull,
  154. body:not(.pique-sidebar).pique-singular .wp-block-categories.alignfull,
  155. body.home .wp-block-categories.alignfull,
  156. body.blog .wp-block-categories.alignfull,
  157. body.archive .wp-block-categories.alignfull,
  158. body:not(.pique-sidebar).pique-singular .wp-block-archives.alignfull,
  159. body.home .wp-block-archives.alignfull,
  160. body.blog .wp-block-archives.alignfull,
  161. body.archive .wp-block-archives.alignfull {
  162. margin-left: calc(50% - 680px);
  163. margin-right: calc(50% - 680px);
  164. }
  165. }
  166. /*--------------------------------------------------------------
  167. 2.0 General Block Styles
  168. --------------------------------------------------------------*/
  169. /* Caption */
  170. [class^="wp-block-"] figcaption {
  171. color: inherit;
  172. font-size: inherit;
  173. font-style: italic;
  174. }
  175. /* Video */
  176. .wp-block-embed.is-type-video iframe {
  177. max-height: 100%;
  178. }
  179. /*--------------------------------------------------------------
  180. 3.0 Blocks - Common Blocks
  181. --------------------------------------------------------------*/
  182. /* Paragraph */
  183. p.has-drop-cap:not(:focus)::first-letter {
  184. font-size: 5em;
  185. margin-top: 0.125em;
  186. }
  187. /* Gallery */
  188. .wp-block-gallery {
  189. margin: 0 0 1.5em;
  190. }
  191. .wp-block-gallery .blocks-gallery-image figcaption,
  192. .wp-block-gallery .blocks-gallery-item figcaption {
  193. font-size: 15px;
  194. }
  195. /* Quote */
  196. .wp-block-quote::before {
  197. margin-left: auto;
  198. margin-right: auto;
  199. text-align: center;
  200. }
  201. .wp-block-quote cite {
  202. text-align: right;
  203. }
  204. .wp-block-quote.is-large,
  205. .wp-block-quote.is-style-large {
  206. padding: 0;
  207. }
  208. .wp-block-quote.is-large p,
  209. .wp-block-quote.is-style-large p {
  210. font-size: 28px;
  211. }
  212. .rtl .wp-block-quote cite {
  213. text-align: left;
  214. }
  215. /* Audio */
  216. .wp-block-audio {
  217. margin: 0 0 1.5em;
  218. }
  219. .wp-block-audio audio {
  220. display: block;
  221. width: 100%;
  222. }
  223. /* Cover */
  224. .wp-block-cover.aligncenter,
  225. .wp-block-cover-image.aligncenter,
  226. .wp-block-cover.alignleft,
  227. .wp-block-cover-image.alignleft,
  228. .wp-block-cover.alignright,
  229. .wp-block-cover-image.alignright {
  230. display: flex;
  231. }
  232. .wp-block-cover-image .wp-block-cover-image-text,
  233. .wp-block-cover-image .wp-block-cover-text,
  234. .wp-block-cover-image h2,
  235. .wp-block-cover .wp-block-cover-image-text,
  236. .wp-block-cover .wp-block-cover-text,
  237. .wp-block-cover h2 {
  238. font-size: 1.5em;
  239. }
  240. /* File */
  241. .wp-block-file a.wp-block-file__button,
  242. .wp-block-file a.wp-block-file__button:visited {
  243. background-color: #83b6cc;
  244. border: 2px solid transparent;
  245. border-radius: 2em;
  246. color: #eff6f9;
  247. display: inline-block;
  248. font-family: Karla, Arial, sans-serif;
  249. font-size: 15.2px;
  250. font-size: 0.95rem;
  251. font-weight: bold;
  252. letter-spacing: 1px;
  253. line-height: 1;
  254. padding: 1em 3em;
  255. text-shadow: none;
  256. text-transform: uppercase;
  257. transition: background-color 0.125s ease-in;
  258. -webkit-appearance: none;
  259. }
  260. .wp-block-file a.wp-block-file__button:hover {
  261. background-color: transparent;
  262. border-color: currentColor;
  263. color: #83b6cc;
  264. }
  265. .wp-block-file a.wp-block-file__button:focus,
  266. .wp-block-file a.wp-block-file__button:active {
  267. background-color: #4488a5;
  268. border-color: currentColor;
  269. color: #83b6cc;
  270. }
  271. /* Video */
  272. .wp-block-video video {
  273. width: 100%;
  274. }
  275. /*--------------------------------------------------------------
  276. 4.0 Blocks - Formatting
  277. --------------------------------------------------------------*/
  278. /* Verse */
  279. .wp-block-verse {
  280. font-family: inherit;
  281. font-size: inherit;
  282. font-style: italic;
  283. padding: 0;
  284. }
  285. /* Preformatted */
  286. .wp-block-preformatted {
  287. padding: 0;
  288. }
  289. /* Pullquote */
  290. .wp-block-pullquote blockquote p {
  291. text-align: center;
  292. }
  293. .wp-block-pullquote cite {
  294. font-family: "Lora", Georgia, serif;
  295. font-size: 18px;
  296. font-weight: normal;
  297. letter-spacing: 0;
  298. text-align: center;
  299. text-transform: none;
  300. }
  301. .wp-block-pullquote cite:before {
  302. display: none;
  303. }
  304. /* Table */
  305. .wp-block-table th {
  306. text-align: left;
  307. }
  308. @media (min-width: 950px) {
  309. body:not(.pique-sidebar).pique-singular .wp-block-table.alignwide,
  310. body.home .wp-block-table.alignwide {
  311. width: 1115px;
  312. }
  313. }
  314. body:not(.pique-sidebar).pique-singular .wp-block-table.alignfull,
  315. body.home .wp-block-table.alignwide .wp-block-table.alignfull {
  316. width: 96vw;
  317. }
  318. .rtl .wp-block-table th {
  319. text-align: right;
  320. }
  321. /*--------------------------------------------------------------
  322. 5.0 Blocks - Layout Elements
  323. --------------------------------------------------------------*/
  324. /* Buttons */
  325. .wp-block-button .wp-block-button__link {
  326. border: 2px solid transparent;
  327. display: inline-block;
  328. font-family: Karla, Arial, sans-serif;
  329. font-size: 15.2px;
  330. font-size: 0.95rem;
  331. font-weight: bold;
  332. letter-spacing: 1px;
  333. line-height: 1;
  334. padding: 1em 3em;
  335. text-shadow: none;
  336. text-transform: uppercase;
  337. transition: background-color 0.125s ease-in;
  338. -webkit-appearance: none;
  339. }
  340. .wp-block-button__link {
  341. background-color: #83b6cc;
  342. border-radius: 2em;
  343. color: #eff6f9;
  344. }
  345. .is-style-outline .wp-block-button__link {
  346. border-color: currentColor;
  347. background: transparent;
  348. }
  349. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  350. color: #83b6cc;
  351. }
  352. .wp-block-button .wp-block-button__link:hover {
  353. background-color: transparent;
  354. border-color: currentColor;
  355. color: #83b6cc;
  356. }
  357. .wp-block-button .wp-block-button__link:focus,
  358. .wp-block-button .wp-block-button__link:active {
  359. background-color: #4488a5;
  360. border-color: currentColor;
  361. color: #83b6cc;
  362. }
  363. @media (max-width: 767px) {
  364. .wp-block-button .wp-block-button__link {
  365. width: 75%;
  366. }
  367. }
  368. /* Separator */
  369. .wp-block-separator {
  370. border: 0;
  371. }
  372. .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  373. margin-left: auto;
  374. margin-right: auto;
  375. max-width: 100px;
  376. }
  377. /* Media & Text */
  378. .wp-block-media-text {
  379. margin-bottom: 1.5em;
  380. }
  381. .wp-block-media-text *:last-child {
  382. margin-bottom: 0;
  383. }
  384. /*--------------------------------------------------------------
  385. 6.0 Blocks - Widgets
  386. --------------------------------------------------------------*/
  387. /* General Widget styles */
  388. .wp-block-categories.aligncenter,
  389. .wp-block-categories.aligncenter ul,
  390. .wp-block-archives.aligncenter,
  391. .wp-block-latest-posts.aligncenter,
  392. .wp-block-latest-comments.aligncenter {
  393. list-style-position: inside;
  394. text-align: center;
  395. }
  396. /* Latest Comments */
  397. .wp-block-latest-comments {
  398. margin-left: 0;
  399. margin-right: 0;
  400. }
  401. .wp-block-latest-comments__comment-excerpt p {
  402. font-size: inherit;
  403. }
  404. .wp-block-latest-comments__comment-date {
  405. color: inherit;
  406. font-family: Karla, Arial, sans-serif;
  407. font-size: 13.6px;
  408. font-size: 0.85rem;
  409. font-weight: bold;
  410. letter-spacing: 0.05rem;
  411. text-transform: uppercase;
  412. }
  413. /* Latest Posts */
  414. .wp-block-latest-posts.is-grid {
  415. margin-left: 0;
  416. margin-right: 0;
  417. }
  418. /*--------------------------------------------------------------
  419. 7.0 Blocks - Colors
  420. --------------------------------------------------------------*/
  421. .has-light-blue-color,
  422. .has-light-blue-color:hover,
  423. .has-light-blue-color:focus,
  424. .has-light-blue-color:active,
  425. .has-light-blue-color:visited {
  426. color: #83b6cc;
  427. }
  428. .has-light-blue-background-color,
  429. .has-light-blue-background-color:hover,
  430. .has-light-blue-background-color:focus,
  431. .has-light-blue-background-color:active,
  432. .has-light-blue-background-color:visited {
  433. background-color: #83b6cc;
  434. }
  435. .has-medium-blue-color,
  436. .has-medium-blue-color:hover,
  437. .has-medium-blue-color:focus,
  438. .has-medium-blue-color:active,
  439. .has-medium-blue-color:visited {
  440. color: #3c7993;
  441. }
  442. .has-medium-blue-background-color,
  443. .has-medium-blue-background-color:hover,
  444. .has-medium-blue-background-color:focus,
  445. .has-medium-blue-background-color:active,
  446. .has-medium-blue-background-color:visited {
  447. background-color: #3c7993;
  448. }
  449. .has-dark-blue-color,
  450. .has-dark-blue-color:hover,
  451. .has-dark-blue-color:focus,
  452. .has-dark-blue-color:active,
  453. .has-dark-blue-color:visited {
  454. color: #293940;
  455. }
  456. .has-dark-blue-background-color,
  457. .has-dark-blue-background-color:hover,
  458. .has-dark-blue-background-color:focus,
  459. .has-dark-blue-background-color:active,
  460. .has-dark-blue-background-color:visited {
  461. background-color: #293940;
  462. }
  463. .has-dark-brown-color,
  464. .has-dark-brown-color:hover,
  465. .has-dark-brown-color:focus,
  466. .has-dark-brown-color:active,
  467. .has-dark-brown-color:visited {
  468. color: #2d2a26;
  469. }
  470. .has-dark-brown-background-color,
  471. .has-dark-brown-background-color:hover,
  472. .has-dark-brown-background-color:focus,
  473. .has-dark-brown-background-color:active,
  474. .has-dark-brown-background-color:visited {
  475. background-color: #2d2a26;
  476. }
  477. .has-dark-gray-color,
  478. .has-dark-gray-color:hover,
  479. .has-dark-gray-color:focus,
  480. .has-dark-gray-color:active,
  481. .has-dark-gray-color:visited {
  482. color: #5d5d5d;
  483. }
  484. .has-dark-gray-background-color,
  485. .has-dark-gray-background-color:hover,
  486. .has-dark-gray-background-color:focus,
  487. .has-dark-gray-background-color:active,
  488. .has-dark-gray-background-color:visited {
  489. background-color: #5d5d5d;
  490. }
  491. .has-medium-gray-color,
  492. .has-medium-gray-color:hover,
  493. .has-medium-gray-color:focus,
  494. .has-medium-gray-color:active,
  495. .has-medium-gray-color:visited {
  496. color: #a9a9a9;
  497. }
  498. .has-medium-gray-background-color,
  499. .has-medium-gray-background-color:hover,
  500. .has-medium-gray-background-color:focus,
  501. .has-medium-gray-background-color:active,
  502. .has-medium-gray-background-color:visited {
  503. background-color: #a9a9a9;
  504. }
  505. .has-white-color,
  506. .has-white-color:hover,
  507. .has-white-color:focus,
  508. .has-white-color:active,
  509. .has-white-color:visited {
  510. color: #fff;
  511. }
  512. .has-white-background-color,
  513. .has-white-background-color:hover,
  514. .has-white-background-color:focus,
  515. .has-white-background-color:active,
  516. .has-white-background-color:visited {
  517. background-color: #fff;
  518. }