|
18 | 18 | --space-lg: calc(var(--space)*3); |
19 | 19 | --grid-row-gap: var(--space); |
20 | 20 | --grid-column-gap: var(--space); |
| 21 | + --container-gap: calc(var(--space)*2); |
21 | 22 | --page-padding: var(--space); |
| 23 | + --content-width: 1360px; |
22 | 24 | --section-width: 1140px; |
23 | 25 | --story-width: 728px; |
24 | 26 | --menu-width: 390px; |
@@ -730,6 +732,7 @@ section, .section { |
730 | 732 | */ |
731 | 733 | .social-media { |
732 | 734 | place-content: center; |
| 735 | + justify-content: flex-start; |
733 | 736 | display: flex; |
734 | 737 | align-items: center; |
735 | 738 | gap: var(--social-media-gap, var(--space-sm)); |
@@ -770,6 +773,65 @@ section, .section { |
770 | 773 | padding-right: 15px; |
771 | 774 | } |
772 | 775 |
|
| 776 | +/* Items - multiple elements */ |
| 777 | +.item { |
| 778 | + display: grid; |
| 779 | + gap: var(--item-gap, calc(var(--space-sm) / 2)); |
| 780 | + align-content: start; |
| 781 | + line-height: 1em; |
| 782 | + --header-transform: none; |
| 783 | + --link-color: var(--text-color); |
| 784 | + --link-decoration: none; |
| 785 | + --link-hover-decoration: underline; |
| 786 | +} |
| 787 | + |
| 788 | +.item > * { |
| 789 | + margin: 0; |
| 790 | +} |
| 791 | + |
| 792 | +/** |
| 793 | + * Collections - multiple items |
| 794 | + */ |
| 795 | +.collection { |
| 796 | + display: grid; |
| 797 | + align-content: start; |
| 798 | + gap: var(--space); |
| 799 | +} |
| 800 | + |
| 801 | +.collection > * { |
| 802 | + margin: 0; |
| 803 | +} |
| 804 | + |
| 805 | +/* |
| 806 | +* Containers - multiple collections |
| 807 | +*/ |
| 808 | +.container { |
| 809 | + display: grid; |
| 810 | + justify-content: start; |
| 811 | + grid-template-columns: 1fr; |
| 812 | + gap: var(--container-gap, var(--grid-row-gap) var(--grid-column-gap)); |
| 813 | + grid-auto-flow: var(--grid-flow, dense); |
| 814 | + align-items: var(--container-align, start); |
| 815 | + padding: var(--container-padding, 0); |
| 816 | + background-color: var(--container-background-color, transparent); |
| 817 | + color: var(--container-text-color, var(--text-color)); |
| 818 | + --link-color: var(--text-color); |
| 819 | +} |
| 820 | + |
| 821 | +@media (min-width: 767px) { |
| 822 | + .container { |
| 823 | + grid-template-columns: repeat(2, 1fr); |
| 824 | + } |
| 825 | +} |
| 826 | +@media (min-width: 1040px) { |
| 827 | + .container { |
| 828 | + grid-template-columns: repeat(4, 1fr); |
| 829 | + } |
| 830 | +} |
| 831 | +.container > * { |
| 832 | + margin: 0; |
| 833 | +} |
| 834 | + |
773 | 835 | /** |
774 | 836 | * Flag styles |
775 | 837 | */ |
@@ -1422,107 +1484,6 @@ html.msb .masthead { |
1422 | 1484 | display: none; |
1423 | 1485 | } |
1424 | 1486 |
|
1425 | | -/** |
1426 | | - * Footer |
1427 | | - * |
1428 | | - * This card is essentially frozen, and I've hard-coded several |
1429 | | - * of the spacing properties to ensure theming doesn't affect them. |
1430 | | - */ |
1431 | | -footer { |
1432 | | - background-color: var(--footer-color, var(--paper-color)); |
1433 | | - color: var(--footer-text-color, var(--text-color)); |
1434 | | -} |
1435 | | - |
1436 | | -.footer { |
1437 | | - margin: 0 auto; |
1438 | | - padding: var(--page-padding); |
1439 | | - display: grid; |
1440 | | - gap: 30px; |
1441 | | - font: 16px var(--sans); |
1442 | | -} |
1443 | | - |
1444 | | -.footer-connect { |
1445 | | - display: grid; |
1446 | | - gap: 20px; |
1447 | | - padding: 0; |
1448 | | - max-width: 340px; |
1449 | | - align-self: start; |
1450 | | - --header-family: var(--sans); |
1451 | | - --header-weight: bold; |
1452 | | -} |
1453 | | - |
1454 | | -.footer .flex { |
1455 | | - display: flex; |
1456 | | - align-items: center; |
1457 | | - gap: 10px; |
1458 | | -} |
1459 | | - |
1460 | | -.footer svg, |
1461 | | -.footer .icon { |
1462 | | - height: 30px; |
1463 | | - width: 30px; |
1464 | | - --fill-color: var(--text-color); |
1465 | | -} |
1466 | | - |
1467 | | -.footer .icon img { |
1468 | | - display: block; |
1469 | | - margin: 1px 0 0 1px; |
1470 | | - border-radius: 20%; |
1471 | | - width: 28px; |
1472 | | - height: 28px; |
1473 | | -} |
1474 | | - |
1475 | | -.footer .social { |
1476 | | - display: flex; |
1477 | | - align-items: center; |
1478 | | - gap: 20px; |
1479 | | -} |
1480 | | - |
1481 | | -.footer .social svg { |
1482 | | - width: 35px; |
1483 | | - height: 35px; |
1484 | | -} |
1485 | | - |
1486 | | -.footer-links { |
1487 | | - display: flex; |
1488 | | - flex-direction: column; |
1489 | | - justify-content: space-between; |
1490 | | - gap: 30px; |
1491 | | -} |
1492 | | - |
1493 | | -.footer-links .package { |
1494 | | - padding: 0; |
1495 | | -} |
1496 | | - |
1497 | | -.bottom-nav { |
1498 | | - margin: 0; |
1499 | | -} |
1500 | | - |
1501 | | -.bottom-nav a { |
1502 | | - display: block; |
1503 | | - padding: 15px; |
1504 | | - --link-color: var(--text-color); |
1505 | | -} |
1506 | | - |
1507 | | -@media (min-width: 600px) { |
1508 | | - .footer-links { |
1509 | | - flex-direction: row; |
1510 | | - justify-content: space-around; |
1511 | | - } |
1512 | | - .bottom-nav { |
1513 | | - display: flex; |
1514 | | - justify-content: center; |
1515 | | - margin: 0 auto; |
1516 | | - } |
1517 | | -} |
1518 | | -@media (min-width: 1024px) { |
1519 | | - .footer { |
1520 | | - grid-template-columns: 340px 1fr; |
1521 | | - } |
1522 | | - .footer-links { |
1523 | | - justify-content: end; |
1524 | | - } |
1525 | | -} |
1526 | 1487 | /* |
1527 | 1488 | * Section grid |
1528 | 1489 | */ |
@@ -1814,6 +1775,67 @@ footer { |
1814 | 1775 | color: #4B5972; |
1815 | 1776 | } |
1816 | 1777 |
|
| 1778 | +/** |
| 1779 | + * Footer |
| 1780 | + * |
| 1781 | + */ |
| 1782 | +.footer { |
| 1783 | + display: grid; |
| 1784 | + grid-template-columns: 1fr minmax(auto, var(--section-width)) 1fr; |
| 1785 | + gap: calc(var(--space) * 2) 0; |
| 1786 | + font: 16px var(--sans); |
| 1787 | + padding: var(--space) var(--page-padding); |
| 1788 | + background-color: var(--footer-background-color, var(--background-color)); |
| 1789 | +} |
| 1790 | + |
| 1791 | +.footer > * { |
| 1792 | + grid-column: 2; |
| 1793 | + max-width: 100%; |
| 1794 | + margin: 0; |
| 1795 | + padding: 0; |
| 1796 | +} |
| 1797 | + |
| 1798 | +.footer-logo { |
| 1799 | + height: 20px; |
| 1800 | +} |
| 1801 | + |
| 1802 | +.footer .container .item { |
| 1803 | + gap: var(--space-sm); |
| 1804 | +} |
| 1805 | + |
| 1806 | +.footer a { |
| 1807 | + display: flex; |
| 1808 | + gap: var(--space-sm); |
| 1809 | + --link-color: var(--text-color); |
| 1810 | +} |
| 1811 | + |
| 1812 | +.footer svg { |
| 1813 | + height: 20px; |
| 1814 | + --fill-color: var(--text-color); |
| 1815 | +} |
| 1816 | + |
| 1817 | +.footer .h3 { |
| 1818 | + text-transform: uppercase; |
| 1819 | +} |
| 1820 | + |
| 1821 | +.footer .social-media svg { |
| 1822 | + width: 15px; |
| 1823 | + height: 15px; |
| 1824 | +} |
| 1825 | + |
| 1826 | +.item.bottom-nav { |
| 1827 | + gap: var(--space); |
| 1828 | + font-size: 0.75em; |
| 1829 | +} |
| 1830 | + |
| 1831 | +@media (min-width: 600px) { |
| 1832 | + .item.bottom-nav { |
| 1833 | + grid-auto-flow: column; |
| 1834 | + justify-content: center; |
| 1835 | + margin: 0 auto; |
| 1836 | + gap: calc(var(--space) * 2); |
| 1837 | + } |
| 1838 | +} |
1817 | 1839 | /** |
1818 | 1840 | * Premium topper |
1819 | 1841 | */ |
|
0 commit comments