blocks.css 15 KB

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