blocks.css 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. /*
  2. Theme Name: Textbook
  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: 14px;
  21. font-size: 0.875rem;
  22. font-weight: 400;
  23. line-height: 1.65em;
  24. text-align: center;
  25. }
  26. /* Video */
  27. .wp-block-embed.is-type-video iframe {
  28. max-height: 100%;
  29. }
  30. /*--------------------------------------------------------------
  31. 2.0 Blocks - Common Blocks
  32. --------------------------------------------------------------*/
  33. /* Paragraph */
  34. p.has-drop-cap:not(:focus)::first-letter {
  35. font-size: 5em;
  36. margin-top: 0.125em;
  37. }
  38. /* Gallery */
  39. .wp-block-gallery {
  40. margin: 0 0 1.65em;
  41. }
  42. /* Quote */
  43. .wp-block-quote.is-large,
  44. .wp-block-quote.is-style-large {
  45. }
  46. .wp-block-quote.is-large p,
  47. .wp-block-quote.is-style-large p {
  48. font-size: 22px;
  49. }
  50. .wp-block-quote.is-large cite,
  51. .wp-block-quote.is-style-large cite {
  52. font-size: 18px;
  53. }
  54. @media (min-width: 50em) {
  55. .wp-block-quote.is-large p,
  56. .wp-block-quote.is-style-large p {
  57. font-size: 26px;
  58. }
  59. .wp-block-quote.is-large cite,
  60. .wp-block-quote.is-style-large cite {
  61. font-size: 20px;
  62. }
  63. }
  64. /* Audio */
  65. .wp-block-audio {
  66. margin: 0 0 1.65em;
  67. }
  68. .wp-block-audio audio {
  69. display: block;
  70. width: 100%;
  71. }
  72. /* Cover */
  73. .wp-block-cover.aligncenter,
  74. .wp-block-cover-image.aligncenter,
  75. .wp-block-cover.alignleft,
  76. .wp-block-cover-image.alignleft,
  77. .wp-block-cover.alignright,
  78. .wp-block-cover-image.alignright {
  79. display: flex;
  80. }
  81. .wp-block-cover-image .wp-block-cover-image-text,
  82. .wp-block-cover-image .wp-block-cover-text,
  83. .wp-block-cover-image h2,
  84. .wp-block-cover .wp-block-cover-image-text,
  85. .wp-block-cover .wp-block-cover-text,
  86. .wp-block-cover h2 {
  87. font-size: 1.5em;
  88. }
  89. /* File */
  90. .wp-block-file a.wp-block-file__button,
  91. .wp-block-file a.wp-block-file__button:visited {
  92. background: #fff;
  93. -webkit-border-radius: 0.333em;
  94. -moz-border-radius: 0.333em;
  95. border-radius: 0.333em;
  96. border: 1px solid #ce4639;
  97. color: #ce4639;
  98. font-size: 16px;
  99. font-size: 1rem;
  100. font-weight: 600;
  101. line-height: 1;
  102. outline: none;
  103. padding: 0.825em 13.5px;
  104. -webkit-transition: color 0.125s ease-out, background 0.125s ease-out, border-color 0.125s ease-out;
  105. -moz-transition: color 0.125s ease-out, background 0.125s ease-out, border-color 0.125s ease-out;
  106. -o-transition: color 0.125s ease-out, background 0.125s ease-out, border-color 0.125s ease-out;
  107. transition: color 0.125s ease-out, background 0.125s ease-out, border-color 0.125s ease-out;
  108. }
  109. .wp-block-file a.wp-block-file__button:hover,
  110. .wp-block-file a.wp-block-file__button:focus {
  111. border: 1px solid #222;
  112. background: #222;
  113. color: #fff;
  114. }
  115. .rtl .wp-block-file * + .wp-block-file__button {
  116. margin-left: 0.75em;
  117. margin-right: 0;
  118. }
  119. /* Video */
  120. .wp-block-video video {
  121. width: 100%;
  122. }
  123. /*--------------------------------------------------------------
  124. 3.0 Blocks - Formatting
  125. --------------------------------------------------------------*/
  126. /* Verse */
  127. .wp-block-verse {
  128. background: transparent;
  129. font-family: "Playfair Display", "Times New Roman", Times, serif;
  130. font-size: inherit;
  131. font-style: italic;
  132. padding: 0;
  133. }
  134. /* Code */
  135. .wp-block-code code {
  136. }
  137. /* Pullquote */
  138. .wp-block-pullquote blockquote {
  139. margin-left: 0;
  140. margin-right: 0;
  141. }
  142. /* Table */
  143. .wp-block-table {
  144. }
  145. .rtl .wp-block-table th {
  146. }
  147. /*--------------------------------------------------------------
  148. 4.0 Blocks - Layout Elements
  149. --------------------------------------------------------------*/
  150. /* Buttons */
  151. .wp-block-button .wp-block-button__link {
  152. font-size: 16px;
  153. font-size: 1rem;
  154. font-weight: 600;
  155. line-height: 1;
  156. outline: none;
  157. padding: 0.825em 20px;
  158. -webkit-transition: color 0.125s ease-out, background 0.125s ease-out, border-color 0.125s ease-out;
  159. -moz-transition: color 0.125s ease-out, background 0.125s ease-out, border-color 0.125s ease-out;
  160. -o-transition: color 0.125s ease-out, background 0.125s ease-out, border-color 0.125s ease-out;
  161. transition: color 0.125s ease-out, background 0.125s ease-out, border-color 0.125s ease-out;
  162. }
  163. .wp-block-button__link,
  164. .wp-block-button__link:visited {
  165. background: #ce4639;
  166. color: #fff;
  167. }
  168. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  169. color: #ce4639;
  170. }
  171. .wp-block-button .wp-block-button__link:hover,
  172. .wp-block-button .wp-block-button__link:focus {
  173. background: #222;
  174. color: #fff;
  175. }
  176. /* Separator */
  177. .wp-block-separator {
  178. border: 0;
  179. }
  180. .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  181. margin-left: auto;
  182. margin-right: auto;
  183. max-width: 100px;
  184. }
  185. /* Media & Text */
  186. .wp-block-media-text {
  187. margin-bottom: 1.65em;
  188. }
  189. .wp-block-media-text *:last-child {
  190. margin-bottom: 0;
  191. }
  192. /*--------------------------------------------------------------
  193. 5.0 Blocks - Widgets
  194. --------------------------------------------------------------*/
  195. /* General Widget styles */
  196. .wp-block-categories.aligncenter,
  197. .wp-block-categories.aligncenter ul,
  198. .wp-block-archives.aligncenter,
  199. .wp-block-latest-posts.aligncenter,
  200. .wp-block-latest-comments.aligncenter {
  201. list-style-position: inside;
  202. margin-left: 0;
  203. margin-right: 0;
  204. text-align: center;
  205. }
  206. /* Latest Comments */
  207. .wp-block-latest-comments {
  208. margin-left: 0;
  209. margin-right: 0;
  210. }
  211. .wp-block-latest-comments__comment,
  212. .wp-block-latest-comments__comment-excerpt p {
  213. font-size: inherit;
  214. }
  215. /* Latest Posts */
  216. .wp-block-latest-posts.is-grid {
  217. margin-left: 0;
  218. margin-right: 0;
  219. }
  220. /*--------------------------------------------------------------
  221. 6.0 Blocks - Colors
  222. --------------------------------------------------------------*/
  223. .has-red-color,
  224. .has-red-color:hover,
  225. .has-red-color:focus,
  226. .has-red-color:active,
  227. .has-red-color:visited {
  228. color: #ce4639;
  229. }
  230. .has-red-background-color,
  231. .has-red-background-color:hover,
  232. .has-red-background-color:focus,
  233. .has-red-background-color:active,
  234. .has-red-background-color:visited {
  235. background-color: #ce4639;
  236. }
  237. .has-green-color,
  238. .has-green-color:hover,
  239. .has-green-color:focus,
  240. .has-green-color:active,
  241. .has-green-color:visited {
  242. color: #26866d;
  243. }
  244. .has-green-background-color,
  245. .has-green-background-color:hover,
  246. .has-green-background-color:focus,
  247. .has-green-background-color:active,
  248. .has-green-background-color:visited {
  249. background-color: #26866d;
  250. }
  251. .has-purple-color,
  252. .has-purple-color:hover,
  253. .has-purple-color:focus,
  254. .has-purple-color:active,
  255. .has-purple-color:visited {
  256. color: #8b66d6;
  257. }
  258. .has-purple-background-color,
  259. .has-purple-background-color:hover,
  260. .has-purple-background-color:focus,
  261. .has-purple-background-color:active,
  262. .has-purple-background-color:visited {
  263. background-color: #8b66d6;
  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: #222;
  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: #222;
  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: #777;
  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: #777;
  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: #e1dfdc;
  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: #e1dfdc;
  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. }