Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion packages/common-config/src/components/HandbookSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,15 @@ function HandbookCard({ handbook, isDefault = false }: HandbookCardProps) {
style={{ backgroundColor: handbook.background.color }}
></div>
)}
<img src={handbook.image} alt="" className={styles.handbooksCardIcon} />
<img
src={handbook.image}
alt=""
className={`${styles.handbooksCardIcon} ${
handbook.title.toLowerCase().includes("aztec")
? styles.handbooksCardIconAztec
: ""
}`}
/>
</a>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ a.handbooksCard:hover {
position: relative;
}

.handbooksCardIconAztec {
max-width: 65%;
}

.colorOverlay {
position: absolute;
top: 0;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
27 changes: 26 additions & 1 deletion packages/common-config/static/common/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ html[data-theme="dark"] {

/* Sidebar width customization */
--doc-sidebar-hidden-width: 3.5rem;

/* Layout widths */
--ifm-container-width: 1200px;
--ifm-container-width-xl: 1320px;
--ifm-content-width: 700px;
}

/* Sharp Grotesk Font Faces */
Expand Down Expand Up @@ -373,6 +378,26 @@ article {
min-height: 90vh !important;
}

/* Constrain site-wide container width */
.container {
max-width: var(--ifm-container-width);
}

@media (min-width: 1440px) {
.container {
max-width: var(--ifm-container-width-xl);
}
}

/* Constrain markdown content width for readability */
.theme-doc-markdown,
.markdown {
max-width: var(--ifm-content-width);
margin-left: auto;
margin-right: auto;
width: 100%;
}

/* Navbar styling */
.navbar {
background: rgba(14, 21, 44, 0.75);
Expand Down Expand Up @@ -1416,7 +1441,7 @@ div[class*="buttonGroup"] button {
background: var(--wonderland-blue-950) !important;
border: 1px solid var(--wonderland-blue-800) !important;
border-radius: 0.5rem;
width: 12.5rem;
width: 15.5rem;
}

.dropdown__link {
Expand Down
4 changes: 2 additions & 2 deletions sites/ef/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ const efHandbooks: Handbook[] = [
image: "/common/img/aztec-handbook.svg",
href: "https://aztec.handbook.wonderland.xyz",
background: {
bgType: "wonderland",
color: "#625CBFD1",
bgType: "other",
bgImage: "/common/img/aztec-background-handbook-card.jpg",
},
},
];
Expand Down
4 changes: 2 additions & 2 deletions sites/optimism/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ const optimismHandbooks: Handbook[] = [
image: "/common/img/aztec-handbook.svg",
href: "https://aztec.handbook.wonderland.xyz",
background: {
bgType: "wonderland",
color: "#625CBFD1",
bgType: "other",
bgImage: "/common/img/aztec-background-handbook-card.jpg",
},
},
{
Expand Down
4 changes: 2 additions & 2 deletions sites/wonderland/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ const wonderlandHandbooks: Handbook[] = [
image: "/common/img/aztec-handbook.svg",
href: "https://aztec.handbook.wonderland.xyz",
background: {
bgType: "wonderland",
color: "#625CBFD1",
bgType: "other",
bgImage: "/common/img/aztec-background-handbook-card.jpg",
},
},
{
Expand Down
Loading