blocks.css 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. /*
  2. Theme Name: Photos
  3. Description: Gutenberg Block Styles
  4. */
  5. /* Alignments */
  6. .alignfull {
  7. max-width: 100%;
  8. text-align: center;
  9. }
  10. .alignwide {
  11. margin-left: auto;
  12. margin-right: auto;
  13. max-width: 80%;
  14. }
  15. @media screen and ( min-width: 660px ) {
  16. [class^="wp-block"] .alignleft {
  17. margin-left: calc( ( ( 100vw - 640px ) / -2 ) + 10px );
  18. }
  19. [class^="wp-block"] .alignright {
  20. margin-right: calc( ( ( 100vw - 640px ) / -2 ) + 10px );
  21. }
  22. }
  23. @media screen and ( min-width: 1080px ) {
  24. .alignwide {
  25. max-width: 1020px;
  26. }
  27. [class^="wp-block"] .alignleft {
  28. margin-left: -190px;
  29. }
  30. [class^="wp-block"] .alignright {
  31. margin-right: -190px;
  32. }
  33. }
  34. .wp-block-embed.is-type-video iframe,
  35. .wp-block-embed.is-type-video iframe {
  36. max-height: 100%;
  37. }
  38. .wp-block-embed.is-type-video.alignwide iframe,
  39. .wp-block-embed.is-type-video.alignwide iframe,
  40. .wp-block-embed.is-type-video.alignfull iframe,
  41. .wp-block-embed.is-type-video.alignfull iframe {
  42. width: 100% !important;
  43. height: 100% !important;
  44. }
  45. /* Colors */
  46. .has-red-color,
  47. .has-red-color:hover,
  48. .has-red-color:active,
  49. .has-red-color:focus,
  50. .has-red-color:visited {
  51. color: #d63031;
  52. }
  53. .has-red-background-color,
  54. .has-red-background-color:hover,
  55. .has-red-background-color:active,
  56. .has-red-background-color:focus,
  57. .has-red-background-color:visited {
  58. background-color: #d63031;
  59. }
  60. .has-charcoal-color,
  61. .has-charcoal-color:hover,
  62. .has-charcoal-color:active,
  63. .has-charcoal-color:focus,
  64. .has-charcoal-color:visited {
  65. color: #111;
  66. }
  67. .has-charcoal-background-color,
  68. .has-charcoal-background-color:hover,
  69. .has-charcoal-background-color:active,
  70. .has-charcoal-background-color:focus,
  71. .has-charcoal-background-color:visited {
  72. background-color: #111;
  73. }
  74. .has-very-light-gray-color,
  75. .has-very-light-gray-color:hover,
  76. .has-very-light-gray-color:active,
  77. .has-very-light-gray-color:focus,
  78. .has-very-light-gray-color:visited {
  79. color: #f0f0f0;
  80. }
  81. .has-very-light-gray-background-color,
  82. .has-very-light-gray-background-color:hover,
  83. .has-very-light-gray-background-color:active,
  84. .has-very-light-gray-background-color:focus,
  85. .has-very-light-gray-background-color:visited {
  86. background-color: #f0f0f0;
  87. }
  88. .has-very-dark-gray-color,
  89. .has-very-dark-gray-color:hover,
  90. .has-very-dark-gray-color:active,
  91. .has-very-dark-gray-color:focus,
  92. .has-very-dark-gray-color:visited {
  93. color: #404040;
  94. }
  95. .has-very-dark-gray-background-color,
  96. .has-very-dark-gray-background-color:hover,
  97. .has-very-dark-gray-background-color:active,
  98. .has-very-dark-gray-background-color:focus,
  99. .has-very-dark-gray-background-color:visited {
  100. background-color: #404040;
  101. }
  102. .has-medium-gray-color,
  103. .has-medium-gray-color:hover,
  104. .has-medium-gray-color:active,
  105. .has-medium-gray-color:focus,
  106. .has-medium-gray-color:visited {
  107. color: #606060;
  108. }
  109. .has-medium-gray-background-color,
  110. .has-medium-gray-background-color:hover,
  111. .has-medium-gray-background-color:active,
  112. .has-medium-gray-background-color:focus,
  113. .has-medium-gray-background-color:visited {
  114. background-color: #606060;
  115. }
  116. /* Text sizing */
  117. .is-small-text {}
  118. .is-regular-text {}
  119. .is-large-text {}
  120. .is-larger-text {}
  121. /* Dropcap */
  122. p.has-drop-cap:not(:focus):first-letter {
  123. font-family: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  124. font-size: 106px;
  125. font-size: 10.6rem;
  126. font-weight: 300;
  127. margin: 0.08em 0.1em 0 0;
  128. }
  129. .rtl p.has-drop-cap:not(:focus):first-letter {
  130. margin: 0.08em 0 0 0.1em;
  131. }
  132. /* Images */
  133. .wp-block-image {
  134. margin-bottom: 1.5em;
  135. }
  136. .wp-block-image img {
  137. display: block;
  138. }
  139. .wp-block-image figcaption {
  140. font-size: 0.8em;
  141. margin-top: 0;
  142. padding-top: 0.625em;
  143. text-align: center;
  144. }
  145. /* Galleries */
  146. .wp-block-gallery {
  147. margin-bottom: 3rem;
  148. }
  149. /* Captions */
  150. [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
  151. color: inherit;
  152. }
  153. /* Blockquotes*/
  154. .wp-block-quote,
  155. .rtl .wp-block-quote[style*="text-align:left"] {
  156. border-left: 4px solid #d63031;
  157. }
  158. .wp-block-quote[style*="text-align:right"] {
  159. border: 0;
  160. border-right: 4px solid #d63031;
  161. }
  162. .rtl .wp-block-quote {
  163. border-left: none;
  164. border-right: 4px solid #d63031;
  165. }
  166. .wp-block-quote.is-large,
  167. .wp-block-quote.is-style-large {
  168. margin-left: auto;
  169. margin-right: auto;
  170. margin-bottom: 3rem;
  171. padding: 2rem 3rem;
  172. }
  173. .wp-block-quote p:last-of-type {
  174. margin-bottom: 0;
  175. }
  176. .wp-block-quote cite {
  177. color: #606060;
  178. font-size: 16px;
  179. font-weight: 300;
  180. }
  181. /* Pullquotes */
  182. .wp-block-pullquote {
  183. padding: 0;
  184. }
  185. .wp-block-pullquote blockquote {
  186. background-color: #f0f0f0;
  187. border-bottom: 4px solid #d63031;
  188. border-left: none;
  189. border-right: none;
  190. border-top: 4px solid #d63031;
  191. margin-bottom: 0;
  192. padding: 1em 1.5em;
  193. }
  194. .wp-block-pullquote:not(.is-style-solid-color) blockquote {
  195. background-color: #f0f0f0;
  196. }
  197. .wp-block-pullquote .is-style-solid-color blockquote {
  198. border-top: none;
  199. border-bottom: none;
  200. }
  201. .wp-block-pullquote p {
  202. font-size: 24px;
  203. margin-bottom: 1em;
  204. }
  205. .wp-block-pullquote cite {
  206. color: #606060;
  207. }
  208. .wp-block-pullquote.alignleft,
  209. .wp-block-pullquote.alignright {
  210. max-width: 320px;
  211. padding: 0;
  212. }
  213. .wp-block-pullquote.alignleft,
  214. .wp-block-pullquote.alignright {
  215. text-align: left;
  216. }
  217. .rtl .wp-block-pullquote.alignleft,
  218. .rtl .wp-block-pullquote.alignright {
  219. text-align: right;
  220. }
  221. .wp-block-pullquote.alignwide blockquote,
  222. .wp-block-pullquote.alignfull blockquote {
  223. padding: 2em;
  224. }
  225. .wp-block-pullquote.alignwide {
  226. max-width: 830px;
  227. width: 100%;
  228. }
  229. .wp-block-pullquote.alignfull {
  230. padding: 0 calc( 50% - 510px );
  231. }
  232. @media screen and ( min-width: 1080px ) {
  233. .wp-block-pullquote p {
  234. font-size: 32px;
  235. }
  236. .wp-block-pullquote.alignleft p,
  237. .wp-block-pullquote.alignright p {
  238. font-size: 27px;
  239. }
  240. .wp-block-pullquote.alignwide blockquote,
  241. .wp-block-pullquote.alignfull blockquote {
  242. padding: 3em;
  243. }
  244. .wp-block-pullquote.alignwide {
  245. max-width: 830px;
  246. width: 75%;
  247. }
  248. .wp-block-pullquote.alignfull {
  249. padding: 0 calc( 50% - 510px );
  250. }
  251. }
  252. /* Audio */
  253. .wp-block-audio.alignleft,
  254. .wp-block-audio.alignright {
  255. width: 32rem;
  256. }
  257. .wp-block-video video,
  258. .wp-block-audio audio {
  259. width: 100%;
  260. }
  261. /* Video */
  262. .wp-block-video video {
  263. height: auto;
  264. }
  265. /* Tables */
  266. .wp-block-table {
  267. display: table;
  268. }
  269. .wp-block-table.alignleft,
  270. .wp-block-table.alignright {
  271. max-width: 50%;
  272. }
  273. /* Preformatted */
  274. .wp-block-preformatted {}
  275. /* Code */
  276. .wp-block-code {}
  277. /* Verse */
  278. .wp-block-verse {}
  279. .wp-block-verse.aligncenter {
  280. text-align: center;
  281. }
  282. .wp-block-verse.alignleft {
  283. text-align: left;
  284. }
  285. .wp-block-verse.alignright {
  286. text-align: right;
  287. }
  288. /* Separator */
  289. .wp-block-separator {
  290. background-color: transparent;
  291. border-bottom: 1px solid #dcdcdc;
  292. margin-bottom: 1.5em;
  293. width: 180px;
  294. }
  295. .wp-block-separator.alignwide,
  296. .wp-block-separator.is-style-wide {
  297. max-width: 75vw;
  298. width: 100%;
  299. }
  300. .wp-block-separator.is-style-dots:before {
  301. color: #d63031;
  302. }
  303. /* Buttons */
  304. .wp-block-file .wp-block-file__button,
  305. .wp-block-button .wp-block-button__link {
  306. font-weight: bold;
  307. font-size: inherit;
  308. line-height: 1.5;
  309. margin-left: 0.75em;
  310. padding: 0.5em 0.75em;
  311. text-align: center;
  312. transition: background 150ms ease-in-out,
  313. color 150ms ease-in-out;
  314. }
  315. .wp-block-file .wp-block-file__button {
  316. border-radius: 4px;
  317. }
  318. .rtl .wp-block-file .wp-block-file__button,
  319. .rtl .wp-block-button .wp-block-button__link {
  320. margin-left: 0;
  321. margin-right: 0.75em;
  322. }
  323. .wp-block-file .wp-block-file__button,
  324. .wp-block-button__link {
  325. color: #d63031;
  326. }
  327. .wp-block-file .wp-block-file__button:active,
  328. .wp-block-file .wp-block-file__button:focus,
  329. .wp-block-file .wp-block-file__button:hover,
  330. .wp-block-button__link:active,
  331. .wp-block-button__link:focus,
  332. .wp-block-button__link:hover {
  333. color: #fff;
  334. }
  335. .wp-block-file .wp-block-file__button,
  336. .wp-block-button__link {
  337. background: #f0f0f0;
  338. }
  339. .wp-block-file .wp-block-file__button:active,
  340. .wp-block-file .wp-block-file__button:focus,
  341. .wp-block-file .wp-block-file__button:hover,
  342. .wp-block-button__link:active,
  343. .wp-block-button__link:focus,
  344. .wp-block-button__link:hover {
  345. background-color: #d63031;
  346. }
  347. /* Text Columns */
  348. .wp-block-text-columns {}
  349. .wp-block-column {}
  350. /* Latest Posts */
  351. .wp-block-latest-posts {}
  352. .wp-block-latest-posts__post-date {}
  353. /*--------------------------------------------------------------
  354. Widgets
  355. --------------------------------------------------------------*/
  356. /* Categories, Latest Posts & Archives */
  357. .wp-block-categories.aligncenter,
  358. .wp-block-categories.aligncenter ul,
  359. .wp-block-archives.aligncenter,
  360. .wp-block-latest-posts.aligncenter,
  361. .wp-block-latest-comments.aligncenter {
  362. list-style-position: inside;
  363. text-align: center;
  364. }
  365. .wp-block-categories.alignfull,
  366. .wp-block-archives.alignfull,
  367. .wp-block-latest-posts.alignfull {
  368. text-align: left;
  369. }
  370. .rtl .wp-block-categories.alignfull,
  371. .rtl .wp-block-archives.alignfull,
  372. .rtl .wp-block-latest-posts.alignfull {
  373. text-align: right;
  374. }
  375. /* Latest comments */
  376. .wp-block-latest-comments {
  377. padding-left: 0;
  378. padding-right: 0;
  379. }
  380. .wp-block-latest-comments.alignfull {
  381. text-align: left;
  382. }
  383. .rtl .wp-block-latest-comments.alignfull {
  384. text-align: right;
  385. }