Skip to content

Commit 7d32f7d

Browse files
committed
fixing a scrollbar issue with the social media feed
1 parent 7f0ade1 commit 7d32f7d

File tree

6 files changed

+18
-42
lines changed

6 files changed

+18
-42
lines changed

docs/calendar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<link href="site_libs/quarto-html/quarto-syntax-highlighting-587c61ba64f3a5504c4d52d930310e48.css" rel="stylesheet" id="quarto-text-highlighting-styles">
4242
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
4343
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
44-
<link href="site_libs/bootstrap/bootstrap-784cc24b6735f4fbd54fe98f47f34423.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
44+
<link href="site_libs/bootstrap/bootstrap-c6a99d134d1fc7537dbf908e3f4db267.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
4545
<script id="quarto-search-options" type="application/json">{
4646
"location": "navbar",
4747
"copy-button": false,

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ <h2 class="anchored" data-anchor-id="welcome-to-the-stemcoding-landing-page">Wel
183183

184184
/* Container to make the feed scrollable */
185185
.feed-container {
186-
height: 2000px;
187-
overflow-y: scroll !important; /* Force scrollbar */
186+
height: calc(100vh - 300px); /* Responsive height to avoid page scroll */
187+
overflow-y: auto !important; /* Show scrollbar if feed is long */
188188
overscroll-behavior: contain;
189189
border: 1px solid #ccc;
190190
border-radius: 8px;

docs/people.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<link href="site_libs/quarto-html/quarto-syntax-highlighting-587c61ba64f3a5504c4d52d930310e48.css" rel="stylesheet" id="quarto-text-highlighting-styles">
4242
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
4343
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
44-
<link href="site_libs/bootstrap/bootstrap-784cc24b6735f4fbd54fe98f47f34423.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
44+
<link href="site_libs/bootstrap/bootstrap-c6a99d134d1fc7537dbf908e3f4db267.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
4545
<script id="quarto-search-options" type="application/json">{
4646
"location": "navbar",
4747
"copy-button": false,

docs/styles.css

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
#quarto-margin-sidebar {
55
width: 400px !important;
66
min-width: 400px !important;
7-
overflow: hidden !important; /* Hide scrollbars */
7+
overflow-y: auto !important;
8+
/* Show scrollbars if needed */
89
}
910

1011
/* Adjust the main content area to accommodate wider sidebar */
@@ -17,9 +18,10 @@
1718
#quarto-margin-sidebar {
1819
width: 400px !important;
1920
min-width: 400px !important;
20-
overflow: hidden !important; /* Hide scrollbars */
21+
overflow-y: auto !important;
22+
/* Show scrollbars if needed */
2123
}
22-
24+
2325
.page-columns .page-full {
2426
grid-template-columns: 1fr 500px !important;
2527
}
@@ -29,18 +31,4 @@
2931
.margin-sidebar-content iframe {
3032
width: 100% !important;
3133
max-width: none !important;
32-
}
33-
34-
/* Hide scrollbars for the entire sidebar content */
35-
#quarto-margin-sidebar,
36-
#quarto-margin-sidebar * {
37-
overflow: hidden !important;
38-
scrollbar-width: none !important; /* Firefox */
39-
-ms-overflow-style: none !important; /* Internet Explorer 10+ */
40-
}
41-
42-
/* Hide scrollbars for webkit browsers (Chrome, Safari, Edge) */
43-
#quarto-margin-sidebar::-webkit-scrollbar,
44-
#quarto-margin-sidebar *::-webkit-scrollbar {
45-
display: none !important;
46-
}
34+
}

index.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ We hope you enjoy this site! Check out our [Social Media Feed](feed.qmd) to see
5050

5151
/* Container to make the feed scrollable */
5252
.feed-container {
53-
height: 2000px;
54-
overflow-y: scroll !important; /* Force scrollbar */
53+
height: calc(100vh - 300px); /* Responsive height to avoid page scroll */
54+
overflow-y: auto !important; /* Show scrollbar if feed is long */
5555
overscroll-behavior: contain;
5656
border: 1px solid #ccc;
5757
border-radius: 8px;

styles.css

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
#quarto-margin-sidebar {
55
width: 400px !important;
66
min-width: 400px !important;
7-
overflow: hidden !important; /* Hide scrollbars */
7+
overflow-y: auto !important;
8+
/* Show scrollbars if needed */
89
}
910

1011
/* Adjust the main content area to accommodate wider sidebar */
@@ -17,9 +18,10 @@
1718
#quarto-margin-sidebar {
1819
width: 400px !important;
1920
min-width: 400px !important;
20-
overflow: hidden !important; /* Hide scrollbars */
21+
overflow-y: auto !important;
22+
/* Show scrollbars if needed */
2123
}
22-
24+
2325
.page-columns .page-full {
2426
grid-template-columns: 1fr 500px !important;
2527
}
@@ -29,18 +31,4 @@
2931
.margin-sidebar-content iframe {
3032
width: 100% !important;
3133
max-width: none !important;
32-
}
33-
34-
/* Hide scrollbars for the entire sidebar content */
35-
#quarto-margin-sidebar,
36-
#quarto-margin-sidebar * {
37-
overflow: hidden !important;
38-
scrollbar-width: none !important; /* Firefox */
39-
-ms-overflow-style: none !important; /* Internet Explorer 10+ */
40-
}
41-
42-
/* Hide scrollbars for webkit browsers (Chrome, Safari, Edge) */
43-
#quarto-margin-sidebar::-webkit-scrollbar,
44-
#quarto-margin-sidebar *::-webkit-scrollbar {
45-
display: none !important;
46-
}
34+
}

0 commit comments

Comments
 (0)