blocks.css 15 KB

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