blocks.css 8.7 KB

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