mirror of
https://github.com/danog/sass-site.git
synced 2025-01-22 22:01:30 +01:00
Merge branch 'main' into port-docs-values
* main: Better handle the JS API docs on smaller screens (#735) Mention that / is interpreted as division in calculations (#734)
This commit is contained in:
commit
ac68e56e02
142
old_source/assets/css/vendor/typedoc/_style.scss
vendored
142
old_source/assets/css/vendor/typedoc/_style.scss
vendored
@ -196,7 +196,7 @@
|
||||
}
|
||||
body {
|
||||
background: var(--color-background);
|
||||
font-family: 'Segoe UI', sans-serif;
|
||||
font-family: "Segoe UI", sans-serif;
|
||||
font-size: 16px;
|
||||
color: var(--color-text);
|
||||
}
|
||||
@ -208,7 +208,7 @@
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
a.external[target='_blank'] {
|
||||
a.external[target="_blank"] {
|
||||
background-image: var(--external-icon);
|
||||
background-position: top 3px right;
|
||||
background-repeat: no-repeat;
|
||||
@ -297,7 +297,7 @@
|
||||
display: inline;
|
||||
}
|
||||
.tsd-breadcrumb li:after {
|
||||
content: ' / ';
|
||||
content: " / ";
|
||||
}
|
||||
|
||||
.tsd-comment-tags {
|
||||
@ -331,7 +331,7 @@
|
||||
|
||||
dl.tsd-comment-tag-group dd:before,
|
||||
dl.tsd-comment-tag-group dd:after {
|
||||
content: ' ';
|
||||
content: " ";
|
||||
}
|
||||
dl.tsd-comment-tag-group dd pre,
|
||||
dl.tsd-comment-tag-group dd:after {
|
||||
@ -370,14 +370,14 @@
|
||||
-ms-user-select: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tsd-filter-input input[type='checkbox'] {
|
||||
.tsd-filter-input input[type="checkbox"] {
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
width: 1.5em;
|
||||
height: 1.5em;
|
||||
opacity: 0;
|
||||
}
|
||||
.tsd-filter-input input[type='checkbox']:disabled {
|
||||
.tsd-filter-input input[type="checkbox"]:disabled {
|
||||
pointer-events: none;
|
||||
}
|
||||
.tsd-filter-input svg {
|
||||
@ -390,16 +390,16 @@
|
||||
Don't remove unless you know what you're doing. */
|
||||
opacity: 0.99;
|
||||
}
|
||||
.tsd-filter-input input[type='checkbox']:focus + svg {
|
||||
.tsd-filter-input input[type="checkbox"]:focus + svg {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
.tsd-filter-input input[type='checkbox']:focus:not(:focus-visible) + svg {
|
||||
.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg {
|
||||
transform: scale(1);
|
||||
}
|
||||
.tsd-checkbox-background {
|
||||
fill: var(--color-accent);
|
||||
}
|
||||
input[type='checkbox']:checked ~ svg .tsd-checkbox-checkmark {
|
||||
input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
|
||||
stroke: var(--color-text);
|
||||
}
|
||||
.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-background {
|
||||
@ -760,7 +760,7 @@
|
||||
margin: 0 0 1rem 0;
|
||||
padding: 1rem 0.5rem;
|
||||
border: 1px solid var(--color-accent);
|
||||
font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
|
||||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||
font-size: 14px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
@ -887,10 +887,10 @@
|
||||
.tsd-widget.menu {
|
||||
display: none;
|
||||
}
|
||||
input[type='checkbox'] + .tsd-widget:before {
|
||||
input[type="checkbox"] + .tsd-widget:before {
|
||||
background-position: -120px 0;
|
||||
}
|
||||
input[type='checkbox']:checked + .tsd-widget:before {
|
||||
input[type="checkbox"]:checked + .tsd-widget:before {
|
||||
background-position: -160px 0;
|
||||
}
|
||||
|
||||
@ -1017,94 +1017,12 @@
|
||||
border: 0.25rem solid var(--color-icon-background);
|
||||
}
|
||||
|
||||
/* mobile */
|
||||
@media (max-width: 769px) {
|
||||
.tsd-widget.options,
|
||||
.tsd-widget.menu {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.container-main {
|
||||
display: flex;
|
||||
}
|
||||
html .col-content {
|
||||
float: none;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
html .col-sidebar {
|
||||
position: fixed !important;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
z-index: 1024;
|
||||
top: 0 !important;
|
||||
bottom: 0 !important;
|
||||
left: auto !important;
|
||||
right: 0 !important;
|
||||
padding: 1.5rem 1.5rem 0 0;
|
||||
width: 75vw;
|
||||
visibility: hidden;
|
||||
background-color: var(--color-background);
|
||||
transform: translate(100%, 0);
|
||||
}
|
||||
html .col-sidebar > *:last-child {
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
html .overlay {
|
||||
content: '';
|
||||
display: block;
|
||||
position: fixed;
|
||||
z-index: 1023;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(0, 0, 0, 0.75);
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.to-has-menu .overlay {
|
||||
animation: fade-in 0.4s;
|
||||
}
|
||||
|
||||
.to-has-menu .col-sidebar {
|
||||
animation: pop-in-from-right 0.4s;
|
||||
}
|
||||
|
||||
.from-has-menu .overlay {
|
||||
animation: fade-out 0.4s;
|
||||
}
|
||||
|
||||
.from-has-menu .col-sidebar {
|
||||
animation: pop-out-to-right 0.4s;
|
||||
}
|
||||
|
||||
.has-menu body {
|
||||
overflow: hidden;
|
||||
}
|
||||
.has-menu .overlay {
|
||||
visibility: visible;
|
||||
}
|
||||
.has-menu .col-sidebar {
|
||||
visibility: visible;
|
||||
transform: translate(0, 0);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
max-height: 100vh;
|
||||
padding: 1rem 2rem;
|
||||
}
|
||||
.has-menu .tsd-navigation {
|
||||
max-height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* one sidebar */
|
||||
@media (min-width: 770px) {
|
||||
.container-main {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
|
||||
grid-template-areas: 'sidebar content';
|
||||
grid-template-areas: "sidebar content";
|
||||
margin: 2rem auto;
|
||||
}
|
||||
|
||||
@ -1133,7 +1051,7 @@
|
||||
@media (min-width: 1200px) {
|
||||
.container-main {
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 20rem);
|
||||
grid-template-areas: 'sidebar content toc';
|
||||
grid-template-areas: "sidebar content toc";
|
||||
}
|
||||
|
||||
.col-sidebar {
|
||||
@ -1168,22 +1086,21 @@
|
||||
|
||||
// Match the site's font stack in the signatures.
|
||||
.tsd-signature {
|
||||
font-family: 'Source Code Pro', 'SF Mono', Monaco, Inconsolata, 'Fira Mono',
|
||||
'Droid Sans Mono', monospace, monospace;
|
||||
font-family: 'Source Code Pro', 'SF Mono', Monaco, Inconsolata, 'Fira Mono', 'Droid Sans Mono', monospace, monospace;
|
||||
}
|
||||
|
||||
// Don't include a table of contents, just a sidebar to the right of the
|
||||
// content.
|
||||
.container-main {
|
||||
// one sidebar
|
||||
@media (min-width: 770px) {
|
||||
grid-template-areas: 'content sidebar';
|
||||
// In mobile mode, put the sidebar above the content.
|
||||
@media (max-width: 769px) {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
|
||||
/* two sidebars */
|
||||
@media (min-width: 1200px) {
|
||||
@media (min-width: 770px) {
|
||||
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
|
||||
grid-template-areas: 'content sidebar';
|
||||
grid-template-areas: "content sidebar";
|
||||
}
|
||||
}
|
||||
|
||||
@ -1194,22 +1111,15 @@
|
||||
}
|
||||
|
||||
// Undo the global reset because the typedoc styles don't expect it.
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 700;
|
||||
}
|
||||
ul,
|
||||
ol {
|
||||
ul, ol {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
// Undo the global link style for the TypeDoc navigation.
|
||||
.tsd-navigation a,
|
||||
.tsd-index-group a {
|
||||
.tsd-navigation a, .tsd-index-group a {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
@ -1224,8 +1134,7 @@
|
||||
margin-top: 0;
|
||||
|
||||
// Undo typedoc dl styles.
|
||||
dl,
|
||||
dd {
|
||||
dl, dd {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
@ -1234,4 +1143,5 @@
|
||||
details:not([open]) .tsd-accordion-summary svg {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -139,10 +139,13 @@ is met:
|
||||
* The operation is surrounded by parentheses, unless those parentheses are
|
||||
outside a list that contains the operation.
|
||||
* The result is used as part of another operation (other than `/`).
|
||||
* The result is returned by a [calculation].
|
||||
|
||||
[calculation]: https://sass-lang.com/documentation/values/calculations
|
||||
|
||||
You can use [`list.slash()`] to force `/` to be used as a separator.
|
||||
|
||||
[`list.slash`]: ../modules/list#slash
|
||||
[`list.slash()`]: ../modules/list#slash
|
||||
|
||||
<% example(autogen_css: false) do %>
|
||||
@use "sass:list";
|
||||
|
92
source/assets/sass/vendor/typedoc/_style.scss
vendored
92
source/assets/sass/vendor/typedoc/_style.scss
vendored
@ -1017,88 +1017,6 @@
|
||||
border: 0.25rem solid var(--color-icon-background);
|
||||
}
|
||||
|
||||
/* mobile */
|
||||
@media (max-width: 769px) {
|
||||
.tsd-widget.options,
|
||||
.tsd-widget.menu {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.container-main {
|
||||
display: flex;
|
||||
}
|
||||
html .col-content {
|
||||
float: none;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
html .col-sidebar {
|
||||
position: fixed !important;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
z-index: 1024;
|
||||
top: 0 !important;
|
||||
bottom: 0 !important;
|
||||
left: auto !important;
|
||||
right: 0 !important;
|
||||
padding: 1.5rem 1.5rem 0 0;
|
||||
width: 75vw;
|
||||
visibility: hidden;
|
||||
background-color: var(--color-background);
|
||||
transform: translate(100%, 0);
|
||||
}
|
||||
html .col-sidebar > *:last-child {
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
html .overlay {
|
||||
content: '';
|
||||
display: block;
|
||||
position: fixed;
|
||||
z-index: 1023;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(0, 0, 0, 0.75);
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.to-has-menu .overlay {
|
||||
animation: fade-in 0.4s;
|
||||
}
|
||||
|
||||
.to-has-menu .col-sidebar {
|
||||
animation: pop-in-from-right 0.4s;
|
||||
}
|
||||
|
||||
.from-has-menu .overlay {
|
||||
animation: fade-out 0.4s;
|
||||
}
|
||||
|
||||
.from-has-menu .col-sidebar {
|
||||
animation: pop-out-to-right 0.4s;
|
||||
}
|
||||
|
||||
.has-menu body {
|
||||
overflow: hidden;
|
||||
}
|
||||
.has-menu .overlay {
|
||||
visibility: visible;
|
||||
}
|
||||
.has-menu .col-sidebar {
|
||||
visibility: visible;
|
||||
transform: translate(0, 0);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
max-height: 100vh;
|
||||
padding: 1rem 2rem;
|
||||
}
|
||||
.has-menu .tsd-navigation {
|
||||
max-height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* one sidebar */
|
||||
@media (min-width: 770px) {
|
||||
.container-main {
|
||||
@ -1175,13 +1093,13 @@
|
||||
// Don't include a table of contents, just a sidebar to the right of the
|
||||
// content.
|
||||
.container-main {
|
||||
// one sidebar
|
||||
@media (min-width: 770px) {
|
||||
grid-template-areas: 'content sidebar';
|
||||
// In mobile mode, put the sidebar above the content.
|
||||
@media (max-width: 769px) {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
|
||||
/* two sidebars */
|
||||
@media (min-width: 1200px) {
|
||||
@media (min-width: 770px) {
|
||||
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
|
||||
grid-template-areas: 'content sidebar';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user