blocks.css 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. /*
  2. Theme Name: Canard
  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. color: #777;
  21. font-family: Lato, sans-serif;
  22. font-size: 16px;
  23. line-height: 1.25;
  24. max-width: 100%;
  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.alignleft,
  36. .wp-block-cover.alignright,
  37. .wp-block-cover.aligncenter {
  38. display: flex;
  39. }
  40. /* Gallery */
  41. .wp-block-gallery {
  42. margin-bottom: 30px;
  43. margin-left: auto;
  44. }
  45. /* Quote */
  46. .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
  47. .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
  48. }
  49. .rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
  50. .rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
  51. }
  52. .wp-block-quote cite {
  53. font-style: normal;
  54. }
  55. .wp-block-quote cite:before {
  56. }
  57. .wp-block-quote.is-large,
  58. .wp-block-quote.is-style-large,
  59. .wp-block-quote.is-large p,
  60. .wp-block-quote.is-style-large p {
  61. font-size: 120%;
  62. }
  63. /* Audio */
  64. .wp-block-audio audio {
  65. display: block;
  66. width: 100%;
  67. }
  68. /* File */
  69. .wp-block-file a.wp-block-file__button {
  70. background: #d11415;
  71. border: 2px solid #d11415;
  72. border-radius: 0;
  73. color: #fff;
  74. font-family: Lato, sans-serif;
  75. font-weight: bold;
  76. padding: 5.5px 13px;
  77. text-transform: uppercase;
  78. }
  79. .wp-block-file a.wp-block-file__button:hover,
  80. .wp-block-file a.wp-block-file__button:focus {
  81. background: #fff;
  82. color: #d11415;
  83. outline: none;
  84. }
  85. .wp-block-file a.wp-block-file__button:focus {
  86. background: #fff;
  87. color: #d11415;
  88. outline: none;
  89. }
  90. .rtl .wp-block-file * + .wp-block-file__button {
  91. margin-left: 0.75em;
  92. margin-right: 0;
  93. }
  94. /*--------------------------------------------------------------
  95. 3.0 Blocks - Formatting Blocks
  96. --------------------------------------------------------------*/
  97. /* Verse */
  98. .wp-block-verse {
  99. background: transparent;
  100. border: 0;
  101. color: inherit;
  102. font-family: inherit;
  103. line-height: inherit;
  104. margin-bottom: 30px;
  105. max-width: 100%;
  106. overflow: auto;
  107. padding: 0;
  108. }
  109. /* Code */
  110. .wp-block-code {
  111. font-family: Inconsolata, monospace;
  112. }
  113. /* Pullquote */
  114. .wp-block-pullquote {
  115. margin: 0;
  116. padding: 0;
  117. border: 0;
  118. }
  119. .wp-block-pullquote blockquote {
  120. border-top: 4px solid currentColor;
  121. border-bottom: 2px solid currentColor;
  122. color: #555;
  123. font-style: italic;
  124. margin: 15px 0 30px;
  125. padding: 15px 0;
  126. position: relative;
  127. }
  128. .wp-block-pullquote blockquote:before {
  129. display: none;
  130. }
  131. .wp-block-pullquote p,
  132. .wp-block-pullquote.alignleft p,
  133. .wp-block-pullquote.alignright p {
  134. font-size: 20px;
  135. }
  136. .wp-block-pullquote.alignleft cite,
  137. .wp-block-pullquote.alignright cite {
  138. font-size: 16px;
  139. }
  140. .rtl .wp-block-pullquote blockquote {
  141. }
  142. .wp-block-pullquote p {
  143. }
  144. .wp-block-pullquote cite {
  145. text-transform: none;
  146. font-size: inherit;
  147. font-weight: bold;
  148. }
  149. .wp-block-pullquote cite:before {
  150. }
  151. /* Table */
  152. .wp-block-table,
  153. .wp-block-table th,
  154. .wp-block-table td {
  155. }
  156. .wp-block-table {
  157. }
  158. .wp-block-table th,
  159. .wp-block-table td {
  160. }
  161. .wp-block-table th {
  162. }
  163. .wp-block-table td {
  164. }
  165. .rtl .wp-block-table th,
  166. .rtl .wp-block-table td {
  167. }
  168. /*--------------------------------------------------------------
  169. 4.0 Blocks - Layout Elements
  170. --------------------------------------------------------------*/
  171. /* Buttons */
  172. .wp-block-button .wp-block-button__link {
  173. border: 2px solid;
  174. display: inline-block;
  175. font-family: Lato, sans-serif;
  176. font-weight: bold;
  177. padding: 5.5px 13px;
  178. text-transform: uppercase;
  179. }
  180. .wp-block-button__link:not(.has-background) {
  181. background: #d11415;
  182. border-color: #d11415;
  183. }
  184. .wp-block-button__link:not(.has-text-color) {
  185. color: #fff;
  186. }
  187. .wp-block-button .wp-block-button__link:active,
  188. .wp-block-button .wp-block-button__link:focus,
  189. .wp-block-button .wp-block-button__link:hover {
  190. color: #d11415;
  191. background: #fff;
  192. border-color: #d11415;
  193. }
  194. .is-style-outline .wp-block-button__link {
  195. background: transparent;
  196. border-color: currentColor;
  197. }
  198. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  199. color: #d11415;
  200. }
  201. .is-style-outline .wp-block-button__link:not(.has-background):active,
  202. .is-style-outline .wp-block-button__link:not(.has-background):hover,
  203. .is-style-outline .wp-block-button__link:not(.has-background):focus,
  204. .is-style-outline .wp-block-button__link:not(.has-text-color):active,
  205. .is-style-outline .wp-block-button__link:not(.has-text-color):hover,
  206. .is-style-outline .wp-block-button__link:not(.has-text-color):focus {
  207. border-color: currentColor;
  208. color: currentColor;
  209. }
  210. /* Seperator */
  211. hr.wp-block-separator {
  212. border: 0;
  213. }
  214. .wp-block-separator {
  215. background-color: #ddd;
  216. border: 0;
  217. height: 1px;
  218. margin-bottom: 30px;
  219. max-width: 66%;
  220. }
  221. .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  222. margin-left: auto;
  223. margin-right: auto;
  224. max-width: 100px;
  225. }
  226. .wp-block-separator.is-style-wide {
  227. max-width: 100%;
  228. }
  229. /*--------------------------------------------------------------
  230. 5.0 Blocks - Widget Blocks
  231. --------------------------------------------------------------*/
  232. /* General Widget styles */
  233. .wp-block-categories.aligncenter,
  234. .wp-block-categories.aligncenter ul,
  235. .wp-block-archives.aligncenter,
  236. .wp-block-latest-posts.aligncenter,
  237. .wp-block-latest-comments.aligncenter {
  238. list-style-position: inside;
  239. text-align: center;
  240. }
  241. /* Latest Comments */
  242. .editor-block-list__block .wp-block-latest-comments__comment-meta a {
  243. box-shadow: none;
  244. font-weight: 700;
  245. text-decoration: none;
  246. }
  247. .wp-block-latest-comments__comment-date {
  248. }
  249. .wp-block-latest-comments .wp-block-latest-comments__comment {
  250. border-top: 1px solid #d1d1d1;
  251. margin-bottom: 0;
  252. padding: 30px 0;
  253. }
  254. .wp-block-latest-comments__comment-excerpt p:last-child {
  255. margin-bottom: 0;
  256. }
  257. /*--------------------------------------------------------------
  258. 6.0 Blocks - Colors
  259. --------------------------------------------------------------*/
  260. .has-dark-gray-color,
  261. .has-dark-gray-color:hover,
  262. .has-dark-gray-color:focus,
  263. .has-dark-gray-color:active {
  264. color: #555;
  265. }
  266. .has-dark-gray-background-color,
  267. .has-dark-gray-background-color:hover,
  268. .has-dark-gray-background-color:focus,
  269. .has-dark-gray-background-color:active {
  270. background-color: #555;
  271. }
  272. .has-medium-gray-color,
  273. .has-medium-gray-color:hover,
  274. .has-medium-gray-color:focus,
  275. .has-medium-gray-color:active {
  276. color: #777;
  277. }
  278. .has-medium-gray-background-color,
  279. .has-medium-gray-background-color:hover,
  280. .has-medium-gray-background-color:focus,
  281. .has-medium-gray-background-color:active {
  282. background-color: #777;
  283. }
  284. .has-light-gray-color,
  285. .has-light-gray-color:hover,
  286. .has-light-gray-color:focus,
  287. .has-light-gray-color:active {
  288. color: #ddd;
  289. }
  290. .has-light-gray-background-color,
  291. .has-light-gray-background-color:hover,
  292. .has-light-gray-background-color:focus,
  293. .has-light-gray-background-color:active {
  294. background-color: #ddd;
  295. }
  296. .has-white-color,
  297. .has-white-color:hover,
  298. .has-white-color:focus,
  299. ,.has-white-color:active {
  300. color: #fff;
  301. }
  302. .has-white-background-color,
  303. .has-white-background-color:hover,
  304. .has-white-background-color:focus,
  305. .has-white-background-color:active {
  306. background-color: #fff;
  307. }
  308. .has-red-color,
  309. .has-red-color:hover,
  310. .has-red-color:focus,
  311. .has-red-color:active {
  312. color: #d11415;
  313. }
  314. .has-red-background-color,
  315. .has-red-background-color:hover,
  316. .has-red-background-color:focus,
  317. .has-red-background-color:active {
  318. background-color: #d11415;
  319. }
  320. .has-black-color,
  321. .has-black-color:hover,
  322. .has-black-color:focus,
  323. .has-black-color:active {
  324. color: #222;
  325. }
  326. .has-black-background-color,
  327. .has-black-background-color:hover,
  328. .has-black-background-color:focus,
  329. .has-black-background-color:active {
  330. background-color: #222;
  331. }