From c9a895024438149dc66ab4821f1ff32a02d78226 Mon Sep 17 00:00:00 2001 From: Amberley Date: Wed, 29 Aug 2018 20:56:39 -0500 Subject: [PATCH] 5www] Overall typography edits - starter showcase #6719 (#7708) * (#6719): typography edits to starter showcase * (#6719): centralize common showcase styles for meta info --- www/src/views/shared/styles.js | 9 ++++- www/src/views/showcase/showcase-list.js | 6 +--- .../views/starter-showcase/showcase-list.js | 34 ++++++++++++++----- 3 files changed, 34 insertions(+), 15 deletions(-) diff --git a/www/src/views/shared/styles.js b/www/src/views/shared/styles.js index da3e1cd372da9..8a76f049df5a7 100644 --- a/www/src/views/shared/styles.js +++ b/www/src/views/shared/styles.js @@ -1,4 +1,4 @@ -import typography, { options, rhythm } from "../../utils/typography" +import typography, { options, rhythm, scale } from "../../utils/typography" import presets, { colors } from "../../utils/presets" import { style } from "glamor" import hex2rgba from "hex2rgba" @@ -144,6 +144,13 @@ const styles = { borderBottom: `none !important`, // i know i know boxShadow: `none !important`, // but people really want this }, + meta: { + ...scale(-1 / 5), + alignItems: `baseline`, + "&&": { + color: colors.gray.bright, + }, + }, searchInput: { appearance: `none`, backgroundColor: `transparent`, diff --git a/www/src/views/showcase/showcase-list.js b/www/src/views/showcase/showcase-list.js index 7d7097650d7a8..735ba4e8c0afc 100644 --- a/www/src/views/showcase/showcase-list.js +++ b/www/src/views/showcase/showcase-list.js @@ -78,13 +78,9 @@ const ShowcaseList = ({ items, count }) => {
diff --git a/www/src/views/starter-showcase/showcase-list.js b/www/src/views/starter-showcase/showcase-list.js index 58dbebc26d25b..8bffb1fb70d67 100644 --- a/www/src/views/starter-showcase/showcase-list.js +++ b/www/src/views/starter-showcase/showcase-list.js @@ -4,7 +4,8 @@ import Img from "gatsby-image" import FaExtLink from "react-icons/lib/fa/external-link" import FaGithub from "react-icons/lib/fa/github" import FaClipboard from "react-icons/lib/fa/clipboard" -import { /* options, rhythm, */ scale, rhythm } from "../../utils/typography" +import MdStar from "react-icons/lib/md/star" +import { /* rhythm, */ scale, rhythm, options } from "../../utils/typography" import presets, { colors } from "../../utils/presets" import copyToClipboard from "../../utils/copy-to-clipboard" import styles from "../shared/styles" @@ -48,6 +49,7 @@ const ShowcaseList = ({ urlState, items, imgs, count, sortRecent }) => { return (
{
- {repo.owner && repo.owner.login} / - + + {repo.owner && repo.owner.login} / + + a": { + paddingLeft: 5, + "&:hover": { + background: `none`, + color: colors.gatsby, + }, + }, + }} + > @@ -196,9 +209,12 @@ const ShowcaseList = ({ urlState, items, imgs, count, sortRecent }) => {
- - ⭐ - + {stars}