Commit 0dd3ba38 authored by Murukesh Mohanan's avatar Murukesh Mohanan

css updates for mobile

parent 08ec09ac
Pipeline #1251 failed with stage
...@@ -60,10 +60,10 @@ ...@@ -60,10 +60,10 @@
<!-- Copyleft FTW! --> <!-- Copyleft FTW! -->
<div> <div>
<img src="{{ site.base-url }}/images/Copyleft.png" style="height: 1em;" alt="copyleft"> Murukesh Mohanan. <img src="{{ site.base-url }}/images/Copyleft.png" style="height: 1em;" alt="copyleft"> Murukesh Mohanan.
<a class="rss" href="{{ site.base-url }}/feed.xml"><img src="{{ site.base-url }}/images/rss.svg" alt="RSS"></img></a>
<p>Permission to use content is granted under <a href="https://creativecommons.org/licenses/by-sa/3.0/" rel="license">the CC BY-SA license</a>.</p> <p>Permission to use content is granted under <a href="https://creativecommons.org/licenses/by-sa/3.0/" rel="license">the CC BY-SA license</a>.</p>
<p>The font used here is the Ubuntu font, via Google Web Fonts. Written with Jekyll. Hosted using <a href="https://gitlab.com/murukesh/murukesh.gitlab.io">Gitlab</a> and Cloudflare. SSL certificates from Cloudflare. </p> <p>The font used here is the Ubuntu font, via Google Web Fonts. Written with Jekyll. Hosted using <a href="https://gitlab.com/murukesh/murukesh.gitlab.io">Gitlab</a> and Cloudflare. SSL certificates from Cloudflare. </p>
</div> </div>
<a class="rss" href="{{ site.base-url }}/feed.xml"><img src="{{ site.base-url }}/images/rss.svg" alt="RSS"></img></a>
</section> </section>
</footer> </footer>
</body> </body>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.post-title a { .post-title a {
text-decoration: none; text-decoration: none;
font-size: x-large; font-size: 120%;
} }
kbd { kbd {
...@@ -40,7 +40,7 @@ a.tag { ...@@ -40,7 +40,7 @@ a.tag {
border-radius: 0.3em; border-radius: 0.3em;
font-variant: small-caps; font-variant: small-caps;
font-weight: bold; font-weight: bold;
font-size: large; font-size: 110%;
color: #e0e0e0; color: #e0e0e0;
} }
...@@ -59,7 +59,7 @@ ol.tags-list li { ...@@ -59,7 +59,7 @@ ol.tags-list li {
/* /*
From http://drewsilcock.co.uk/proper-linenumbers/ From http://drewsilcock.co.uk/proper-linenumbers/
*/ */
.highlight { .highlight {
margin: 0; margin: 0;
...@@ -134,15 +134,15 @@ a.page-prev, a.page-next { ...@@ -134,15 +134,15 @@ a.page-prev, a.page-next {
/* /*
.slideshow { .slideshow {
position: absolute; position: absolute;
top: 0; top: 0;
bottom: 0; bottom: 0;
left: 0; left: 0;
right: 0; right: 0;
height: 100%; height: 100%;
width: 100%; width: 100%;
} }
*/ */
.footnotes li { .footnotes li {
padding: 0; padding: 0;
...@@ -178,12 +178,13 @@ section>header>h1>a:link, section>header>h1>a:visited { ...@@ -178,12 +178,13 @@ section>header>h1>a:link, section>header>h1>a:visited {
@media screen and (max-device-aspect-ratio: 1/1) and (orientation: portrait) { @media screen and (max-device-aspect-ratio: 1/1) and (orientation: portrait) {
.post-date { .post-date {
font-size: initial; font-size: 80%;
display: block; display: block;
text-align: right; text-align: right;
} }
.post-title h1 { .post-title h1 {
margin: 0; margin: 0;
line-height: 1.4em;
} }
kbd { kbd {
...@@ -194,4 +195,7 @@ section>header>h1>a:link, section>header>h1>a:visited { ...@@ -194,4 +195,7 @@ section>header>h1>a:link, section>header>h1>a:visited {
padding: 0.25em; padding: 0.25em;
width: 100%; width: 100%;
} }
a.tag {
font-size: 90%;
}
} }
#title { #title {
border-bottom: 0.2em solid grey; border-bottom: 0.2em solid grey;
padding: 0.1em 3%; padding: 0.1em 3%;
font-size: x-large; font-size: 120%;
font-variant: small-caps; font-variant: small-caps;
text-align: center; text-align: center;
min-height: 4em; min-height: 4em;
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
color: whitesmoke; color: whitesmoke;
} }
/** The #main div is given a min-height so that it isn't
* squished on pages with little content, or for displays
* that are tall (like phones in portrait mode).
* Height obtained by trial-and-error on a Nexus 4
* Chrome browser. Didn't work on a Nexus 4 Opera Mini.
*/
#main { #main {
/*margin-left: 15%; /*margin-left: 15%;
float: right; float: right;
...@@ -35,7 +29,7 @@ footer { ...@@ -35,7 +29,7 @@ footer {
clear: both; clear: both;
padding: 2%; padding: 2%;
padding-bottom: 1%; padding-bottom: 1%;
font-size: 80%; font-size: 90%;
border-top: 0.25em solid grey; border-top: 0.25em solid grey;
} }
...@@ -96,12 +90,7 @@ body { ...@@ -96,12 +90,7 @@ body {
h1 { h1 {
margin-top: 0; margin-top: 0;
} }
/*h1 {
font-size: 2em;
}
h3 {
margin-top: 0;
}*/
code { code {
font-family: 'Ubuntu Mono', 'Droid Mono', monospace; font-family: 'Ubuntu Mono', 'Droid Mono', monospace;
color: whitesmoke; color: whitesmoke;
...@@ -219,6 +208,10 @@ sup { ...@@ -219,6 +208,10 @@ sup {
} }
@media screen and (max-device-aspect-ratio: 1/1) and (orientation: portrait) { @media screen and (max-device-aspect-ratio: 1/1) and (orientation: portrait) {
body {
font-size: 5vw;
}
#title h1 { #title h1 {
margin: 0.2em; margin: 0.2em;
} }
...@@ -233,7 +226,6 @@ sup { ...@@ -233,7 +226,6 @@ sup {
nav li { nav li {
list-style: none; list-style: none;
margin: 0.2em; margin: 0.2em;
box-shadow: 0.1em 0.1em 0.15em 0.05em rgba(100,100,100,0.75);
} }
body { body {
...@@ -241,7 +233,7 @@ sup { ...@@ -241,7 +233,7 @@ sup {
} }
section, .section { section, .section {
text-align: left; text-align: justify;
margin-top: 2em; margin-top: 2em;
} }
...@@ -251,9 +243,24 @@ sup { ...@@ -251,9 +243,24 @@ sup {
margin: 0 auto; margin: 0 auto;
} }
nav ul li {
margin-bottom: 0.5em;
}
#vim-proposal img { #vim-proposal img {
margin-top: 1em; margin-top: 1em;
margin-bottom: 1em; margin-bottom: 1em;
width: 100%; width: 100%;
} }
.rss {
float: right;
text-align: center;
}
footer .rss img {
height: 2em;
padding-left: 0.5em;
padding-bottom: 0.5em;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment