diff --git a/assets/scss/team.scss b/assets/scss/team.scss index a2414817a..1df7e3a4d 100644 --- a/assets/scss/team.scss +++ b/assets/scss/team.scss @@ -127,24 +127,35 @@ $selected-div: 1, 3, 6, 8, 9, 11; } } -.scroll-container{ +.grid-wrapper{ + display: flex; + justify-content: center; +} + +.scroll-container { margin-top: 40px; position: relative; overflow: hidden; - height: calc(216px * 4 + 60px); + height: calc(213px * 4 + 60px); + + display: flex; + justify-content: center; } .member-grid.scroll { overflow-y: scroll; - -ms-overflow-style: none; /* Internet Explorer 10+ */ - scrollbar-width: none; /* Firefox */ + -ms-overflow-style: none; + /* Internet Explorer 10+ */ + scrollbar-width: none; + /* Firefox */ + } -.member-grid.noscroll{ +.member-grid.noscroll { margin-top: 40px; } -.member-grid::-webkit-scrollbar{ +.member-grid::-webkit-scrollbar { display: none; } @@ -156,16 +167,17 @@ $selected-div: 1, 3, 6, 8, 9, 11; gap: 20px; width: 100%; height: 100%; - + // height: calc(216px * 4 + 60px); + // @media only screen and (max-width:$mobile-max-width) { + // grid-template-columns: repeat(2, 216px); + // } + + @media only screen and (max-width:$mobile-max-width) { - grid-template-columns: repeat(2, 216px); - } - - - @media only screen and (max-width:512px) { - grid-template-columns: repeat(1, 216px); + grid-template-columns: repeat(1, 200px); + width: 80%; } // treat a as block elem @@ -185,7 +197,7 @@ $selected-div: 1, 3, 6, 8, 9, 11; border: 1px solid var(--borderColor-subtler, #E3E9EF); overflow: hidden; - + .member-info-ctn { z-index: 2; diff --git a/layouts/partials/memberList.html b/layouts/partials/memberList.html index 036c39d92..d211f2d6f 100644 --- a/layouts/partials/memberList.html +++ b/layouts/partials/memberList.html @@ -1,6 +1,9 @@ +{{ if eq . ""}} +
+ +
+{{ else }}
- {{ if eq . ""}} - {{ else }}
@@ -26,5 +29,5 @@
- {{ end }} -
\ No newline at end of file +
+{{ end }} \ No newline at end of file diff --git a/layouts/team/list.html b/layouts/team/list.html index d0894f83d..e745f3481 100644 --- a/layouts/team/list.html +++ b/layouts/team/list.html @@ -37,21 +37,45 @@