Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legibilidad de texto #47 #54

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/layouts/all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,11 @@ body {
margin-top: 2.5rem;
margin-bottom: 2.5rem;
}

////// BULMA MOBILE BREAKPOINT ///////
@media all and (max-width:768px){
.content.has-custom-font-size-on-mobile{
font-size: 0.875rem
}
}
////// BULMA MOBILE BREAKPOINT ///////
4 changes: 2 additions & 2 deletions src/pages/blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export default class BlogPage extends React.Component {
{posts.map(({ node: post }) => (
<Link className="post is-block" to={post.fields.slug} key={post.id}>
<section className="section is-rounded has-background-white has-shadow has-shadow-hovered">
<div className="content">
<h2 className="is-size-4 has-text-black has-text-weight-bold">
<div className="content has-custom-font-size-on-mobile">
<h2 className="has-text-black has-text-weight-bold">
{post.frontmatter.title}
</h2>
<p>{post.excerpt}</p>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ const IndexPage = props => {
<html lang="es" />
</Helmet>
<section className="section has-text-centered">
<h1 className="title is-1 has-text-black has-text-weight-bold">
<h1 className="title is-1 is-size-3-mobile has-text-black has-text-weight-bold">
Comunidad de JavaScript <br /> en El Salvador
</h1>
<ExternalLink
eventLabel="Link registro"
to="https://www.meetup.com/es-ES/horchatajs/"
className="button is-primary is-large has-text-black"
className="button is-primary is-large is-size-5-mobile has-text-black"
target="_blank"
rel="noopener noreferrer"
>
Expand Down
6 changes: 2 additions & 4 deletions src/templates/blog-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { kebabCase } from 'lodash';
import Helmet from 'react-helmet';
import Link from 'gatsby-link';
import Content, { HTMLContent } from '../components/Content';

export const BlogPostTemplate = ({
content,
contentComponent,
Expand All @@ -13,16 +12,15 @@ export const BlogPostTemplate = ({
date,
}) => {
const PostContent = contentComponent || Content;

return (
<div className="container is-content">
<Helmet>
<title>{title} – HorchataJS</title>
<body className="has-background-white" />
</Helmet>
<section className="section">
<div className="content">
<h1 className="is-size-3 has-text-black has-text-weight-bold">
<div className="content has-custom-font-size-on-mobile">
<h1 className="has-text-black has-text-weight-bold">
{title}
</h1>
<p className="has-text-black">
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1868,6 +1868,7 @@ cheerio@^0.22.0:
cheerio@^1.0.0-rc.2:
version "1.0.0-rc.2"
resolved "https://registry.yarnpkg.com/cheerio/-/cheerio-1.0.0-rc.2.tgz#4b9f53a81b27e4d5dac31c0ffd0cfa03cc6830db"
integrity sha1-S59TqBsn5NXawxwP/Qz6A8xoMNs=
dependencies:
css-select "~1.2.0"
dom-serializer "~0.1.0"
Expand Down