Skip to content

Commit 3d36071

Browse files
committed
Refine responsive cover layout for mobile and outlier sizes
1 parent b6d1946 commit 3d36071

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

static/css/custom.css

+23-3
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@
111111
max-width: 25vw;
112112
}
113113
}
114-
@media screen and (max-width:1000px) {
114+
115+
@media screen and (((max-width:1370px) and (min-height:800px)) or (max-width:1000px)) {
115116
.quire-cover__hero.hero.is-fullheight {
116117
position: relative;
117118
display: flex;
@@ -123,15 +124,17 @@
123124
margin: 0;
124125
}
125126
.quire-cover__hero-body__text-pane {
126-
background-color: rgb(232, 219, 189, .8);
127+
background: linear-gradient(0deg, rgb(232, 219, 189, 0), rgb(232, 219, 189, .8), rgb(232, 219, 189, 1), rgb(232, 219, 189, .8), rgb(232, 219, 189, 0));
128+
padding-bottom: 3rem;
129+
padding-top: 3rem;
130+
padding: 3rem .75rem;
127131
}
128132
.quire-cover__hero .title {
129133
margin-top: 0;
130134
}
131135
.quire-cover__hero .title,
132136
.quire-cover__hero .contributor {
133137
text-align: center;
134-
width: 100vw;
135138
max-width: 100vw;
136139
margin-left: 0;
137140
margin-right: 0;
@@ -163,6 +166,23 @@
163166
}
164167
}
165168

169+
@media screen and (max-width:500px) {
170+
.quire-cover__hero.hero.is-fullheight {
171+
min-height: auto !important;
172+
}
173+
.quire-cover__hero-body__image-pane,
174+
.quire-cover__hero-body__image-pane img {
175+
height: auto !important;
176+
position: inherit;
177+
}
178+
.quire-cover__hero .title {
179+
font-size: 2.25rem;
180+
}
181+
.quire-cover__hero .title .sm {
182+
font-size: 1.75rem;
183+
}
184+
}
185+
166186
/* STANDARD OCCASIONAL PAPERS SERIES DESIGN (EXCEPT FOR COVER)
167187
============================================================================= */
168188

0 commit comments

Comments
 (0)