mirror of
https://github.com/fastapi/fastapi.git
synced 2026-11-06 08:03:10 -05:00
🔥 Remove conference rail component and related styles (#16679)
This commit is contained in:
1 parent
5cb6272ed7
commit
65beb779cf
3 files changed
-165
No files matched your search
@@ -437,105 +437,6 @@ Inspired by Termynal's CSS tricks with modifications
|
||||
.fastapi-sponsors__card--silver .fastapi-sponsors__banner { height: 50px; }
|
||||
}
|
||||
|
||||
.fastapi-conf-rail {
|
||||
display: block;
|
||||
margin: 1.25rem 0.5rem 0;
|
||||
padding: 0.9rem 0.85rem 0.85rem;
|
||||
border: 1px solid var(--md-default-fg-color--lightest);
|
||||
border-left: 3px solid var(--md-primary-fg-color);
|
||||
border-radius: 0.2rem;
|
||||
background: color-mix(in srgb, var(--md-primary-fg-color) 6%, transparent);
|
||||
color: var(--md-default-fg-color);
|
||||
text-decoration: none;
|
||||
transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
|
||||
}
|
||||
|
||||
.fastapi-conf-rail__eyebrow {
|
||||
display: block;
|
||||
font-size: 0.56rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.11em;
|
||||
text-transform: uppercase;
|
||||
color: var(--md-primary-fg-color);
|
||||
}
|
||||
|
||||
.fastapi-conf-rail__date {
|
||||
display: block;
|
||||
margin-top: 0.45rem;
|
||||
font-size: 0.74rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.fastapi-conf-rail__place {
|
||||
display: block;
|
||||
margin-top: 0.1rem;
|
||||
font-size: 0.68rem;
|
||||
line-height: 1.3;
|
||||
color: var(--md-default-fg-color--light);
|
||||
}
|
||||
|
||||
.fastapi-conf-rail__summary {
|
||||
display: block;
|
||||
margin-top: 0.55rem;
|
||||
font-size: 0.67rem;
|
||||
line-height: 1.5;
|
||||
color: var(--md-default-fg-color--light);
|
||||
}
|
||||
|
||||
.fastapi-conf-rail__cta {
|
||||
display: block;
|
||||
margin-top: 0.65rem;
|
||||
font-size: 0.68rem;
|
||||
font-weight: 700;
|
||||
color: var(--md-primary-fg-color);
|
||||
}
|
||||
|
||||
.fastapi-conf-rail:hover {
|
||||
border-color: var(--md-primary-fg-color);
|
||||
background: color-mix(in srgb, var(--md-primary-fg-color) 10%, transparent);
|
||||
}
|
||||
|
||||
.fastapi-conf-rail:hover .fastapi-conf-rail__cta,
|
||||
.fastapi-conf-rail:focus-visible .fastapi-conf-rail__cta {
|
||||
color: var(--md-accent-fg-color);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.fastapi-conf-rail:focus-visible {
|
||||
outline: 2px solid var(--md-accent-fg-color);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.fastapi-conf-rail--mobile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 76.234375em) {
|
||||
.fastapi-conf-rail:not(.fastapi-conf-rail--mobile) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.md-typeset .fastapi-conf-rail--mobile {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
margin: 0 0 1.25rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.fastapi-conf-rail--mobile .fastapi-conf-rail__summary {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fastapi-conf-rail--mobile .fastapi-conf-rail__cta {
|
||||
grid-column: 2;
|
||||
grid-row: 1 / 4;
|
||||
align-self: center;
|
||||
margin: 0 0 0 0.8rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.fastapi-feature-banner {
|
||||
display: block;
|
||||
max-width: 680px;
|
||||
|
||||
@@ -1,57 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block site_nav %}
|
||||
{% if nav %}
|
||||
{% if page.meta and page.meta.hide %}
|
||||
{% set hidden = "hidden" if "navigation" in page.meta.hide %}
|
||||
{% endif %}
|
||||
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" {{ hidden }}>
|
||||
<div class="md-sidebar__scrollwrap">
|
||||
<div class="md-sidebar__inner">
|
||||
{% include "partials/nav.html" %}
|
||||
{# Zensical has no page.is_homepage; page.url is empty on the landing page. #}
|
||||
{% if not page.url %}
|
||||
{% include "partials/conf-rail.html" %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if "toc.integrate" not in features %}
|
||||
{% if page.meta and page.meta.hide %}
|
||||
{% set hidden = "hidden" if "toc" in page.meta.hide %}
|
||||
{% endif %}
|
||||
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" {{ hidden }}>
|
||||
<div class="md-sidebar__scrollwrap">
|
||||
{% if config.theme.variant != "classic" %}
|
||||
{% set toc = page.toc %}
|
||||
{% set first = toc | first %}
|
||||
{% if first and first.level == 1 %}
|
||||
{% set toc = first.children %}
|
||||
{% endif %}
|
||||
{% if toc %}
|
||||
<input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
|
||||
<div class="md-sidebar-button__wrapper">
|
||||
<label class="md-sidebar-button" for="__toc"></label>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<div class="md-sidebar__inner">
|
||||
{% include "partials/toc.html" %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if not page.url %}
|
||||
{% set conf_rail_mobile = true %}
|
||||
{% include "partials/conf-rail.html" %}
|
||||
{% endif %}
|
||||
{% include "partials/content.html" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block announce %}
|
||||
<div class="announce-wrapper">
|
||||
<div id="announce-left">
|
||||
@@ -62,13 +10,6 @@
|
||||
</span> Deploy on <strong>FastAPI Cloud</strong> 🚀
|
||||
</a>
|
||||
</div>
|
||||
<div class="item">
|
||||
<a class="announce-link" href="https://fastapiconf.com" target="_blank">
|
||||
<span class="twemoji">
|
||||
{% include ".icons/material/calendar-star.svg" %}
|
||||
</span> <strong>FastAPI Conf '26</strong> — Oct 28, 2026, Amsterdam 🎤
|
||||
</a>
|
||||
</div>
|
||||
<div class="item">
|
||||
<a class="announce-link" href="https://x.com/fastapi" target="_blank">
|
||||
<span class="twemoji">
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<a class="fastapi-conf-rail{% if conf_rail_mobile | default(false) %} fastapi-conf-rail--mobile{% endif %} no-link-icon" href="https://fastapiconf.com" target="_blank" rel="noopener">
|
||||
<span class="fastapi-conf-rail__eyebrow">FastAPI Conf '26</span>
|
||||
<span class="fastapi-conf-rail__date">October 28, 2026</span>
|
||||
<span class="fastapi-conf-rail__place">Amsterdam, NL</span>
|
||||
<span class="fastapi-conf-rail__summary">All about FastAPI, right from the source.</span>
|
||||
<span class="fastapi-conf-rail__cta">Learn more <span aria-hidden="true">→</span></span>
|
||||
</a>
|
||||
Reference in new issue
Block a user