Skip to content

Commit d387e7c

Browse files
authored
Update main.scss
1 parent e2ae13d commit d387e7c

1 file changed

Lines changed: 24 additions & 12 deletions

File tree

assets/css/main.scss

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,35 @@
3333
"vendor/magnific-popup/magnific-popup"
3434
;
3535

36-
/* Custom CSS to fix sidebar text overflow */
37-
.author__urls-wrapper {
38-
width: auto;
39-
min-width: 270px;
36+
/* Add this to the end of your main.scss file */
37+
38+
/* Fix for sidebar text overflow - especially institution name */
39+
.sidebar .author__urls-wrapper {
4040
max-width: 100%;
4141
}
4242

43-
.author__urls {
43+
.sidebar .author__urls {
4444
word-break: break-word;
45-
font-size: 0.9em;
45+
overflow-wrap: break-word;
46+
hyphens: auto;
4647
}
4748

48-
.sidebar .author__name,
49-
.sidebar .author__bio,
50-
.sidebar p,
51-
.sidebar a {
52-
word-wrap: break-word;
53-
overflow-wrap: break-word;
49+
/* Target institution specifically - this might need adjustment based on your theme's exact class names */
50+
.sidebar .fa-fw + a,
51+
.sidebar .fas + a,
52+
.sidebar .far + a,
53+
.sidebar .fab + a {
54+
display: inline-block;
55+
max-width: 150px; /* Force narrow width */
56+
vertical-align: top;
5457
word-break: break-all;
58+
overflow-wrap: break-word;
59+
}
60+
61+
/* For extremely long words that won't break */
62+
.sidebar a {
63+
word-break: break-all !important;
64+
overflow-wrap: break-word !important;
65+
display: inline-block;
66+
max-width: 170px;
5567
}

0 commit comments

Comments
 (0)