Skip to content

Commit

Permalink
Update style.css - More space between icon and text on boxes + figures (
Browse files Browse the repository at this point in the history
#1526)

* Update style.css - More space between icon and text on boxes

* Update style.css to make captions more consistent
  • Loading branch information
tiagov8 authored Oct 15, 2024
1 parent f0c58d4 commit bd206cf
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -469,13 +469,11 @@ pre {
background: none;
}

.good figcaption, .bad figcaption, .ok figcaption,
.good p, .bad p, .ok p {
.good figcaption, .bad figcaption, .ok figcaption, .good p, .bad p, .ok p {
font-weight: bold;
caption-side: bottom;
padding-left: 1.2rem;
padding-left: 1.35rem;
font-weight: 700;
margin: 0.5rem 0 6px;
line-height: initial;
position: relative;
}
Expand Down Expand Up @@ -876,7 +874,6 @@ blockquote :last-child {
max-width: 100%;
width: auto !important;
border: 10px solid #eee;
outline: 1px solid #ccc;
background-color: #eee;
}

Expand All @@ -896,7 +893,7 @@ blockquote :last-child {
width: 16px;
position: absolute;
left: 0px;
top:2px;
top:3px;
}

.rule-content figure figcaption.bad-example:before {
Expand All @@ -913,7 +910,6 @@ blockquote :last-child {
content: "\f11a ";
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
color: #777;
}
Expand All @@ -934,7 +930,7 @@ blockquote :last-child {
.good-example figure figcaption::before,
.bad-example figure figcaption::before,
.ok-example figure figcaption::before {
padding-left: 1.5rem;
padding-left: 1.35rem;
}

.good-example figure figcaption::after,
Expand All @@ -946,7 +942,7 @@ div.good-example .custom-block-heading::after {
width: 16px;
position: absolute;
left: 0px;
top:2px;
top:3px;
}

.bad-example figure figcaption::after,
Expand All @@ -958,7 +954,7 @@ div.bad-example .custom-block-heading::after {
width: 16px;
position: absolute;
left: 0px;
top:2px;
top:3px;
}

.ok-example figure figcaption::after,
Expand All @@ -968,12 +964,11 @@ div.ok-example .custom-block-heading::after {
content: "\f11a ";
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
color: #777;
position: absolute;
left: 0px;
top:2px;
top:3px;
}

div.ok-example .custom-block-heading,
Expand All @@ -983,7 +978,6 @@ div.greybox .custom-block-heading{
caption-side: bottom;
display: table-caption;
font-weight: 700;
margin: 0.5rem 0.5rem 6px;
line-height: initial;
position: relative;
}
Expand Down Expand Up @@ -1017,11 +1011,13 @@ div.bad-example {
}

.rule-content video, .rule-content iframe:not(.utterances-frame) {
background-color: #f5f5f5;
padding: 4px;
background-color: #eee;
padding: 5px;
margin-bottom: 1rem;
}

.gatsby-resp-iframe-wrapper {margin-bottom:.5rem;}

.rule-content video pre, .rule-content iframe pre {
display: block;
padding: 9.5px;
Expand Down Expand Up @@ -1067,7 +1063,7 @@ div.bad-example {
}

.info > *, .china > *, .codeauditor > * {
padding-left: 2.5rem;
padding-left: 3rem;
}

.info > ol, .china > ol, .codeauditor > ol, .info > ul, .china > ul, .codeauditor > ul {
Expand All @@ -1084,7 +1080,6 @@ div.bad-example {

.info:before, .codeauditor:before, .china:before {
overlay: auto;
margin-right: 1rem;
position: fixed;
}

Expand Down Expand Up @@ -2548,7 +2543,7 @@ margin-bottom: 1em;
-------------------------------------------------- */

.email-template {
margin: 1rem 0 .25rem;
margin: 1rem 0 .5rem;
background-color: #eee;
display: inline-block;
width: 100%;
Expand Down

0 comments on commit bd206cf

Please sign in to comment.