Improve mobile compatibility to please Google

This commit is contained in:
Rico Sta. Cruz 2017-09-24 04:50:09 +08:00
parent dbc7bf6944
commit add3dbe99f
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
5 changed files with 36 additions and 1 deletions

View File

@ -2,7 +2,7 @@ home:
title: "Rico's cheatsheets"
tagline: |
Hey! I'm <a href='https://ricostacruz.com'>@rstacruz</a> and this is a modest collection of cheatsheets I've written.
<br>(This used to be ricostacruz.com/cheatsheets but now we have a shorter URL!)
(This used to be ricostacruz.com/cheatsheets but now we have a shorter URL!)
top_nav:
title: Devhints.io

View File

@ -59,3 +59,13 @@ a:hover {
[aria-hidden]:not(.line-highlight) {
display: none !important;
}
// No tooltips on mobile
@media (max-width: 580px) {
.hint--bottom {
&::before,
&::after {
display: none;
}
}
}

View File

@ -99,6 +99,13 @@
}
}
// Space them out in mobile
@media (max-width: 768px) {
& > .link {
margin-left: 16px;
}
}
// Collapse
& > .link:first-child > a {
margin-left: 0;

View File

@ -50,6 +50,12 @@
opacity: 0;
}
@media (max-width: 768px) {
& > .info > .title {
display: none;
}
}
&:hover,
&:focus {
& {

View File

@ -48,6 +48,18 @@
margin: 0 8px;
}
// Hide prefix in mobiel
@media (max-width: 768px) {
& > .prefix,
& > .sep {
display: none;
}
& > input {
padding-left: 16px;
}
}
// Icon
&::before {
@include ion-icon('md-search');