From 87fc425be989f45f09d486fecc39a51e263d92a2 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Wed, 16 Sep 2020 09:56:56 -0700 Subject: [PATCH] Fixing docs site home screen mobile layout issues (#10886) * fixing phone layout issues, "sqlab" -> "SQL Lab" * fixing docs width/scrolling issues * Revert "fixing docs width/scrolling issues" This reverts commit 53c6482083daa0d744424659b247de200d967460. * minor cherry on top-> remove nowrap and improve a link in README Co-authored-by: Maxime Beauchemin --- README.md | 2 +- docs/src/components/layout.tsx | 1 - docs/src/pages/index.tsx | 50 +++++++++++++++++++++++++--------- 3 files changed, 38 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index d560ece9f..b0ebf49cf 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Superset [![Coverage Status](https://codecov.io/github/apache/incubator-superset/coverage.svg?branch=master)](https://codecov.io/github/apache/incubator-superset) [![PyPI](https://img.shields.io/pypi/pyversions/apache-superset.svg?maxAge=2592000)](https://pypi.python.org/pypi/apache-superset) [![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://join.slack.com/t/apache-superset/shared_invite/zt-g8lpruog-HeqpgYrwdfrD5OYhlU7hPQ) -[![Documentation](https://img.shields.io/badge/docs-apache.org-blue.svg)](https://superset.incubator.apache.org) +[![Documentation](https://img.shields.io/badge/docs-apache.org-blue.svg)](https://superset.apache.org) [![Dependencies Status](https://david-dm.org/apache/incubator-superset/status.svg?path=superset-frontend)](https://david-dm.org/apache/incubator-superset?path=superset-frontend) span { + display: none; + position: absolute; + bottom: 0px; + left: 50%; + width: 100%; + transform: translate(-50%, 100%); + } + h2 { + font-size: 14px; + margin: 0; + } + } &:hover { cursor: pointer; color: ${colors.primary.base}; @@ -219,6 +239,11 @@ const linkCarousel = css` &.active { background: red; background: #20a7c933; + ${[mq[0]]} { + > span { + display: block; + } + } } } } @@ -267,8 +292,8 @@ const Theme = () => {
logo-horiz
- Apache Superset is a modern data - exploration and visualization platform + Apache Superset is a modern data exploration and visualization + platform
@@ -347,7 +372,6 @@ const Theme = () => { `} /> - @@ -426,10 +450,13 @@ const Theme = () => { {' '} - ... and any other SQLAlchemy - {' '} + ... and any other SQLAlchemy{' '} {' '} - compatible databases - {' '} - - {' '} + compatible databases{' '} + {' '}