Unverified Commit 74003aaa authored by Alex Carpenter's avatar Alex Carpenter Committed by GitHub
Browse files

card container overflow method (#13434)

* use flex

* formatting

* add comment
parent cb495e9c
No related merge requests found
Showing with 15 additions and 12 deletions
+15 -12
......@@ -57,12 +57,11 @@
--columns: var(--length);
position: relative;
display: grid;
grid-template-columns: repeat(var(--columns), minmax(var(--minCol), 1fr));
gap: 32px;
padding: 0;
@media (--small) {
display: flex;
overflow-x: auto;
-ms-overflow-style: none;
scrollbar-width: none;
......@@ -71,6 +70,19 @@
left: 50%;
margin-left: -50vw;
width: 100vw;
/* This is to ensure there is overflow padding right on mobile. */
&::after {
content: '';
display: block;
width: 1px;
flex-shrink: 0;
}
}
@media (--medium-up) {
display: grid;
grid-template-columns: repeat(var(--columns), minmax(var(--minCol), 1fr));
}
&.threeUp {
......@@ -95,17 +107,8 @@
display: flex;
@media (--small) {
flex-shrink: 0;
width: 250px;
&:last-of-type {
width: 274px;
&::after {
content: '';
width: 24px;
flex-shrink: 0;
}
}
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment