blocks.css 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. /*
  2. Theme Name: Dyad 2
  3. Description: Used to style Gutenberg Blocks.
  4. */
  5. /*--------------------------------------------------------------
  6. >>> TABLE OF CONTENTS:
  7. ----------------------------------------------------------------
  8. 1.0 Block Alignments
  9. 2.0 General Block Styles
  10. 3.0 Blocks - Common Blocks
  11. 4.0 Blocks - Formatting
  12. 5.0 Blocks - Layout Elements
  13. 6.0 Blocks - Widgets
  14. 7.0 Blocks - Colors
  15. --------------------------------------------------------------*/
  16. /*--------------------------------------------------------------
  17. 1.0 Block Alignments
  18. --------------------------------------------------------------*/
  19. .single .hentry {
  20. overflow-x: hidden; /* prevents side-scrolling caused by use of vw */
  21. }
  22. .alignfull,
  23. .alignwide {
  24. clear: both;
  25. }
  26. @media (min-width: 1000px) {
  27. body:not(.has-post-thumbnail) .alignwide {
  28. margin-left: -20%;
  29. margin-right: -20%;
  30. width: auto;
  31. }
  32. }
  33. body:not(.has-post-thumbnail) .alignfull {
  34. margin-left: calc(50% - 50vw);
  35. margin-right: calc(50% - 50vw);
  36. width: auto;
  37. }
  38. /* Make non image-based blocks a bit narrower, so they don't get cut off. */
  39. body:not(.has-post-thumbnail) .wp-block-columns.alignfull,
  40. body:not(.has-post-thumbnail) .wp-block-audio.alignfull,
  41. body:not(.has-post-thumbnail) .wp-block-table.alignfull,
  42. body:not(.has-post-thumbnail) .wp-block-latest-comments.alignfull,
  43. body:not(.has-post-thumbnail) .wp-block-categories.alignfull,
  44. body:not(.has-post-thumbnail) .wp-block-latest-posts.alignfull {
  45. margin-left: calc(50% - 48vw);
  46. margin-right: calc(50% - 48vw);
  47. }
  48. /* Make sure video embeds actually fill the full available space. */
  49. .wp-block-embed.is-type-video.alignfull iframe {
  50. height: 100% !important;
  51. width: 100% !important;
  52. }
  53. /*--------------------------------------------------------------
  54. 2.0 General Block Styles
  55. --------------------------------------------------------------*/
  56. /* Captions */
  57. /*--------------------------------------------------------------
  58. 3.0 Blocks - Common Blocks
  59. --------------------------------------------------------------*/
  60. /* Paragraph */
  61. p.has-drop-cap:not(:focus)::first-letter {
  62. font-size: 5em;
  63. margin-top: 0.1em;
  64. }
  65. /* Image */
  66. .wp-block-image {
  67. margin-bottom: 0;
  68. max-width: 1000%;
  69. }
  70. /* Gallery */
  71. .wp-block-gallery {
  72. margin: 0 0 1.5em;
  73. }
  74. /* Quote */
  75. .wp-block-quote {
  76. margin-bottom: 1.5em;
  77. }
  78. .wp-block-quote:not(.is-large):not(.is-style-large),
  79. .rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style="text-align:left"] {
  80. border-left: 3px solid #ddd;
  81. border-right: 0;
  82. margin: 0 0 1.5em 1.5em;
  83. padding-left: 1.5em;
  84. padding-right: 0;
  85. }
  86. .rtl .wp-block-quote:not(.is-large):not(.is-style-large),
  87. .wp-block-quote:not(.is-large):not(.is-style-large)[style="text-align:right"] {
  88. border-left: 0;
  89. border-right: 3px solid #ddd;
  90. margin-left: 0;
  91. margin-right: 1.5em;
  92. padding-left: 0;
  93. padding-right: 1.5em;
  94. }
  95. .wp-block-quote:not(.is-large):not(.is-style-large)[style="text-align:center"] {
  96. border: 0;
  97. margin-left: 0;
  98. margin-right: 0;
  99. padding-left: 0;
  100. padding-right: 0;
  101. }
  102. .wp-block-quote p:not(:last-child) {
  103. margin-bottom: 0;
  104. padding-bottom: 0;
  105. }
  106. .wp-block-quote.is-large,
  107. .wp-block-quote.is-style-large {
  108. border: 0;
  109. padding-left: 1.5em;
  110. padding-right: 1.5em;
  111. }
  112. .wp-block-quote.is-large cite,
  113. .wp-block-quote.is-style-large cite {
  114. font-size: 80%;
  115. text-align: inherit;
  116. }
  117. /* Audio */
  118. .wp-block-audio {
  119. margin-bottom: 1.5em;
  120. }
  121. .wp-block-audio audio {
  122. display: block;
  123. width: 100%;
  124. }
  125. /* Cover */
  126. .wp-block-cover.aligncenter,
  127. .wp-block-cover-image.aligncenter,
  128. .wp-block-cover.alignleft,
  129. .wp-block-cover-image.alignleft,
  130. .wp-block-cover.alignright,
  131. .wp-block-cover-image.alignright {
  132. display: flex;
  133. }
  134. .wp-block-cover .wp-block-cover-text,
  135. .wp-block-cover-image .wp-block-cover-image-text {
  136. font-size: 24px;
  137. }
  138. /* File */
  139. .wp-block-file .wp-block-file__button {
  140. background-color: #678db8;
  141. border-color: #678db8;
  142. border-radius: 0;
  143. color: #fff;
  144. font-size: 1.4rem;
  145. letter-spacing: 0.1em;
  146. padding: 1em;
  147. text-transform: uppercase;
  148. }
  149. .wp-block-file__button:hover,
  150. .wp-block-file__button:focus {
  151. background-color: #678db8;
  152. opacity: 0.75;
  153. }
  154. .wp-block-file a.wp-block-file__button:active {
  155. opacity: 0.9;
  156. }
  157. .rtl .wp-block-file * + .wp-block-file__button {
  158. margin-left: 0.75em;
  159. margin-right: 0;
  160. }
  161. /*--------------------------------------------------------------
  162. 4.0 Blocks - Formatting Blocks
  163. --------------------------------------------------------------*/
  164. /* Verse */
  165. .wp-block-verse {
  166. background: none;
  167. color: #393d41;
  168. font-family: "Noto Serif", Georgia, serif;
  169. font-size: inherit;
  170. font-style: italic;
  171. padding: 0;
  172. }
  173. .wp-block-verse:before {
  174. display: none;
  175. }
  176. /* Code */
  177. .wp-block-code {
  178. border: 0;
  179. color: #6a6c6e;
  180. border-radius: 0;
  181. }
  182. /* Pullquote */
  183. .wp-block-pullquote {
  184. border-color: #ddd;
  185. margin-bottom: 1.5em;
  186. }
  187. .wp-block-pullquote blockquote {
  188. border: 0;
  189. margin: 0;
  190. padding: 0;
  191. }
  192. .wp-block-pullquote cite {
  193. color: #6c7781;
  194. font-size: 13px;
  195. text-transform: none;
  196. }
  197. /* Table */
  198. .wp-block-table td,
  199. .wp-block-table th {
  200. border-color: #ddd;
  201. }
  202. body:not(.has-post-thumbnail) .wp-block-table.alignwide {
  203. width: 960px; /* 700px + ( 20% * 2 ) */
  204. }
  205. body:not(.has-post-thumbnail) .wp-block-table.alignfull {
  206. width: 96vw;
  207. }
  208. /*--------------------------------------------------------------
  209. 5.0 Blocks - Layout Elements
  210. --------------------------------------------------------------*/
  211. /* Buttons */
  212. .wp-block-button .wp-block-button__link {
  213. font-size: 1.4rem;
  214. letter-spacing: 0.1em;
  215. padding: 1em 1.5em;
  216. text-transform: uppercase;
  217. text-decoration: none;
  218. }
  219. .wp-block-button__link {
  220. background-color: #678db8;
  221. color: #fff;
  222. }
  223. .is-style-outline .wp-block-button__link {
  224. border-color: currentColor;
  225. }
  226. .is-style-outline .wp-block-button__link:not(.has-text-color) {
  227. color: #678db8;
  228. }
  229. .wp-block-button .wp-block-button__link:hover,
  230. .wp-block-button .wp-block-button__link:focus {
  231. opacity: 0.75;
  232. }
  233. .wp-block-button .wp-block-button__link:active {
  234. opacity: 0.9;
  235. }
  236. /* Separator */
  237. .wp-block-separator {
  238. border: 0;
  239. }
  240. /*--------------------------------------------------------------
  241. 6.0 Blocks - Widget Blocks
  242. --------------------------------------------------------------*/
  243. /* General Widget styles */
  244. .wp-block-categories.aligncenter,
  245. .wp-block-categories.aligncenter ul,
  246. .wp-block-archives.aligncenter,
  247. .wp-block-latest-posts.aligncenter,
  248. .wp-block-latest-comments.aligncenter {
  249. list-style-position: inside;
  250. text-align: center;
  251. }
  252. /* Latest Posts */
  253. .wp-block-latest-posts.is-grid {
  254. margin-left: 0;
  255. margin-right: 0;
  256. }
  257. /* Latest Comments */
  258. .wp-block-latest-comments {
  259. font-size: 17px;
  260. margin-left: 0;
  261. margin-right: 0;
  262. }
  263. .wp-block-latest-comments a {
  264. text-decoration: none;
  265. }
  266. .wp-block-latest-comments__comment-date {
  267. font-size: 15px;
  268. }
  269. .wp-block-latest-comments__comment-author,
  270. .wp-block-latest-comments__comment-link {
  271. font-weight: 700;
  272. text-decoration: none;
  273. }
  274. .wp-block-latest-comments__comment-excerpt p {
  275. font-size: inherit;
  276. margin: 0;
  277. }
  278. /*--------------------------------------------------------------
  279. 7.0 Blocks - Colors
  280. --------------------------------------------------------------*/
  281. .has-bright-blue-color,
  282. .has-bright-blue-color:hover,
  283. .has-bright-blue-color:focus,
  284. .has-bright-blue-color:active,
  285. .has-bright-blue-color:visited {
  286. color: #678db8;
  287. }
  288. .has-bright-blue-background-color,
  289. .has-bright-blue-background-color:hover,
  290. .has-bright-blue-background-color:focus,
  291. .has-bright-blue-background-color:active,
  292. .has-bright-blue-background-color:visited {
  293. background-color: #678db8;
  294. }
  295. .has-yellow-color,
  296. .has-yellow-color:hover,
  297. .has-yellow-color:focus,
  298. .has-yellow-color:active,
  299. .has-yellow-color:visited {
  300. color: #e7ae01;
  301. }
  302. .has-yellow-background-color,
  303. .has-yellow-background-color:hover,
  304. .has-yellow-background-color:focus,
  305. .has-yellow-background-color:active,
  306. .has-yellow-background-color:visited {
  307. background-color: #e7ae01;
  308. }
  309. .has-light-gray-blue-color,
  310. .has-light-gray-blue-color:hover,
  311. .has-light-gray-blue-color:focus,
  312. .has-light-gray-blue-color:active,
  313. .has-light-gray-blue-color:visited {
  314. color: #abb7c3;
  315. }
  316. .has-light-gray-blue-background-color,
  317. .has-light-gray-blue-background-color:hover,
  318. .has-light-gray-blue-background-color:focus,
  319. .has-light-gray-blue-background-color:active,
  320. .has-light-gray-blue-background-color:visited {
  321. background-color: #abb7c3;
  322. }
  323. .has-medium-gray-color,
  324. .has-medium-gray-color:hover,
  325. .has-medium-gray-color:focus,
  326. .has-medium-gray-color:active,
  327. .has-medium-gray-color:visited {
  328. color: #6a6c6e;
  329. }
  330. .has-medium-gray-background-color,
  331. .has-medium-gray-background-color:hover,
  332. .has-medium-gray-background-color:focus,
  333. .has-medium-gray-background-color:active,
  334. .has-medium-gray-background-color:visited {
  335. background-color: #6a6c6e;
  336. }
  337. .has-dark-gray-color,
  338. .has-dark-gray-color:hover,
  339. .has-dark-gray-color:focus,
  340. .has-dark-gray-color:active,
  341. .has-dark-gray-color:visited {
  342. color: #1a1c1e;
  343. }
  344. .has-dark-gray-background-color,
  345. .has-dark-gray-background-color:hover,
  346. .has-dark-gray-background-color:focus,
  347. .has-dark-gray-background-color:active,
  348. .has-dark-gray-background-color:visited {
  349. background-color: #1a1c1e;
  350. }
  351. .has-dark-gray-blue-color,
  352. .has-dark-gray-blue-color:hover,
  353. .has-dark-gray-blue-color:focus,
  354. .has-dark-gray-blue-color:active,
  355. .has-dark-gray-blue-color:visited {
  356. color: #292c2f;
  357. }
  358. .has-dark-gray-blue-background-color,
  359. .has-dark-gray-blue-background-color:hover,
  360. .has-dark-gray-blue-background-color:focus,
  361. .has-dark-gray-blue-background-color:active,
  362. .has-dark-gray-blue-background-color:visited {
  363. background-color: #292c2f;
  364. }
  365. .has-white-color,
  366. .has-white-color:hover,
  367. .has-white-color:focus,
  368. .has-white-color:active,
  369. .has-white-color:visited {
  370. color: #fff;
  371. }
  372. .has-white-background-color,
  373. .has-white-background-color:hover,
  374. .has-white-background-color:focus,
  375. .has-white-background-color:active,
  376. .has-white-background-color:visited {
  377. background-color: #fff;
  378. }