blocks.css 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. /*
  2. Theme Name: Button 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. /* Captions */
  19. [class^="wp-block-"] figcaption {
  20. color: #555d66;
  21. font-family: Lora, Garamond, serif;
  22. font-size: 13px;
  23. font-style: italic;
  24. text-align: center;
  25. line-height: 1.6;
  26. }
  27. /*--------------------------------------------------------------
  28. 2.0 Blocks - Common Blocks
  29. --------------------------------------------------------------*/
  30. /* Paragraph */
  31. p.has-drop-cap:not(:focus)::first-letter {
  32. font-family: Lora, Garamond, serif;
  33. font-size: 3.75em;
  34. }
  35. /* Images */
  36. .wp-block-image .alignleft {
  37. margin-right: 1.5em;
  38. }
  39. .rtl .wp-block-image .alignleft {
  40. margin-left: 1.5em;
  41. margin-right: 0;
  42. }
  43. .wp-block-image .alignright {
  44. margin-left: 1.5em;
  45. }
  46. .rtl .wp-block-image .alignright {
  47. margin-left: 0;
  48. margin-right: 1.5em;
  49. }
  50. /* Images - Fancy styles */
  51. .wp-block-image.is-style-fancy {
  52. position: relative;
  53. line-height: 1;
  54. }
  55. .wp-block-image.is-style-fancy .alignright,
  56. .wp-block-image.is-style-fancy .alignleft,
  57. .wp-block-image.is-style-fancy .aligncenter {
  58. margin: 0;
  59. }
  60. .wp-block-image.is-style-fancy img {
  61. display: inline-block;
  62. max-width: 99.9%;
  63. }
  64. .wp-block-image.is-style-fancy .shadow {
  65. position: absolute;
  66. z-index: 0;
  67. top: 0;
  68. left: 0;
  69. display: inline-block;
  70. width: 100%;
  71. height: 100%;
  72. box-shadow: inset 0 0 85px 1px rgba(0, 0, 0, .1);
  73. }
  74. .wp-block-image.is-style-fancy:before,
  75. .wp-block-image.is-style-fancy:after {
  76. position: absolute;
  77. z-index: 1;
  78. top: -1px;
  79. left: -1px;
  80. display: block;
  81. width: 45px;
  82. height: 45px;
  83. content: "";
  84. background-image: url(img/corner.svg);
  85. background-repeat: no-repeat;
  86. background-size: 45px;
  87. }
  88. .wp-block-image.is-style-fancy:after {
  89. right: -1px;
  90. left: auto;
  91. -webkit-transform: rotate(90deg);
  92. -ms-transform: rotate(90deg);
  93. transform: rotate(90deg);
  94. }
  95. .wp-block-image.is-style-fancy > .corners:before,
  96. .wp-block-image.is-style-fancy > .corners:after {
  97. position: absolute;
  98. z-index: 1;
  99. bottom: -1px;
  100. left: -1px;
  101. display: block;
  102. width: 45px;
  103. height: 45px;
  104. content: "";
  105. -webkit-transform: rotate(-90deg);
  106. -ms-transform: rotate(-90deg);
  107. transform: rotate(-90deg);
  108. background-image: url(img/corner.svg);
  109. background-repeat: no-repeat;
  110. background-size: 45px;
  111. }
  112. .wp-block-image.is-style-fancy > .corners:after {
  113. right: -1px;
  114. left: auto;
  115. -webkit-transform: rotate(-180deg);
  116. -ms-transform: rotate(-180deg);
  117. transform: rotate(-180deg);
  118. }
  119. /* Alignments */
  120. .alignwide {
  121. margin-left: -0.875em;
  122. margin-right: -0.875em;
  123. max-width: calc( 100% + 1.75em );
  124. width: calc( 100% + 1.75em );
  125. }
  126. .alignfull {
  127. margin-left: -1.75em;
  128. margin-right: -1.75em;
  129. max-width: calc( 100% + 3.5em );
  130. width: calc( 100% + 3.5em );
  131. }
  132. @media only screen and ( min-width: 40.063em ) {
  133. .alignwide {
  134. margin-left: -1em;
  135. margin-right: -1em;
  136. max-width: calc( 100% + 2em );
  137. width: calc( 100% + 2em );
  138. }
  139. .alignfull {
  140. margin-left: -2em;
  141. margin-right: -2em;
  142. max-width: calc( 100% + 4em );
  143. width: calc( 100% + 4em );
  144. }
  145. }
  146. @media only screen and (min-width: 64.063em) {
  147. .alignwide {
  148. margin-left: -1.5em;
  149. margin-right: -1.5em;
  150. max-width: calc( 100% + 3em );
  151. width: calc( 100% + 3em );
  152. }
  153. .rtl .alignwide {
  154. margin-left: 0;
  155. max-width: calc( 100% + 1.5em );
  156. width: calc( 100% + 1.5em );
  157. }
  158. .alignfull {
  159. margin-left: -3em;
  160. margin-right: -3em;
  161. max-width: 1142px;
  162. width: calc( 100% + 6em );
  163. }
  164. .rtl .alignfull {
  165. margin-left: 0;
  166. max-width: calc( 100% + 3em );
  167. width: calc( 100% + 3em );
  168. }
  169. }
  170. @media only screen and (min-width: 75em) {
  171. .alignwide {
  172. margin-left: -2.5em;
  173. margin-right: 0;
  174. max-width: calc( 100% + 2.5em );
  175. width: calc( 100% + 2.5em );
  176. }
  177. .rtl .alignwide {
  178. margin-right: -2.5em;
  179. margin-left: 0;
  180. max-width: calc( 100% + 2.5em );
  181. width: calc( 100% + 2.5em );
  182. }
  183. .no-sidebar .alignwide {
  184. margin-right: -2.5em;
  185. max-width: calc( 100% + 5em );
  186. width: calc( 100% + 5em );
  187. }
  188. .alignfull {
  189. margin-left: -5em;
  190. margin-right: 0;
  191. max-width: 1142px;
  192. width: calc( 100% + 5em );
  193. }
  194. .rtl .alignfull {
  195. margin-left: 0;
  196. margin-right: -5em;
  197. max-width: 1142px;
  198. width: calc( 100% + 5em );
  199. }
  200. .no-sidebar .alignfull {
  201. margin-right: -5em;
  202. max-width: 1142px;
  203. width: calc( 100% + 10em );
  204. }
  205. }
  206. .wp-block-columns.alignfull,
  207. .wp-block-latest-comments.alignfull,
  208. .wp-block-archives.alignfull,
  209. .wp-block-categories.alignfull,
  210. .wp-block-archives.alignfull,
  211. .wp-block-latest-posts.alignfull,
  212. .wp-block-file.alignfull {
  213. padding-left: 1.5em;
  214. padding-right: 1.5em;
  215. }
  216. .wp-block-cover-image .wp-block-cover-image-text {
  217. margin: 0;
  218. }
  219. /* Gallery */
  220. .wp-block-gallery {
  221. margin-left: 0;
  222. margin-right: 0;
  223. }
  224. /* Quote */
  225. .wp-block-quote p:last-of-type {
  226. margin-bottom: 1em;
  227. }
  228. .wp-block-quote cite {
  229. color: #999;
  230. font-size: 16px;
  231. }
  232. .wp-block-quote.is-large,
  233. .wp-block-quote.is-style-large {
  234. padding: 0;
  235. margin-left: 30px;
  236. margin-right: 30px;
  237. }
  238. .wp-block-quote.is-large p,
  239. .wp-block-quote.is-style-large p {
  240. font-size: 1.5em;
  241. }
  242. .wp-block-quote.is-large cite,
  243. .wp-block-quote.is-large footer,
  244. .wp-block-quote.is-style-large cite,
  245. .wp-block-quote.is-style-large footer {
  246. font-size: 1em;
  247. }
  248. /* Audio */
  249. .wp-block-audio audio {
  250. width: 100%;
  251. }
  252. /* File */
  253. .wp-block-file {
  254. line-height: 52px;
  255. }
  256. /* Video */
  257. .wp-block-video {
  258. display: inline-block;
  259. }
  260. /* File */
  261. .wp-block-file .wp-block-file__button {
  262. background: #bbb;
  263. border-radius: 0;
  264. border: 1px dashed white;
  265. box-shadow: none;
  266. color: #fff;
  267. font-size: 14px;
  268. font-weight: bold;
  269. line-height: 1;
  270. margin: 5px;
  271. outline: 5px solid #bbb;
  272. padding: .75em 1em;
  273. text-shadow: none;
  274. text-transform: uppercase;
  275. transition: .3s;
  276. }
  277. .wp-block-file .wp-block-file__button:active,
  278. .wp-block-file .wp-block-file__button:focus,
  279. .wp-block-file .wp-block-file__button:hover {
  280. background: #f78769;
  281. outline: 5px solid #f78769;
  282. box-shadow: none;
  283. }
  284. .wp-block-file .wp-block-file__button {
  285. margin-left: 17px;
  286. }
  287. /*--------------------------------------------------------------
  288. 3.0 Blocks - Formatting
  289. --------------------------------------------------------------*/
  290. /* Pullquote */
  291. .wp-block-pullquote {
  292. padding: 0;
  293. }
  294. /* Table */
  295. .wp-block-table th {
  296. text-align: left;
  297. }
  298. .rtl .wp-block-table th {
  299. text-align: right;
  300. }
  301. /*--------------------------------------------------------------
  302. 4.0 Blocks - Layout Elements
  303. --------------------------------------------------------------*/
  304. /* Buttons */
  305. .wp-block-button .wp-block-button__link {
  306. font-size: 14px;
  307. font-weight: bold;
  308. line-height: 1;
  309. position: relative;
  310. padding: .75em 1em;
  311. text-shadow: none;
  312. text-transform: uppercase;
  313. transition: .3s;
  314. }
  315. .wp-block-button__link {
  316. background: #bbb;
  317. color: #fff;
  318. }
  319. .wp-block-button__link:not(.has-background) {
  320. border: 1px dashed #fff;
  321. box-shadow: 0 0 0 5px #bbb;
  322. margin: 0 5px;
  323. }
  324. .wp-block-button__link.has-background,
  325. .wp-block-button.is-style-outline .wp-block-button__link {
  326. box-shadow: none;
  327. margin: 0;
  328. padding: calc( .75em + 5px ) calc( 1em + 5px );
  329. }
  330. a.wp-block-button__link:not(.has-text-color),
  331. a.wp-block-button__link:not(.has-text-color):active,
  332. a.wp-block-button__link:not(.has-text-color):focus,
  333. a.wp-block-button__link:not(.has-text-color):hover {
  334. color: #fff;
  335. }
  336. .wp-block-button.is-style-outline .wp-block-button__link {
  337. border-color: currentColor;
  338. border-style: dashed;
  339. border-width: 1px;
  340. }
  341. .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
  342. color: #bbb;
  343. }
  344. .entry-content .wp-block-button .wp-block-button__link:active,
  345. .entry-content .wp-block-button .wp-block-button__link:focus,
  346. .entry-content .wp-block-button .wp-block-button__link:hover {
  347. background: #f78769;
  348. color: #fff;
  349. }
  350. .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):active,
  351. .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):focus,
  352. .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover {
  353. box-shadow: 0 0 0 5px #f78769;
  354. }
  355. /* Seperator */
  356. hr.wp-block-separator {
  357. border: 0;
  358. }
  359. .wp-block-separator {
  360. background-color: #f3f3f3;
  361. border: 0;
  362. height: 2px;
  363. margin-bottom: 1.5em;
  364. max-width: 20%;
  365. }
  366. .wp-block-separator.is-style-wide {
  367. max-width: 100%;
  368. }
  369. .wp-block-separator.is-style-dots::before {
  370. color: #ccc;
  371. }
  372. /*--------------------------------------------------------------
  373. 5.0 Blocks - Widgets
  374. --------------------------------------------------------------*/
  375. /* General Widget styles */
  376. .wp-block-categories.aligncenter,
  377. .wp-block-categories.aligncenter ul,
  378. .wp-block-archives.aligncenter,
  379. .wp-block-latest-posts.aligncenter,
  380. .wp-block-latest-comments.aligncenter {
  381. list-style-position: inside;
  382. text-align: center;
  383. }
  384. /* Latest Comments */
  385. .wp-block-latest-comments:not(.alignfull):not(.alignwide) {
  386. margin-left: auto;
  387. margin-right: auto;
  388. }
  389. /* Latest Posts */
  390. .wp-block-latest-posts.is-grid {
  391. margin: 0;
  392. }
  393. /*--------------------------------------------------------------
  394. 6.0 Blocks - Colors
  395. --------------------------------------------------------------*/