blocks.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. /*
  2. Theme Name: Apostrophe 2
  3. Description: Used to style Gutenberg Blocks.
  4. */
  5. /*--------------------------------------------------------------
  6. >>> TABLE OF CONTENTS:
  7. ----------------------------------------------------------------
  8. 1.0 General Block Styles
  9. 2.0 Blocks - Common Blocks
  10. 3.0 Blocks - Formatting
  11. 4.0 Blocks - Layout Elements
  12. 5.0 Blocks - Widgets
  13. 6.0 Blocks - Colors
  14. --------------------------------------------------------------*/
  15. /*--------------------------------------------------------------
  16. 1.0 General Block Styles
  17. --------------------------------------------------------------*/
  18. /* Captions */
  19. [class^="wp-block-"] figcaption {
  20. font-style: italic;
  21. line-height: 1.2;
  22. margin-bottom: 0.5em;
  23. margin-top: 0.5em;
  24. text-align: center;
  25. }
  26. /*--------------------------------------------------------------
  27. 2.0 Blocks - Common Blocks
  28. --------------------------------------------------------------*/
  29. /* Paragraph */
  30. p.has-drop-cap:not(:focus)::first-letter {
  31. font-size: 64px;
  32. }
  33. /* Images */
  34. .wp-block-cover,
  35. .wp-block-cover-image,
  36. .wp-block-cover.alignleft,
  37. .wp-block-cover-image.alignleft,
  38. .wp-block-cover.alignright,
  39. .wp-block-cover-image.alignright,
  40. .wp-block-cover.aligncenter,
  41. .wp-block-cover-image.aligncenter {
  42. display: flex;
  43. }
  44. .wp-block-cover.alignfull .wp-block-cover__inner-container {
  45. max-width: 730px;
  46. margin: 0 auto;
  47. }
  48. /* Full Width */
  49. body {
  50. overflow-x: hidden;
  51. }
  52. .apostrophe-2-no-sidebar .alignfull,
  53. .apostrophe-2-no-sidebar .wp-block-group .alignfull {
  54. width: 100vw;
  55. max-width: 100vw;
  56. margin-left: 0;
  57. margin-right: 0;
  58. position: relative;
  59. left: 50%;
  60. transform: translateX( -50% );
  61. }
  62. .rtl.apostrophe-2-no-sidebar .alignfull,
  63. .rtl.apostrophe-2-no-sidebar .wp-block-group .alignfull {
  64. left: auto;
  65. right: 50%;
  66. transform: translateX(50%);
  67. }
  68. .apostrophe-2-no-sidebar .wp-block-columns.alignfull,
  69. .apostrophe-2-no-sidebar .wp-block-latest-comments.alignfull,
  70. .apostrophe-2-no-sidebar .wp-block-archives.alignfull,
  71. .apostrophe-2-no-sidebar .wp-block-categories.alignfull,
  72. .apostrophe-2-no-sidebar .wp-block-archives.alignfull,
  73. .apostrophe-2-no-sidebar .wp-block-latest-posts.alignfull,
  74. .apostrophe-2-no-sidebar .wp-block-file.alignfull {
  75. padding-left: 2em;
  76. padding-right: 2em;
  77. }
  78. .apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignfull iframe {
  79. width: 100% !important;
  80. height: 100% !important;
  81. }
  82. .apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignfull:before {
  83. content: "";
  84. display: block;
  85. }
  86. .apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignfull iframe {
  87. position: absolute;
  88. top: 0;
  89. left: 0;
  90. bottom: 0;
  91. right: 0;
  92. width: 100% !important;
  93. height: 100% !important;
  94. }
  95. /* Wide Width */
  96. @media (min-width: 1024px) {
  97. .apostrophe-2-no-sidebar .alignwide,
  98. .apostrophe-2-no-sidebar .wp-block-group .alignwide {
  99. width: 860px;
  100. max-width: 860px;
  101. margin-left: -65px;
  102. margin-right: -65px;
  103. position: relative;
  104. }
  105. .apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignwide:before {
  106. content: "";
  107. display: block;
  108. }
  109. .apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignwide iframe {
  110. position: absolute;
  111. top: 0;
  112. left: 0;
  113. bottom: 0;
  114. right: 0;
  115. width: 100%;
  116. height: 100%;
  117. }
  118. }
  119. /* Nested Blocks */
  120. .apostrophe-2-no-sidebar *[class^="wp-block"] .alignwide,
  121. .apostrophe-2-no-sidebar *[class^="wp-block"] .alignfull,
  122. .rtl.apostrophe-2-no-sidebar *[class^="wp-block"] .alignwide,
  123. .rtl.apostrophe-2-no-sidebar *[class^="wp-block"] .alignfull {
  124. width: inherit;
  125. max-width: 100%;
  126. margin-left: inherit;
  127. margin-right: inherit;
  128. left: inherit;
  129. transform: inherit;
  130. }
  131. /* Gallery */
  132. .wp-block-gallery {
  133. margin-bottom: 1.5em;
  134. margin-left: auto;
  135. }
  136. .wp-block-gallery figcaption {
  137. margin-bottom: 0;
  138. }
  139. /* Quote */
  140. .wp-block-quote:not(.is-large):not(.is-style-large)[style="text-align:right"] {
  141. border-left: 0;
  142. border-right: 4px solid #d9d9d9;
  143. padding-left: 0;
  144. padding-right: 1.5em;
  145. }
  146. .wp-block-quote:not(.is-large):not(.is-style-large)[style="text-align:center"] {
  147. border: 0;
  148. padding-left: 0;
  149. padding-right: 0;
  150. }
  151. .rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
  152. .rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
  153. }
  154. .wp-block-quote.is-large cite,
  155. .wp-block-quote.is-large footer,
  156. .wp-block-quote.is-style-large cite,
  157. .wp-block-quote.is-style-large footer {
  158. color: gray;
  159. display: block;
  160. font-style: normal;
  161. margin-top: 0.25em;
  162. text-align: left;
  163. }
  164. .rtl .wp-block-quote.is-large cite,
  165. .rtl .wp-block-quote.is-large footer,
  166. .rtl .wp-block-quote.is-style-large cite,
  167. .rtl .wp-block-quote.is-style-large footer {
  168. text-align: right;
  169. }
  170. .wp-block-quote cite:before {
  171. content: "-";
  172. }
  173. .wp-block-quote.is-large,
  174. .wp-block-quote.is-style-large,
  175. .wp-block-quote.is-large p,
  176. .wp-block-quote.is-style-large p {
  177. font-size: 120%;
  178. }
  179. /* Audio */
  180. .wp-block-audio audio {
  181. display: block;
  182. width: 100%;
  183. }
  184. /* File */
  185. .wp-block-file a.wp-block-file__button,
  186. .wp-block-file a.wp-block-file__button:visited {
  187. background: rgba(255, 255, 255, 0.25);
  188. border: 2px solid #117bb8;
  189. border-radius: 0;
  190. color: #159ae7;
  191. cursor: pointer;
  192. display: inline-block;
  193. font-family: "Open Sans", Arial, sans-serif;
  194. font-size: 18px;
  195. font-weight: 300;
  196. line-height: 1;
  197. padding: 12px 24px;
  198. text-align: center;
  199. text-decoration: none;
  200. }
  201. .wp-block-file a.wp-block-file__button:hover {
  202. border: 2px solid #117bb8;
  203. background-color: #e5f4fd;
  204. color: #159ae7;
  205. }
  206. .wp-block-file .wp-block-file__button:focus {
  207. background-color: #ceeafa;
  208. border-color: #0d5c89;
  209. outline: none;
  210. }
  211. .rtl .wp-block-file * + .wp-block-file__button {
  212. margin-left: 0.75em;
  213. margin-right: 0;
  214. }
  215. /*--------------------------------------------------------------
  216. 3.0 Blocks - Formatting Blocks
  217. --------------------------------------------------------------*/
  218. /* Verse */
  219. .wp-block-verse {
  220. background: transparent;
  221. color: inherit;
  222. font-family: inherit;
  223. line-height: inherit;
  224. margin-bottom: 1.5em;
  225. max-width: 100%;
  226. overflow: auto;
  227. padding: 0;
  228. }
  229. /* Code */
  230. .wp-block-code {
  231. font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  232. font-size: 0.85em;
  233. }
  234. /* Pullquote */
  235. .wp-block-pullquote {
  236. margin: 0;
  237. padding: 0;
  238. border: 0;
  239. }
  240. .wp-block-pullquote blockquote {
  241. border-bottom: 2px solid #a6a6a6;
  242. border-left: 0;
  243. border-top: 4px solid #d9d9d9;
  244. color: #a6a6a6;
  245. font-size: 1.2em;
  246. font-style: normal;
  247. margin: 0 0 1.5em;
  248. padding: .75em 0;
  249. }
  250. .wp-block-pullquote.alignleft p,
  251. .wp-block-pullquote.alignright p {
  252. }
  253. .rtl .wp-block-pullquote blockquote {
  254. border-right: 0;
  255. }
  256. .wp-block-pullquote p {
  257. margin: 0;
  258. }
  259. .wp-block-pullquote cite {
  260. font-size: 0.8em;
  261. }
  262. .wp-block-pullquote cite:before {
  263. content: "-";
  264. }
  265. /* Table */
  266. .wp-block-table,
  267. .wp-block-table th,
  268. .wp-block-table td {
  269. }
  270. .wp-block-table {
  271. }
  272. .wp-block-table th,
  273. .wp-block-table td {
  274. }
  275. .wp-block-table th {
  276. }
  277. .wp-block-table td {
  278. }
  279. .rtl .wp-block-table th,
  280. .rtl .wp-block-table td {
  281. }
  282. /*--------------------------------------------------------------
  283. 4.0 Blocks - Layout Elements
  284. --------------------------------------------------------------*/
  285. /* Buttons */
  286. .wp-block-button .wp-block-button__link {
  287. cursor: pointer;
  288. display: inline-block;
  289. font-family: "Open Sans", Arial, sans-serif;
  290. font-size: 18px;
  291. font-weight: 300;
  292. line-height: 1;
  293. margin: 5px 0;
  294. padding: 12px 24px;
  295. text-align: center;
  296. text-decoration: none;
  297. }
  298. .wp-block-button__link:not(.has-background) {
  299. background-color: #117bb8;
  300. }
  301. .wp-block-button__link:not(.has-text-color) {
  302. color: #fff;
  303. }
  304. .wp-block-button.is-style-outline .wp-block-button__link {
  305. background-color: transparent;
  306. }
  307. .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
  308. color: #117bb8;
  309. }
  310. .wp-block-button .wp-block-button__link:active,
  311. .wp-block-button .wp-block-button__link:focus,
  312. .wp-block-button .wp-block-button__link:hover {
  313. background-color: #e5f4fd;
  314. color: #159ae7;
  315. border-color: transparent;
  316. }
  317. /* Group */
  318. .wp-block-group.alignfull .wp-block-group__inner-container {
  319. max-width: 730px;
  320. margin: 0 auto;
  321. }
  322. /* Seperator */
  323. hr.wp-block-separator {
  324. border: 0;
  325. }
  326. .wp-block-separator {
  327. background-color: #ccc;
  328. border: 0;
  329. height: 1px;
  330. margin-bottom: 1.5em;
  331. max-width: 100%;
  332. }
  333. .wp-block-separator:not(.is-style-wide) {
  334. margin-left: auto;
  335. margin-right: auto;
  336. max-width: 100px;
  337. }
  338. .wp-block-separator.is-style-dots::before {
  339. padding-left: 0;
  340. }
  341. /*--------------------------------------------------------------
  342. 5.0 Blocks - Widget Blocks
  343. --------------------------------------------------------------*/
  344. /* General Widget styles */
  345. .wp-block-categories.aligncenter,
  346. .wp-block-categories.aligncenter ul,
  347. .wp-block-archives.aligncenter,
  348. .wp-block-latest-posts.aligncenter,
  349. .wp-block-latest-comments.aligncenter {
  350. list-style-position: inside;
  351. text-align: center;
  352. }
  353. /* Latest Comments */
  354. .wp-block-latest-comments {
  355. padding: 0;
  356. }
  357. .editor-block-list__block .wp-block-latest-comments__comment-meta a {
  358. box-shadow: none;
  359. font-weight: 700;
  360. text-decoration: none;
  361. }
  362. .wp-block-latest-comments .wp-block-latest-comments__comment {
  363. border-top: 1px solid #d1d1d1;
  364. margin-bottom: 0;
  365. padding: 1.5em 0;
  366. }
  367. .wp-block-latest-comments__comment-excerpt p:last-child {
  368. margin-bottom: 0;
  369. }
  370. /*--------------------------------------------------------------
  371. 6.0 Blocks - Colors
  372. --------------------------------------------------------------*/
  373. .has-dark-gray-color,
  374. .has-dark-gray-color:hover,
  375. .has-dark-gray-color:focus,
  376. .has-dark-gray-color:active {
  377. color: #686868;
  378. }
  379. .has-dark-gray-background-color,
  380. .has-dark-gray-background-color:hover,
  381. .has-dark-gray-background-color:focus,
  382. .has-dark-gray-background-color:active {
  383. background-color: #686868;
  384. }
  385. .has-medium-gray-color,
  386. .has-medium-gray-color:hover,
  387. .has-medium-gray-color:focus,
  388. .has-medium-gray-color:active {
  389. color: #999999;
  390. }
  391. .has-medium-gray-background-color,
  392. .has-medium-gray-background-color:hover,
  393. .has-medium-gray-background-color:focus,
  394. .has-medium-gray-background-color:active {
  395. background-color: #999999;
  396. }
  397. .has-light-gray-color,
  398. .has-light-gray-color:hover,
  399. .has-light-gray-color:focus,
  400. .has-light-gray-color:active {
  401. color: #d9d9d9;
  402. }
  403. .has-light-gray-background-color,
  404. .has-light-gray-background-color:hover,
  405. .has-light-gray-background-color:focus,
  406. .has-light-gray-background-color:active {
  407. background-color: #d9d9d9;
  408. }
  409. .has-white-color,
  410. .has-white-color:hover,
  411. .has-white-color:focus,
  412. .has-white-color:active {
  413. color: #fff;
  414. }
  415. .has-white-background-color,
  416. .has-white-background-color:hover,
  417. .has-white-background-color:focus,
  418. .has-white-background-color:active {
  419. background-color: #fff;
  420. }
  421. .has-blue-color,
  422. .has-blue-color:hover,
  423. .has-blue-color:focus,
  424. .has-blue-color:active {
  425. color: #159ae7;
  426. }
  427. .has-blue-background-color,
  428. .has-blue-background-color:hover,
  429. .has-blue-background-color:focus,
  430. .has-blue-background-color:active {
  431. background-color: #159ae7;
  432. }
  433. .has-dark-blue-color,
  434. .has-dark-blue-color:hover,
  435. .has-dark-blue-color:focus,
  436. .has-dark-blue-color:active {
  437. color: #362e77;
  438. }
  439. .has-dark-blue-background-color,
  440. .has-dark-blue-background-color:hover,
  441. .has-dark-blue-background-color:focus,
  442. .has-dark-blue-background-color:active {
  443. background-color: #362e77;
  444. }
  445. .has-black-color,
  446. .has-black-color:hover,
  447. .has-black-color:focus,
  448. .has-black-color:active {
  449. color: #404040;
  450. }
  451. .has-black-background-color,
  452. .has-black-background-color:hover,
  453. .has-black-background-color:focus,
  454. .has-black-background-color:active {
  455. background-color: #404040;
  456. }