content: article modal now scrolls horizontally with newspaper columns
This commit is contained in:
+15
-7
@@ -1870,8 +1870,8 @@
|
|||||||
#article-box {
|
#article-box {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 720px;
|
max-width: 92vw;
|
||||||
max-height: 88vh;
|
height: 82vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background: #fdf6ee;
|
background: #fdf6ee;
|
||||||
@@ -1924,18 +1924,22 @@
|
|||||||
|
|
||||||
#article-box .article-body {
|
#article-box .article-body {
|
||||||
padding: 28px 40px 40px;
|
padding: 28px 40px 40px;
|
||||||
overflow-y: auto;
|
overflow-x: auto;
|
||||||
|
overflow-y: hidden;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
font-family: Georgia, "Times New Roman", serif;
|
font-family: Georgia, "Times New Roman", serif;
|
||||||
font-size: 1.05rem;
|
font-size: 1.05rem;
|
||||||
line-height: 1.85;
|
line-height: 1.85;
|
||||||
color: #4e342e;
|
color: #4e342e;
|
||||||
column-count: 1;
|
column-width: 340px;
|
||||||
|
column-gap: 36px;
|
||||||
|
column-rule: 1px solid rgba(93, 64, 55, 0.12);
|
||||||
|
column-fill: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#article-box .article-body::-webkit-scrollbar {
|
#article-box .article-body::-webkit-scrollbar {
|
||||||
width: 8px;
|
height: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#article-box .article-body::-webkit-scrollbar-track {
|
#article-box .article-body::-webkit-scrollbar-track {
|
||||||
@@ -1974,6 +1978,7 @@
|
|||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
hyphens: auto;
|
hyphens: auto;
|
||||||
|
break-inside: avoid;
|
||||||
}
|
}
|
||||||
|
|
||||||
#article-box .article-body ul {
|
#article-box .article-body ul {
|
||||||
@@ -2006,13 +2011,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#article-box .article-body iframe {
|
#article-box .article-body iframe {
|
||||||
width: 100%;
|
width: 340px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
aspect-ratio: 16 / 9;
|
aspect-ratio: 16 / 9;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
border: 1px solid rgba(93, 64, 55, 0.12);
|
border: 1px solid rgba(93, 64, 55, 0.12);
|
||||||
|
break-inside: avoid;
|
||||||
}
|
}
|
||||||
|
|
||||||
#article-close {
|
#article-close {
|
||||||
@@ -2041,7 +2047,8 @@
|
|||||||
|
|
||||||
@media (max-width: 860px) {
|
@media (max-width: 860px) {
|
||||||
#article-box {
|
#article-box {
|
||||||
max-height: 92vh;
|
height: 90vh;
|
||||||
|
max-width: 96vw;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
#article-box .article-header {
|
#article-box .article-header {
|
||||||
@@ -2053,6 +2060,7 @@
|
|||||||
#article-box .article-body {
|
#article-box .article-body {
|
||||||
padding: 20px 20px 28px;
|
padding: 20px 20px 28px;
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
|
column-width: 280px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user