chore: make folder names match crate name
This commit is contained in:
1
crates/aiken-project/templates/css/atom-one-dark.min.css
vendored
Normal file
1
crates/aiken-project/templates/css/atom-one-dark.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#abb2bf;background:#282c34}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-formula,.hljs-keyword,.hljs-operator{color:#c678dd}.hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string,.hljs-regexp,.hljs-string,.hljs-number{color:#98c379}.hljs-attr,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,.hljs-variable{color:#d19a66}.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#61aeee}.hljs-built_in,.hljs-class .hljs-title,.hljs-title.class_,.hljs-title.function_,.hljs-title.invoke__{color:#e6c07b}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}
|
||||
1
crates/aiken-project/templates/css/atom-one-light.min.css
vendored
Normal file
1
crates/aiken-project/templates/css/atom-one-light.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#383a42;background:#fafafa}.hljs-comment,.hljs-quote{color:#a0a1a7;font-style:italic}.hljs-doctag,.hljs-formula,.hljs-keyword,.hljs-operator{color:#a626a4}.hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#e45649}.hljs-literal{color:#0184bb}.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string,.hljs-regexp,.hljs-string,.hljs-number{color:#50a14f}.hljs-attr,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,.hljs-variable{color:#986801}.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#4078f2}.hljs-built_in,.hljs-class .hljs-title,.hljs-title.class_,.hljs-title.function_,.hljs-title.invoke__{color:#c18401}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}
|
||||
992
crates/aiken-project/templates/css/index.css
Normal file
992
crates/aiken-project/templates/css/index.css
Normal file
@@ -0,0 +1,992 @@
|
||||
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans&family=Ubuntu+Mono&display=swap");
|
||||
|
||||
:root {
|
||||
/* Sizes */
|
||||
--search-width: 680px;
|
||||
--header-height: 60px;
|
||||
--hash-offset: calc(var(--header-height) * 1.67);
|
||||
--sidebar-width: 240px;
|
||||
--gap: 24px;
|
||||
--small-gap: calc(var(--gap) / 2);
|
||||
--tiny-gap: calc(var(--small-gap) / 2);
|
||||
--large-gap: calc(var(--gap) * 2);
|
||||
--sidebar-toggle-size: 33px;
|
||||
--search-height: 4rem;
|
||||
|
||||
/* Colors */
|
||||
--color-text: #4c4f69;
|
||||
--color-text-accent: #e6e9ef;
|
||||
--color-inline-code: #ea76cb;
|
||||
--color-link: #dc8a78;
|
||||
--color-link-accent: #dd7878;
|
||||
--color-background: #eff1f5;
|
||||
--color-background-sidebar: #e6e9ef;
|
||||
--color-background-accent: #8839ef;
|
||||
--color-border-accent: #ea76cb;
|
||||
--color-table-header-background: #bcc0cc;
|
||||
--color-table-header-text: #4c4f69;
|
||||
--color-table-background: #e6e9ef;
|
||||
--color-table-border: #ea76cb;
|
||||
--color-code-background: #dce0e8;
|
||||
|
||||
/* etc */
|
||||
--nav-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
|
||||
--shadow:
|
||||
0 0 0 1px rgba(50, 50, 93, 0.075),
|
||||
0 0 1px #e9ecef,
|
||||
0 2px 4px -2px rgba(138, 141, 151, 0.6);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body,
|
||||
html {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: "Nunito Sans", sans-serif;
|
||||
font-size: 17px;
|
||||
line-height: 1.4;
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
word-break: break-word;
|
||||
background-color: var(--color-background);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
html {
|
||||
/* This is necessary so hash targets appear below the fixed header */
|
||||
scroll-padding-top: var(--hash-offset);
|
||||
}
|
||||
|
||||
a,
|
||||
a:visited {
|
||||
color: var(--color-link);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
button,
|
||||
select {
|
||||
background: transparent;
|
||||
border: 0 none;
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
font-size: 100%;
|
||||
line-height: 1.15;
|
||||
margin: 0;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
button::-moz-focus-inner {
|
||||
border-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
button:-moz-focusring {
|
||||
outline: 1px dotted ButtonText;
|
||||
}
|
||||
|
||||
button {
|
||||
-webkit-appearance: button;
|
||||
line-height: 1;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
button:active,
|
||||
select:active {
|
||||
outline: 0 none;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: var(--small-gap) 0;
|
||||
}
|
||||
|
||||
.rendered-markdown h1,
|
||||
.rendered-markdown h2,
|
||||
.rendered-markdown h3,
|
||||
.rendered-markdown h4,
|
||||
.rendered-markdown h5 {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
/* Code */
|
||||
|
||||
pre,
|
||||
code {
|
||||
font-family: "Ubuntu Mono", monospace;
|
||||
line-height: 1.2;
|
||||
background-color: var(--color-code-background);
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: var(--gap) 0;
|
||||
border-radius: 1px;
|
||||
overflow: auto;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
pre > code,
|
||||
code.hljs {
|
||||
padding: var(--small-gap) var(--gap);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
td code,
|
||||
p code {
|
||||
margin: 0 2px;
|
||||
border-radius: 3px;
|
||||
padding: 0 0.2em;
|
||||
color: var(--color-inline-code);
|
||||
}
|
||||
|
||||
/* Page layout */
|
||||
|
||||
.page {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-left: var(--sidebar-width);
|
||||
padding: calc(var(--header-height) + var(--gap)) var(--gap) 0 var(--gap);
|
||||
width: calc(100% - var(--sidebar-width));
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.content img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Page header */
|
||||
|
||||
.page-header {
|
||||
box-shadow: var(--nav-shadow);
|
||||
height: var(--header-height);
|
||||
color: var(--color-text-accent);
|
||||
background-color: var(--color-background-accent);
|
||||
display: flex;
|
||||
padding: var(--small-gap) var(--gap);
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: 300;
|
||||
}
|
||||
|
||||
.page-header h2 {
|
||||
align-items: baseline;
|
||||
display: flex;
|
||||
margin: 0;
|
||||
width: var(--sidebar-width);
|
||||
}
|
||||
|
||||
.page-header a,
|
||||
.page-header a:visited {
|
||||
color: var(--color-text-accent);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sidebar-toggle {
|
||||
display: none;
|
||||
font-size: var(--sidebar-toggle-size);
|
||||
opacity: 0;
|
||||
transition: opacity 1s ease;
|
||||
}
|
||||
|
||||
.search-nav-button {
|
||||
display: none;
|
||||
font-size: var(--sidebar-toggle-size);
|
||||
opacity: 0;
|
||||
transition: opacity 1s ease;
|
||||
}
|
||||
|
||||
.page-header .sidebar-toggle {
|
||||
color: var(--color-background);
|
||||
margin: 0 var(--small-gap) 0 0;
|
||||
}
|
||||
|
||||
.page-header .search-nav-button {
|
||||
color: var(--color-background);
|
||||
margin: 0 var(--small-gap) 0 0;
|
||||
}
|
||||
|
||||
/* Version selector */
|
||||
|
||||
#project-version {
|
||||
--half-small-gap: calc(var(--small-gap) / 2);
|
||||
--icon-size: 0.75em;
|
||||
flex-shrink: 0;
|
||||
font-size: 0.9rem;
|
||||
font-weight: normal;
|
||||
margin-left: var(--half-small-gap);
|
||||
}
|
||||
|
||||
#project-version > span {
|
||||
padding-left: var(--half-small-gap);
|
||||
}
|
||||
|
||||
#project-version form {
|
||||
align-items: center;
|
||||
display: inline-flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
#project-version select {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
padding: 0.6rem calc(1.3 * var(--icon-size)) 0.6rem var(--half-small-gap);
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
#project-version option {
|
||||
background-color: var(--code-background);
|
||||
}
|
||||
|
||||
#project-version .icon {
|
||||
font-size: var(--icon-size);
|
||||
margin-left: calc(-1.65 * var(--icon-size));
|
||||
}
|
||||
|
||||
/* Module doc */
|
||||
|
||||
.module-name > a,
|
||||
.module-member-kind > a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.module-name > a:hover,
|
||||
.module-member-kind > a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.module-name {
|
||||
color: var(--color-text);
|
||||
margin: 0 0 var(--gap);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
|
||||
.sidebar {
|
||||
background-color: var(--color-background-sidebar);
|
||||
font-size: 0.95rem;
|
||||
max-height: calc(100vh - var(--header-height));
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
padding-top: var(--gap);
|
||||
padding-bottom: var(--gap);
|
||||
padding-left: var(--gap);
|
||||
position: fixed;
|
||||
top: var(--header-height);
|
||||
transition: transform 0.5s ease;
|
||||
width: var(--sidebar-width);
|
||||
z-index: 100;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.sidebar h2 {
|
||||
margin: 0;
|
||||
color: var(--color-link-accent);
|
||||
}
|
||||
|
||||
.sidebar h3.modules-prefix {
|
||||
color: var(--color-link);
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.sidebar ul {
|
||||
list-style: none;
|
||||
margin: var(--small-gap) 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.sidebar h3.modules-prefix + ul {
|
||||
margin-left: var(--tiny-gap);
|
||||
}
|
||||
|
||||
.sidebar li {
|
||||
line-height: 1.2;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.sidebar ul li a > strong {
|
||||
font-weight: 900;
|
||||
color: var(--color-link);
|
||||
}
|
||||
|
||||
.sidebar ul li a > strong::before {
|
||||
font-size: 0.75em;
|
||||
content: 'ᐅ ';
|
||||
padding-right: 0.1rem;
|
||||
}
|
||||
|
||||
.sidebar .sidebar-toggle {
|
||||
color: var(--color-link);
|
||||
font-size: calc(0.8 * var(--sidebar-toggle-size));
|
||||
}
|
||||
|
||||
body.drawer-closed .label-open,
|
||||
body.drawer-open .label-closed {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.display-controls {
|
||||
display: flex;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.display-controls svg.icon {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.display-controls .control {
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
|
||||
.display-controls .control:not(:first-child) {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
.toggle {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
font-size: 0.96rem;
|
||||
}
|
||||
|
||||
.toggle-0 .label:not(.label-0),
|
||||
.toggle-1 .label:not(.label-1) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.label {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.label .icon + .icon {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
/* Module members (types, functions) */
|
||||
|
||||
.module-members {
|
||||
margin-top: var(--large-gap);
|
||||
}
|
||||
|
||||
.module-member-kind {
|
||||
font-size: 2rem;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.member {
|
||||
margin: var(--large-gap) 0;
|
||||
padding-bottom: var(--gap);
|
||||
}
|
||||
|
||||
.member-name {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-left: 4px solid var(--color-border-accent);
|
||||
padding: var(--small-gap) var(--gap);
|
||||
color: var(--color-text-accent);
|
||||
background-color: var(--color-background-accent);
|
||||
}
|
||||
|
||||
.member-name h2 {
|
||||
display: flex;
|
||||
font-size: 1.5rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.member-name h2 a {
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
|
||||
.member-source {
|
||||
align-self: baseline;
|
||||
flex-shrink: 0;
|
||||
line-height: calc(1.4 * 1.5rem);
|
||||
margin: 0 0 0 var(--small-gap);
|
||||
}
|
||||
|
||||
/* Custom type constructors */
|
||||
|
||||
.constructor-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.constructor-row {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.constructor-item {
|
||||
margin-bottom: var(--small-gap);
|
||||
}
|
||||
|
||||
.constructor-argument-item {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.constructor-argument-label {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.constructor-argument-doc {
|
||||
margin-left: var(--gap);
|
||||
}
|
||||
|
||||
.constructor-argument-list {
|
||||
margin-bottom: var(--small-gap);
|
||||
}
|
||||
|
||||
.constructor-item-docs {
|
||||
margin-left: var(--large-gap);
|
||||
margin-bottom: var(--gap);
|
||||
}
|
||||
|
||||
.constructor-item .icon {
|
||||
flex-shrink: 0;
|
||||
font-size: 0.7rem;
|
||||
margin: 0 0.88rem;
|
||||
}
|
||||
|
||||
.constructor-name {
|
||||
box-shadow: unset;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.constructor-name > code {
|
||||
padding: var(--small-gap);
|
||||
}
|
||||
|
||||
/* Tables */
|
||||
|
||||
table {
|
||||
border-spacing: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table td,
|
||||
table th {
|
||||
padding: 6px 13px;
|
||||
border: 1px solid var(--color-table-border);
|
||||
}
|
||||
|
||||
table th {
|
||||
background-color: var(--color-table-header-background);
|
||||
color: var(--color-table-header-text);
|
||||
}
|
||||
|
||||
table tr:nth-child(2n) {
|
||||
background-color: var(--color-table-background);
|
||||
}
|
||||
|
||||
/* Icons */
|
||||
|
||||
.svg-lib {
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.icon {
|
||||
display: inline-block;
|
||||
fill: currentColor;
|
||||
height: 1em;
|
||||
stroke: currentColor;
|
||||
stroke-width: 0;
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
/* Pre-Wrap Option */
|
||||
|
||||
body.prewrap-on code,
|
||||
body.prewrap-on pre {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
/* Dark Theme Option */
|
||||
|
||||
body.theme-dark {
|
||||
/* Colors */
|
||||
--color-text: #cdd6f4;
|
||||
--color-text-accent: #11111b;
|
||||
--color-inline-code: #f5c2e7;
|
||||
--color-link: #f5e0dc;
|
||||
--color-link-accent: #f2cdcd;
|
||||
--color-background: #1e1e2e;
|
||||
--color-background-sidebar: #313244;
|
||||
--color-background-accent: #cba6f7;
|
||||
--color-border-accent: #f5c2e7;
|
||||
--color-table-header-background: #11111b;
|
||||
--color-table-header-text: #cdd6f4;
|
||||
--color-table-background: #181825;
|
||||
--color-table-border: #6c7086;
|
||||
--color-code-background: #11111b;
|
||||
|
||||
/* etc */
|
||||
--nav-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.1);
|
||||
--shadow:
|
||||
0 0 0 1px rgba(50, 50, 93, 0.075),
|
||||
0 0 1px var(--fg-shade-3),
|
||||
0 2px 4px -2px rgba(138, 141, 151, 0.2);
|
||||
}
|
||||
|
||||
/* Medium and larger displays */
|
||||
@media (min-width: 680px) {
|
||||
#prewrap-toggle {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Small displays */
|
||||
@media (max-width: 920px) {
|
||||
.page-header {
|
||||
padding-left: var(--small-gap);
|
||||
padding-right: var(--small-gap);
|
||||
}
|
||||
|
||||
.page-header h2 {
|
||||
width: calc(
|
||||
100% - var(--sidebar-toggle-size) - var(--small-gap) -
|
||||
var(--sidebar-toggle-size) - var(--small-gap)
|
||||
);
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 100%;
|
||||
max-width: unset;
|
||||
margin-left: unset;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
box-shadow: var(--nav-shadow);
|
||||
height: 100vh;
|
||||
max-height: unset;
|
||||
top: 0;
|
||||
transform: translate(calc(-10px - var(--sidebar-width)));
|
||||
z-index: 500;
|
||||
}
|
||||
|
||||
body.drawer-open .sidebar {
|
||||
transform: translate(0);
|
||||
}
|
||||
|
||||
.sidebar-toggle {
|
||||
display: block;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.search-nav-button {
|
||||
display: block;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.sidebar .sidebar-toggle {
|
||||
height: var(--sidebar-toggle-size);
|
||||
position: absolute;
|
||||
right: var(--small-gap);
|
||||
top: var(--small-gap);
|
||||
width: var(--sidebar-toggle-size);
|
||||
}
|
||||
}
|
||||
|
||||
/* Search */
|
||||
|
||||
.search {
|
||||
display: none;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
flex-grow: 1;
|
||||
height: var(--search-height);
|
||||
padding: 0.5rem;
|
||||
transition: padding linear 200ms;
|
||||
}
|
||||
|
||||
@media (min-width: 919px) {
|
||||
.search {
|
||||
margin-left: var(--small-gap);
|
||||
display: block;
|
||||
position: relative !important;
|
||||
width: auto !important;
|
||||
height: 100% !important;
|
||||
padding: 0;
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
.search-input-wrap {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
height: 3rem;
|
||||
overflow: hidden;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
||||
transition: height linear 200ms;
|
||||
}
|
||||
|
||||
@media (min-width: 919px) {
|
||||
.search-input-wrap {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
max-width: calc(var(--search-width) - var(--gap) - var(--gap));
|
||||
height: 100% !important;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
transition: width ease 400ms;
|
||||
}
|
||||
}
|
||||
|
||||
.search-input {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0.5rem 1rem;
|
||||
font-size: 16px;
|
||||
background-color: transparent;
|
||||
color: var(--color-text);
|
||||
border-top: 0;
|
||||
border-right: 0;
|
||||
border-bottom: 0;
|
||||
border-left: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 919px) {
|
||||
.search-input {
|
||||
padding: 1rem;
|
||||
font-size: 14px;
|
||||
background-color: var(--color-background);
|
||||
transition: padding-left linear 200ms;
|
||||
}
|
||||
}
|
||||
|
||||
.search-input:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.search-label {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
display: flex;
|
||||
height: 100%;
|
||||
padding-right: 1rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media (min-width: 919px) {
|
||||
.search-label {
|
||||
padding-right: 0.6rem;
|
||||
transition: padding-left linear 200ms;
|
||||
}
|
||||
}
|
||||
|
||||
.search-label .search-icon {
|
||||
width: 1.2rem;
|
||||
height: 1.2rem;
|
||||
align-self: center;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.search-results {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
display: none;
|
||||
width: 100%;
|
||||
max-height: calc(100% - var(--search-height));
|
||||
overflow-y: auto;
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-background);
|
||||
border-bottom-right-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
@media (min-width: 919px) {
|
||||
.search-results {
|
||||
top: 100%;
|
||||
width: calc(var(--search-width) - var(--gap) - var(--gap));
|
||||
max-height: calc(100vh - 200%) !important;
|
||||
}
|
||||
}
|
||||
|
||||
.search-results-list {
|
||||
padding-left: 0;
|
||||
margin-bottom: 0.25rem;
|
||||
list-style: none;
|
||||
font-size: 14px !important;
|
||||
}
|
||||
|
||||
@media (min-width: 31.25rem) {
|
||||
.search-results-list {
|
||||
font-size: 16px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 919px) {
|
||||
.search-results-list {
|
||||
font-size: 12px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 919px) and (min-width: 31.25rem) {
|
||||
.search-results-list {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.search-results-list-item {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.search-result {
|
||||
display: block;
|
||||
padding-top: 0.25rem;
|
||||
padding-right: 0.75rem;
|
||||
padding-bottom: 0.25rem;
|
||||
padding-left: 0.75rem;
|
||||
}
|
||||
|
||||
.search-result:hover,
|
||||
.search-result.active {
|
||||
background-color: var(--code-background);
|
||||
}
|
||||
|
||||
.search-result-title {
|
||||
display: block;
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
@media (min-width: 31.25rem) {
|
||||
.search-result-title {
|
||||
display: inline-block;
|
||||
width: 40%;
|
||||
padding-right: 0.5rem;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
|
||||
.search-result-doc {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.search-result-doc.search-result-doc-parent {
|
||||
opacity: 0.5;
|
||||
font-size: 12px !important;
|
||||
}
|
||||
|
||||
@media (min-width: 31.25rem) {
|
||||
.search-result-doc.search-result-doc-parent {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 919px) {
|
||||
.search-result-doc.search-result-doc-parent {
|
||||
font-size: 11px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 919px) and (min-width: 31.25rem) {
|
||||
.search-result-doc.search-result-doc-parent {
|
||||
font-size: 12px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.search-result-doc .search-result-icon {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
margin-right: 0.5rem;
|
||||
color: var(--color-link-accent);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.search-result-doc .search-result-doc-title {
|
||||
overflow: auto;
|
||||
color: var(--color-link-accent);
|
||||
}
|
||||
|
||||
.search-result-section {
|
||||
margin-left: 1.5rem;
|
||||
word-wrap: break-word;
|
||||
color: var(--color-link-accent)
|
||||
}
|
||||
|
||||
.search-result-rel-url {
|
||||
display: block;
|
||||
margin-left: 1.5rem;
|
||||
overflow: hidden;
|
||||
color: var(--color-text);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: 9px !important;
|
||||
}
|
||||
|
||||
@media (min-width: 31.25rem) {
|
||||
.search-result-rel-url {
|
||||
font-size: 10px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.search-result-previews {
|
||||
display: block;
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
padding-left: 1rem;
|
||||
margin-left: 0.5rem;
|
||||
color: var(--color-text);
|
||||
word-wrap: break-word;
|
||||
border-left: 1px solid;
|
||||
border-left-color: #eeebee;
|
||||
font-size: 11px !important;
|
||||
/* TODO: fix it by not adding at the parent? */
|
||||
white-space: initial !important;
|
||||
}
|
||||
|
||||
@media (min-width: 31.25rem) {
|
||||
.search-result-previews {
|
||||
font-size: 12px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 31.25rem) {
|
||||
.search-result-previews {
|
||||
display: inline-block;
|
||||
width: 60%;
|
||||
padding-left: 0.5rem;
|
||||
margin-left: 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
|
||||
.search-result-preview + .search-result-preview {
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.search-result-highlight {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.search-no-result {
|
||||
padding-top: 0.5rem;
|
||||
padding-right: 0.75rem;
|
||||
padding-bottom: 0.5rem;
|
||||
padding-left: 0.75rem;
|
||||
font-size: 12px !important;
|
||||
}
|
||||
|
||||
@media (min-width: 31.25rem) {
|
||||
.search-no-result {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.search-button {
|
||||
position: fixed;
|
||||
right: 1rem;
|
||||
bottom: 1rem;
|
||||
display: flex;
|
||||
width: 3.5rem;
|
||||
height: 3.5rem;
|
||||
background-color: var(--color-background);
|
||||
border: 1px solid rgba(114, 83, 237, 0.3);
|
||||
border-radius: 1.75rem;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.search-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 101;
|
||||
width: 0;
|
||||
height: 0;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
opacity: 0;
|
||||
transition: opacity ease 400ms, width 0s 400ms, height 0s 400ms;
|
||||
}
|
||||
|
||||
.search-active .search {
|
||||
display: block;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.search-active .search-input-wrap {
|
||||
height: var(--search-height);
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 919px) {
|
||||
.search-active .search-input-wrap {
|
||||
width: calc(var(--search-width) - var(--gap) - var(--gap));
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
}
|
||||
|
||||
.search-active .search-input {
|
||||
background-color: var(--color-background);
|
||||
}
|
||||
|
||||
@media (min-width: 919px) {
|
||||
.search-active .search-label {
|
||||
padding-left: 0.6rem;
|
||||
}
|
||||
}
|
||||
|
||||
.search-active .search-results {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.search-active .search-overlay {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 1;
|
||||
transition: opacity ease 400ms, width 0s, height 0s;
|
||||
}
|
||||
|
||||
@media (min-width: 919px) {
|
||||
.search-active .main {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.search-active .main-header {
|
||||
padding-top: var(--search-height);
|
||||
}
|
||||
|
||||
@media (min-width: 919px) {
|
||||
.search-active .main-header {
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user