bidict/assets/custom.css

43 lines
1.5 KiB
CSS
Raw Normal View History

2018-08-13 17:57:07 +00:00
/*
2021-01-01 17:14:24 +00:00
* Copyright 2009-2021 Joshua Bronson. All Rights Reserved.
2018-08-13 17:57:07 +00:00
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
pre { padding: 10px; }
@media only screen and (max-width: 875px) {
p { width: calc(100% - 20px); }
pre { max-width: calc(100% - 40px); }
/* Make code text in side nav lighter on narrow viewports where it's moved to the footer. */
.sphinxsidebarwrapper code { color: #ccc !important; background: inherit !important; }
}
h1, h2, h3, h4, h5 { font-weight: bold !important; }
2016-08-02 22:02:08 +00:00
ul, ol { margin: 10px 20px; }
Various improvements. - Refactor proxied- (i.e. delegated-) to-``_fwdm`` logic for better composability and interoperability. Drop the ``_Proxied*`` mixin classes and instead move their methods into :class:`~bidict.BidictBase`, which now checks for an object defined by the :attr:`~bidict.BidictBase.__delegate__` attribute. The :attr:`~bidict.BidictBase.__delegate__` object will be delegated to if the method is available on it, otherwise a default implementation (e.g. inherited from :class:`~collections.abc.Mapping`) will be used otherwise. Subclasses may set ``__delegate__ = None`` to opt out. - Consolidate ``_MutableBidict`` into :class:`bidict.bidict` now that the dropped mixin classes make it unnecessary. - Change :attr:`~bidict.BidictBase.__repr_delegate__` to take simply a type like :class:`dict` or :class:`list`. - Upgrade to latest major `sortedcontainers <https://github.com/grantjenks/python-sortedcontainers>`__ version (from v1 to v2) for the :ref:`extending:Sorted Bidict Recipes`. - ``bidict.compat.{view,iter}{keys,values,items}`` on Python2 no longer assumes the target object implements these methods, as they're not actually part of the :class:`~collections.abc.Mapping` interface, and provides fallback implementations when the methods are unavailable. This allows the :ref:`extending:Sorted Bidict Recipes` to continue to work with sortedcontainers v2 on Python2. - Test code in docs via Sphinx rather than pytest. Enables running Python version-dependent tests conditionally rather than skipping them altogether, as well as hiding import statements (via `testsetup`) that otherwise just add noise. Run tests (viz. pytest and Sphinx doctest) via a new run-tests.py script.
2018-11-05 20:52:59 +00:00
ul li { margin-bottom: 8px; }
2018-10-17 15:16:43 +00:00
/* Float the logo to the right of the status badges on the homepage */
#bidict img[alt="bidict logo"] { float: right; }
/* Can remove this when https://github.com/bitprophet/alabaster/pull/125 lands */
a.image-reference:hover { border-bottom: 0 !important; }
2018-02-13 12:13:24 +00:00
div.sphinxsidebar img[alt="Donate"] { display: none; }
/* override the inherited "max-width: 100%" in case a badge fails to load */
#status img { max-width: inherit; }
.sphinxsidebar h3 { margin-top: 20px !important; }
.sphinxsidebar h3.donation { margin-top: 50px !important; }
2019-02-04 01:00:29 +00:00
#codefund { margin-top: 50px; }
#cf, .cf-wrapper { margin: 0 !important; }
#cf * { border: none !important; }
/* Make cf text lighter on narrow viewports where it's moved to the footer. */
@media only screen and (max-width: 34em) {
#cf * { color: #aaa !important; }
}