_extra-child-theme.scss 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  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. .home.page.hide-homepage-title {
  27. .site-main {
  28. padding: 0;
  29. article {
  30. .entry-content {
  31. margin-top: 0;
  32. }
  33. }
  34. }
  35. }
  36. a {
  37. text-decoration: none;
  38. }
  39. .main-navigation {
  40. text-transform: uppercase;
  41. }
  42. .main-navigation > div > ul,
  43. .social-navigation > div > ul,
  44. .pagination .nav-links {
  45. justify-content: center;
  46. }
  47. /**
  48. * 2. Header
  49. */
  50. #masthead {
  51. background-color: #{map-deep-get($config-global, "color", "white")};
  52. padding: 0;
  53. .site-title {
  54. font-size: #{map-deep-get($config-global, "font", "size", "xxl")};
  55. }
  56. .site-description {
  57. color: #333;
  58. }
  59. .site-branding {
  60. text-align: center;
  61. background: #fff;
  62. background-position: center;
  63. background-repeat: no-repeat;
  64. background-size: cover;
  65. text-align: center;
  66. height: 100%;
  67. min-height: 72px;
  68. padding: 3em 0 36px;
  69. }
  70. margin: 0 auto;
  71. .social-navigation {
  72. margin-bottom: #{map-deep-get($config-global, "spacing", "unit")};
  73. ul {
  74. li {
  75. a {
  76. color: #{map-deep-get($config-global, "color", "secondary", "default")};
  77. &:hover {
  78. color: #{map-deep-get($config-global, "color", "secondary", "hover")};
  79. }
  80. }
  81. }
  82. }
  83. }
  84. }
  85. /**
  86. * 3. Main Wrapper and Content
  87. */
  88. .site {
  89. margin: 0 auto;
  90. padding: 0;
  91. }
  92. .site-content {
  93. background-color: #{map-deep-get($config-global, "color", "white")};
  94. }
  95. #page {
  96. .entry-header,
  97. .page-header,
  98. .entry-footer,
  99. .a8c-posts-list {
  100. text-align: center;
  101. }
  102. .a8c-posts-list-item__excerpt {
  103. text-align: left;
  104. }
  105. }
  106. /**
  107. * 4. Navigation
  108. */
  109. /**
  110. * 4.1 Main Navigation
  111. */
  112. #site-navigation {
  113. &.main-navigation {
  114. ul {
  115. li {
  116. padding-left: #{map-deep-get($config-global, "spacing", "unit")};
  117. padding-right: #{map-deep-get($config-global, "spacing", "unit")};
  118. &.current-menu-item {
  119. a {
  120. color: #{map-deep-get($config-global, "color", "secondary", "hover")};
  121. }
  122. }
  123. a {
  124. color: #{map-deep-get($config-global, "color", "white")};
  125. text-decoration: none;
  126. &:hover {
  127. color: #{map-deep-get($config-global, "color", "secondary", "hover")};
  128. }
  129. }
  130. @include media(mobile) {
  131. padding-left: 0;
  132. padding-right: 0;
  133. list-style-type: disc;
  134. &.current-menu-item {
  135. a {
  136. color: #{map-deep-get($config-global, "color", "secondary", "hover")};
  137. }
  138. }
  139. a {
  140. color: #{map-deep-get($config-global, "color", "white")};
  141. font-size: #{map-deep-get($config-global, "font", "size", "sm")};
  142. &:hover {
  143. color: #{map-deep-get($config-global, "color", "secondary", "hover")};
  144. }
  145. &::after {
  146. color: #ffa4ad;
  147. content: " \2022";
  148. margin-left: #{map-deep-get($config-global, "spacing", "unit")};
  149. display: inline;
  150. font-size: #{map-deep-get($config-global, "font", "size", "base")};
  151. }
  152. }
  153. &:last-child {
  154. a {
  155. &::after {
  156. content: "";
  157. margin-left: 0;
  158. }
  159. }
  160. }
  161. }
  162. }
  163. ul {
  164. @include media(mobile) {
  165. background-color: #{map-deep-get($config-global, "color", "white")};
  166. li {
  167. &.current-menu-item {
  168. a {
  169. color: #{map-deep-get($config-global, "color", "secondary", "default")};
  170. }
  171. }
  172. a {
  173. color: #{map-deep-get($config-global, "color", "secondary", "hover")};
  174. &::after {
  175. content: "";
  176. }
  177. &:hover {
  178. color: #{map-deep-get($config-global, "color", "primary", "hover")};
  179. }
  180. }
  181. &:hover {
  182. background: #f2f2f2;
  183. }
  184. }
  185. }
  186. }
  187. }
  188. .main-menu {
  189. background-color: #{map-deep-get($config-global, "color", "secondary", "default")};
  190. border-bottom: 2px solid rgba(0,0,0,.15);
  191. margin-left: 0;
  192. margin-right: 0;
  193. & > li > a {
  194. padding-left: 0;
  195. }
  196. }
  197. #toggle-menu {
  198. border-radius: 0;
  199. width: 100% !important;
  200. text-align: center;
  201. font-size: map-deep-get($config-header, "main-nav", "font", "size");
  202. }
  203. }
  204. }
  205. /**
  206. * 4.2 Social Navigation
  207. */
  208. .social-navigation > div > ul {
  209. margin-left: 0;
  210. margin-right: 0;
  211. }
  212. /**
  213. * 5. Archive Pagination and Post Navigation
  214. */
  215. .pagination .nav-links > *,
  216. .post-navigation .post-title {
  217. font-weight: normal;
  218. }
  219. /**
  220. * 6. Block Specific Styles
  221. */
  222. /**
  223. * 6.1. Column Block
  224. */
  225. .wp-block-coblocks-column {
  226. h1,
  227. h2,
  228. h3,
  229. h4,
  230. h5,
  231. h6 {
  232. margin-bottom: .857em;
  233. }
  234. a {
  235. color: #{map-deep-get($config-global, "color", "secondary", "default")};
  236. &:hover {
  237. color: #{map-deep-get($config-global, "color", "secondary", "hover")};
  238. }
  239. }
  240. }
  241. /**
  242. * 6.2. Quote Block
  243. */
  244. .wp-block-quote,
  245. .wp-block-quote[style*="text-align:center"],
  246. .wp-block-quote[style*="text-align:right"] {
  247. border: 1px solid #f2f2f2;
  248. padding: #{map-deep-get($config-global, "spacing", "horizontal")};;
  249. p {
  250. @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
  251. }
  252. cite {
  253. color: #{map-deep-get($config-global, "color", "secondary", "default")};
  254. }
  255. }
  256. /**
  257. * 6.3. Hero Block and Cover Block
  258. */
  259. .wp-block-coblocks-hero__box,
  260. .wp-block-cover__inner-container {
  261. padding: #{map-deep-get($config-global, "spacing", "vertical")};
  262. h1,
  263. h2,
  264. h3,
  265. h4,
  266. h5,
  267. h6 {
  268. padding: #{map-deep-get($config-global, "spacing", "horizontal")};
  269. }
  270. p {
  271. padding: #{map-deep-get($config-global, "spacing", "horizontal")};
  272. }
  273. }
  274. /**
  275. * 6.4. File Block
  276. */
  277. .wp-block-file {
  278. a {
  279. &.wp-block-file__button {
  280. text-transform: uppercase;
  281. line-height: #{map-deep-get($config-button, "font", "line-height")};
  282. color: #{map-deep-get($config-button, "color", "text")};
  283. cursor: pointer;
  284. font-weight: #{map-deep-get($config-button, "font", "weight")};
  285. @include font-family( map-deep-get($config-button, "font", "family") );
  286. font-size: #{map-deep-get($config-button, "font", "size")};
  287. background-color: #{map-deep-get($config-button, "color", "background")};
  288. border-radius: #{map-deep-get($config-button, "border-radius")};
  289. border-width: #{map-deep-get($config-button, "border-width")};
  290. padding: #{map-deep-get($config-button, "padding", "vertical")} #{map-deep-get($config-button, "padding", "horizontal")};
  291. display: inline-block;
  292. &:focus,
  293. &:hover,
  294. &:visited {
  295. color: #{map-deep-get($config-button, "color", "text-hover")};
  296. background-color: #{map-deep-get($config-button, "color", "background-hover")};
  297. opacity: 1;
  298. }
  299. }
  300. }
  301. }
  302. /**
  303. * 6.5. Latest Comments Block
  304. */
  305. .wp-block-latest-comments {
  306. .wp-block-latest-comments__comment-meta {
  307. @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
  308. .wp-block-latest-comments__comment-date {
  309. font-size: #{map-deep-get($config-global, "font", "size", "xs")};
  310. }
  311. }
  312. }
  313. /**
  314. * 6.6. Button Block
  315. * 6.7. Posts List Block
  316. * 6.8. Search Block
  317. */
  318. .wp-block-button a.wp-block-button__link,
  319. .a8c-posts-list a.a8c-posts-list__view-all,
  320. .wp-block-search .wp-block-search__button {
  321. text-transform: uppercase;
  322. }
  323. /**
  324. * 7. Widgets
  325. */
  326. .site-footer {
  327. .widget-area {
  328. .widget-title {
  329. margin-bottom: .857em;
  330. }
  331. }
  332. }