Skip to content

Commit

Permalink
✨ feat(code.scss): Move language label for code component to styling …
Browse files Browse the repository at this point in the history
…for 'pre' #206
  • Loading branch information
Spiderpig86 committed Aug 27, 2023
1 parent 83463e1 commit 2248631
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 39 deletions.
18 changes: 9 additions & 9 deletions dist/cirrus-all.css
Original file line number Diff line number Diff line change
Expand Up @@ -12114,15 +12114,6 @@ code {
/* Dark theme for code */
}

code:before {
color: var(--cirrus-code-label-fg);
content: attr(data-lang);
font-size: 0.9rem;
position: absolute;
right: 1rem;
top: 0.7rem;
}

code.dark {
--cirrus-code-bg: #343a40;
--cirrus-code-fg: #f8f9fa;
Expand Down Expand Up @@ -12157,6 +12148,15 @@ pre > code[data-lang]:not([data-lang=""]) {
padding: 2rem 1.5rem 1rem;
}

pre > code::before {
color: var(--cirrus-code-label-fg);
content: attr(data-lang);
font-size: 0.9rem;
position: absolute;
right: 1rem;
top: 0.7rem;
}

/* FOOTER */
.footer {
background-color: #343a40;
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus-all.min.css

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions dist/cirrus-core.css
Original file line number Diff line number Diff line change
Expand Up @@ -10693,15 +10693,6 @@ code {
/* Dark theme for code */
}

code:before {
color: var(--cirrus-code-label-fg);
content: attr(data-lang);
font-size: 0.9rem;
position: absolute;
right: 1rem;
top: 0.7rem;
}

code.dark {
--cirrus-code-bg: #343a40;
--cirrus-code-fg: #f8f9fa;
Expand Down Expand Up @@ -10736,6 +10727,15 @@ pre > code[data-lang]:not([data-lang=""]) {
padding: 2rem 1.5rem 1rem;
}

pre > code::before {
color: var(--cirrus-code-label-fg);
content: attr(data-lang);
font-size: 0.9rem;
position: absolute;
right: 1rem;
top: 0.7rem;
}

/* FOOTER */
.footer {
background-color: #343a40;
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus-core.min.css

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions dist/cirrus.css
Original file line number Diff line number Diff line change
Expand Up @@ -10694,15 +10694,6 @@ code {
/* Dark theme for code */
}

code:before {
color: var(--cirrus-code-label-fg);
content: attr(data-lang);
font-size: 0.9rem;
position: absolute;
right: 1rem;
top: 0.7rem;
}

code.dark {
--cirrus-code-bg: #343a40;
--cirrus-code-fg: #f8f9fa;
Expand Down Expand Up @@ -10737,6 +10728,15 @@ pre > code[data-lang]:not([data-lang=""]) {
padding: 2rem 1.5rem 1rem;
}

pre > code::before {
color: var(--cirrus-code-label-fg);
content: attr(data-lang);
font-size: 0.9rem;
position: absolute;
right: 1rem;
top: 0.7rem;
}

/* FOOTER */
.footer {
background-color: #343a40;
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus.min.css

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions src/components/code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@
color: var(--cirrus-code-fg);
border-radius: 3px;

&:before {
color: var(--cirrus-code-label-fg);
content: attr(data-lang);
font-size: 0.9rem;
position: absolute;
right: 1rem;
top: 0.7rem;
}

/* Dark theme for code */
&.dark {
--cirrus-code-bg: #{fill('gray', '800')};
Expand Down Expand Up @@ -54,5 +45,14 @@
&[data-lang]:not([data-lang='']) {
padding: 2rem 1.5rem 1rem;
}

&::before {
color: var(--cirrus-code-label-fg);
content: attr(data-lang);
font-size: 0.9rem;
position: absolute;
right: 1rem;
top: 0.7rem;
}
}
}

0 comments on commit 2248631

Please sign in to comment.