blocks.css 9.2 KB

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