blocks.css 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. /*
  2. Theme Name: Sketch
  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. /* Caption */
  19. [class^="wp-block-"] figcaption {
  20. font-size: 16.25px;
  21. }
  22. [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  23. color: #333333;
  24. margin-top: 0;
  25. text-align: left;
  26. }
  27. .rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  28. text-align: right;
  29. }
  30. /* Video */
  31. .wp-block-embed.is-type-video iframe {
  32. max-height: 100%;
  33. }
  34. /*--------------------------------------------------------------
  35. 2.0 Blocks - Common Blocks
  36. --------------------------------------------------------------*/
  37. /* Paragraph */
  38. p.has-drop-cap:not(:focus)::first-letter {
  39. font-size: 5em;
  40. margin-top: 0.15em;
  41. }
  42. /* Gallery */
  43. .wp-block-gallery {
  44. margin: 0 0 27px;
  45. }
  46. /* Quote */
  47. .wp-block-quote.is-large,
  48. .wp-block-quote.is-style-large {
  49. padding-right: 0;
  50. }
  51. .wp-block-quote.is-large p,
  52. .wp-block-quote.is-style-large p {
  53. font-size: 26px;
  54. }
  55. .wp-block-quote.is-large cite,
  56. .wp-block-quote.is-style-large cite {
  57. font-size: 22px;
  58. }
  59. @media (min-width: 50em) {
  60. .wp-block-quote.is-large p,
  61. .wp-block-quote.is-style-large p {
  62. font-size: 32px;
  63. }
  64. .wp-block-quote.is-large cite,
  65. .wp-block-quote.is-style-large cite {
  66. font-size: 26px;
  67. }
  68. }
  69. .rtl .wp-block-quote.is-large,
  70. .rtl .wp-block-quote.is-style-large,
  71. .wp-block-quote[style*="text-align:right"],
  72. .wp-block-quote.is-large[style*="text-align:right"],
  73. .wp-block-quote.is-style-large[style*="text-align:right"] {
  74. border-left: 0;
  75. border-right: 3px solid #eee;
  76. padding-left: 0;
  77. padding-right: 24px;
  78. }
  79. .wp-block-quote[style*="text-align:center"],
  80. .wp-block-quote.is-large[style*="text-align:center"],
  81. .wp-block-quote.is-style-large[style*="text-align:center"] {
  82. border: 0;
  83. padding-left: 0;
  84. padding-right: 0;
  85. }
  86. .rtl .wp-block-quote[style*="text-align:left"],
  87. .rtl .wp-block-quote.is-large[style*="text-align:left"],
  88. .rtl .wp-block-quote.is-style-large[style*="text-align:left"] {
  89. border-left: 3px solid #eee;
  90. border-right: 0;
  91. padding-left: 24px;
  92. padding-right: 0;
  93. }
  94. /* Audio */
  95. .wp-block-audio {
  96. margin-bottom: 27px;
  97. }
  98. .wp-block-audio audio {
  99. display: block;
  100. width: 100%;
  101. }
  102. /* Cover */
  103. .wp-block-cover.aligncenter,
  104. .wp-block-cover-image.aligncenter,
  105. .wp-block-cover.alignleft,
  106. .wp-block-cover-image.alignleft,
  107. .wp-block-cover.alignright,
  108. .wp-block-cover-image.alignright {
  109. display: flex;
  110. }
  111. .wp-block-cover-image .wp-block-cover-image-text,
  112. .wp-block-cover-image .wp-block-cover-text,
  113. .wp-block-cover-image h2,
  114. .wp-block-cover .wp-block-cover-image-text,
  115. .wp-block-cover .wp-block-cover-text,
  116. .wp-block-cover h2 {
  117. font-size: 1.5em;
  118. }
  119. /* File */
  120. .wp-block-file a.wp-block-file__button,
  121. .wp-block-file a.wp-block-file__button:visited {
  122. background: transparent;
  123. border: 3px solid #eeeeee;
  124. border-radius: 3px;
  125. color: #999999;
  126. font-family: Lato, Helvetica, Arial, sans-serif;
  127. font-size: 16px;
  128. font-weight: 400;
  129. letter-spacing: 2px;
  130. padding: 10px 14px;
  131. text-transform: uppercase;
  132. -webkit-transition: all 0.3s ease-in-out;
  133. -moz-transition: all 0.3s ease-in-out;
  134. -o-transition: all 0.3s ease-in-out
  135. transition: all 0.3s ease-in-out;
  136. }
  137. .wp-block-file a.wp-block-file__button:hover,
  138. .wp-block-file a.wp-block-file__button:focus {
  139. background: transparent;
  140. border-color: #f68060;
  141. color: #f68060;
  142. }
  143. .rtl .wp-block-file * + .wp-block-file__button {
  144. margin-left: 0.75em;
  145. margin-right: 0;
  146. }
  147. /* Video */
  148. .wp-block-video video {
  149. width: 100%;
  150. }
  151. /*--------------------------------------------------------------
  152. 3.0 Blocks - Formatting
  153. --------------------------------------------------------------*/
  154. /* Verse */
  155. .wp-block-verse {
  156. background: transparent;
  157. font-family: inherit;
  158. font-size: inherit;
  159. font-style: italic;
  160. padding: 0;
  161. }
  162. /* Code */
  163. .wp-block-code code {
  164. }
  165. /* Pullquote */
  166. .wp-block-pullquote {
  167. border-top: 3px solid #eee;
  168. border-bottom: 2px solid #eee;
  169. }
  170. .wp-block-pullquote blockquote {
  171. border: 0;
  172. padding-left: 0;
  173. padding-right: 0;
  174. }
  175. .wp-block-pullquote cite {
  176. font-size: 80%;
  177. text-align: center;
  178. }
  179. /* Table */
  180. .wp-block-table {
  181. }
  182. .rtl .wp-block-table th {
  183. text-align: right;
  184. }
  185. /*--------------------------------------------------------------
  186. 4.0 Blocks - Layout Elements
  187. --------------------------------------------------------------*/
  188. /* Buttons */
  189. .wp-block-button .wp-block-button__link {
  190. font-family: Lato, Helvetica, Arial, sans-serif;
  191. font-size: 16px;
  192. font-weight: 400;
  193. letter-spacing: 2px;
  194. padding: 10px 20px;
  195. text-transform: uppercase;
  196. -webkit-transition: all 0.3s ease-in-out;
  197. -moz-transition: all 0.3s ease-in-out;
  198. -o-transition: all 0.3s ease-in-out
  199. transition: all 0.3s ease-in-out;
  200. }
  201. .wp-block-button__link,
  202. .wp-block-button__link:visited {
  203. background: #999999;
  204. color: #fff;
  205. }
  206. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  207. color: #999;
  208. }
  209. .wp-block-button .wp-block-button__link:hover,
  210. .wp-block-button .wp-block-button__link:focus,
  211. .wp-block-button .wp-block-button__link:active {
  212. background-color: #f68060;
  213. color: #fff;
  214. }
  215. /* Separator */
  216. .wp-block-separator {
  217. border: 0;
  218. }
  219. .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  220. margin-left: auto;
  221. margin-right: auto;
  222. max-width: 100px;
  223. }
  224. /* Media & Text */
  225. .wp-block-media-text {
  226. margin-bottom: 27px;
  227. }
  228. .wp-block-media-text *:last-child {
  229. margin-bottom: 0;
  230. }
  231. /*--------------------------------------------------------------
  232. 5.0 Blocks - Widgets
  233. --------------------------------------------------------------*/
  234. /* General Widget styles */
  235. .wp-block-categories.aligncenter,
  236. .wp-block-categories.aligncenter ul,
  237. .wp-block-archives.aligncenter,
  238. .wp-block-latest-posts.aligncenter,
  239. .wp-block-latest-comments.aligncenter {
  240. list-style-position: inside;
  241. margin-left: 0;
  242. margin-right: 0;
  243. text-align: center;
  244. }
  245. /* Latest Comments */
  246. .wp-block-latest-comments {
  247. margin-left: 0;
  248. margin-right: 0;
  249. }
  250. .wp-block-latest-comments__comment-date {
  251. color: #999;
  252. font-size: 13px;
  253. text-transform: uppercase;
  254. }
  255. .wp-block-latest-comments__comment {
  256. font-size: 80%;
  257. }
  258. .wp-block-latest-comments__comment-excerpt p {
  259. font-size: inherit;
  260. }
  261. .wp-block-latest-comments__comment-meta {
  262. font-weight: 700;
  263. letter-spacing: 2px;
  264. text-transform: uppercase;
  265. }
  266. /* Latest Posts */
  267. .wp-block-latest-posts.is-grid {
  268. margin-left: 0;
  269. margin-right: 0;
  270. }
  271. /*--------------------------------------------------------------
  272. 6.0 Blocks - Colors
  273. --------------------------------------------------------------*/
  274. .has-orange-color,
  275. .has-orange-color:hover,
  276. .has-orange-color:focus,
  277. .has-orange-color:active,
  278. .has-orange-color:visited {
  279. color: #f68060;
  280. }
  281. .has-orange-background-color,
  282. .has-orange-background-color:hover,
  283. .has-orange-background-color:focus,
  284. .has-orange-background-color:active,
  285. .has-orange-background-color:visited {
  286. background-color: #f68060;
  287. }
  288. .has-dark-gray-color,
  289. .has-dark-gray-color:hover,
  290. .has-dark-gray-color:focus,
  291. .has-dark-gray-color:active,
  292. .has-dark-gray-color:visited {
  293. color: #333;
  294. }
  295. .has-dark-gray-background-color,
  296. .has-dark-gray-background-color:hover,
  297. .has-dark-gray-background-color:focus,
  298. .has-dark-gray-background-color:active,
  299. .has-dark-gray-background-color:visited {
  300. background-color: #333;
  301. }
  302. .has-medium-gray-color,
  303. .has-medium-gray-color:hover,
  304. .has-medium-gray-color:focus,
  305. .has-medium-gray-color:active,
  306. .has-medium-gray-color:visited {
  307. color: #999;
  308. }
  309. .has-medium-gray-background-color,
  310. .has-medium-gray-background-color:hover,
  311. .has-medium-gray-background-color:focus,
  312. .has-medium-gray-background-color:active,
  313. .has-medium-gray-background-color:visited {
  314. background-color: #999;
  315. }
  316. .has-light-gray-color,
  317. .has-light-gray-color:hover,
  318. .has-light-gray-color:focus,
  319. .has-light-gray-color:active,
  320. .has-light-gray-color:visited {
  321. color: #eee;
  322. }
  323. .has-light-gray-background-color,
  324. .has-light-gray-background-color:hover,
  325. .has-light-gray-background-color:focus,
  326. .has-light-gray-background-color:active,
  327. .has-light-gray-background-color:visited {
  328. background-color: #eee;
  329. }
  330. .has-white-color,
  331. .has-white-color:hover,
  332. .has-white-color:focus,
  333. .has-white-color:active,
  334. .has-white-color:visited {
  335. color: #fff;
  336. }
  337. .has-white-background-color,
  338. .has-white-background-color:hover,
  339. .has-white-background-color:focus,
  340. .has-white-background-color:active,
  341. .has-white-background-color:visited {
  342. background-color: #fff;
  343. }