Skip to content

Commit a1f7a67

Browse files
2.8.0
1 parent 20b7e69 commit a1f7a67

File tree

3 files changed

+126
-104
lines changed

3 files changed

+126
-104
lines changed

dist/saratoga.css

Lines changed: 123 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
--space-lg: calc(var(--space)*3);
1919
--grid-row-gap: var(--space);
2020
--grid-column-gap: var(--space);
21+
--container-gap: calc(var(--space)*2);
2122
--page-padding: var(--space);
23+
--content-width: 1360px;
2224
--section-width: 1140px;
2325
--story-width: 728px;
2426
--menu-width: 390px;
@@ -730,6 +732,7 @@ section, .section {
730732
*/
731733
.social-media {
732734
place-content: center;
735+
justify-content: flex-start;
733736
display: flex;
734737
align-items: center;
735738
gap: var(--social-media-gap, var(--space-sm));
@@ -770,6 +773,65 @@ section, .section {
770773
padding-right: 15px;
771774
}
772775

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+
773835
/**
774836
* Flag styles
775837
*/
@@ -1422,107 +1484,6 @@ html.msb .masthead {
14221484
display: none;
14231485
}
14241486

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-
}
15261487
/*
15271488
* Section grid
15281489
*/
@@ -1814,6 +1775,67 @@ footer {
18141775
color: #4B5972;
18151776
}
18161777

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+
}
18171839
/**
18181840
* Premium topper
18191841
*/

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "saratoga-design-system",
3-
"version": "2.7.1",
3+
"version": "2.8.0",
44
"scripts": {
55
"build": "npx sass --no-source-map builds:dist",
66
"version": "npm run build && git add -A dist",

0 commit comments

Comments
 (0)