Skip to content

Commit 2fcf15d

Browse files
committed
Restore CSS
1 parent fdf50b9 commit 2fcf15d

7 files changed

+1333
-1
lines changed

docs/css/custom.css

+126
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
:root {
2+
--md-primary-fg-color: #1eb382;
3+
--md-secondary-fg-color: #188a64;
4+
--md-tertiary-fg-color: #0d493550;
5+
--md-quaternary-fg-color: #fdfdfd;
6+
--border-radius-variable: 5px;
7+
}
8+
9+
.md-footer__inner:not([hidden]) {
10+
display: none;
11+
}
12+
13+
/* Lex did stuff here */
14+
.svg_topnav {
15+
width: 12px;
16+
filter: invert(100);
17+
}
18+
.svg_topnav:hover {
19+
width: 12px;
20+
filter: invert(10);
21+
}
22+
23+
.md-header[data-md-state="shadow"] {
24+
box-shadow: 0 0 0 0;
25+
}
26+
27+
.md-tabs__item:hover {
28+
background-color: var(--md-tertiary-fg-color);
29+
transition: background-color 450ms;
30+
}
31+
32+
.md-sidebar__scrollwrap {
33+
background-color: var(--md-quaternary-fg-color);
34+
padding: 15px 5px 5px 5px;
35+
border-radius: var(--border-radius-variable);
36+
}
37+
38+
.image_logo_02 {
39+
width: 450px;
40+
}
41+
42+
/* End of Lex did stuff here */
43+
44+
/* no-icon style for admonitions */
45+
.md-typeset .no-icon > .admonition-title::before,
46+
.md-typeset .no-icon > summary::before {
47+
display: none;
48+
}
49+
.md-typeset .no-icon > :is(.admonition-title, summary) {
50+
padding-left: 1rem;
51+
}
52+
/* end of no-icon style */
53+
54+
.md-header__button.md-logo {
55+
margin: 0.1rem;
56+
padding: 0.1rem;
57+
}
58+
59+
.md-header__button.md-logo img,
60+
.md-header__button.md-logo svg {
61+
display: block;
62+
width: 1.8rem;
63+
height: 1.8rem;
64+
fill: rgba(43, 155, 70, 0.1);
65+
}
66+
67+
.md-tabs {
68+
width: 100%;
69+
overflow: auto;
70+
color: var(--md-primary-bg-color);
71+
background-color: var(--md-secondary-fg-color);
72+
transition: background-color 250ms;
73+
}
74+
75+
.wrapper {
76+
display: grid;
77+
grid-template-columns: repeat(4, 1fr);
78+
gap: 10px;
79+
grid-auto-rows: minmax(100px, auto);
80+
}
81+
82+
.wrapper * {
83+
border: 2px solid green;
84+
text-align: center;
85+
padding: 70px 0;
86+
}
87+
88+
.one {
89+
grid-column: 1 / 2;
90+
grid-row: 1;
91+
}
92+
.two {
93+
grid-column: 2 / 3;
94+
grid-row: 1;
95+
}
96+
.three {
97+
grid-column: 3 / 4;
98+
grid-row: 1;
99+
}
100+
.four {
101+
grid-column: 4 / 5;
102+
grid-row: 1;
103+
}
104+
.five {
105+
grid-column: 1 / 3;
106+
grid-row: 2;
107+
}
108+
.six {
109+
grid-column: 3 / 5;
110+
grid-row: 2;
111+
}
112+
113+
/* Jupyter Stuff */
114+
.jupyter-wrapper .jp-CodeCell .jp-Cell-inputWrapper .jp-InputPrompt {
115+
display: none !important;
116+
}
117+
118+
@media screen and (max-width: 479px) {
119+
.md-sidebar--primary,
120+
.md-sidebar {
121+
z-index: 50 !important;
122+
}
123+
.md-logo {
124+
visibility: hidden;
125+
}
126+
}

docs/css/dropdown.css

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/* Style The Dropdown Button */
2+
.dropbtn {
3+
color: white;
4+
border: none;
5+
cursor: pointer;
6+
}
7+
8+
.md-tabs__list {
9+
contain: inherit;
10+
}
11+
.md-tabs {
12+
overflow: inherit;
13+
}
14+
.md-header {
15+
z-index: 1000 !important;
16+
}
17+
18+
/* The container <div> - needed to position the dropdown content */
19+
.dropdown {
20+
position: relative;
21+
display: inline-block;
22+
}
23+
24+
/* Dropdown Content (Hidden by Default) */
25+
.dropdown-content {
26+
display:none;
27+
font-size: 13px;
28+
position: absolute;
29+
background-color: #f9f9f9;
30+
min-width: 160px;
31+
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
32+
z-index: 1000;
33+
border-radius: 2px;
34+
left:-15px;
35+
}
36+
37+
/* Links inside the dropdown */
38+
.dropdown-content a {
39+
color: black;
40+
padding: 12px 16px;
41+
text-decoration: none;
42+
display: block;
43+
}
44+
45+
/* Change color of dropdown links on hover */
46+
.dropdown-content a:hover {background-color: #f1f1f1}
47+
48+
/* Show the dropdown menu on hover */
49+
.dropdown:hover .dropdown-content {
50+
display: block;
51+
}
52+
53+
/* Change the background color of the dropdown button when the dropdown content is shown */
54+
.dropdown:hover .dropbtn {
55+
}

0 commit comments

Comments
 (0)