_extra-child-theme.scss 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. /**
  2. * Extra Child Theme Styles
  3. *
  4. * 1. General Helper Styles
  5. * 2. Header
  6. * 3. Main Wrapper and Content
  7. * 4. Navigation Menu
  8. * 5. Archive Pagination and Post Navigation
  9. * 6. Block Specific Styles
  10. * 6.1. Column Block
  11. * 6.2. Quote Block
  12. * 6.3. Hero Block and Cover Block
  13. * 6.4. File Block
  14. * 6.5. Latest Comments Block
  15. * 6.6. Button Block
  16. * 6.7. Posts List Block
  17. * 6.8. Search Block
  18. * 7. Widgets
  19. */
  20. /**
  21. * 1. General Helper Styles
  22. */
  23. body {
  24. font-weight: 300;
  25. }
  26. b, strong {
  27. font-weight: 700;
  28. }
  29. .home.page.hide-homepage-title {
  30. .site-main {
  31. padding: 0;
  32. article {
  33. .entry-content {
  34. margin-top: 0;
  35. }
  36. }
  37. }
  38. }
  39. a {
  40. text-decoration: none;
  41. }
  42. .main-navigation {
  43. text-transform: uppercase;
  44. }
  45. .main-navigation > div > ul,
  46. .social-navigation > div > ul,
  47. .pagination .nav-links {
  48. justify-content: center;
  49. }
  50. /**
  51. * 2. Header
  52. */
  53. #masthead {
  54. background-color: #{map-deep-get($config-global, "color", "background", "default")};
  55. padding: 0;
  56. .site-branding {
  57. text-align: center;
  58. background: #{map-deep-get($config-global, "color", "background", "default")};
  59. background-position: center;
  60. background-repeat: no-repeat;
  61. background-size: cover;
  62. text-align: center;
  63. height: 100%;
  64. min-height: 72px;
  65. padding: 3em 0 36px;
  66. }
  67. margin: 0 auto;
  68. .social-navigation {
  69. margin-bottom: #{map-deep-get($config-global, "spacing", "unit")};
  70. ul {
  71. li {
  72. a {
  73. color: #{map-deep-get($config-global, "color", "secondary", "default")};
  74. &:hover {
  75. color: #{map-deep-get($config-global, "color", "secondary", "hover")};
  76. }
  77. }
  78. }
  79. }
  80. }
  81. }
  82. body:not( .fse-enabled ) {
  83. .site-title {
  84. font-size: #{map-deep-get($config-global, "font", "size", "xxl")};
  85. }
  86. .site-description {
  87. color: #{map-deep-get($config-global, "color", "foreground", "default")};
  88. }
  89. }
  90. /**
  91. * 3. Main Wrapper and Content
  92. */
  93. .site {
  94. margin: 0 auto;
  95. padding: 0;
  96. }
  97. .site-content {
  98. background-color: #{map-deep-get($config-global, "color", "background", "default")};
  99. }
  100. #page {
  101. .entry-header,
  102. .page-header,
  103. .entry-footer,
  104. .a8c-posts-list {
  105. text-align: center;
  106. }
  107. .a8c-posts-list-item__excerpt {
  108. text-align: left;
  109. }
  110. }
  111. /**
  112. * 4. Navigation
  113. */
  114. /**
  115. * 4.1 Main Navigation
  116. */
  117. body:not( .fse-enabled ) {
  118. #site-navigation, .main-navigation {
  119. background-color: #{map-deep-get($config-global, "color", "secondary", "default")};
  120. border-bottom: 2px solid rgba(0,0,0,.15);
  121. margin-left: 0;
  122. margin-right: 0;
  123. text-align: center;
  124. & > div {
  125. text-align: left;
  126. }
  127. &.main-navigation {
  128. & > div {
  129. padding-left: #{map-deep-get($config-global, "spacing", "unit")};
  130. padding-right: #{map-deep-get($config-global, "spacing", "unit")};
  131. }
  132. ul {
  133. li {
  134. &.current-menu-item {
  135. a {
  136. color: #{map-deep-get($config-global, "color", "primary", "default")};
  137. }
  138. }
  139. a {
  140. color: #{map-deep-get($config-global, "color", "background", "default")};
  141. text-decoration: none;
  142. &:hover {
  143. color: #{map-deep-get($config-global, "color", "primary", "default")};
  144. }
  145. }
  146. @include media(mobile) {
  147. padding-left: 0;
  148. padding-right: 0;
  149. list-style-type: disc;
  150. &.current-menu-item {
  151. a {
  152. color: #{map-deep-get($config-global, "color", "primary", "default")};
  153. }
  154. }
  155. a {
  156. color: #{map-deep-get($config-global, "color", "background", "default")};
  157. font-size: #{map-deep-get($config-global, "font", "size", "sm")};
  158. &:hover {
  159. color: #{map-deep-get($config-global, "color", "primary", "default")};
  160. }
  161. &::after {
  162. color: #{map-deep-get($config-global, "color", "background", "default")};
  163. content: " \2022";
  164. margin-left: #{map-deep-get($config-global, "spacing", "unit")};
  165. display: inline;
  166. font-size: #{map-deep-get($config-global, "font", "size", "base")};
  167. opacity: 0.58;
  168. }
  169. }
  170. &:last-child {
  171. a {
  172. &::after {
  173. content: "";
  174. margin-left: 0;
  175. }
  176. }
  177. }
  178. }
  179. }
  180. ul {
  181. @include media(mobile) {
  182. background-color: #{map-deep-get($config-global, "color", "background", "default")};
  183. li {
  184. &.current-menu-item {
  185. a {
  186. color: #{map-deep-get($config-global, "color", "secondary", "default")};
  187. }
  188. }
  189. a {
  190. color: #{map-deep-get($config-global, "color", "primary", "default")};
  191. &::after {
  192. content: "";
  193. }
  194. &:hover {
  195. color: #{map-deep-get($config-global, "color", "primary", "hover")};
  196. }
  197. }
  198. &:hover {
  199. background: #{map-deep-get($config-global, "color", "background", "light")};
  200. }
  201. }
  202. }
  203. }
  204. }
  205. .main-menu {
  206. & > li > a {
  207. padding-left: 0;
  208. }
  209. }
  210. #toggle-menu {
  211. border-radius: 0;
  212. width: 100% !important;
  213. text-align: center;
  214. font-size: map-deep-get($config-header, "main-nav", "font", "size");
  215. }
  216. }
  217. }
  218. }
  219. /**
  220. * 4.2 Social Navigation
  221. */
  222. .social-navigation > div > ul {
  223. margin-left: 0;
  224. margin-right: 0;
  225. }
  226. /**
  227. * 5. Archive Pagination and Post Navigation
  228. */
  229. .pagination .nav-links > *,
  230. .post-navigation .post-title {
  231. font-weight: normal;
  232. }
  233. /**
  234. * 6. Block Specific Styles
  235. */
  236. /**
  237. * 6.1. Column Block
  238. */
  239. .wp-block-coblocks-column {
  240. h1,
  241. h2,
  242. h3,
  243. h4,
  244. h5,
  245. h6 {
  246. margin-bottom: .857em;
  247. }
  248. a {
  249. color: #{map-deep-get($config-global, "color", "secondary", "default")};
  250. &:hover {
  251. color: #{map-deep-get($config-global, "color", "secondary", "hover")};
  252. }
  253. }
  254. }
  255. /**
  256. * 6.2. Quote Block
  257. */
  258. .wp-block-quote,
  259. .wp-block-quote[style*="text-align:center"],
  260. .wp-block-quote[style*="text-align:right"] {
  261. border: 1px solid #f2f2f2;
  262. padding: #{map-deep-get($config-global, "spacing", "horizontal")};;
  263. p {
  264. @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
  265. }
  266. cite {
  267. color: #{map-deep-get($config-global, "color", "secondary", "default")};
  268. }
  269. }
  270. /**
  271. * 6.3. Hero Block and Cover Block
  272. */
  273. .wp-block-coblocks-hero__box,
  274. .wp-block-cover__inner-container {
  275. padding: #{map-deep-get($config-global, "spacing", "vertical")};
  276. h1,
  277. h2,
  278. h3,
  279. h4,
  280. h5,
  281. h6 {
  282. padding: #{map-deep-get($config-global, "spacing", "horizontal")};
  283. }
  284. p {
  285. padding: #{map-deep-get($config-global, "spacing", "horizontal")};
  286. }
  287. }
  288. /**
  289. * 6.4. File Block
  290. */
  291. .wp-block-file {
  292. a {
  293. &.wp-block-file__button {
  294. text-transform: uppercase;
  295. line-height: #{map-deep-get($config-button, "font", "line-height")};
  296. color: #{map-deep-get($config-button, "color", "text")};
  297. cursor: pointer;
  298. font-weight: #{map-deep-get($config-button, "font", "weight")};
  299. @include font-family( map-deep-get($config-button, "font", "family") );
  300. font-size: #{map-deep-get($config-button, "font", "size")};
  301. background-color: #{map-deep-get($config-button, "color", "background")};
  302. border-radius: #{map-deep-get($config-button, "border-radius")};
  303. border-width: #{map-deep-get($config-button, "border-width")};
  304. padding: #{map-deep-get($config-button, "padding", "vertical")} #{map-deep-get($config-button, "padding", "horizontal")};
  305. display: inline-block;
  306. &:focus,
  307. &:hover,
  308. &:visited {
  309. color: #{map-deep-get($config-button, "color", "text-hover")};
  310. background-color: #{map-deep-get($config-button, "color", "background-hover")};
  311. opacity: 1;
  312. }
  313. }
  314. }
  315. }
  316. /**
  317. * 6.5. Latest Comments Block
  318. */
  319. .wp-block-latest-comments {
  320. .wp-block-latest-comments__comment-meta {
  321. @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
  322. .wp-block-latest-comments__comment-date {
  323. font-size: #{map-deep-get($config-global, "font", "size", "xs")};
  324. }
  325. }
  326. }
  327. /**
  328. * 6.6. Button Block
  329. * 6.7. Posts List Block
  330. * 6.8. Search Block
  331. */
  332. .wp-block-button a.wp-block-button__link,
  333. .a8c-posts-list a.a8c-posts-list__view-all,
  334. .wp-block-search .wp-block-search__button {
  335. text-transform: uppercase;
  336. }
  337. /**
  338. * 7. Widgets
  339. */
  340. .site-footer {
  341. .widget-area {
  342. .widget-title {
  343. margin-bottom: .857em;
  344. }
  345. }
  346. }
  347. /**
  348. * 6.1. Blog Posts (Newspack) Block
  349. */
  350. .wp-block-newspack-blocks-homepage-articles {
  351. article {
  352. .entry-title a {
  353. &:active,
  354. &:focus,
  355. &:hover {
  356. text-decoration: none;
  357. }
  358. }
  359. .more-link {
  360. &:active,
  361. &:focus,
  362. &:hover {
  363. color: #{map-deep-get($config-global, "color", "primary", "hover")};
  364. }
  365. }
  366. .cat-links a,
  367. .more-link,
  368. .entry-meta a {
  369. text-decoration: none;
  370. &:active,
  371. &:focus,
  372. &:hover {
  373. text-decoration: underline;
  374. }
  375. }
  376. }
  377. &.image-alignbehind article {
  378. .entry-title a {
  379. &:active,
  380. &:focus,
  381. &:hover {
  382. color: inherit;
  383. text-decoration: underline;
  384. }
  385. }
  386. .more-link {
  387. &:active,
  388. &:focus,
  389. &:hover {
  390. color: inherit;
  391. }
  392. }
  393. }
  394. }
  395. .has-background:not(.has-background-background-color),
  396. [class*="background-color"]:not(.has-background-background-color),
  397. [style*="background-color"] {
  398. .wp-block-newspack-blocks-homepage-articles article {
  399. .entry-title a{
  400. &:active,
  401. &:focus,
  402. &:hover {
  403. text-decoration: underline;
  404. }
  405. }
  406. .more-link {
  407. &:active,
  408. &:focus,
  409. &:hover {
  410. color: inherit;
  411. }
  412. }
  413. }
  414. }
  415. /**
  416. * Search block
  417. */
  418. .wp-block-search {
  419. &.wp-block-search__button-inside {
  420. .wp-block-search__inside-wrapper{
  421. border-radius: #{map-deep-get($config-button, "border-radius")};
  422. }
  423. .wp-block-search__input {
  424. background: transparent;
  425. }
  426. }
  427. .wp-block-search__input {
  428. margin-right: calc( .1 * #{map-deep-get($config-button, "padding", "horizontal")} );
  429. border-radius: #{map-deep-get($config-button, "border-radius")};
  430. }
  431. }