Layout improvements for mobile

pull/1/head
Dustin 2021-03-14 15:25:12 -05:00
parent a303d84044
commit 8f21141fad
2 changed files with 25 additions and 6 deletions

View File

@ -4,12 +4,18 @@ html,
body { body {
background-color: #09192f; background-color: #09192f;
color: #ffffff; color: #ffffff;
box-sizing: border-box;
}
* {
box-sizing: inherit;
} }
body { body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;
font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif
} }
a:link, a:link,
@ -28,9 +34,11 @@ h6 {
/* Header */ /* Header */
header.page-header { @media only screen and (min-width: 800px) {
display: flex; header.page-header {
justify-content: space-between; display: flex;
justify-content: space-between;
}
} }
svg#dustin-logo { svg#dustin-logo {
@ -68,10 +76,18 @@ nav.main-nav a:hover {
/* Body */ /* Body */
main.main-content { main.main-content {
max-width: 10in;
margin: 0 auto;
color: #e8e8e8; color: #e8e8e8;
flex-grow: 1; flex-grow: 1;
display: flex;
flex-direction: row;
justify-content: space-around;
}
main.main-content div.main-content {
margin: auto;
width: 100%;
max-width: 10in;
padding: 0 1em;
} }
.home h1.my-name { .home h1.my-name {
@ -79,6 +95,7 @@ main.main-content {
justify-content: space-around; justify-content: space-around;
font-size: 48pt; font-size: 48pt;
font-weight: lighter; font-weight: lighter;
text-align: center;
margin-bottom: 0; margin-bottom: 0;
} }

View File

@ -32,7 +32,9 @@
</header> </header>
<main id="content" class="main-content" role="main"> <main id="content" class="main-content" role="main">
<div class="main-content">
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div>
</main> </main>
<footer class="page-footer"> <footer class="page-footer">