blocks.css 8.8 KB

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