Skip to content

Commit

Permalink
update styling of cards (#62)
Browse files Browse the repository at this point in the history
* update styling of cards

* remove margin on p elements
  • Loading branch information
eshaben authored Dec 18, 2024
1 parent 705cbb2 commit 7a253e0
Showing 1 changed file with 37 additions and 19 deletions.
56 changes: 37 additions & 19 deletions material-overrides/assets/stylesheets/polkadot.css
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
padding: 0;
grid-template-columns: repeat(2, minmax(0, 1fr));
box-shadow: 0 0.2rem 0.5rem #0003, 0 0 0.05rem #00000059;
/* For Safari */
/* For Safari */
transform: translateZ(0);
}

Expand Down Expand Up @@ -704,13 +704,13 @@ input.md-search__input::placeholder {
}

/* Show the entire left navigation */
.root-subdirectory-page +
.md-sidebar--primary
.root-subdirectory-page
+ .md-sidebar--primary
.md-nav
> .md-nav__list
.md-nav__item--section,
.root-subdirectory-page +
.md-sidebar--primary
.root-subdirectory-page
+ .md-sidebar--primary
.md-nav__list
.md-nav__item
> a.md-nav__link {
Expand Down Expand Up @@ -962,7 +962,7 @@ input.md-search__input::placeholder {
.md-main {
padding: 0;
}

.md-header {
padding: 0;
display: flex;
Expand All @@ -975,7 +975,6 @@ input.md-search__input::placeholder {
}
}


/** Footer styling **/
.md-grid.md-footer-meta__inner {
padding: 0.75rem 1.5rem;
Expand Down Expand Up @@ -1092,9 +1091,9 @@ html .md-footer-meta.md-typeset a:hover {
}

/* Back to top button */
[dir=ltr] .md-top {
[dir='ltr'] .md-top {
left: 50%;
margin-left: 0
margin-left: 0;
}

/** API styling **/
Expand Down Expand Up @@ -1401,18 +1400,37 @@ div.mermaid {
}

.md-typeset .grid.cards > ul > li:hover {
border: .05rem solid var(--md-default-fg-color--lightest);
border: 0.05rem solid var(--md-default-fg-color--lightest);
box-shadow: unset;
}

.md-typeset .grid.cards > ul > li > :last-child {
.md-typeset .grid.cards .twemoji {
padding-right: 0.5em;
}

/* Additional card styling (as seen on the Develop index page) */
.md-typeset .grid.cards:not(.links) > ul > li > :last-child:has(> a) {
margin-top: auto;
padding-top: 1em;
}

.md-typeset .grid.cards .twemoji {
vertical-align: sub;
padding-right: 0.5em;
.md-typeset .grid.cards h3 {
margin: 0;
font-size: 1.15em;
display: flex;
}

.md-typeset .grid.cards.links > ul > li > a {
padding: .25em 0;
}

.md-typeset .grid.cards.links ul > li > p {
margin: 0;
}

.md-typeset .grid.cards.links .twemoji {
height: auto;
width: 1.75em;
}

/** Kapa styling **/
Expand All @@ -1432,9 +1450,9 @@ div.mermaid {
/** Where to Go Next Badge styling */
.md-typeset span.badge {
border-radius: 0.5em;
font-size: .8em;
padding: 0.2em .5em;
margin-right: .5em;
font-size: 0.8em;
padding: 0.2em 0.5em;
margin-right: 0.5em;
}

.md-typeset span.badge.tutorial {
Expand Down Expand Up @@ -1484,9 +1502,9 @@ div.mermaid {
text-decoration: none;
display: flex;
align-items: center;
gap: .5em;
gap: 0.5em;
color: var(--md-default-fg-color);
opacity: .75
opacity: 0.75;
}

.md-typeset .actions svg {
Expand Down

0 comments on commit 7a253e0

Please sign in to comment.