Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Vault
Commits
74003aaa
Unverified
Commit
74003aaa
authored
3 years ago
by
Alex Carpenter
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
card container overflow method (#13434)
* use flex * formatting * add comment
parent
cb495e9c
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
website/components/io-card-container/style.module.css
+15
-12
website/components/io-card-container/style.module.css
with
15 additions
and
12 deletions
+15
-12
website/components/io-card-container/style.module.css
+
15
-
12
View file @
74003aaa
...
...
@@ -57,12 +57,11 @@
--columns
:
var
(
--length
);
position
:
relative
;
display
:
grid
;
grid-template-columns
:
repeat
(
var
(
--columns
),
minmax
(
var
(
--minCol
),
1
fr
));
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
),
1
fr
));
}
&
.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
;
}
}
}
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help