css: Apply font formatting to the text, not the high-level div

This makes it possible for plugins to add new items without them
rendering centered, at a ridiculous size, or at an awkward location.
pull/4579/head
Richard Hansen 2020-11-27 22:37:59 -05:00 committed by John McLear
parent 27dab35827
commit 92b295193f
2 changed files with 18 additions and 8 deletions

View File

@ -1,13 +1,13 @@
#editorloadingbox {
width: 100%;
z-index: 100;
}
.editorloadingbox-message {
padding-top: 100px;
padding-bottom: 100px;
font-size: 2.5em;
color: #aaa;
text-align: center;
position: absolute;
width: 100%;
height: 30px;
z-index: 100;
}
#editorloadingbox input{

View File

@ -92,12 +92,22 @@
<div id="editorloadingbox">
<div id="permissionDenied">
<p data-l10n-id="pad.permissionDenied">You do not have permission to access this pad</p>
<p data-l10n-id="pad.permissionDenied" class="editorloadingbox-message">
You do not have permission to access this pad
</p>
</div>
<% e.begin_block("loading"); %>
<p data-l10n-id="pad.loading" id="loading">Loading...</p>
<p data-l10n-id="pad.loading" id="loading" class="editorloadingbox-message">
Loading...
</p>
<% e.end_block(); %>
<noscript><strong>Sorry, you have to enable Javascript in order to use this.</strong></noscript>
<noscript>
<p class="editorloadingbox-message">
<strong>
Sorry, you have to enable Javascript in order to use this.
</strong>
</p>
</noscript>
</div>