modern.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. /**
  2. * Modern Style Pack
  3. *
  4. * fonts: Montserrat + Source Sans Pro
  5. * colors: background white, accent #e8e8e8 (contrasts need a lot of tweaking compared to original color annotations with this one)
  6. * header image: https://pixabay.com/en/desktop-work-area-keyboard-mac-1486663/
  7. */
  8. /**
  9. * Colours
  10. */
  11. body,
  12. .hero-area,
  13. .hero-area .button,
  14. .hero-area .button:focus,
  15. .hero-area .button:hover {
  16. background-color: #fff;
  17. }
  18. blockquote:before,
  19. blockquote:after {
  20. background-color: #f1f1f1;
  21. }
  22. .comments-area,
  23. .respond {
  24. background-color: #f1f1f1;
  25. }
  26. .post-nav-wrapper,
  27. .site-footer,
  28. .widget-area,
  29. .entry-author,
  30. .entry-links,
  31. .page-header,
  32. .comments-area {
  33. border-top-color: #f1f1f1;
  34. }
  35. .contact-info-area,
  36. .contact-info-area a,
  37. .contact-info-area a:visited {
  38. color: #222;
  39. }
  40. @media all and (max-width: 768px) {
  41. .main-navigation.toggled ul {
  42. border-top-color: #f1f1f1;
  43. }
  44. }
  45. .single.no-featured-image .site-header,
  46. .page.no-featured-image .site-header,
  47. .error-404 .page-header,
  48. .no-results .page-header,
  49. .search-no-results .page-header {
  50. border-bottom-color: #f1f1f1;
  51. }
  52. .contact-info-area {
  53. border-color: #f1f1f1;
  54. }
  55. .respond {
  56. border-top-color: #cdcdcd;
  57. }
  58. .comments-title {
  59. border-bottom-color: #cdcdcd;
  60. }
  61. a,
  62. a:visited,
  63. .jetpack-social-navigation a:hover,
  64. .jetpack-social-navigation a:focus,
  65. .posts-navigation a:hover,
  66. .comment-navigation a:hover,
  67. .post-navigation a:hover,
  68. .contact-info-area a:focus,
  69. .contact-info-area a:hover,
  70. .site-title a:hover,
  71. .site-info a:hover,
  72. #wp-calendar tfoot a:hover,
  73. .entry-title a:hover,
  74. .entry-meta a:hover,
  75. .entry-footer a:hover {
  76. color: #aaa;
  77. }
  78. .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color) {
  79. color: #fff;
  80. }
  81. button:hover,
  82. .button:hover,
  83. input[type="button"]:hover,
  84. input[type="reset"]:hover,
  85. input[type="submit"]:hover,
  86. .entry-content .wp-block-button .wp-block-button__link:hover,
  87. button:focus,
  88. .button:focus,
  89. input[type="button"]:focus,
  90. input[type="reset"]:focus,
  91. input[type="submit"]:focus,
  92. .entry-content .wp-block-button .wp-block-button__link:focus,
  93. button:active,
  94. .button:active,
  95. input[type="button"]:active,
  96. input[type="reset"]:active,
  97. input[type="submit"]:active,
  98. .entry-content .wp-block-button .wp-block-button__link:active,
  99. .bypostauthor .by-post-author,
  100. #infinite-handle span:hover {
  101. background-color: #aaa;
  102. }
  103. .hero-area {
  104. background-color: #888;
  105. }
  106. .entry-title a {
  107. color: #fff;
  108. }
  109. .post-navigation a {
  110. color: #222;
  111. }
  112. @media all and (max-width: 768px) {
  113. .main-navigation.toggled li a:hover,
  114. .main-navigation.toggled li a:focus,
  115. .main-navigation.toggled li a:active {
  116. background-color: #aaa;
  117. }
  118. }
  119. @media all and (min-width: 768px) {
  120. .main-navigation li:hover > a,
  121. .main-navigation li.focus > a,
  122. .main-navigation li.current-menu-item > a,
  123. .main-navigation li.current-menu-item ~ li.current-menu-item > a:hover {
  124. background-color: #e8e8e8;
  125. color: #606060;
  126. }
  127. }
  128. .contact-info-area .icon {
  129. fill: #aaa;
  130. }
  131. .main-navigation a,
  132. .site-title a {
  133. color: #222;
  134. }
  135. /**
  136. * Fonts
  137. */
  138. /* Body Text */
  139. body,
  140. button,
  141. input,
  142. select,
  143. textarea,
  144. .post-navigation a,
  145. .site-description,
  146. .header-search .s,
  147. .entry-meta,
  148. .site-footer,
  149. .main-navigation a,
  150. .entry-footer,
  151. .post-navigation a span,
  152. .comment-actions,
  153. .comment-navigation,
  154. #wp-calendar tfoot a,
  155. form,
  156. input,
  157. button,
  158. .button,
  159. input[type="button"],
  160. input[type="reset"],
  161. input[type="submit"],
  162. .wp-block-button .wp-block-button__link,
  163. #infinite-handle span {
  164. font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, arial, sans-serif;
  165. }
  166. /* Headers */
  167. h1,
  168. h2,
  169. h3,
  170. h4,
  171. h5,
  172. h6,
  173. .archive .page-title,
  174. .comment-header,
  175. .site-title,
  176. .entry-title {
  177. font-family: 'Montserrat', 'Helvetica Neue', Helvetica, arial, sans-serif;
  178. text-transform: none;
  179. }
  180. .widget-title {
  181. font-family: 'Montserrat', 'Helvetica Neue', Helvetica, arial, sans-serif;
  182. }
  183. .archive .page-title {
  184. text-transform: uppercase;
  185. }
  186. .archive .page-title,
  187. .search .page-title,
  188. .error404 .page-title {
  189. margin: 0 auto;
  190. }
  191. .comments-title,
  192. .comment-reply-title {
  193. font-weight: 400;
  194. }
  195. /**
  196. * Layout
  197. */
  198. @media all and (min-width: 500px) {
  199. .site-branding {
  200. -webkit-align-items: center;
  201. -ms-flex-align: center;
  202. align-items: center;
  203. display: -webkit-flex;
  204. display: -ms-flexbox;
  205. display: flex;
  206. -webkit-flex-wrap: wrap;
  207. -ms-flex-wrap: wrap;
  208. flex-wrap: wrap;
  209. /* justify-content: center; */
  210. }
  211. .custom-logo-link {
  212. -webkit-align-items: flex-start;
  213. -ms-flex-align: start;
  214. align-items: flex-start;
  215. margin-right: 1em;
  216. }
  217. .rtl .custom-logo-link {
  218. margin-left: 1em;
  219. margin-right: 0;
  220. }
  221. }
  222. @media all and (min-width: 768px) {
  223. .custom-logo-link {
  224. margin-right: 2em;
  225. }
  226. .rtl .custom-logo-link {
  227. margin-left: 2em;
  228. margin-right: 0;
  229. }
  230. }
  231. .custom-logo-link,
  232. .site-branding-text {
  233. text-align: left;
  234. }
  235. .rtl .custom-logo-link,
  236. .rtl .site-branding-text {
  237. text-align: right;
  238. }
  239. .custom-logo-link {
  240. line-height: 1px;
  241. }
  242. @media all and (min-width: 500px) {
  243. .custom-logo-link {
  244. margin-bottom: 0
  245. }
  246. }
  247. .menu-toggle {
  248. border: 1px solid #ddd;
  249. }
  250. .menu-toggle .icon {
  251. height: 0.9em;
  252. width: 0.9em;
  253. }
  254. .hero-area,
  255. .widget-title {
  256. text-align: left;
  257. }
  258. .rtl .hero-area,
  259. .rtl .widget-title {
  260. text-align: right;
  261. }
  262. .hero-area-wrapper {
  263. width: 1040px;
  264. }
  265. .entry-header,
  266. .entry-title,
  267. .page-header,
  268. .comments-title,
  269. .comment-reply-title,
  270. .respond-wrapper .no-comments {
  271. text-align: left;
  272. }
  273. .rtl .entry-header,
  274. .rtl .entry-title,
  275. .rtl .page-header,
  276. .rtl .comments-title,
  277. .rtl .comment-reply-title,
  278. .rtl .respond-wrapper .no-comments {
  279. text-align: right;
  280. }
  281. body.home.page .entry-title,
  282. .single .entry-title,
  283. body.page:not(.archive) .entry-title,
  284. .single .entry-meta {
  285. width: 740px;
  286. }
  287. .entry-meta,
  288. .page-title {
  289. margin-left: auto;
  290. margin-right: auto;
  291. max-width: 92%;
  292. text-align: left;
  293. width: 1040px;
  294. }
  295. .error-404 .page-title,
  296. .error-404 .page-content,
  297. .search-no-results .page-title,
  298. .search-no-results .page-content {
  299. width: 740px;
  300. }
  301. .site-info {
  302. width: 1040px;
  303. }
  304. @media all and (min-width: 768px) {
  305. .contact-info-wrapper {
  306. margin: 0 auto;
  307. max-width: 92%;
  308. width: 1300px;
  309. }
  310. }
  311. @media (max-width: 768px) {
  312. .contact-info-area span {
  313. margin: 0 3px 5px;
  314. }
  315. .menu-toggle {
  316. margin-left: 0;
  317. margin-right: 0;
  318. }
  319. .rtl .menu-toggle {
  320. margin-left: 0;
  321. margin-right: 4%;
  322. }
  323. .site-header .jetpack-social-navigation ul {
  324. text-align: left;
  325. }
  326. .rtl .site-header .jetpack-social-navigation ul {
  327. text-align: right;
  328. }
  329. }
  330. /* Woocommerce */
  331. .woocommerce .site-main,
  332. ul.products li.product {
  333. text-align: center;
  334. }
  335. .woocommerce .site-main,
  336. .site-header-cart {
  337. text-align: left;
  338. }
  339. .woocommerce-pagination .page-numbers {
  340. text-align: center;
  341. }
  342. .woocommerce a.button:hover,
  343. .site-header-cart:hover>li>a,
  344. .site-header-cart.focus>li>a,
  345. .site-header-cart>li:hover>a,
  346. .site-header-cart>li.focus>a,
  347. .site-header-cart:hover .count,
  348. .site-header-cart.focus .count,
  349. .site-header-cart .widget_shopping_cart_content .woocommerce-mini-cart__buttons a,
  350. .woocommerce-MyAccount-navigation li:hover > a,
  351. .woocommerce-MyAccount-navigation li.focus > a,
  352. .woocommerce-tabs ul.tabs li:hover a,
  353. .woocommerce-tabs ul.tabs li.active a {
  354. color: #606060;
  355. }
  356. .woocommerce a.button:hover,
  357. .site-header-cart:hover>li>a,
  358. .site-header-cart.focus>li>a,
  359. .site-header-cart>li:hover>a,
  360. .site-header-cart>li.focus>a,
  361. .site-header-cart .widget_shopping_cart_content .woocommerce-mini-cart__buttons a,
  362. .woocommerce-MyAccount-navigation li:hover > a,
  363. .woocommerce-MyAccount-navigation li.focus > a,
  364. .woocommerce-tabs ul.tabs li:hover a {
  365. background: #e8e8e8;
  366. }
  367. @media all and (max-width: 768px) {
  368. .site-header-cart .cart-contents {
  369. border: 1px solid #ddd;
  370. border-radius: 3px;
  371. }
  372. .site-header-cart:hover>li>a,
  373. .site-header-cart.focus>li>a,
  374. .site-header-cart>li:hover>a,
  375. .site-header-cart>li.focus>a,
  376. .site-header-cart:hover .count,
  377. .site-header-cart.focus .count {
  378. color: #fff;
  379. }
  380. .site-header-cart:hover>li>a,
  381. .site-header-cart.focus>li>a,
  382. .site-header-cart>li:hover>a,
  383. .site-header-cart>li.focus>a {
  384. background: #aaa;
  385. }
  386. }
  387. .star-rating {
  388. margin: 0;
  389. }
  390. .star-rating span:before,
  391. p.stars:hover a:before {
  392. color: #606060;
  393. }
  394. ul.products li.product,
  395. ul.products li.product a {
  396. text-align: left;
  397. }
  398. ul.products li.product .onsale {
  399. color: #222;
  400. }
  401. ul.products li.product .button {
  402. margin: 0;
  403. }
  404. @media all and (max-width: 768px) {
  405. ul.products li.product .button {
  406. margin: 0 0 0 calc( calc(100% - 300px) / 2 );
  407. }
  408. }
  409. @media all and (min-width: 1060px) {
  410. ul.products li.product .button {
  411. margin: 0 0 0 calc( calc(100% - 300px) / 2 );
  412. }
  413. }
  414. @media all and (min-width: 768px) {
  415. .upsells.products ul.products li.product .button,
  416. .related.products ul.products li.product .button,
  417. .cart-collaterals ul.products li.product .button {
  418. margin-left: 0;
  419. }
  420. }
  421. .single-product div.product .entry-summary {
  422. text-align: left;
  423. }
  424. .single-product div.product .commentlist {
  425. justify-content: space-between;
  426. }
  427. .single-product div.product .commentlist .comment {
  428. text-align: left;
  429. }
  430. .single-product div.product .commentlist .comment-text .meta {
  431. margin-left: 0;
  432. }
  433. .single-product .entry-title,
  434. .single-product div.product .comment .avatar,
  435. .single-product .star-rating {
  436. margin: 0;
  437. }
  438. .woocommerce-tabs ul.tabs {
  439. padding: 0 1em;
  440. text-align: left;
  441. }
  442. .woocommerce.widget_shopping_cart .product_list_widget li a {
  443. line-height: 1.2em;
  444. }
  445. .site-header-cart .cart-contents,
  446. .site-header-cart .widget_shopping_cart_content .mini_cart_item .quantity,
  447. .single-product div.product .commentlist .comment-text .meta,
  448. .single-product div.product .commentlist .comment-text .description,
  449. .single-product div.product .product_meta,
  450. .single-product div.product .comment-reply-title,
  451. .single-product div.product .entry-summary .price,
  452. .woocommerce-breadcrumb,
  453. .woocommerce-result-count,
  454. .woocommerce-ordering,
  455. .woocommerce-ordering select,
  456. .woocommerce-MyAccount-content address,
  457. .woocommerce-MyAccount-navigation a,
  458. .woocommerce-tabs ul.tabs li a,
  459. .woocommerce.widget .amount,
  460. .woocommerce.widget .reviewer,
  461. .woocommerce.widget .total,
  462. .woocommerce.widget .quantity,
  463. .onsale {
  464. font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, arial, sans-serif;
  465. }
  466. .a8c-posts-list {
  467. text-align: left;
  468. }
  469. .a8c-posts-list-item__title {
  470. font-family: 'Montserrat', 'Helvetica Neue', Helvetica, arial, sans-serif;
  471. }
  472. .a8c-posts-list-item__title a {
  473. color: #222;
  474. }
  475. .a8c-posts-list-item__featured,
  476. .a8c-posts-list-item__meta {
  477. font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, arial, sans-serif;
  478. }
  479. .a8c-posts-list-item__meta a {
  480. color: #666;
  481. }
  482. .a8c-posts-list-item__title a:hover,
  483. .a8c-posts-list-item__meta a:hover {
  484. color: #aaa;
  485. }
  486. .a8c-posts-list-item__excerpt a:hover {
  487. color: #e43a31;
  488. }
  489. .a8c-posts-list .a8c-posts-list__view-all:hover {
  490. background-color: #aaa;
  491. }