fixed mobile nav bar
This commit is contained in:
198
static/index.css
198
static/index.css
@@ -13,147 +13,146 @@ GNU General Public License for more details.
|
|||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.Rawley Fowler, 2022
|
along with this program. If not, see <https://www.gnu.org/licenses/>.Rawley Fowler, 2022
|
||||||
*/
|
*/
|
||||||
/* Color Scheme from here: https://draculatheme.com */
|
/* Color Scheme from here: https://draculatheme.com */
|
||||||
html {
|
html {
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
color: #282a36;
|
color: #282a36;
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||||
-webkit-font-smoothing: antialias;
|
-webkit-font-smoothing: antialias;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
background-color: #f8f8f2;
|
background-color: #f8f8f2;
|
||||||
font-size: calc(12px + 0.33vw);
|
font-size: calc(12px + 0.33vw);
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 1.3em;
|
padding: 1.3em;
|
||||||
max-width: clamp(400px, 750px + 3vw, 900px);
|
max-width: clamp(400px, 750px + 3vw, 900px);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2.7em;
|
font-size: 2.7em;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: clamp(1.6em, 1.6em, 1.8em);
|
font-size: clamp(1.6em, 1.6em, 1.8em);
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: clamp(1.3em, 1.4em, 1.6em);
|
font-size: clamp(1.3em, 1.4em, 1.6em);
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
margin-bottom: 6px;
|
margin-bottom: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
font-size: clamp(1.1em, 1.2em, 1.3em);
|
font-size: clamp(1.1em, 1.2em, 1.3em);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 6px;
|
margin-bottom: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: clamp(0.9em, 1em, 1.1em);
|
font-size: clamp(0.9em, 1em, 1.1em);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
max-width: 50em;
|
max-width: 50em;
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
padding-top: 6px;
|
padding-top: 6px;
|
||||||
padding-bottom: 6px;
|
padding-bottom: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
transition: 100ms linear;
|
transition: 100ms linear;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
a::after {
|
a::after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
top: 83%;
|
top: 83%;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
transition: 102ms cubic-bezier(0, 0.86, 0.1, 1);
|
transition: 102ms cubic-bezier(0, 0.86, 0.1, 1);
|
||||||
background-color: #fff42b;
|
background-color: #fff42b;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover:after {
|
a:hover:after {
|
||||||
top: 8%;
|
top: 8%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-bar {
|
.nav-bar {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
margin-top: calc(12px + 1vh);
|
margin-top: calc(12px + 1vh);
|
||||||
margin-bottom: 1vw;
|
margin-bottom: 1vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item {
|
.nav-item {
|
||||||
margin-right: 12px;
|
margin-right: 12px;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
display: block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-wrapper {
|
.content-wrapper {
|
||||||
margin: 12px;
|
margin: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subtext, .sub-text {
|
.subtext, .sub-text {
|
||||||
font-size: clamp(0.65em, 0.72em, 0.8em);
|
font-size: clamp(0.65em, 0.72em, 0.8em);
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer > a {
|
.footer > a {
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-text {
|
.footer-text {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-record {
|
.post-record {
|
||||||
padding-right: 6px;
|
padding-right: 6px;
|
||||||
width: 200px + 2vw;
|
width: 200px + 2vw;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-record-title {
|
.post-record-title {
|
||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|
||||||
.skill-keywords {
|
.skill-keywords {
|
||||||
overflow: wrap;
|
overflow: wrap;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.skill-keywords > i::before {
|
.skill-keywords > i::before {
|
||||||
content: " '";
|
content: " '";
|
||||||
}
|
}
|
||||||
|
|
||||||
.skill-keywords > i::after {
|
.skill-keywords > i::after {
|
||||||
content: "' ";
|
content: "' ";
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
@@ -163,36 +162,36 @@ a:hover:after {
|
|||||||
|
|
||||||
/* For code snippets */
|
/* For code snippets */
|
||||||
pre {
|
pre {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
background-color: #44475a;
|
background-color: #44475a;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
color: #50fa7b;
|
color: #50fa7b;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
body {
|
body {
|
||||||
color: #f8f8f2;
|
color: #f8f8f2;
|
||||||
background-color: #282a36;
|
background-color: #282a36;
|
||||||
}
|
}
|
||||||
body * {
|
body * {
|
||||||
color: #f8f8f2;
|
color: #f8f8f2;
|
||||||
}
|
}
|
||||||
body > * {
|
body > * {
|
||||||
color: #f8f8f2;
|
color: #f8f8f2;
|
||||||
}
|
}
|
||||||
code {
|
code {
|
||||||
color: #50fa7b;
|
color: #50fa7b;
|
||||||
}
|
}
|
||||||
a::after {
|
a::after {
|
||||||
background-color: #bd93f9;
|
background-color: #bd93f9;
|
||||||
}
|
}
|
||||||
code {
|
code {
|
||||||
color: #50fa7b;
|
color: #50fa7b;
|
||||||
}
|
}
|
||||||
@@ -201,5 +200,10 @@ code {
|
|||||||
@media only screen and (max-width: 576px) {
|
@media only screen and (max-width: 576px) {
|
||||||
.nav-bar {
|
.nav-bar {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
}
|
||||||
|
.nav-item {
|
||||||
|
margin-top: 3px;
|
||||||
|
margin-bottom: 3px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user