centered page content and adjusted nav bar m queries

This commit is contained in:
bill bittner 2017-10-11 11:38:20 -07:00
parent 3dfbac8d71
commit 0c1e8855f1
15 changed files with 100 additions and 122 deletions

View file

@ -3,6 +3,13 @@ html, body {
padding: 0; padding: 0;
height: 100%; height: 100%;
} }
.page-contents {
margin: 0px auto;
padding: 0px;
height: calc(100% - 5rem);
max-width: 1200px;
}
/* TEXT */ /* TEXT */
body, button, input, textarea, label, select, option { body, button, input, textarea, label, select, option {
@ -15,10 +22,6 @@ p {
padding-left: 0.3em; padding-left: 0.3em;
} }
.center-text {
text-align: center;
}
.url-text { .url-text {
margin:0px; margin:0px;
padding:0px; padding:0px;
@ -123,7 +126,7 @@ h3 {
} }
.row--full-height { .row--full-height {
height: calc(100% - 9rem); height: calc(100% - 4rem);
} }
.column { .column {

View file

@ -1,23 +1,6 @@
@media (max-width: 1000px) { @media (max-width: 1050px) {
.main {
float: none;
width: 100%;
margin-right: 0px;
padding-right: 0px;
border-right: 0px;
margin-bottom: 5px;
}
.sidebar {
border-top: 1px solid lightgray;
float: none;
width: 100%;
}
}
@media (max-width: 850px) {
.nav-bar-title, .nav-bar-subtitle { .nav-bar-title, .nav-bar-subtitle {
padding-bottom: 0px; padding-bottom: 0px;
} }
@ -38,6 +21,10 @@
.nav-bar { .nav-bar {
height: 8rem; height: 8rem;
} }
.page-contents {
height: calc(100% - 8rem);
}
} }
@media (max-width: 750px ) { @media (max-width: 750px ) {

View file

@ -1,4 +1,3 @@
{{> navBar}}
<div class="row row--full-height"> <div class="row row--full-height">
<div class="column column--5 column--med-10 align-content-top"> <div class="column column--5 column--med-10 align-content-top">
<div class="row row--short"> <div class="row row--short">

View file

@ -1,4 +1,3 @@
{{> navBar}}
<div class="row row--full-height"> <div class="row row--full-height">
<h2>{{this.channelName}}<span class="h2--secondary">:{{this.longChannelId}}</span></h2> <h2>{{this.channelName}}<span class="h2--secondary">:{{this.longChannelId}}</span></h2>
<p>Below is all the free content in this channel.</p> <p>Below is all the free content in this channel.</p>

View file

@ -1,4 +1,3 @@
{{> navBar}}
<div> <div>
<h3>404: Not Found</h3> <h3>404: Not Found</h3>
<p>That page does not exist. Return <a href="/">home</a>.</p> <p>That page does not exist. Return <a href="/">home</a>.</p>

View file

@ -1,4 +1,3 @@
{{> navBar}}
<div class="row row--full-height"> <div class="row row--full-height">
<div id="primary-dropzone-wrapper"> <div id="primary-dropzone-wrapper">
<div id="primary-dropzone" class="dropzone" ondrop="drop_handler(event);" ondragover="dragover_handler(event);" ondragend="dragend_handler(event)" onclick="triggerFileChooser('siofu_input', event)"> <div id="primary-dropzone" class="dropzone" ondrop="drop_handler(event);" ondragover="dragover_handler(event);" ondragend="dragend_handler(event)" onclick="triggerFileChooser('siofu_input', event)">

View file

@ -27,6 +27,9 @@
<script src="/assets/js/loginFunctions.js"></script> <script src="/assets/js/loginFunctions.js"></script>
<script src="/assets/js/createChannelFunctions.js"></script> <script src="/assets/js/createChannelFunctions.js"></script>
<script src="/assets/js/navBarFunctions.js"></script> <script src="/assets/js/navBarFunctions.js"></script>
{{> navBar}}
<div class="page-contents">
{{{ body }}} {{{ body }}}
</div>
</body> </body>
</html> </html>

View file

@ -22,7 +22,10 @@
<script src="/assets/js/authFunctions.js"></script> <script src="/assets/js/authFunctions.js"></script>
<script src="/assets/js/loginFunctions.js"></script> <script src="/assets/js/loginFunctions.js"></script>
<script src="/assets/js/navBarFunctions.js"></script> <script src="/assets/js/navBarFunctions.js"></script>
{{> navBar}}
<div class="page-contents">
{{{ body }}} {{{ body }}}
</div>
</body> </body>
</html> </html>

View file

@ -1,5 +1,3 @@
{{> navBar}}
<div class="row row--full-height"> <div class="row row--full-height">
<div class="column column--5 column--med-10 align-content-top"> <div class="column column--5 column--med-10 align-content-top">
<p>Log in to an existing channel:</p> <p>Log in to an existing channel:</p>

View file

@ -1,5 +1,4 @@
{{> navBar}} <div>
<div>
<h2>New on Spee.ch</h2> <h2>New on Spee.ch</h2>
<p><i>The 25 most recent publishes on spee.ch</i></p> <p><i>The 25 most recent publishes on spee.ch</i></p>
{{#each newClaims}} {{#each newClaims}}
@ -20,4 +19,4 @@
</div> </div>
</div> </div>
{{/each}} {{/each}}
</div> </div>

View file

@ -1,6 +1,5 @@
{{> navBar}} <div>
<div>
<h3>No Claims</h3> <h3>No Claims</h3>
<p>There are no free assets on this channel.</p> <p>There are no free assets on this channel.</p>
<p><i>If you think this message is an error, contact us in the <a href="https://lbry.slack.com/" target="_blank">LBRY slack!</a></i></p> <p><i>If you think this message is an error, contact us in the <a href="https://lbry.slack.com/" target="_blank">LBRY slack!</a></i></p>
</div> </div>

View file

@ -1,4 +1,3 @@
{{> navBar}}
<div class="row"> <div class="row">
<h3>No Claims</h3> <h3>No Claims</h3>
<p>There are no free assets at that claim. You should publish one at <a href="/">spee.ch</a>.</p> <p>There are no free assets at that claim. You should publish one at <a href="/">spee.ch</a>.</p>

View file

@ -1,4 +1,3 @@
{{> navBar}}
<div class="row"> <div class="row">
{{#each trendingAssets}} {{#each trendingAssets}}
{{> contentListItem}} {{> contentListItem}}

View file

@ -1,6 +1,4 @@
<div class="row row--full-height">
{{> navBar}}
<div class="row row--full-height">
<div class="column column--10"> <div class="column column--10">
<!-- title --> <!-- title -->
<span class="title-show">{{fileInfo.title}}</span> <span class="title-show">{{fileInfo.title}}</span>
@ -19,5 +17,4 @@
{{> assetInfo}} {{> assetInfo}}
</div> </div>
</div> </div>
</div>
</div>

View file

@ -1,8 +1,4 @@
<div>
<div class="top-bar">
{{> navBar}}
</div>
<div>
<h3>Site Statistics</h3> <h3>Site Statistics</h3>
<p>Serve: {{ totals.totalServe }}</p> <p>Serve: {{ totals.totalServe }}</p>
<p>Publish: {{ totals.totalPublish }}</p> <p>Publish: {{ totals.totalPublish }}</p>
@ -12,26 +8,25 @@
<tr> <tr>
<th>action</th> <th>action</th>
<th >url</th> <th >url</th>
<th class="center-text">count</th> <th class="">count</th>
<th class="center-text">success</th> <th class="">success</th>
<th class="center-text">failure</th> <th class="">failure</th>
</tr> </tr>
{{#each records}} {{#each records}}
<tr> <tr>
<td>{{ this.action }}</td> <td>{{ this.action }}</td>
<td class="stats-table-url">{{ this.url }}</td> <td class="stats-table-url">{{ this.url }}</td>
<td class="center-text">{{ this.count }}</td> <td class="">{{ this.count }}</td>
<td class="center-text">{{ this.success }}</td> <td class="">{{ this.success }}</td>
<td class="center-text">{{ this.failure }}</td> <td class="">{{ this.failure }}</td>
</tr> </tr>
{{/each}} {{/each}}
<tr> <tr>
<td></td> <td></td>
<td></td> <td></td>
<td class="totals-row center-text">{{ totals.totalCount }}</td> <td class="">{{ totals.totalCount }}</td>
<td class="totals-row center-text">{{ totals.totalSuccess }}</td> <td class="">{{ totals.totalSuccess }}</td>
<td class="totals-row center-text">{{ totals.totalFailure }}</td> <td class="">{{ totals.totalFailure }}</td>
</tr> </tr>
</table> </table>
</div>
</div>