blocks.css 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  1. /*
  2. Theme Name: Altofocus
  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. 7.0 Blocks - Animations
  15. --------------------------------------------------------------*/
  16. /*--------------------------------------------------------------
  17. 1.0 General Block Styles
  18. --------------------------------------------------------------*/
  19. /* Captions */
  20. [class^="wp-block-"] figcaption {
  21. color: inherit;
  22. font-size: inherit;
  23. }
  24. /*--------------------------------------------------------------
  25. 2.0 Blocks - Common Blocks
  26. --------------------------------------------------------------*/
  27. /* Paragraph */
  28. p.has-drop-cap:not(:focus)::first-letter {
  29. font-size: 5em;
  30. }
  31. /* Gallery */
  32. .wp-block-gallery {
  33. margin: 0 0 1.75em;
  34. }
  35. .wp-block-gallery figcaption {
  36. line-height: 1.5;
  37. }
  38. /* Quote */
  39. .wp-block-quote {
  40. margin-bottom: 1.75em;
  41. }
  42. .wp-block-quote.is-large p,
  43. .wp-block-quote.is-style-large p {
  44. font-style: normal;
  45. margin-bottom: 1.0em;
  46. }
  47. .wp-block-quote.is-large cite,
  48. .wp-block-quote.is-large footer,
  49. .wp-block-quote.is-style-large cite,
  50. .wp-block-quote.is-style-large footer {
  51. text-align: inherit;
  52. }
  53. /* Audio */
  54. .wp-block-audio {
  55. margin-bottom: 1.75em;
  56. }
  57. .wp-block-audio audio {
  58. display: block;
  59. width: 100%;
  60. }
  61. /* Cover */
  62. .wp-block-cover.aligncenter,
  63. .wp-block-cover.alignleft,
  64. .wp-block-cover.alignright {
  65. display: flex;
  66. }
  67. .wp-block-cover .wp-block-cover-text,
  68. .wp-block-cover-image h2 {
  69. font-size: 24px;
  70. font-size: 1.5rem;
  71. }
  72. /* File */
  73. .wp-block-file a.wp-block-file__button,
  74. .wp-block-file a.wp-block-file__button:visited {
  75. -webkit-border-radius: 30px;
  76. -moz-border-radius: 30px;
  77. border-radius: 30px;
  78. background-color: #fff;
  79. border: 1px solid;
  80. border-color: rgba(0, 0, 0, 0.2);
  81. box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.25);
  82. color: #111;
  83. display: inline-block;
  84. font-family: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;
  85. font-size: 13.875px;
  86. font-weight: 300;
  87. line-height: 1;
  88. outline: none;
  89. padding: 1em 25px;
  90. text-transform: uppercase;
  91. -webkit-transition: all 0.3s ease;
  92. -moz-transition: all 0.3s ease;
  93. -o-transform: all 0.3s ease;
  94. -ms-transform: all 0.3s ease;
  95. transition: all 0.3s ease;
  96. word-break: break-word;
  97. }
  98. .wp-block-file a.wp-block-file__button:hover {
  99. -webkit-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  100. -moz-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  101. -o-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  102. animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  103. background-color: #e38900;
  104. border-color: #e38900;
  105. color: #fff;
  106. opacity: 1;
  107. }
  108. .wp-block-file a.wp-block-file__button:focus,
  109. .wp-block-file a.wp-block-file__button:active {
  110. border-color: #aaa #bbb #bbb;
  111. box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.125);
  112. -webkit-transform: scale(0.925);
  113. -moz-transform: scale(0.925);
  114. -o-transform: scale(0.925);
  115. -ms-transform: scale(0.925);
  116. transform: scale(0.925);
  117. color: #111;
  118. opacity: 1;
  119. }
  120. @media screen and (min-width: 37.5em) {
  121. .wp-block-file .wp-block-file__button {
  122. font-size: 15px;
  123. }
  124. }
  125. /*--------------------------------------------------------------
  126. 3.0 Blocks - Formatting
  127. --------------------------------------------------------------*/
  128. /* Verse */
  129. .wp-block-verse {
  130. background: transparent;
  131. font-family: inherit;
  132. font-size: inherit;
  133. font-style: italic;
  134. padding: 0;
  135. }
  136. /* Pullquote */
  137. .wp-block-pullquote cite {
  138. color: #888;
  139. }
  140. /*--------------------------------------------------------------
  141. 4.0 Blocks - Layout Elements
  142. --------------------------------------------------------------*/
  143. /* Buttons */
  144. .wp-block-button__link {
  145. box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.25) !important;
  146. display: inline-block;
  147. font-family: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;
  148. font-size: 13.875px;
  149. font-size: 0.925rem;
  150. font-weight: 300;
  151. line-height: 1;
  152. outline: none;
  153. padding: 1em 25px;
  154. text-transform: uppercase;
  155. -webkit-transition: all 0.3s ease;
  156. -moz-transition: all 0.3s ease;
  157. -o-transform: all 0.3s ease;
  158. -ms-transform: all 0.3s ease;
  159. transition: all 0.3s ease;
  160. word-break: break-word;
  161. }
  162. .wp-block-button__link,
  163. .wp-block-button__link:visited {
  164. background-color: #111;
  165. color: #fff;
  166. }
  167. .is-style-outline .wp-block-button__link:not(.has-text-color),
  168. .is-style-outline .wp-block-button__link:not(.has-text-color):visited {
  169. color: #111;
  170. }
  171. .entry-content .wp-block-button .wp-block-button__link:hover {
  172. background-color: #e38900;
  173. border-color: #e38900;
  174. color: #fff;
  175. -webkit-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  176. -moz-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  177. -o-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  178. animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  179. opacity: 1;
  180. }
  181. .entry-content .wp-block-button .wp-block-button__link:focus,
  182. .entry-content .wp-block-button .wp-block-button__link:active {
  183. box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.125);
  184. border-color: #aaa #bbb #bbb;
  185. color: #fff;
  186. -webkit-transform: scale(0.925);
  187. -moz-transform: scale(0.925);
  188. -o-transform: scale(0.925);
  189. -ms-transform: scale(0.925);
  190. transform: scale(0.925);
  191. }
  192. @media screen and (min-width: 37.5em) {
  193. .wp-block-button .wp-block-button__link {
  194. font-size: 15px;
  195. font-size: 1rem;
  196. }
  197. }
  198. /* Seperator */
  199. hr.wp-block-separator {
  200. border: 0;
  201. }
  202. .wp-block-separator {
  203. margin-left: auto;
  204. margin-right: auto;
  205. max-width: 100px;
  206. }
  207. .wp-block-separator.is-style-wide {
  208. max-width: 100%;
  209. }
  210. /* Media & Text */
  211. .wp-block-media-text {
  212. margin-bottom: 1.75em;
  213. }
  214. /*--------------------------------------------------------------
  215. 5.0 Blocks - Widgets
  216. --------------------------------------------------------------*/
  217. /* General Widget styles */
  218. .wp-block-archives.aligncenter,
  219. .wp-block-categories.aligncenter,
  220. .wp-block-categories.aligncenter ul,
  221. .wp-block-latest-posts.aligncenter,
  222. .wp-block-latest-comments.aligncenter {
  223. list-style-position: inside;
  224. text-align: center;
  225. }
  226. /* Latest Posts */
  227. .wp-block-latest-posts.is-grid {
  228. margin-left: 0;
  229. margin-right: 0;
  230. }
  231. /* Latest Comments */
  232. .wp-block-latest-comments {
  233. margin-left: 0;
  234. margin-right: 0;
  235. }
  236. /*--------------------------------------------------------------
  237. 6.0 Blocks - Colors
  238. --------------------------------------------------------------*/
  239. .has-orange-color,
  240. .has-orange-color:visited {
  241. color: #e38900;
  242. }
  243. .has-orange-background-color,
  244. .has-orange-background-color:visited {
  245. background-color: #e38900;
  246. }
  247. .has-dark-gray-color,
  248. .has-dark-gray-color:visited {
  249. color: #111;
  250. }
  251. .has-dark-gray-background-color,
  252. .has-dark-gray-background-color:visited {
  253. background-color: #111;
  254. }
  255. .has-medium-gray-color,
  256. .has-medium-gray-color:visited {
  257. color: #111111;
  258. }
  259. .has-medium-gray-background-color,
  260. .has-medium-gray-background-color:visited {
  261. background-color: #888;
  262. }
  263. .has-light-gray-color,
  264. .has-light-gray-color:visited {
  265. color: #ccc;
  266. }
  267. .has-light-gray-background-color,
  268. .has-light-gray-background-color:visited {
  269. background-color: #ccc;
  270. }
  271. .has-white-color,
  272. .has-white-color:visited {
  273. color: #fff;
  274. }
  275. .has-white-background-color,
  276. .has-white-background-color:visited {
  277. background-color: #fff;
  278. }
  279. /*--------------------------------------------------------------
  280. 7.0 Blocks - Animations
  281. --------------------------------------------------------------*/
  282. @-webkit-keyframes bounce-reveal {
  283. 0%,
  284. 100% {
  285. -webkit-transform: scale(1);
  286. transform: scale(1);
  287. }
  288. 33% {
  289. -webkit-transform: scale(1.1);
  290. transform: scale(1.1);
  291. }
  292. 66% {
  293. -webkit-transform: scale(0.9);
  294. transform: scale(0.9);
  295. }
  296. }
  297. @-moz-keyframes bounce-reveal {
  298. 0%,
  299. 100% {
  300. -moz-transform: scale(1);
  301. transform: scale(1);
  302. }
  303. 33% {
  304. -moz-transform: scale(1.1);
  305. transform: scale(1.1);
  306. }
  307. 66% {
  308. -moz-transform: scale(0.9);
  309. transform: scale(0.9);
  310. }
  311. }
  312. @-o-keyframes bounce-reveal {
  313. 0%,
  314. 100% {
  315. -o-transform: scale(1);
  316. transform: scale(1);
  317. }
  318. 33% {
  319. -o-transform: scale(1.1);
  320. transform: scale(1.1);
  321. }
  322. 66% {
  323. -o-transform: scale(0.9);
  324. transform: scale(0.9);
  325. }
  326. }
  327. @keyframes bounce-reveal {
  328. 0%,
  329. 100% {
  330. transform: scale(1);
  331. }
  332. 33% {
  333. transform: scale(1.1);
  334. }
  335. 66% {
  336. transform: scale(0.9);
  337. }
  338. }