Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit 1433e3b

Browse files
committed
Content search css
1 parent 360b215 commit 1433e3b

File tree

1 file changed

+149
-0
lines changed
  • haddock-api/resources/html/Ocean.std-theme

1 file changed

+149
-0
lines changed

haddock-api/resources/html/Ocean.std-theme/ocean.css

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,3 +616,152 @@ div#style-menu-holder {
616616
}
617617

618618
/* @end */
619+
620+
/* @group Search box */
621+
622+
#search {
623+
position: fixed;
624+
top: 3.2em;
625+
bottom: 0;
626+
left: calc(50% - 22em);
627+
width: 44em;
628+
z-index: 1000;
629+
pointer-events: none;
630+
}
631+
632+
#search.hidden {
633+
display: none;
634+
}
635+
636+
#search-form, #search-results {
637+
box-shadow: 2px 2px 6px rgb(199, 204, 208);
638+
pointer-events: all;
639+
}
640+
641+
#search-form input {
642+
font-size: 1.25em; line-height: 2.3em; height: 2.4em;
643+
display: block;
644+
box-sizing: border-box;
645+
width: 100%;
646+
padding: 0 0.75em;
647+
border: 0.05em solid rgb(151, 179, 202);
648+
}
649+
650+
#search input:focus {
651+
outline: none;
652+
}
653+
654+
#search-results {
655+
top: 3em;
656+
max-height: calc(100% - 3em);
657+
box-sizing: border-box;
658+
border-width: 0 0.05em 0.05em;
659+
border-style: solid;
660+
border-color: #b2d5fb;
661+
background: #e8f3ff;
662+
overflow-y: auto;
663+
}
664+
665+
#search-results > ul {
666+
margin: 0;
667+
list-style: none;
668+
}
669+
670+
#search-results > ul > li,
671+
#search-results > p,
672+
#search-results > table {
673+
padding: 0.5em 1em;
674+
margin: 0;
675+
}
676+
677+
#search-results > ul > li {
678+
border-bottom: 1px solid #b2d5fb;
679+
}
680+
681+
#search-results > ul > li > ul {
682+
list-style: none;
683+
}
684+
685+
.search-module h4 {
686+
margin: 0;
687+
}
688+
689+
.search-module > ul {
690+
margin: 0.5em 0 0.5em 2em;
691+
}
692+
693+
.search-module > ul > li > a[href] {
694+
display: block;
695+
color: inherit;
696+
padding: 0.25em 0.5em;
697+
}
698+
699+
.search-module > ul > li > a[href].active-link {
700+
background: #faf9dc;
701+
}
702+
703+
.search-module a[href]:hover {
704+
text-decoration: none;
705+
}
706+
707+
.search-result a a {
708+
pointer-events: none;
709+
}
710+
711+
.search-result ul.subs {
712+
display: inline-block;
713+
margin: 0; padding: 0;
714+
}
715+
716+
.search-result ul.subs li {
717+
display: none;
718+
}
719+
720+
.search-result ul.subs::after {
721+
display: inline-block;
722+
content: "...";
723+
color: rgb(78,98,114);
724+
margin: 0 0.25em;
725+
}
726+
727+
.more-results {
728+
color: rgb(99, 141, 173);
729+
position: relative;
730+
}
731+
732+
.more-results::before {
733+
content: "+";
734+
display: inline-block;
735+
color: #b2d5fb;
736+
font-weight: bold;
737+
font-size: 1.25em; line-height: inherit;
738+
position: absolute;
739+
left: -1em;
740+
}
741+
742+
.keyboard-shortcuts {
743+
line-height: 1.6em;
744+
}
745+
746+
.keyboard-shortcuts th {
747+
color: rgb(78,98,114);
748+
}
749+
750+
.keyboard-shortcuts td:first-child,
751+
.keyboard-shortcuts th:first-child {
752+
text-align: right;
753+
padding-right: 0.6em;
754+
}
755+
756+
.key {
757+
display: inline-block;
758+
font-size: 0.9em;
759+
min-width: 0.8em; line-height: 1.2em;
760+
text-align: center;
761+
background: #b2d5fb;
762+
border: 1px solid #74a3d6;
763+
padding: 0 0.2em;
764+
margin: 0 0.1em;
765+
}
766+
767+
/* @end */

0 commit comments

Comments
 (0)