blocks.css 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. /*
  2. Theme Name: Gazette
  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-family: Lato, sans-serif;
  21. font-size: 16px;
  22. line-height: 1.25;
  23. }
  24. [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  25. color: inherit;
  26. }
  27. /*--------------------------------------------------------------
  28. 2.0 Blocks - Common Blocks
  29. --------------------------------------------------------------*/
  30. /* Paragraph */
  31. p.has-drop-cap:not(:focus)::first-letter {
  32. font-size: 5em;
  33. margin-top: 0.125em;
  34. }
  35. /* Gallery */
  36. .wp-block-gallery {
  37. margin-bottom: 30px;
  38. }
  39. /* Quote */
  40. .wp-block-quote[style*="text-align:right"]::before {
  41. float: right;
  42. }
  43. .rtl .wp-block-quote[style*="text-align:left"]::before {
  44. float: left;
  45. }
  46. /* Audio */
  47. .wp-block-audio {
  48. margin-bottom: 30px;
  49. }
  50. .wp-block-audio audio {
  51. display: block;
  52. width: 100%;
  53. }
  54. /* Cover */
  55. .wp-block-cover.aligncenter,
  56. .wp-block-cover-image.aligncenter,
  57. .wp-block-cover.alignleft,
  58. .wp-block-cover-image.alignleft,
  59. .wp-block-cover.alignright,
  60. .wp-block-cover-image.alignright {
  61. display: flex;
  62. }
  63. .wp-block-cover .wp-block-cover-text,
  64. .wp-block-cover-image .wp-block-cover-image-text,
  65. .wp-block-cover-image h2 {
  66. font-size: 24px;
  67. font-size: 1.5rem;
  68. }
  69. /* File */
  70. .wp-block-file a.wp-block-file__button {
  71. background: #3863c1;
  72. border: 2px solid #3863c1;
  73. border-radius: 0;
  74. color: #fff;
  75. font-family: Lato, sans-serif;
  76. font-size: 16px;
  77. font-weight: bold;
  78. line-height: 1.875;
  79. padding: 5.5px 13px;
  80. text-transform: uppercase;
  81. }
  82. .wp-block-file a.wp-block-file__button:active,
  83. .wp-block-file a.wp-block-file__button:focus,
  84. .wp-block-file a.wp-block-file__button:hover {
  85. background: #fff;
  86. color: #3863c1;
  87. outline: none;
  88. }
  89. .rtl .wp-block-file * + .wp-block-file__button {
  90. margin-left: 0.75em;
  91. margin-right: 0;
  92. }
  93. /*--------------------------------------------------------------
  94. 3.0 Blocks - Formatting
  95. --------------------------------------------------------------*/
  96. /* Verse */
  97. .wp-block-verse {
  98. background: transparent;
  99. border: 0;
  100. font-family: inherit;
  101. font-size: inherit;
  102. font-style: italic;
  103. padding: 0;
  104. }
  105. /* Pullquote */
  106. .wp-block-pullquote blockquote::before {
  107. display: none;
  108. }
  109. /*--------------------------------------------------------------
  110. 4.0 Blocks - Layout Elements
  111. --------------------------------------------------------------*/
  112. /* Button */
  113. .wp-block-button .wp-block-button__link {
  114. border: 2px solid #3863c1;
  115. font-family: Lato, sans-serif;
  116. font-size: 16px;
  117. font-weight: bold;
  118. line-height: 1.875;
  119. padding: 5.5px 13px;
  120. text-transform: uppercase;
  121. }
  122. .wp-block-button__link,
  123. .wp-block-button__link:visited {
  124. background: #3863c1;
  125. color: #fff;
  126. }
  127. .is-style-outline .wp-block-button__link {
  128. border-color: currentColor;
  129. }
  130. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  131. color: #3863c1;
  132. }
  133. .wp-block-button__link.has-background.has-text-color {
  134. border-color: currentColor;
  135. }
  136. .entry-content .wp-block-button .wp-block-button__link:active,
  137. .entry-content .wp-block-button .wp-block-button__link:focus,
  138. .entry-content .wp-block-button .wp-block-button__link:hover {
  139. background: #fff;
  140. color: #3863c1;
  141. }
  142. /* Seperator */
  143. .wp-block-separator:not(.is-style-wide) {
  144. margin-left: auto;
  145. margin-right: auto;
  146. max-width: 100px;
  147. }
  148. .wp-block-separator.is-style-dots::before {
  149. padding: 0;
  150. }
  151. /* Media & Text */
  152. .wp-block-media-text {
  153. margin-bottom: 30px;
  154. }
  155. /*--------------------------------------------------------------
  156. 5.0 Blocks - Widgets
  157. --------------------------------------------------------------*/
  158. /* General Widget styles */
  159. .wp-block-categories.aligncenter,
  160. .wp-block-categories.aligncenter ul,
  161. .wp-block-archives.aligncenter,
  162. .wp-block-latest-posts.aligncenter,
  163. .wp-block-latest-comments.aligncenter {
  164. list-style-position: inside;
  165. text-align: center;
  166. }
  167. /* Latest Comments */
  168. .wp-block-latest-comments__comment,
  169. .wp-block-latest-comments__comment-excerpt p {
  170. font-size: 16px;
  171. }
  172. .wp-block-latest-comments__comment:not(:last-child) {
  173. border-bottom: 1px solid #eee;
  174. margin-bottom: 30px;
  175. padding-bottom: 10px;
  176. }
  177. .wp-block-latest-comments__comment-meta,
  178. .wp-block-latest-comments__comment-date {
  179. font-family: "Lato", sans-serif;
  180. }
  181. .wp-block-latest-comments__comment-meta a {
  182. font-weight: bold;
  183. }
  184. .wp-block-latest-comments__comment-date {
  185. color: #777;
  186. font-size: 13px;
  187. font-weight: bold;
  188. margin-top: 0.5em;
  189. text-transform: uppercase;
  190. }
  191. /*--------------------------------------------------------------
  192. 6.0 Blocks - Colors
  193. --------------------------------------------------------------*/
  194. .has-blue-color,
  195. .has-blue-color:hover,
  196. .has-blue-color:focus,
  197. .has-blue-color:active,
  198. .has-blue-color:visited {
  199. color: #3863c1;
  200. }
  201. .has-blue-background-color,
  202. .has-blue-background-color:hover,
  203. .has-blue-background-color:focus,
  204. .has-blue-background-color:active,
  205. .has-blue-background-color:visited {
  206. background-color: #3863c1;
  207. }
  208. .has-dark-gray-color,
  209. .has-dark-gray-color:hover,
  210. .has-dark-gray-color:focus,
  211. .has-dark-gray-color:active,
  212. .has-dark-gray-color:visited {
  213. color: #222;
  214. }
  215. .has-dark-gray-background-color,
  216. .has-dark-gray-background-color:hover,
  217. .has-dark-gray-background-color:focus,
  218. .has-dark-gray-background-color:active,
  219. .has-dark-gray-background-color:visited {
  220. background-color: #222;
  221. }
  222. .has-medium-gray-color,
  223. .has-medium-gray-color:hover,
  224. .has-medium-gray-color:focus,
  225. .has-medium-gray-color:active,
  226. .has-medium-gray-color:visited {
  227. color: #777;
  228. }
  229. .has-medium-gray-background-color,
  230. .has-medium-gray-background-color:hover,
  231. .has-medium-gray-background-color:focus,
  232. .has-medium-gray-background-color:active,
  233. .has-medium-gray-background-color:visited {
  234. background-color: #777;
  235. }
  236. .has-light-gray-color,
  237. .has-light-gray-color:hover,
  238. .has-light-gray-color:focus,
  239. .has-light-gray-color:active,
  240. .has-light-gray-color:visited {
  241. color: #ddd;
  242. }
  243. .has-light-gray-background-color,
  244. .has-light-gray-background-color:hover,
  245. .has-light-gray-background-color:focus,
  246. .has-light-gray-background-color:active,
  247. .has-light-gray-background-color:visited {
  248. background-color: #ddd;
  249. }
  250. .has-white-color,
  251. .has-white-color:hover,
  252. .has-white-color:focus,
  253. .has-white-color:active,
  254. .has-white-color:visited {
  255. color: #fff;
  256. }
  257. .has-white-background-color,
  258. .has-white-background-color:hover,
  259. .has-white-background-color:focus,
  260. .has-white-background-color:active,
  261. .has-white-background-color:visited {
  262. background-color: #fff;
  263. }