-
Notifications
You must be signed in to change notification settings - Fork 320
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
use ellipsis to truncate breadcrumbs, and test with playwright #1861
Changes from all commits
158d4d4
dea433a
ed65119
5773228
96de332
f8b5ed7
5295653
9c0f35d
1f7cae2
1e969e4
3857f62
03f9eba
fc335e7
b2f2510
4c38a6f
2e4630f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
.header-article__inner { | ||
display: flex; | ||
padding: 0 0.5rem; | ||
|
||
// The items define the height so that it disappears if there are no items | ||
.header-article-item { | ||
min-height: var(--pst-header-article-height); | ||
height: var(--pst-header-article-height); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing the height rule should prevent the issue in #1451, in which the breadcrumbs overlap the article title |
||
} | ||
|
||
.header-article-items__start, | ||
.header-article-items__end { | ||
display: flex; | ||
align-items: start; | ||
gap: 0.5rem; | ||
Comment on lines
-14
to
-15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These rules have no meaning after |
||
} | ||
|
||
.header-article-items__end { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""Test conf file.""" | ||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = "PyData Tests" | ||
copyright = "2020, Pydata community" | ||
author = "Pydata community" | ||
|
||
root_doc = "index" | ||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
# Add any Sphinx extension module names here, as strings. They can be | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
# ones. | ||
extensions = [] | ||
html_theme = "pydata_sphinx_theme" | ||
html_logo = "_static/emptylogo.png" | ||
html_copy_source = True | ||
html_sourcelink_suffix = "" | ||
|
||
# Base options, we can add other key/vals later | ||
html_sidebars = {"section1/index": ["sidebar-nav-bs.html"]} | ||
|
||
html_theme_options = { | ||
"footer_start": ["breadcrumbs"], | ||
"footer_center": ["breadcrumbs"], | ||
"footer_end": ["breadcrumbs"], | ||
"primary_sidebar_end": ["breadcrumbs"], | ||
"secondary_sidebar_items": ["breadcrumbs"], | ||
"article_header_start": ["breadcrumbs"], | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
In the oven with my sister, so hot right now. Soooo. Hotttt. | ||
============================================================ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Index ``with code`` in title | ||
============================ | ||
|
||
.. toctree:: | ||
:caption: My caption | ||
:numbered: | ||
|
||
hansel/gretel/house | ||
|
||
A header | ||
-------- | ||
|
||
A sub-header | ||
~~~~~~~~~~~~ | ||
|
||
A sub-sub-header | ||
```````````````` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"name": "v0.7.1 (stable)", | ||
"version": "0.7.1", | ||
"url": "https://pydata-sphinx-theme.readthedocs.io/en/v0.7.1/" | ||
}, | ||
{ | ||
"version": "0.7.0", | ||
"url": "https://pydata-sphinx-theme.readthedocs.io/en/v0.7.0/" | ||
}, | ||
{ | ||
"version": "0.6.3" | ||
} | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[ | ||
{ | ||
"name": "v0.7.1 (stable)", | ||
"version": "0.7.1", | ||
"url": "https://pydata-sphinx-theme.readthedocs.io/en/v0.7.1/" | ||
}, | ||
{ | ||
"version": "0.7.0", | ||
"url": "https://pydata-sphinx-theme.readthedocs.io/en/v0.7.0/" | ||
}, | ||
{ | ||
"version": "0.6.3", | ||
"url": "https://pydata-sphinx-theme.readthedocs.io/en/v0.6.3/" | ||
} | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now the
text-overflow: ellipsis
rule applies to all the breadcrumbs not just the last/current one