This commit is contained in:
Simon Gardling
2023-10-11 17:38:05 -04:00
commit 032679b34a
242 changed files with 9311 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
.breadcrumbs {
@include font-bold;
list-style-type: none;
padding: 0;
margin: 0;
a {
color: var(--color-text);
border-bottom: 2px solid transparent;
&:hover {
border-bottom-color: var(--color-text-secondary);
}
}
li {
display: inline;
}
}

View File

@@ -0,0 +1,54 @@
#TableOfContents {
line-height: 1.5rem;
ul, li {
list-style: none;
padding-left: 0;
margin: 0;
}
ul ul {
margin-left: .5rem;
}
li {
margin-top: .375rem;
}
a {
color: var(--color-text);
}
}
article#collapsible_menu_changelogs {
line-height: 1.75rem;
display: grid;
gap: .5rem;
grid-template-columns: max-content 1fr;
margin-top: .5rem;
}
.collapsible-menu-wrapper {
@include my-8;
font-size: 0.875rem;
padding: 1rem;
border: 2px solid var(--color-border-collapsible-menu);
border-radius: .25rem;
.collapsible-menu-type {
span {
@include font-bold;
line-height: 1.5rem;
}
}
summary.collapsible-menu-type {
span {
margin-left: .3rem;
}
}
.collapsible-menu {
margin-left: .5rem;
}
}

View File

@@ -0,0 +1,4 @@
.color-block {
border-radius: 0.25rem;
padding: 0.75rem;
}

View File

@@ -0,0 +1,70 @@
.emgithub-container {
@include my-6;
.emgithub-code {
display: flex;
flex-direction: column;
justify-content: center;
.emgithub-loading {
@include mx-auto;
@include my-4;
z-index: 10;
position: absolute;
left: 0;
right: 0;
width: 2rem;
&.hide {
display: none;
}
svg {
width: 2rem;
height: 2rem;
animation: spin 1s linear infinite;
color: white;
fill: #969696;
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
}
}
.emgithub-pre {
@include my-0;
border-bottom-right-radius: 0px;
border-bottom-left-radius: 0px;
&.loading {
min-height: 5rem;
}
code {
tab-size: inherit;
}
}
}
.emgithub-toolbar {
@include text-xs;
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 0.75rem 0.75rem 0.625rem 0.75rem;
border-bottom-right-radius: 0.375rem;
border-bottom-left-radius: 0.375rem;
background-color: $gray-900;
a {
@include font-semibold;
color: white;
border: 0;
}
}
}

View File

@@ -0,0 +1,6 @@
footer {
@include my-4;
@include text-xs;
text-align: center;
color: var(--color-text-footer);
}

View File

@@ -0,0 +1,79 @@
html[data-theme="dark"] {
#dark_mode_btn {
display: none;
}
}
html[data-theme="light"] {
#light_mode_btn {
display: none;
}
}
header {
display: flex;
justify-content: space-between;
align-items: center;
margin: 1rem 0;
.brand {
display: flex;
align-items: center;
a {
@include text-3xl;
@include font-bold;
color: var(--color-text);
}
#sidebar_btn {
display: flex;
margin-right: 0.5rem;
@media screen and (min-width: $md_min_width) {
display: none;
}
}
}
.toolbox {
display: flex;
align-items: center;
column-gap: 0.5rem;
.toolbox-btn {
display: flex;
cursor: pointer;
&:hover {
color: var(--color-text-secondary);
}
}
.dropdown-wrapper {
.dropdown-btn.pure-menu-link {
color: unset;
}
.dropdown-btn {
display: flex;
align-items: center;
padding: 0;
&:hover {
background-color: unset;
}
&::after {
content: "";
padding: 0;
}
.dropdown-desc {
@include text-sm;
margin-left: 0.35rem;
}
}
}
}
}

View File

@@ -0,0 +1,6 @@
.icon-group {
@include my-4;
display: inline-grid;
grid-auto-flow: column;
gap: 0.375rem;
}

View File

@@ -0,0 +1,13 @@
.icon {
display: inline-block;
width: 1.5rem;
height: 1.5rem;
a {
color: var(--color-text);
&:hover {
color: var(--color-text-secondary);
}
}
}

View File

@@ -0,0 +1,202 @@
/*!
Pure v2.1.0
Copyright 2013 Yahoo!
Licensed under the BSD License.
https://github.com/pure-css/pure/blob/master/LICENSE
*/
/*csslint adjoining-classes: false, box-model:false*/
.pure-menu {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.pure-menu-fixed {
position: fixed;
left: 0;
top: 0;
z-index: 3;
}
.pure-menu-list, .pure-menu-item {
position: relative;
}
.pure-menu-list {
list-style: none;
margin: 0;
padding: 0;
}
.pure-menu-item {
padding: 0;
margin: 0;
height: 100%;
@include text-sm;
}
.pure-menu-link, .pure-menu-heading {
display: block;
text-decoration: none;
white-space: nowrap;
}
/* HORIZONTAL MENU */
.pure-menu-horizontal {
width: 100%;
white-space: nowrap;
.pure-menu-list {
display: inline-block;
}
.pure-menu-item, .pure-menu-heading, .pure-menu-separator {
display: inline-block;
vertical-align: middle;
}
}
/* Initial menus should be inline-block so that they are horizontal */
/* Submenus should still be display: block; */
.pure-menu-item .pure-menu-item {
display: block;
}
.pure-menu-children {
display: none;
position: absolute;
left: 100%;
top: 0;
margin: 0;
padding: 0;
z-index: 3;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.pure-menu-horizontal .pure-menu-children {
left: 0;
top: auto;
width: inherit;
}
.pure-menu-allow-hover:hover > .pure-menu-children, .pure-menu-active > .pure-menu-children {
display: block;
position: absolute;
}
/* Vertical Menus - show the dropdown arrow */
.pure-menu-has-children > .pure-menu-link:after {
padding-left: 0.35rem;
font-family: sans-serif;
content: "";
}
/* Horizontal Menus - show the dropdown arrow */
.pure-menu-horizontal .pure-menu-has-children > .pure-menu-link:after {
font-family: sans-serif;
content: "";
}
/* scrollable menus */
.pure-menu-scrollable {
overflow-y: scroll;
overflow-x: hidden;
.pure-menu-list {
display: block;
}
}
.pure-menu-horizontal.pure-menu-scrollable {
.pure-menu-list {
display: inline-block;
}
white-space: nowrap;
overflow-y: hidden;
overflow-x: auto;
/* a little extra padding for this style to allow for scrollbars */
padding: .5em 0;
}
/* misc default styling */
.pure-menu-separator {
background-color: #ccc;
height: 1px;
margin: .3em 0;
}
.pure-menu-horizontal {
.pure-menu-children .pure-menu-separator {
background-color: #ccc;
height: 1px;
margin: .3em 0;
}
.pure-menu-separator {
width: 1px;
height: 1.3em;
margin: 0 0.3em;
}
.pure-menu-children .pure-menu-separator {
display: block;
width: auto;
}
}
/* Need to reset the separator since submenu is vertical */
.pure-menu-heading {
text-transform: uppercase;
color: var(--color-text);
}
.pure-menu-link {
color: var(--color-text);
@include text-sm;
}
.pure-menu-children {
background-color: var(--color-background);
}
.pure-menu-link, .pure-menu-heading {
padding: .5rem;
}
.pure-menu-disabled {
opacity: .5;
.pure-menu-link:hover {
background-color: transparent;
cursor: default;
}
}
.pure-menu-active > .pure-menu-link {
background-color: var(--color-background-hover);
}
.pure-menu-link {
&:hover, &:focus {
background-color: var(--color-background-hover);
}
}
.pure-menu-selected > .pure-menu-link {
color: var(--color-navbar-item-active);
&:visited {
color: var(--color-navbar-item-active);
}
}

View File

@@ -0,0 +1,62 @@
#navbar {
margin: 1rem 0;
@media screen and (max-width: $md_min_width) {
display: none;
}
> ul.pure-menu-list {
display: flex;
.navbar-dropdown {
> a.pure-menu-link:after {
content: "";
}
> ul.pure-menu-children {
left: 0;
top: 27px;
width: inherit;
}
}
.navbar-item {
margin: 0 .5rem 0 0;
border-bottom: 2px solid transparent;
> a.pure-menu-link {
@include font-medium;
padding: 0 0 .3rem 0;
color: var(--color-navbar-item-inactive);
&:hover {
background-color: transparent;
}
}
&:hover {
border-bottom-color: var(--color-navbar-item-active);
> a {
color: var(--color-navbar-item-active);
}
}
}
.navbar-item.active {
border-bottom-color: var(--color-navbar-item-active);
> a {
color: var(--color-navbar-item-active);
}
}
.navbar-item.insection {
border-bottom-color: var(--color-navbar-item-in-section);
> a {
color: var(--color-navbar-item-in-section);
}
}
}
}

View File

@@ -0,0 +1,37 @@
.pagination {
padding: 0;
margin: 0;
list-style: none;
li {
display: inline;
margin: 0 .1rem;
}
a, span {
color: var(--color-text-secondary);
}
li.active a {
@include font-semibold;
color: var(--color-text);
}
li:not(.disabled) a:hover {
color: var(--color-text);
span {
color: inherit;
}
}
.disabled {
cursor: not-allowed;
}
}
.postcard-layout {
.pagination {
text-align: center;
}
}

View File

@@ -0,0 +1,101 @@
#search_menu_wrapper {
display: flex;
justify-content: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 40;
background-color: rgba(0,0,0,.75);
mark {
background-color: unset;
color: unset;
border-bottom: 2px solid var(--color-text);
}
#search_menu {
position: fixed;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
border-radius: 0;
background-color: var(--color-background);
@media screen and (min-width: $sm_min_width) {
height: auto;
top: 6rem;
bottom: 6rem;
width: 30rem;
z-index: 50;
border-radius: 0.375rem;
}
#search_menu_toolbar {
display: flex;
min-height: 2.5rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
#search_menu_input_wrapper {
display: flex;
flex-grow: 1;
input {
@include px-4;
flex-grow: 1;
border-top-left-radius: 0.375rem;
}
input:focus {
outline: 2px solid transparent;
outline-offset: 2px;
}
}
#search_menu_close_btn {
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
border-top-right-radius: 0.375rem;
cursor: pointer;
&:hover {
background-color: var(--color-background-overlay);
}
}
}
#search_menu_results {
flex-grow: 1;
overflow-y: auto;
.search-menu-result-item {
@include px-4;
padding-top: 0.875rem;
padding-bottom: 0.875rem;
min-height: 2.5rem;
&:hover {
background-color: var(--color-background-overlay);
}
.search-menu-result-item-title {
@include font-bold;
line-height: 1.7rem;
color: var(--color-text);
}
.search-menu-result-item-content {
@include text-xs;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
color: var(--color-text-secondary);
}
}
}
}
}

View File

@@ -0,0 +1,50 @@
#sidebar_canvas_overlay {
background-color: rgba(0,0,0,.75);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
}
#sidebar {
position: fixed;
top: 0;
left: 0;
height: 100%;
z-index: 20;
background-color: var(--color-background);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
transform: translateX(0);
transition: transform 0.2s;
overflow-y: auto;
width: 60%;
@media screen and (min-width: $sm_min_width) {
width: 40%;
}
ul {
list-style: none;
padding-left: 0;
margin: 0;
}
summary span {
margin-left: .2rem;
}
li {
margin: 1.2rem;
}
a {
color: var(--color-text);
}
}
#sidebar.close {
display: block;
transform: translateX(-100%);
}

View File

@@ -0,0 +1,5 @@
.term-item {
@include list-link-item;
margin-right: 0.375rem;
line-height: 1.7rem;
}