blocks.css 10 KB

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