Skip to content

Commit e3bb909

Browse files
authored
Merge pull request 0xPolygon#126 from 0xPolygon/km/menus-black
Highlight menu headers
2 parents c54594b + 74c4ed8 commit e3bb909

File tree

3 files changed

+47
-74
lines changed

3 files changed

+47
-74
lines changed

docs/_site_essentials/stylesheets/extra.css

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,3 @@
1-
[data-md-color-scheme="slate"] {
2-
--md-footer-bg-color: black;
3-
4-
.md-footer,
5-
.md-footer__inner,
6-
.md-footer-meta {
7-
background-color: black;
8-
}
9-
}
10-
11-
[data-md-color-scheme="default"] {
12-
--md-footer-bg-color: white;
13-
--md-footer-fg-color: charcoal;
14-
--md-default-bg-color: white;
15-
--md-footer-fg-color--light: charcoal;
16-
--md-footer-fg-color--lighter: charcoal;
17-
18-
.md-footer,
19-
.md-footer__inner,
20-
.md-footer-meta {
21-
background-color: white;
22-
}
23-
}
24-
251
img.figure {
262
margin: 0 auto;
273
display: block;

docs/_site_essentials/stylesheets/polygon-docs.webflow.css

Lines changed: 46 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,49 @@
11
:root {
22
--smoke-white: #f8f8f8;
33
--main-black: #110c22;
4-
--gray-light: #8d8a95;
4+
--gray-light: #110c22;
55
--white: white;
66
--gray: #4f4b5c;
77
--purple: #773ef0;
8+
9+
--md-text-font: Generalsans;
10+
--md-code-font: roboto mono;
11+
12+
--md-primary-bg-color: #f8f8f8;
13+
--md-primary-bg-color--light: white;
14+
--md-primary-fg-color: #110c22;
15+
}
16+
17+
.md-footer, .md-footer__inner, .md-footer-meta, .md-copyright__highlight, .md-social__link {
18+
background-color: white;
19+
color: var(--main-black) !important;
20+
}
21+
22+
.md-search__input {
23+
background-color: var(--smoke-white) !important;
24+
}
25+
26+
.md-nav>.md-nav__title {
27+
color: var(--purple) !important;
28+
background-color: var(--smoke-white) !important;
29+
margin: 0 !important;
30+
padding: 0 !important;
31+
}
32+
33+
.md-sidebar__scrollwrap, .md-sidebar__inner {
34+
background-color: var(--smoke-white) !important;
35+
margin: 0 !important;
36+
padding: 0 !important;
37+
}
38+
39+
.md-nav__link, .md-nav__link>.md-ellipsis {
40+
color: var(--main-black) !important;
41+
background-color: var(--smoke-white) !important;
42+
}
43+
44+
.md-nav__link>.md-nav__link--active {
45+
margin: 0 !important;
46+
padding: 0 !important;
847
}
948

1049
h1 {
@@ -31,7 +70,7 @@ div.main h1 {
3170
margin-top: 0 !important;
3271
}
3372

34-
div.main h3 {
73+
div.main h2 {
3574
margin-top: 0 !important;
3675
}
3776

@@ -73,7 +112,7 @@ div.main div.flexbox a {
73112
}
74113

75114
div.main .nav-bar {
76-
background-color: var(--white);
115+
background-color: var(--smoke-white);
77116
border-bottom: 1px solid rgba(0, 0, 0, .12);
78117
padding: 10px 108px;
79118
}
@@ -116,10 +155,6 @@ div.main .nav-content {
116155
display: flex;
117156
}
118157

119-
div.main .section {
120-
121-
}
122-
123158
.hero-content-flex {
124159
grid-column-gap: 3rem;
125160
grid-row-gap: 3rem;
@@ -162,7 +197,7 @@ div.main .section {
162197
max-width: 400px;
163198
}
164199

165-
.hero-subext {
200+
.hero-subtext {
166201
color: var(--gray);
167202
font-weight: 500;
168203
}
@@ -230,6 +265,7 @@ div.main .section {
230265
}
231266

232267
.feature-card-heading {
268+
color: --purple;
233269
font-size: 18px;
234270
font-weight: 600;
235271
}
@@ -510,7 +546,7 @@ div.main .section {
510546

511547
.nav-menu {
512548
width: 90vw;
513-
background-color: var(--white);
549+
background-color: var(--smoke-white);
514550
flex-direction: column;
515551
padding: 80px 24px 24px;
516552
}
@@ -597,7 +633,7 @@ div.main .section {
597633

598634
.nav-menu-btn.w--open {
599635
z-index: 5;
600-
background-color: var(--white);
636+
background-color: var(--smoke-white);
601637
}
602638

603639
.menu-icon {
@@ -750,37 +786,4 @@ div.main .section {
750786
.nav-brand.w--current {
751787
padding-left: 0;
752788
}
753-
}
754-
755-
756-
@font-face {
757-
font-family: 'Generalsans';
758-
src: url('../fonts/GeneralSans-Semibold.woff2') format('woff2');
759-
font-weight: 600;
760-
font-style: normal;
761-
font-display: swap;
762-
}
763-
764-
@font-face {
765-
font-family: 'Generalsans';
766-
src: url('../fonts/GeneralSans-Medium.woff2') format('woff2');
767-
font-weight: 500;
768-
font-style: normal;
769-
font-display: swap;
770-
}
771-
772-
@font-face {
773-
font-family: 'Generalsans';
774-
src: url('../fonts/GeneralSans-Bold.woff2') format('woff2');
775-
font-weight: 700;
776-
font-style: normal;
777-
font-display: swap;
778-
}
779-
780-
@font-face {
781-
font-family: 'Generalsans';
782-
src: url('../fonts/GeneralSans-Regular.woff2') format('woff2');
783-
font-weight: 400;
784-
font-style: normal;
785-
font-display: swap;
786789
}

mkdocs.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,14 @@ site_url: https://docs.polygon.technology/
99
theme:
1010
name: material
1111
palette:
12-
- scheme: default
1312
primary: white
14-
accent: purple
13+
accent: deep purple
1514
language: en
1615
custom_dir: overrides
1716
favicon: img/favicon.ico
1817
icon:
1918
logo: logo
2019
repo: repo
21-
font:
22-
text: Roboto
23-
code: Roboto Mono
2420
features:
2521
- search.suggest
2622
- search.highlight
@@ -324,8 +320,6 @@ nav:
324320
- EIP-1559: pos/concepts/transactions/eip-1559.md
325321
- EIP-4337: pos/concepts/transactions/eip-4337.md
326322
- Meta-transactions: pos/concepts/transactions/meta-transactions.md
327-
# - API:
328-
# - pos/api/index.md
329323
- Miden:
330324
- Miden: miden/index.md
331325
- Overview: miden/overview.md

0 commit comments

Comments
 (0)