blocks.css 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  1. /*
  2. Theme Name: Dara
  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. clear: both;
  21. font-size: 15px;
  22. font-style: italic;
  23. margin: 0.8em 0;
  24. text-align: center;
  25. }
  26. /*--------------------------------------------------------------
  27. 2.0 Blocks - Common Blocks
  28. --------------------------------------------------------------*/
  29. /* Posts */
  30. .wp-block-newspack-blocks-homepage-articles .entry-meta {
  31. position: initial;
  32. width: inherit;
  33. }
  34. /* Paragraph */
  35. p.has-drop-cap:not(:focus)::first-letter {
  36. font-size: 64px;
  37. }
  38. /* Image */
  39. .wp-block-image .aligncenter img {
  40. display: block;
  41. margin-left: auto;
  42. margin-right: auto;
  43. }
  44. /* Gallery */
  45. .wp-block-gallery {
  46. margin-bottom: 1.6em;
  47. margin-left: auto;
  48. }
  49. .wp-block-gallery figcaption {
  50. margin-bottom: 0;
  51. }
  52. /* Quote */
  53. blockquote cite {
  54. font-style: normal;
  55. }
  56. .wp-block-quote,
  57. .wp-block-quote.is-large p,
  58. .wp-block-quote.is-style-large p {
  59. font-style: normal;
  60. }
  61. .wp-block-quote[style*="text-align:right"] {
  62. padding-left: 0;
  63. padding-right: 2.4em;
  64. }
  65. .wp-block-quote[style*="text-align:right"]::before {
  66. left: auto;
  67. right: -10px;
  68. }
  69. .rtl .wp-block-quote[style*="text-align:left"] {
  70. padding-left: 2.4em;
  71. padding-right: 0;
  72. }
  73. .rtl .wp-block-quote[style*="text-align:left"]::before {
  74. left: -10px;
  75. right: auto;
  76. }
  77. .wp-block-quote cite {
  78. display: block;
  79. font-family: "Source Sans Pro", Helvetica, sans-serif;
  80. font-size: 16px;
  81. font-style: normal;
  82. font-weight: bold;
  83. margin: .4em 0;
  84. text-transform: uppercase;
  85. }
  86. .wp-block-quote.is-large cite,
  87. .wp-block-quote.is-large footer,
  88. .wp-block-quote.is-style-large cite,
  89. .wp-block-quote.is-style-large footer {
  90. text-align: left;
  91. }
  92. .wp-block-quote.is-large,
  93. .wp-block-quote.is-style-large {
  94. padding-left: 1.6em;
  95. }
  96. .wp-block-quote.is-large,
  97. .wp-block-quote.is-style-large,
  98. .wp-block-quote.is-large p,
  99. .wp-block-quote.is-style-large p {
  100. font-size: 32px;
  101. }
  102. .wp-block-quote.is-large p,
  103. .wp-block-quote.is-style-large p {
  104. margin-bottom: .8em;
  105. }
  106. .rtl .wp-block-quote {
  107. border: 0;
  108. }
  109. .rtl .wp-block-quote.is-large cite,
  110. .rtl .wp-block-quote.is-large footer,
  111. .rtl .wp-block-quote.is-style-large cite,
  112. .rtl .wp-block-quote.is-style-large footer {
  113. text-align: right;
  114. }
  115. .rtl .wp-block-quote.is-large,
  116. .rtl .wp-block-quote.is-style-large {
  117. padding-left: 0;
  118. padding-right: 1.6em;
  119. }
  120. /* Audio */
  121. .wp-block-audio audio {
  122. display: block;
  123. width: 100%;
  124. }
  125. /* Cover */
  126. .wp-block-cover,
  127. .wp-block-cover.alignleft,
  128. .wp-block-cover.alignright,
  129. .wp-block-cover.aligncenter {
  130. display: flex;
  131. }
  132. /* File */
  133. .wp-block-file .wp-block-file__button,
  134. .wp-block-file .wp-block-file__button:visited {
  135. background-color: #15b6b8;
  136. border-style: none;
  137. color: #fff;
  138. cursor: pointer;
  139. display: inline-block;
  140. font-size: 15px;
  141. font-weight: bold;
  142. letter-spacing: 1px;
  143. line-height: 2;
  144. padding: .25em 1em .4em;
  145. text-align: center;
  146. vertical-align: middle;
  147. text-transform: uppercase;
  148. border-radius: 3px;
  149. box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  150. -webkit-appearance: none;
  151. }
  152. .wp-block-file .wp-block-file__button:focus {
  153. opacity: 0.85;
  154. color: #fff;
  155. }
  156. /*--------------------------------------------------------------
  157. 3.0 Blocks - Formatting Blocks
  158. --------------------------------------------------------------*/
  159. /* Verse */
  160. .wp-block-verse {
  161. background: transparent;
  162. color: inherit;
  163. font-family: inherit;
  164. font-size: inherit;
  165. font-style: italic;
  166. line-height: inherit;
  167. margin-bottom: 1.6em;
  168. max-width: 100%;
  169. overflow: auto;
  170. padding: 0;
  171. }
  172. /* Code */
  173. .wp-block-code {
  174. font-family: "Courier 10 Pitch", Courier, monospace;
  175. overflow: auto;
  176. }
  177. /* Preformatted */
  178. .wp-block-preformatted {
  179. overflow: auto;
  180. }
  181. /* Pullquote */
  182. .wp-block-pullquote {
  183. margin: 0;
  184. padding: 0;
  185. border: 0;
  186. }
  187. .wp-block-pullquote blockquote {
  188. border: none;
  189. font-family: "Yrsa", Georgia, serif;
  190. font-size: 32px;
  191. font-style: normal;
  192. margin-left: 0;
  193. margin-bottom: 1.6em;
  194. padding-left: 1.6em;
  195. padding-right: 0;
  196. position: relative;
  197. }
  198. .wp-block-pullquote.alignleft {
  199. margin-right: 1.6em;
  200. }
  201. .wp-block-pullquote.alignright p {
  202. margin-left: 1.6em;
  203. }
  204. .wp-block-pullquote.alignleft p,
  205. .wp-block-pullquote.alignright p {
  206. font-size: 23px;
  207. }
  208. .rtl .wp-block-pullquote blockquote {
  209. border: 0;
  210. padding-right: 1.6em;
  211. padding-left: 0;
  212. }
  213. .wp-block-pullquote p {
  214. margin: 0;
  215. }
  216. .wp-block-pullquote cite {
  217. font-size: 16px;
  218. }
  219. /*--------------------------------------------------------------
  220. 4.0 Blocks - Layout Elements
  221. --------------------------------------------------------------*/
  222. /* Buttons */
  223. .wp-block-button .wp-block-button__link {
  224. cursor: pointer;
  225. display: inline-block;
  226. font-size: 15px;
  227. font-weight: bold;
  228. letter-spacing: 1px;
  229. line-height: 2;
  230. padding: .25em 1em .4em;
  231. text-align: center;
  232. vertical-align: middle;
  233. text-transform: uppercase;
  234. box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  235. -webkit-appearance: none;
  236. text-decoration: none;
  237. }
  238. .wp-block-button__link {
  239. background-color: #15b6b8;
  240. color: #fff;
  241. }
  242. .is-style-outline .wp-block-button__link {
  243. border-color: currentColor;
  244. }
  245. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  246. color: #15b6b8;
  247. }
  248. .is-style-outline .wp-block-button__link {
  249. box-shadow: none;
  250. }
  251. .entry-content .wp-block-button .wp-block-button__link:active,
  252. .entry-content .wp-block-button .wp-block-button__link:focus,
  253. .entry-content .wp-block-button .wp-block-button__link:hover {
  254. background-color: #15b6b8;
  255. color: #fff;
  256. opacity: 0.85;
  257. }
  258. /* Seperator */
  259. hr.wp-block-separator {
  260. border: 0;
  261. }
  262. .wp-block-separator {
  263. border: 0;
  264. height: 1px;
  265. margin: 1.6em auto;
  266. background-color: #e6e6e6;
  267. max-width: 66%;
  268. }
  269. .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  270. margin-left: auto;
  271. margin-right: auto;
  272. max-width: 100px;
  273. }
  274. .wp-block-separator.is-style-wide {
  275. max-width: 100%;
  276. }
  277. /*--------------------------------------------------------------
  278. 5.0 Blocks - Widget Blocks
  279. --------------------------------------------------------------*/
  280. /* General Widget styles */
  281. .wp-block-categories.aligncenter,
  282. .wp-block-categories.aligncenter ul,
  283. .wp-block-archives.aligncenter,
  284. .wp-block-latest-posts.aligncenter,
  285. .wp-block-latest-comments.aligncenter {
  286. list-style-position: inside;
  287. text-align: center;
  288. }
  289. /* Categories */
  290. .wp-block-categories.aligncenter {
  291. margin-left: 1.6em;
  292. margin-right: 1.6em;
  293. text-align: center;
  294. }
  295. .wp-block-categories-list.alignleft {
  296. margin-left: 1.6em;
  297. }
  298. /* Latest Comments */
  299. .wp-block-latest-comments {
  300. margin-left: 0;
  301. margin-right: 0;
  302. }
  303. .wp-block-latest-comments,
  304. .wp-block-latest-comments__comment-excerpt p,
  305. .wp-block-latest-comments__comment-date {
  306. font-size: inherit;
  307. }
  308. .editor-block-list__block .wp-block-latest-comments__comment-meta a {
  309. box-shadow: none;
  310. font-weight: 700;
  311. text-decoration: none;
  312. }
  313. .wp-block-latest-comments .wp-block-latest-comments__comment {
  314. border-top: 1px solid #e6e6e6;
  315. margin-bottom: 0;
  316. padding: 1.6em 0;
  317. }
  318. .wp-block-latest-comments__comment-excerpt p:last-child {
  319. margin-bottom: 0;
  320. }
  321. /* Latest Posts */
  322. .wp-block-latest-posts.is-grid {
  323. margin-left: 0;
  324. margin-right: 0;
  325. }
  326. /*--------------------------------------------------------------
  327. 6.0 Blocks - Colors
  328. --------------------------------------------------------------*/
  329. .has-dark-gray-color,
  330. .has-dark-gray-color:hover,
  331. .has-dark-gray-color:focus,
  332. .has-dark-gray-color:active {
  333. color: #444340;
  334. }
  335. .has-dark-gray-background-color,
  336. .has-dark-gray-background-color:hover,
  337. .has-dark-gray-background-color:focus,
  338. .has-dark-gray-background-color:active {
  339. background-color: #444340;
  340. }
  341. .has-medium-gray-color,
  342. .has-medium-gray-color:hover,
  343. .has-medium-gray-color:focus,
  344. .has-medium-gray-color:active {
  345. color: #a8a6a1;
  346. }
  347. .has-medium-gray-background-color,
  348. .has-medium-gray-background-color:hover,
  349. .has-medium-gray-background-color:focus,
  350. .has-medium-gray-background-color:active {
  351. background-color: #a8a6a1;
  352. }
  353. .has-light-gray-color,
  354. .has-light-gray-color:hover,
  355. .has-light-gray-color:focus,
  356. .has-light-gray-color:active {
  357. color: #e6e6e6;
  358. }
  359. .has-light-gray-background-color,
  360. .has-light-gray-background-color:hover,
  361. .has-light-gray-background-color:focus,
  362. .has-light-gray-background-color:active {
  363. background-color: #e6e6e6;
  364. }
  365. .has-white-color,
  366. .has-white-color:hover,
  367. .has-white-color:focus,
  368. .has-white-color:active {
  369. color: #fff;
  370. }
  371. .has-white-background-color,
  372. .has-white-background-color:hover,
  373. .has-white-background-color:focus,
  374. .has-white-background-color:active {
  375. background-color: #fff;
  376. }
  377. .has-blue-color,
  378. .has-blue-color:hover,
  379. .has-blue-color:focus,
  380. .has-blue-color:active {
  381. color: #15b6b8;
  382. }
  383. .has-blue-background-color,
  384. .has-blue-background-color:hover,
  385. .has-blue-background-color:focus,
  386. .has-blue-background-color:active {
  387. background-color: #15b6b8;
  388. }
  389. .has-dark-blue-color,
  390. .has-dark-blue-color:hover,
  391. .has-dark-blue-color:focus,
  392. .has-dark-blue-color:active {
  393. color: #0c8384;
  394. }
  395. .has-dark-blue-background-color,
  396. .has-dark-blue-background-color:hover,
  397. .has-dark-blue-background-color:focus,
  398. .has-dark-blue-background-color:active {
  399. background-color: #0c8384;
  400. }
  401. .has-black-color,
  402. .has-black-color:hover,
  403. .has-black-color:focus,
  404. .has-black-color:active {
  405. color: #404040;
  406. }
  407. .has-black-background-color,
  408. .has-black-background-color:hover,
  409. .has-black-background-color:focus,
  410. .has-black-background-color:active {
  411. background-color: #404040;
  412. }