Skip to content

Commit 5b9f306

Browse files
committed
still flawed loading spinner for mobile, but it will do for now
1 parent ed5d17c commit 5b9f306

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

assets/ar5iv-site.css

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,22 +138,19 @@ a.arxiv-ui-theme {
138138

139139
/* Hide the polyfill dirty work behind a curtain */
140140
#mathjax-loading-message {
141-
position:fixed;
142-
top:6rem;
143-
left: 45%;
144-
z-index:1000;
145141
display: block;
146142
font-size:1.5rem;
143+
margin:auto;
147144
max-width: 52rem;
148145
text-align: center;
146+
padding: 6rem;
147+
z-index: 100;
149148
}
150149
#mathjax-loading-spinner {
151-
position:fixed;
152-
top:12rem;
153-
left: 47.5%;
154-
z-index:1000;
155150
display: block;
151+
margin:auto;
156152
background-color: white;
153+
z-index: 100;
157154
border: 16px solid #f3f3f3; /* Light grey */
158155
border-top: 16px solid #3498db; /* Blue */
159156
border-radius: 50%;

src/dirty_templates.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub fn dirty_branded_ar5iv_html(
6565
// 1. also add the arxiv id to the title element
6666
// 2. this is also the best place to insert vendor-specific meta tags
6767
String::from("<title>[")+id_arxiv+"] "+&caps[1]+"</title>"+&description+r###"
68-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
68+
<meta name="viewport" content="width=device-width, initial-scale=1">
6969
<meta name="twitter:card" content="summary">
7070
<meta name="twitter:title" content=""###+&caps[1]+r###"">
7171
<meta name="twitter:image:src" content="https://ar5iv.org/assets/ar5iv_card.png">

0 commit comments

Comments
 (0)