blocks.css 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  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. /* Embed */
  157. .wp-block-embed.is-type-video blockquote {
  158. padding: 0;
  159. }
  160. .wp-block-embed.is-type-video blockquote:before {
  161. content: none;
  162. }
  163. /*--------------------------------------------------------------
  164. 3.0 Blocks - Formatting Blocks
  165. --------------------------------------------------------------*/
  166. /* Verse */
  167. .wp-block-verse {
  168. background: transparent;
  169. color: inherit;
  170. font-family: inherit;
  171. font-size: inherit;
  172. font-style: italic;
  173. line-height: inherit;
  174. margin-bottom: 1.6em;
  175. max-width: 100%;
  176. overflow: auto;
  177. padding: 0;
  178. }
  179. /* Code */
  180. .wp-block-code {
  181. font-family: "Courier 10 Pitch", Courier, monospace;
  182. overflow: auto;
  183. }
  184. /* Preformatted */
  185. .wp-block-preformatted {
  186. overflow: auto;
  187. }
  188. /* Pullquote */
  189. .wp-block-pullquote {
  190. margin: 0;
  191. padding: 0;
  192. border: 0;
  193. }
  194. .wp-block-pullquote blockquote {
  195. border: none;
  196. font-family: "Yrsa", Georgia, serif;
  197. font-size: 32px;
  198. font-style: normal;
  199. margin-left: 0;
  200. margin-bottom: 1.6em;
  201. padding-left: 1.6em;
  202. padding-right: 0;
  203. position: relative;
  204. }
  205. .wp-block-pullquote.alignleft {
  206. margin-right: 1.6em;
  207. }
  208. .wp-block-pullquote.alignright p {
  209. margin-left: 1.6em;
  210. }
  211. .wp-block-pullquote.alignleft p,
  212. .wp-block-pullquote.alignright p {
  213. font-size: 23px;
  214. }
  215. .rtl .wp-block-pullquote blockquote {
  216. border: 0;
  217. padding-right: 1.6em;
  218. padding-left: 0;
  219. }
  220. .wp-block-pullquote p {
  221. margin: 0;
  222. }
  223. .wp-block-pullquote cite {
  224. font-size: 16px;
  225. }
  226. /*--------------------------------------------------------------
  227. 4.0 Blocks - Layout Elements
  228. --------------------------------------------------------------*/
  229. /* Buttons */
  230. .wp-block-button .wp-block-button__link {
  231. cursor: pointer;
  232. display: inline-block;
  233. font-size: 15px;
  234. font-weight: bold;
  235. letter-spacing: 1px;
  236. line-height: 2;
  237. padding: .25em 1em .4em;
  238. text-align: center;
  239. vertical-align: middle;
  240. text-transform: uppercase;
  241. box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  242. -webkit-appearance: none;
  243. text-decoration: none;
  244. }
  245. .wp-block-button__link {
  246. background-color: #15b6b8;
  247. color: #fff;
  248. }
  249. .is-style-outline .wp-block-button__link {
  250. border-color: currentColor;
  251. }
  252. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  253. color: #15b6b8;
  254. }
  255. .is-style-outline .wp-block-button__link {
  256. box-shadow: none;
  257. }
  258. .entry-content .wp-block-button .wp-block-button__link:active,
  259. .entry-content .wp-block-button .wp-block-button__link:focus,
  260. .entry-content .wp-block-button .wp-block-button__link:hover {
  261. background-color: #15b6b8;
  262. color: #fff;
  263. opacity: 0.85;
  264. }
  265. /* Seperator */
  266. hr.wp-block-separator {
  267. border: 0;
  268. }
  269. .wp-block-separator {
  270. border: 0;
  271. height: 1px;
  272. margin: 1.6em auto;
  273. background-color: #e6e6e6;
  274. max-width: 66%;
  275. }
  276. .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  277. margin-left: auto;
  278. margin-right: auto;
  279. max-width: 100px;
  280. }
  281. .wp-block-separator.is-style-wide {
  282. max-width: 100%;
  283. }
  284. /*--------------------------------------------------------------
  285. 5.0 Blocks - Widget Blocks
  286. --------------------------------------------------------------*/
  287. /* General Widget styles */
  288. .wp-block-categories.aligncenter,
  289. .wp-block-categories.aligncenter ul,
  290. .wp-block-archives.aligncenter,
  291. .wp-block-latest-posts.aligncenter,
  292. .wp-block-latest-comments.aligncenter {
  293. list-style-position: inside;
  294. text-align: center;
  295. }
  296. /* Categories */
  297. .wp-block-categories.aligncenter {
  298. margin-left: 1.6em;
  299. margin-right: 1.6em;
  300. text-align: center;
  301. }
  302. .wp-block-categories-list.alignleft {
  303. margin-left: 1.6em;
  304. }
  305. /* Latest Comments */
  306. .wp-block-latest-comments {
  307. margin-left: 0;
  308. margin-right: 0;
  309. }
  310. .wp-block-latest-comments,
  311. .wp-block-latest-comments__comment-excerpt p,
  312. .wp-block-latest-comments__comment-date {
  313. font-size: inherit;
  314. }
  315. .editor-block-list__block .wp-block-latest-comments__comment-meta a {
  316. box-shadow: none;
  317. font-weight: 700;
  318. text-decoration: none;
  319. }
  320. .wp-block-latest-comments .wp-block-latest-comments__comment {
  321. border-top: 1px solid #e6e6e6;
  322. margin-bottom: 0;
  323. padding: 1.6em 0;
  324. }
  325. .wp-block-latest-comments__comment-excerpt p:last-child {
  326. margin-bottom: 0;
  327. }
  328. /* Latest Posts */
  329. .wp-block-latest-posts.is-grid {
  330. margin-left: 0;
  331. margin-right: 0;
  332. }
  333. /*--------------------------------------------------------------
  334. 6.0 Blocks - Colors
  335. --------------------------------------------------------------*/
  336. .has-dark-gray-color,
  337. .has-dark-gray-color:hover,
  338. .has-dark-gray-color:focus,
  339. .has-dark-gray-color:active {
  340. color: #444340;
  341. }
  342. .has-dark-gray-background-color,
  343. .has-dark-gray-background-color:hover,
  344. .has-dark-gray-background-color:focus,
  345. .has-dark-gray-background-color:active {
  346. background-color: #444340;
  347. }
  348. .has-medium-gray-color,
  349. .has-medium-gray-color:hover,
  350. .has-medium-gray-color:focus,
  351. .has-medium-gray-color:active {
  352. color: #a8a6a1;
  353. }
  354. .has-medium-gray-background-color,
  355. .has-medium-gray-background-color:hover,
  356. .has-medium-gray-background-color:focus,
  357. .has-medium-gray-background-color:active {
  358. background-color: #a8a6a1;
  359. }
  360. .has-light-gray-color,
  361. .has-light-gray-color:hover,
  362. .has-light-gray-color:focus,
  363. .has-light-gray-color:active {
  364. color: #e6e6e6;
  365. }
  366. .has-light-gray-background-color,
  367. .has-light-gray-background-color:hover,
  368. .has-light-gray-background-color:focus,
  369. .has-light-gray-background-color:active {
  370. background-color: #e6e6e6;
  371. }
  372. .has-white-color,
  373. .has-white-color:hover,
  374. .has-white-color:focus,
  375. .has-white-color:active {
  376. color: #fff;
  377. }
  378. .has-white-background-color,
  379. .has-white-background-color:hover,
  380. .has-white-background-color:focus,
  381. .has-white-background-color:active {
  382. background-color: #fff;
  383. }
  384. .has-blue-color,
  385. .has-blue-color:hover,
  386. .has-blue-color:focus,
  387. .has-blue-color:active {
  388. color: #15b6b8;
  389. }
  390. .has-blue-background-color,
  391. .has-blue-background-color:hover,
  392. .has-blue-background-color:focus,
  393. .has-blue-background-color:active {
  394. background-color: #15b6b8;
  395. }
  396. .has-dark-blue-color,
  397. .has-dark-blue-color:hover,
  398. .has-dark-blue-color:focus,
  399. .has-dark-blue-color:active {
  400. color: #0c8384;
  401. }
  402. .has-dark-blue-background-color,
  403. .has-dark-blue-background-color:hover,
  404. .has-dark-blue-background-color:focus,
  405. .has-dark-blue-background-color:active {
  406. background-color: #0c8384;
  407. }
  408. .has-black-color,
  409. .has-black-color:hover,
  410. .has-black-color:focus,
  411. .has-black-color:active {
  412. color: #404040;
  413. }
  414. .has-black-background-color,
  415. .has-black-background-color:hover,
  416. .has-black-background-color:focus,
  417. .has-black-background-color:active {
  418. background-color: #404040;
  419. }