Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion site/lib/_sass/_site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
@use 'components/misc';
@use 'components/next-prev-nav';
@use 'components/os-selector';
@use 'components/pagenav';
@use 'components/pill';
@use 'components/quiz';
@use 'components/sidebar';
@use 'components/side-menu';
@use 'components/site-switcher';
@use 'components/tabs';
@use 'components/theming';
@use 'components/toc';
@use 'components/tooltip';
@use 'components/trailing';

Expand Down
23 changes: 23 additions & 0 deletions site/lib/_sass/components/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,26 @@ body.open_menu #menu-toggle span.material-symbols {
}
}
}

#site-subheader {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;

position: sticky;
top: var(--site-header-height);
z-index: var(--site-z-subheader);
height: var(--site-subheader-height);

font-family: var(--site-ui-fontFamily);
font-size: 0.875rem;

background-color: var(--site-base-bgColor);
border-bottom: 0.1rem solid var(--site-outline-variant);
box-shadow: 0 2px 4px rgba(0, 0, 0, .05);

@media (width < 240px), (width >= 1200px) {
display: none;
}
}
Original file line number Diff line number Diff line change
@@ -1,30 +1,4 @@
#toc-top {
font-family: var(--site-ui-fontFamily);

display: none;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
align-content: center;
height: var(--site-subheader-height);

@media (min-width: 240px) {
display: flex;
}

@media (min-width: 1200px) {
display: none;
}

position: sticky;
top: var(--site-header-height);

background-color: var(--site-base-bgColor);
border-bottom: 0.1rem solid var(--site-outline-variant);
box-shadow: 0 2px 4px rgba(0, 0, 0, .05);

font-size: 0.875rem;
z-index: var(--site-z-subheader);
#pagenav {

>button.dropdown-button {
display: flex;
Expand Down Expand Up @@ -58,25 +32,21 @@
}

.toc-current {
flex-wrap: nowrap;
white-space: nowrap;
overflow: hidden;

display: none;

@media (min-width: 320px) {
display: flex;
}
}

#current-header {
color: var(--site-base-fgColor-alt);

flex-wrap: nowrap;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;

color: var(--site-base-fgColor-alt);
}

.dropdown-content {
#pagenav-content {
position: absolute;
box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
border-bottom: 0.1rem solid var(--site-outline-variant);
Expand Down Expand Up @@ -106,7 +76,7 @@
max-width: 24rem;
}

>a {
a#return-to-top {
margin: 0.4rem 0;
padding: 0.1rem;
font-size: 1rem;
Expand Down Expand Up @@ -134,7 +104,7 @@
}
}

>nav {
nav {
padding: 0.6rem 0 0.8rem;
}
}
Expand Down
2 changes: 1 addition & 1 deletion site/lib/_sass/components/_side-menu.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.styled-toc-list {
.toc-list {
margin: 0;
--toc-indent: 0;

Expand Down
19 changes: 10 additions & 9 deletions site/lib/_sass/components/_tooltip.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.tooltip-wrapper {
position: relative;

a.tooltip-target {
.tooltip-target:has(+.tooltip) a {
color: inherit;
text-decoration: underline;
text-decoration-style: dotted;
Expand All @@ -10,14 +10,13 @@
.tooltip {
visibility: hidden;

display: flex;
display: block;
position: absolute;
z-index: var(--site-z-floating);
top: 100%;
left: 50%;
transform: translateX(-50%);

flex-flow: column nowrap;
width: 16rem;

background: var(--site-raised-bgColor);
Expand All @@ -26,20 +25,22 @@
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
padding: 0.8rem;

font-size: 1rem;
font-size: 0.875rem;
font-weight: normal;
font-style: normal;

.tooltip-content {
display: flex;
flex-flow: column nowrap;
color: var(--site-secondary-textColor);
}

.tooltip-header {
font-size: 1.2rem;
font-weight: 500;
margin-bottom: 0.25rem;
}

.tooltip-content {
font-size: 0.875rem;
color: var(--site-secondary-textColor);
}
}

// On non-touch devices, show tooltip on hover or focus.
Expand All @@ -53,7 +54,7 @@
}
}

// On touch devices, show tooltip on click (see global_scripts.dart).
// On touch devices, show tooltip on click.
@media all and (pointer: coarse) {
.tooltip.visible {
visibility: visible;
Expand Down
Loading