blocks.css 11 KB

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