Skip to content
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

docs: Fix of scrollbar #62

Merged
merged 1 commit into from
Dec 11, 2024
Merged
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
36 changes: 23 additions & 13 deletions docs/_assets/css/score.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ html {
text-decoration: underline;
}

/* SCORE specfic colors
/* SCORE specfic colors
A list of available colro variable names for pyData Sphinx Theme can be found at
https://pydata-sphinx-theme.readthedocs.io/en/stable/_downloads/565fbb3ecf2b3048f5fb3953890ba176/_color.scss
https://pydata-sphinx-theme.readthedocs.io/en/stable/_downloads/565fbb3ecf2b3048f5fb3953890ba176/_color.scss

The base color is TEAL */


Expand Down Expand Up @@ -139,6 +139,16 @@ blockquote {
.navbar-header-items__start {
width: 20%; /* default: 25% */
max-width: 350px; /* default: not set */
overflow-x: hidden;
}

@media screen and (max-width: 959px) {
.bd-sidebar-primary,
.navbar-header-items__start {
width: unset;
max-width: 350px; /* default: not set */
overflow-x: hidden;
}
}

/* Less Sidebar border/distance */
Expand All @@ -157,10 +167,10 @@ blockquote {
div.score_banner {
background-color: var(--pst-color-on-surface);
}
#videowrapper{
#videowrapper{
position: relative;
overflow: hidden;
}
}

#fullScreenDiv{
height: 300px;
Expand All @@ -172,24 +182,24 @@ div.score_banner {
container-type: inline-size;
}

#video{
width: 100%;
#video{
width: 100%;
/* height: auto;
margin: auto;
display: block; */
}
@media (min-aspect-ratio: 16/9) {
#video{
width: 100%;
width: 100%;
height:auto;
}
}

#score-title {
width: 100%;
width: 100%;
height: 100%;
position: absolute;
top: 0;
position: absolute;
top: 0;
left: 0;
display: flex;
justify-content: center;
Expand All @@ -199,13 +209,13 @@ div.score_banner {
/* font-size: 4.5em; */
font-size: 8.0cqw;
font-weight: 900;

/* Is somehow cool with image/video title background */
/*animation: fadeIn 3s; */
}

/* As long as no image or video is shown in
the title, this is not needed, but kept
the title, this is not needed, but kept
for future needs */
/* html[data-theme="light"] #score-title {
background-color: rgba(0,0,0,0.3);
Expand Down
Loading