style: reformat SCSS + add pointer-events: none on dimmed header elements
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
03032dcda8
commit
e8bd478338
4 changed files with 270 additions and 289 deletions
|
|
@ -1,122 +1,112 @@
|
|||
#bottom-bar{
|
||||
position: fixed;
|
||||
#bottom-bar {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: calc(var(--header-h) * -0.75);
|
||||
&.is-visible {
|
||||
bottom: 0px;
|
||||
}
|
||||
|
||||
z-index: calc(var(--z-header) - 10);
|
||||
height: calc(var(--header-h) * 0.75);
|
||||
width: 100vw;
|
||||
background-color: var(--color-bg);
|
||||
|
||||
padding-left: var(--padding-body);
|
||||
padding-right: var(--padding-body);
|
||||
|
||||
transition: bottom var(--transition-scroll);
|
||||
|
||||
.progress-container {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: calc(var(--header-h)*-0.75);
|
||||
&.is-visible{
|
||||
bottom: 0px;
|
||||
}
|
||||
|
||||
z-index: calc(var(--z-header) - 10);
|
||||
height: calc(var(--header-h)*0.75);
|
||||
height: 2px;
|
||||
width: 100vw;
|
||||
background-color: var(--color-bg);
|
||||
background-color: var(--grey-800);
|
||||
|
||||
padding-left: var(--padding-body);
|
||||
padding-right: var(--padding-body);
|
||||
.progress-bar {
|
||||
height: 2px;
|
||||
background-color: var(--color-txt);
|
||||
width: 40%;
|
||||
}
|
||||
}
|
||||
|
||||
transition: bottom var(--transition-scroll);
|
||||
.bottom-bar__inner {
|
||||
height: calc(var(--header-h) * 0.75);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: var(--padding-inner);
|
||||
}
|
||||
|
||||
.btn--back-to-top {
|
||||
@include icon(20px);
|
||||
position: relative;
|
||||
top: -3px;
|
||||
width: 100px;
|
||||
|
||||
.progress-container{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 2px;
|
||||
width: 100vw;
|
||||
background-color: var(--grey-800);
|
||||
|
||||
.progress-bar{
|
||||
height: 2px;
|
||||
background-color: var(--color-txt);
|
||||
width: 40%;
|
||||
}
|
||||
a {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.bottom-bar__inner{
|
||||
height: calc(var(--header-h)*0.75);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: var(--padding-inner);
|
||||
.icon {
|
||||
transform: rotate(-90deg);
|
||||
transform-origin: center;
|
||||
svg {
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.title-group {
|
||||
font-size: var(--fs-small);
|
||||
display: flex;
|
||||
color: var(--color-txt-light);
|
||||
flex-grow: 1;
|
||||
width: 100%;
|
||||
padding-top: 5px;
|
||||
|
||||
min-width: 0;
|
||||
|
||||
.title-type {
|
||||
text-transform: uppercase;
|
||||
&::after {
|
||||
content: "/";
|
||||
padding-left: 1ch;
|
||||
padding-right: 1ch;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.btn--back-to-top{
|
||||
@include icon(20px);
|
||||
position: relative;
|
||||
top: -3px;
|
||||
width: 100px;
|
||||
|
||||
a{
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.title {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.icon{
|
||||
transform: rotate(-90deg);
|
||||
transform-origin: center;
|
||||
svg{
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
}
|
||||
@media #{$small} {
|
||||
// display: flex;
|
||||
// align-items: center;
|
||||
// justify-content: center;
|
||||
.bottom-bar__inner {
|
||||
height: calc(var(--header-h) * 0.75);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
|
||||
.title-group{
|
||||
font-size: var(--fs-small);
|
||||
display: flex;
|
||||
color: var(--color-txt-light);
|
||||
flex-grow: 1;
|
||||
width: 100%;
|
||||
padding-top: 5px;
|
||||
|
||||
min-width: 0;
|
||||
|
||||
.title-type{
|
||||
text-transform: uppercase;
|
||||
&::after{
|
||||
content: "/";
|
||||
padding-left: 1ch;
|
||||
padding-right: 1ch;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
.title{
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
.btn--download,
|
||||
.btn--back-to-top {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media #{$small} {
|
||||
|
||||
// display: flex;
|
||||
// align-items: center;
|
||||
// justify-content: center;
|
||||
.bottom-bar__inner{
|
||||
height: calc(var(--header-h)*0.75);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.btn--download, .btn--back-to-top{ display: none; }
|
||||
@media #{$x-small} {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
.title-group {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media #{$x-small} {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
.title-group{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
#site-header {
|
||||
|
||||
|
||||
|
||||
z-index: var(--z-header);
|
||||
--gap: 3ch;
|
||||
|
||||
|
|
@ -14,23 +11,21 @@
|
|||
background-color: var(--color-bg);
|
||||
padding: 0 var(--padding-body);
|
||||
|
||||
box-shadow: -1px 4px 10px 0px var(--color-bg);
|
||||
box-shadow: -1px 4px 10px 0px var(--color-bg);
|
||||
|
||||
.site-header__inner{
|
||||
.site-header__inner {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: calc(var(--gap)*0.25);
|
||||
gap: calc(var(--gap) * 0.25);
|
||||
}
|
||||
|
||||
|
||||
a{
|
||||
a {
|
||||
text-decoration: none;
|
||||
&:hover{
|
||||
&:hover {
|
||||
color: var(--grey-200);
|
||||
}
|
||||
}
|
||||
|
|
@ -40,240 +35,206 @@
|
|||
top: -3px;
|
||||
width: 140px;
|
||||
|
||||
svg{
|
||||
svg {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
@media #{$small}{
|
||||
svg{ width: 80px; }
|
||||
@media #{$small} {
|
||||
svg {
|
||||
width: 80px;
|
||||
}
|
||||
top: -4px;
|
||||
}
|
||||
}
|
||||
|
||||
#nav-highlight,
|
||||
#nav-investigation {
|
||||
flex-grow: 2;
|
||||
ul {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--gap);
|
||||
list-style-type: none;
|
||||
|
||||
#nav-highlight,
|
||||
#nav-investigation{
|
||||
flex-grow: 2;
|
||||
ul{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--gap);
|
||||
list-style-type: none;
|
||||
li {
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li{
|
||||
white-space: nowrap;
|
||||
}
|
||||
#nav-highlight ul {
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
|
||||
@media #{$medium} {
|
||||
font-size: var(--fs-small);
|
||||
}
|
||||
@media screen and (max-width: 890px) {
|
||||
justify-content: flex-end;
|
||||
padding-right: 2ch;
|
||||
|
||||
|
||||
|
||||
li {
|
||||
display: none;
|
||||
}
|
||||
li.support {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#nav-investigation {
|
||||
position: absolute;
|
||||
// transition: top var(--transition-scroll);
|
||||
top: 10%;
|
||||
left: 0;
|
||||
display: flex;
|
||||
opacity: 0;
|
||||
// transform: translateY(-10px);
|
||||
transition: top 0.3s ease;
|
||||
pointer-events: none;
|
||||
|
||||
min-width: 0;
|
||||
|
||||
.title {
|
||||
text-transform: uppercase;
|
||||
font-size: var(--fs-small);
|
||||
font-weight: 500;
|
||||
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
padding-left: 2ch;
|
||||
padding-right: 2ch;
|
||||
text-align: center;
|
||||
color: var(--color-txt-light);
|
||||
}
|
||||
|
||||
@media #{$medium} {
|
||||
ul {
|
||||
font-size: var(--fs-small);
|
||||
padding-left: 6ch;
|
||||
padding-right: 6ch;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#nav-highlight ul{
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
|
||||
@media #{$medium}{
|
||||
font-size: var(--fs-small);
|
||||
|
||||
}
|
||||
@media screen and (max-width: 890px){
|
||||
justify-content: flex-end;
|
||||
padding-right: 2ch;
|
||||
|
||||
li{ display: none; }
|
||||
li.support{ display: block; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
li {
|
||||
color: var(--color-txt-light);
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#nav-investigation{
|
||||
position: absolute;
|
||||
// transition: top var(--transition-scroll);
|
||||
top: 10%;
|
||||
left: 0;
|
||||
display: flex;
|
||||
opacity: 0;
|
||||
// transform: translateY(-10px);
|
||||
transition: top 0.3s ease;
|
||||
li.is-selected {
|
||||
color: var(--color-txt);
|
||||
&:hover {
|
||||
color: var(--color-txt);
|
||||
pointer-events: none;
|
||||
|
||||
|
||||
min-width: 0;
|
||||
|
||||
|
||||
|
||||
.title{
|
||||
text-transform: uppercase;
|
||||
font-size: var(--fs-small);
|
||||
font-weight: 500;
|
||||
|
||||
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
padding-left: 2ch;
|
||||
padding-right: 2ch;
|
||||
text-align: center;
|
||||
color: var(--color-txt-light);
|
||||
|
||||
}
|
||||
|
||||
@media #{$medium}{
|
||||
|
||||
ul{
|
||||
font-size: var(--fs-small);
|
||||
padding-left: 6ch;
|
||||
padding-right: 6ch;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
li{
|
||||
color: var(--color-txt-light);
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
li.is-selected{
|
||||
a:hover {
|
||||
color: var(--color-txt);
|
||||
&:hover{
|
||||
color: var(--color-txt);
|
||||
pointer-events: none;
|
||||
a:hover{
|
||||
color: var(--color-txt);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#theme-toggle{
|
||||
#theme-toggle {
|
||||
width: var(--h-block);
|
||||
height: var(--h-block);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
svg{
|
||||
svg {
|
||||
width: 18px;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#lang-toggle{
|
||||
#lang-toggle {
|
||||
display: flex;
|
||||
gap: 0.75ch;
|
||||
padding-right: 1.5ch;
|
||||
a{
|
||||
a {
|
||||
font-size: var(--fs-small);
|
||||
font-weight: 500;
|
||||
}
|
||||
button:disabled{ color: var(--color-txt-light); }
|
||||
button:disabled {
|
||||
color: var(--color-txt-light);
|
||||
}
|
||||
}
|
||||
|
||||
#menu-toggle{
|
||||
#menu-toggle {
|
||||
cursor: pointer;
|
||||
svg{
|
||||
svg {
|
||||
width: 30px;
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
.close{ display: none; }
|
||||
|
||||
}
|
||||
|
||||
button{
|
||||
|
||||
&:hover{
|
||||
svg{ fill: var(--grey-200)!important; }
|
||||
.close {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
&:hover {
|
||||
svg {
|
||||
fill: var(--grey-200) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Animation, change header
|
||||
|
||||
#site-header.has-nav-investigation{
|
||||
#nav-highlight{
|
||||
display: none;
|
||||
}
|
||||
#nav-investigation{
|
||||
position: relative;
|
||||
opacity: 1;
|
||||
#site-header.has-nav-investigation {
|
||||
#nav-highlight {
|
||||
display: none;
|
||||
}
|
||||
#nav-investigation {
|
||||
position: relative;
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
top: 0px;
|
||||
pointer-events: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media #{$small-up} {
|
||||
#site-header #nav-investigation .title {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media #{$small-up}{
|
||||
|
||||
#site-header #nav-investigation .title{
|
||||
@media #{$small} {
|
||||
#site-header #nav-highlight ul {
|
||||
display: none;
|
||||
}
|
||||
|
||||
}
|
||||
#site-header #nav-investigation .title {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
@media #{$small}{
|
||||
|
||||
|
||||
|
||||
#site-header #nav-highlight ul{
|
||||
#site-header.has-nav-investigation {
|
||||
#nav-investigation {
|
||||
ul {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#site-header #nav-investigation .title{
|
||||
display: none;
|
||||
}
|
||||
|
||||
#site-header.has-nav-investigation{
|
||||
#nav-investigation{
|
||||
ul{ display: none; }
|
||||
.title{ display: block; }
|
||||
}
|
||||
.title {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// @media #{$x-small}{
|
||||
// #site-header.has-nav-investigation{
|
||||
// #nav-investigation{
|
||||
// .title{ display: none; }
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// @media #{$x-small}{
|
||||
// [data-template="investigation"] #site-header{
|
||||
|
||||
|
|
@ -293,6 +254,7 @@ body.menu-open #site-header {
|
|||
#lang-toggle,
|
||||
#menu-toggle {
|
||||
opacity: 0.15;
|
||||
transition: opacity .3s ease-in;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.3s ease-in;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -147,15 +147,6 @@ body.menu-open,
|
|||
body.is-hidden {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
body.menu-open main, body.menu-open footer, body.menu-open #nav-highlight, body.menu-open .btn--back-to-top, body.menu-open .bottom-bar__inner,
|
||||
body.is-hidden main,
|
||||
body.is-hidden footer,
|
||||
body.is-hidden #nav-highlight,
|
||||
body.is-hidden .btn--back-to-top,
|
||||
body.is-hidden .bottom-bar__inner {
|
||||
transition: opacity 0.3s ease-in;
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
#site-header {
|
||||
z-index: var(--z-header);
|
||||
|
|
@ -350,6 +341,16 @@ body.is-hidden .bottom-bar__inner {
|
|||
display: block;
|
||||
}
|
||||
}
|
||||
body.menu-open #site-header #nav-highlight,
|
||||
body.menu-open #site-header #nav-investigation,
|
||||
body.menu-open #site-header #theme-toggle,
|
||||
body.menu-open #site-header #lang-toggle,
|
||||
body.menu-open #site-header #menu-toggle {
|
||||
opacity: 0.15;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.3s ease-in;
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
font-family: var(--font);
|
||||
|
|
@ -2590,7 +2591,8 @@ figcaption, .caption {
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
#bottom-bar .btn--download, #bottom-bar .btn--back-to-top {
|
||||
#bottom-bar .btn--download,
|
||||
#bottom-bar .btn--back-to-top {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
@ -2970,6 +2972,16 @@ figcaption, .caption {
|
|||
display: block;
|
||||
}
|
||||
}
|
||||
body.menu-open #site-header #nav-highlight,
|
||||
body.menu-open #site-header #nav-investigation,
|
||||
body.menu-open #site-header #theme-toggle,
|
||||
body.menu-open #site-header #lang-toggle,
|
||||
body.menu-open #site-header #menu-toggle {
|
||||
opacity: 0.15;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.3s ease-in;
|
||||
}
|
||||
|
||||
#site-menu {
|
||||
position: fixed;
|
||||
width: var(--menu-w);
|
||||
|
|
@ -3036,6 +3048,18 @@ figcaption, .caption {
|
|||
padding-bottom: calc(var(--spacing) * 0.75);
|
||||
}
|
||||
|
||||
#menu-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: calc(var(--z-header) - 2);
|
||||
cursor: pointer;
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.3s ease-in, visibility 0.3s ease-in;
|
||||
}
|
||||
|
||||
body.menu-open #site-menu {
|
||||
right: 0;
|
||||
}
|
||||
|
|
@ -3045,6 +3069,11 @@ body.menu-open #menu-toggle .open {
|
|||
body.menu-open #menu-toggle .close {
|
||||
display: block !important;
|
||||
}
|
||||
body.menu-open #menu-overlay {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
#site-footer {
|
||||
background-color: var(--dark);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue