blocks.css 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. /*
  2. Theme Name: Affinity
  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-"]:not(.wp-block-gallery) figcaption {
  20. color: inherit;
  21. font-size: 13.2px;
  22. font-style: italic;
  23. margin-bottom: 1.6em;
  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-family: Lora, Baskerville, Georgia, Times, serif;
  32. font-size: 64px;
  33. }
  34. /* Images */
  35. .wp-block-cover {
  36. display: flex;
  37. }
  38. /* Gallery */
  39. .wp-block-gallery {
  40. margin-bottom: 1.6em;
  41. margin-left: auto;
  42. }
  43. .wp-block-gallery.is-cropped .blocks-gallery-item a {
  44. overflow: hidden;
  45. }
  46. /* Quote */
  47. .wp-block-quote cite {
  48. display: block;
  49. text-align: right;
  50. font-style: normal;
  51. font-size: 16px;
  52. }
  53. .wp-block-quote.is-large,
  54. .wp-block-quote.is-style-large {
  55. padding: .4em 0 .8em;
  56. }
  57. .wp-block-quote.is-large p,
  58. .wp-block-quote.is-style-large p {
  59. font-size: 26px;
  60. }
  61. @media screen and ( min-width: 68em ) {
  62. .wp-block-quote,
  63. .wp-block-pullquote blockquote {
  64. font-size: 26px;
  65. }
  66. .wp-block-quote.is-large p,
  67. .wp-block-quote.is-style-large p {
  68. font-size: 36px;
  69. }
  70. }
  71. /* Audio */
  72. .wp-block-audio audio {
  73. display: block;
  74. width: 100%;
  75. }
  76. /* File */
  77. .wp-block-file .wp-block-file__button {
  78. border-radius: 0;
  79. display: inline-block;
  80. font-size: 13.2px;
  81. font-family: Raleway, "Helvetica Neue", sans-serif;
  82. text-transform: uppercase;
  83. letter-spacing: 1px;
  84. font-weight: bold;
  85. line-height: 1;
  86. transition: 0.3s;
  87. text-decoration: none;
  88. background-color: #99908a;
  89. outline: 4px solid #99908a;
  90. border: 2px solid white;
  91. position: relative;
  92. left: 4px;
  93. }
  94. .wp-block-file .wp-block-file__button:hover,
  95. .wp-block-file .wp-block-file__button:focus,
  96. .wp-block-file .wp-block-file__button:focus {
  97. outline-color: #5e5853;
  98. background-color: #5e5853;
  99. color: #fff;
  100. }
  101. .rtl .wp-block-file * + .wp-block-file__button {
  102. margin-left: 0.75em;
  103. margin-right: 0;
  104. }
  105. /*--------------------------------------------------------------
  106. 3.0 Blocks - Formatting Blocks
  107. --------------------------------------------------------------*/
  108. /* Verse */
  109. .wp-block-verse {
  110. background-color: transparent;
  111. padding: 0;
  112. font-family: inherit;
  113. color: inherit;
  114. font-size: inherit;
  115. }
  116. /* Code */
  117. .wp-block-code {
  118. font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  119. font-size: 13.2px;
  120. }
  121. /* Pullquote */
  122. .wp-block-pullquote {
  123. padding: 0;
  124. }
  125. .wp-block-pullquote blockquote {
  126. color: #99908a;
  127. font-size: 18px;
  128. font-style: italic;
  129. margin: 0;
  130. border-top: 3px solid #e8e9ea;
  131. padding-top: .8em;
  132. border-bottom: 1px solid #e8e9ea;
  133. margin-bottom: .8em;
  134. padding-bottom: .8em;
  135. }
  136. .wp-block-pullquote.alignleft p,
  137. .wp-block-pullquote.alignright p {
  138. font-size: 18px;
  139. }
  140. .wp-block-pullquote cite {
  141. color: #99908a;
  142. display: block;
  143. text-transform: uppercase;
  144. text-align: center;
  145. font-size: 14px;
  146. }
  147. /*--------------------------------------------------------------
  148. 4.0 Blocks - Layout Elements
  149. --------------------------------------------------------------*/
  150. /* Buttons */
  151. .wp-block-button .wp-block-button__link {
  152. display: inline-block;
  153. font-size: 13.2px;
  154. font-family: Raleway, "Helvetica Neue", sans-serif;
  155. text-transform: uppercase;
  156. letter-spacing: 1px;
  157. font-weight: bold;
  158. left: 4px;
  159. line-height: 1;
  160. position: relative;
  161. transition: 0.3s;
  162. text-decoration: none;
  163. }
  164. .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  165. border: 2px solid white;
  166. }
  167. .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color),
  168. .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color):hover,
  169. .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color):focus,
  170. .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color):active {
  171. color: white;
  172. }
  173. .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) {
  174. background-color: #99908a;
  175. box-shadow: 0 0 0 4px #99908a;
  176. }
  177. .entry-content .wp-block-button .wp-block-button__link:active,
  178. .entry-content .wp-block-button .wp-block-button__link.has-background:active,
  179. .entry-content .wp-block-button .wp-block-button__link:focus,
  180. .entry-content .wp-block-button .wp-block-button__link.has-background:focus,
  181. .entry-content .wp-block-button .wp-block-button__link:hover,
  182. .entry-content .wp-block-button .wp-block-button__link.has-background:hover {
  183. box-shadow: 0 0 0 4px #5e5853;
  184. background-color: #5e5853;
  185. color: #fff;
  186. }
  187. /* Seperator */
  188. hr.wp-block-separator {
  189. border: 0;
  190. }
  191. .wp-block-separator {
  192. margin-left: auto;
  193. margin-right: auto;
  194. max-width: 66%;
  195. }
  196. .wp-block-separator.is-style-wide {
  197. max-width: 100%;
  198. }
  199. /*--------------------------------------------------------------
  200. 5.0 Blocks - Widget Blocks
  201. --------------------------------------------------------------*/
  202. /* General Widget styles */
  203. .wp-block-categories.aligncenter,
  204. .wp-block-categories.aligncenter ul,
  205. .wp-block-archives.aligncenter,
  206. .wp-block-latest-posts.aligncenter,
  207. .wp-block-latest-comments.aligncenter {
  208. list-style-position: inside;
  209. text-align: center;
  210. }
  211. /* Latest Comments */
  212. .wp-block-latest-comments {
  213. margin-left: 0;
  214. margin-right: 0;
  215. }
  216. .wp-block-latest-comments__comment-meta a {
  217. box-shadow: none;
  218. font-weight: 700;
  219. }
  220. .wp-block-latest-comments__comment-date {
  221. font-size: 13px;
  222. }
  223. .wp-block-latest-comments .wp-block-latest-comments__comment {
  224. margin-bottom: 1.6em;
  225. padding: 0;
  226. }
  227. .wp-block-latest-comments__comment-excerpt p:last-child {
  228. margin-bottom: 0;
  229. }
  230. /*--------------------------------------------------------------
  231. 6.0 Colors
  232. --------------------------------------------------------------*/
  233. .wp-block-button__link.has-pale-pink-background-color:link {
  234. box-shadow: 0 0 0 4px #f78da7;
  235. }
  236. .wp-block-button__link.has-vivid-red-background-color:link {
  237. box-shadow: 0 0 0 4px #cf2e2e;
  238. }
  239. .wp-block-button__link.has-luminous-vivid-orange-background-color:link {
  240. box-shadow: 0 0 0 4px #ff6900;
  241. }
  242. .wp-block-button__link.has-luminous-vivid-amber-background-color:link {
  243. box-shadow: 0 0 0 4px #fcb900;
  244. }
  245. .wp-block-button__link.has-light-green-cyan-background-color:link {
  246. box-shadow: 0 0 0 4px #7bdcb5;
  247. }
  248. .wp-block-button__link.has-vivid-green-cyan-background-color:link {
  249. box-shadow: 0 0 0 4px #00d084;
  250. }
  251. .wp-block-button__link.has-pale-cyan-blue-background-color:link {
  252. box-shadow: 0 0 0 4px #8ed1fc;
  253. }
  254. .wp-block-button__link.has-vivid-cyan-blue-background-color:link {
  255. box-shadow: 0 0 0 4px #0693e3;
  256. }
  257. .wp-block-button__link.has-very-light-gray-background-color:link {
  258. box-shadow: 0 0 0 4px #eee;
  259. }
  260. .wp-block-button__link.has-cyan-bluish-gray-background-color:link {
  261. box-shadow: 0 0 0 4px #abb8c3;
  262. }
  263. .wp-block-button__link.has-very-dark-gray-background-color:link {
  264. box-shadow: 0 0 0 4px #313131;
  265. }