blocks.css 9.5 KB

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