blocks.css 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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. line-height: 1;
  159. padding: 16px 28px;
  160. position: relative;
  161. transition: 0.3s;
  162. text-decoration: none;
  163. }
  164. .wp-block-button__link:not(.has-background) {
  165. background-color: #99908a;
  166. box-shadow: 0 0 0 4px #99908a;
  167. border: 2px solid white;
  168. left: 4px;
  169. padding: 12px 24px;
  170. }
  171. .wp-block-button.is-style-outline .wp-block-button__link {
  172. left: 0;
  173. background-color: transparent;
  174. border-color: currentColor;
  175. box-shadow: none;
  176. padding: 16px 28px;
  177. }
  178. .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
  179. color: #99908a;
  180. }
  181. .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color),
  182. .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color):hover,
  183. .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color):focus,
  184. .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color):active {
  185. color: white;
  186. }
  187. .entry-content .wp-block-button .wp-block-button__link:active,
  188. .entry-content .wp-block-button .wp-block-button__link:focus,
  189. .entry-content .wp-block-button .wp-block-button__link:hover {
  190. background-color: #5e5853;
  191. color: #fff;
  192. }
  193. .entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):active,
  194. .entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):focus,
  195. .entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover {
  196. box-shadow: 0 0 0 4px #5e5853;
  197. }
  198. /* Seperator */
  199. hr.wp-block-separator {
  200. border: 0;
  201. }
  202. .wp-block-separator {
  203. margin-left: auto;
  204. margin-right: auto;
  205. max-width: 66%;
  206. }
  207. .wp-block-separator.is-style-wide {
  208. max-width: 100%;
  209. }
  210. /*--------------------------------------------------------------
  211. 5.0 Blocks - Widget Blocks
  212. --------------------------------------------------------------*/
  213. /* General Widget styles */
  214. .wp-block-categories.aligncenter,
  215. .wp-block-categories.aligncenter ul,
  216. .wp-block-archives.aligncenter,
  217. .wp-block-latest-posts.aligncenter,
  218. .wp-block-latest-comments.aligncenter {
  219. list-style-position: inside;
  220. text-align: center;
  221. }
  222. /* Latest Comments */
  223. .wp-block-latest-comments {
  224. margin-left: 0;
  225. margin-right: 0;
  226. }
  227. .wp-block-latest-comments__comment-meta a {
  228. box-shadow: none;
  229. font-weight: 700;
  230. }
  231. .wp-block-latest-comments__comment-date {
  232. font-size: 13px;
  233. }
  234. .wp-block-latest-comments .wp-block-latest-comments__comment {
  235. margin-bottom: 1.6em;
  236. padding: 0;
  237. }
  238. .wp-block-latest-comments__comment-excerpt p:last-child {
  239. margin-bottom: 0;
  240. }