Skip to content

Commit

Permalink
Add small rendering improvments
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfoucrier committed Oct 17, 2023
1 parent 11ffbc1 commit 4151267
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 6 deletions.
2 changes: 1 addition & 1 deletion themes/barba/layout/components/chrome/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
bottom: 0;
left: 0;
padding: 2rem;
color: $black;
color: currentcolor;
font-size: 1.1rem;
letter-spacing: 0.15em;
pointer-events: none;
Expand Down
8 changes: 6 additions & 2 deletions themes/barba/layout/components/docs/_docs-content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,14 @@
display: block;
overflow: auto;
width: 100%;
margin: 0.5rem 0 1rem;
margin: 2rem 0;

th,
td,
tr {
padding: 0.5rem;
font-size: 1.2rem;
border: 1px solid $c-gray-light;
border: 1px solid $c-gray-lighter;

@include mq(s) {
padding: 0.7rem;
Expand Down Expand Up @@ -230,6 +230,10 @@
opacity: 1;
}
}

code {
border-radius: 4px 4px 0 0;
}
}

.headerlink {
Expand Down
2 changes: 1 addition & 1 deletion themes/barba/layout/components/docs/_docs-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
width: inherit;
max-width: inherit;
height: 14rem;
background: $c-blue-lightest;
background: inherit;
}
}

Expand Down
21 changes: 21 additions & 0 deletions themes/barba/layout/components/docs/_docs.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
.docs {
width: 100%;

a[title="Badge"] {
display: inline-flex;

img {
border-radius: 4px;
}
}

img[title="Badge"] {
border-radius: 4px;
}

// Code-snippets formatting
.highlight {
overflow: auto;
Expand All @@ -12,6 +24,15 @@
display: none;
}

table {
margin: 0;
overflow: hidden;
}

tbody {
display: flex;
}

th,
td,
tr {
Expand Down
4 changes: 2 additions & 2 deletions themes/barba/source/scss/base/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ html.is-transitioning {
}

code {
padding: 0 2px;
padding: 2px 4px;
font-family: $ff-code;
background: $c-blue-lightest;
border-radius: 4px;
Expand All @@ -115,7 +115,7 @@ blockquote {
margin: 2rem 0;
padding: 0 2.5rem;
color: $gray-light;
border-left: 3px solid $gray-lightest;
border-left: 3px solid currentcolor;
}

hr {
Expand Down
1 change: 1 addition & 0 deletions themes/barba/source/scss/utils/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ $c-blue-dark : #2448b0;
$c-blue-darker : #1c398c;
$c-blue-darkest : #112356;
$c-green-medium : #04bf0c;
$c-gray-lighter : #ebebeb;
$c-gray-light : #dedede;
$c-gray-medium : #858585;
$c-gray-dark : #333;
Expand Down

0 comments on commit 4151267

Please sign in to comment.