some mobile improvements

master
Alessandro Mauri 4 years ago
parent 9e844c5e3c
commit c4ece6384b
  1. 6
      src/_footer.html
  2. 72
      src/styles.css

@ -1,13 +1,11 @@
<p> <p>
Author: Alessandro Mauri Author: Alessandro Mauri
<a href="mailto:alemauri001@gmail.com">alemauri001@gmail.com</a> <a href="mailto:alemauri001@gmail.com">alemauri001@gmail.com</a>
</p> <br>
<p>
The content of this site is licensed under the The content of this site is licensed under the
<a href="https://creativecommons.org/publicdomain/zero/1.0/"> <a href="https://creativecommons.org/publicdomain/zero/1.0/">
Creative Commons CC0 Public Domain Dedication</a> Creative Commons CC0 Public Domain Dedication</a>
</p> <br>
<p>
Special thanks to <a href="https://github.com/morhetz">Pavel Pertsev</a> Special thanks to <a href="https://github.com/morhetz">Pavel Pertsev</a>
for creating <a href="https://github.com/morhetz/gruvbox">Gruvbox</a> for creating <a href="https://github.com/morhetz/gruvbox">Gruvbox</a>
</p> </p>

@ -1,9 +1,4 @@
/* GLOBAL */ /* GLOBAL */
* {
text-align: left;
font-family: sans-serif;
}
:root { :root {
--bg: #282828; --bg: #282828;
--bg-code: #1d2021; --bg-code: #1d2021;
@ -11,16 +6,20 @@
--fg: #ebdbb2; --fg: #ebdbb2;
--fg-code: #fbf1c7; --fg-code: #fbf1c7;
--fg-alt: #d5c4a1; --fg-alt: #d5c4a1;
--fg-link: #d79921; --fg-link: #d79921;
} }
body { body {
width: 50%;
margin: 0 auto;
background-color: var(--bg); background-color: var(--bg);
color: var(--fg); color: var(--fg);
padding: 10px; margin: 0 auto;
width: 50%;
}
@media (max-width: 980px) {
body {
margin: 0 auto;
width: 100%;
}
} }
html { html {
@ -30,10 +29,10 @@ html {
/* TABLES */ /* TABLES */
table, th, td { table, th, td {
border-collapse: collapse;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
text-align: left; text-align: left;
border-collapse: collapse;
width: 70%; width: 70%;
} }
@ -56,10 +55,10 @@ tr:nth-child(odd) {
pre { pre {
background-color: var(--bg-code); background-color: var(--bg-code);
color: var(--fg-code); color: var(--fg-code);
padding: 4px; font-size: medium;
font-size: 15;
font-family: monospace; font-family: monospace;
tab-size: 8; tab-size: 8;
padding: 4px;
} }
/* /*
:not(pre) > code { :not(pre) > code {
@ -70,12 +69,12 @@ pre {
/* LISTS */ /* LISTS */
li { li {
font-size: 14; font-size: medium;
} }
/* PARAGRAPHS */ /* PARAGRAPHS */
p { p {
font-size: 17; font-size: medium;
padding-left: 20px; padding-left: 20px;
padding-right: 20px; padding-right: 20px;
} }
@ -89,10 +88,13 @@ h2, h4, h6 {
background-color: var(--bg-alt); background-color: var(--bg-alt);
} }
h1 { font-size: 35; } h1 { font-size: xx-large; }
h2 { font-size: 30; } h2 { font-size: x-large; }
h3 { font-size: 25; } h3 { font-size: large; }
h4, h5, h6 { font-size: 20; } h4, h5, h6 {
font-size: medium;
font-weight: bold;
}
/* LINKS */ /* LINKS */
a { a {
@ -105,50 +107,50 @@ footer {
} }
footer p { footer p {
font-size: x-small;
margin: 0;
padding: 10px; padding: 10px;
margin: 0px;
font-size: 12;
} }
/* HEADER */ /* HEADER */
#thumb { #thumb {
position: absolute;
border-radius: 50%; border-radius: 50%;
max-height: 80%;
max-width: 80%;
width: auto;
height: auto;
top: 0;
bottom: 0; bottom: 0;
height: auto;
left: 0; left: 0;
right: 0;
margin: auto; margin: auto;
max-width: 80%;
max-height: 80%;
right: 0;
top: 0;
position: absolute;
width: auto;
} }
#thumb-container { #thumb-container {
position: relative;
height: 80px;
width: 80px;
float: left; float: left;
height: 80px;
padding-right: 40px; padding-right: 40px;
position: relative;
width: 80px;
} }
#links { #links {
float: left; float: left;
overflow: hidden; overflow: auto;
} }
#links a { #links a {
font-weight: bold;
letter-spacing: normal; letter-spacing: normal;
padding-right: 10px; padding-right: 10px;
font-weight: bold;
} }
.header { .header {
border: 1px solid var(--fg);
font-size: medium;
height: 80px; height: 80px;
text-align: left;
line-height: 80px; line-height: 80px;
font-size: 17; text-align: left;
border: 1px solid var(--fg);
overflow: hidden; overflow: hidden;
} }

Loading…
Cancel
Save