Skip to content

Commit

Permalink
Lint scss code
Browse files Browse the repository at this point in the history
  • Loading branch information
danirus committed Oct 13, 2023
1 parent af14647 commit e484be8
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 29 deletions.
2 changes: 1 addition & 1 deletion scss/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,4 @@ body {

.project-logo {
margin-right: 1rem;
}
}
27 changes: 14 additions & 13 deletions scss/_theme.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* stylelint-disable selector-no-qualifying-type */
@use "sass:color";


Expand Down Expand Up @@ -243,33 +244,33 @@ samp *,
}

blockquote {
margin: 2rem 1rem;
padding: 1rem 2rem .5rem 3rem;
background-color: var(--#{$prefix}tertiary-bg);
border-radius: 0.25rem;
margin: 2rem 1rem;
font-size: 1.2em;
font-style: italic;
background-color: var(--#{$prefix}tertiary-bg);
border-radius: .25rem;

.attribution {
padding-top: .8rem;
font-size: 0.9em;
font-weight: normal;
font-size: .9em;
font-style: normal;
font-weight: 400;
text-align: right;
}

&.epigraph,
&.pull-quote,
&.highlights {
margin: 2rem 2rem 3rem;
padding: 0;
margin: 2rem 2rem 3rem;
background-color: var(--#{$prefix}body-bg);
}
}

.line-block {
margin-left: 0;
margin-bottom: 1rem;
margin-left: 0;

& & {
margin-left: 1rem;
Expand All @@ -278,29 +279,29 @@ blockquote {

aside.sidebar {
float: right;
margin: 0 0 .4rem 1.8rem;
padding: .8rem .9rem;
width: 33%;
padding: .8rem .9rem;
margin: 0 0 .4rem 1.8rem;
background-color: var(--#{$prefix}foot1-bg);
border: 2px solid var(--#{$prefix}secondary-bg);
border-radius: 0.25rem;
border-radius: .25rem;

.sidebar-title {
padding-bottom: .5rem;
border-bottom: 1px solid var(--#{$prefix}secondary-bg);
font-size: 1.2em;
border-bottom: 1px solid var(--#{$prefix}secondary-bg);
}

.sidebar-subtitle {
font-size: 1.1em;
}

.rubric {
font-weight: 700;
font-size: 1em;
font-weight: 700;
}

p:last-child {
margin-bottom: .5rem;
}
}
}
7 changes: 4 additions & 3 deletions scss/components/_admonitions.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* stylelint-disable selector-no-qualifying-type */
.versionadded {
padding: .7rem 1.2rem 1rem;
margin: 2.5rem 2rem 2rem;
Expand All @@ -20,7 +21,7 @@
background-color: var(--#{$prefix}admon-tip-color-bg);
}

& > p:first-child {
> p:first-child {
padding-top: 1.5rem;
}
}
Expand All @@ -47,7 +48,7 @@
background-color: var(--#{$prefix}admon-caution-color-bg);
}

& > p:first-child {
> p:first-child {
padding-top: 1.5rem;
}
}
Expand All @@ -74,7 +75,7 @@ div.deprecated {
background-color: var(--#{$prefix}admon-error-color-bg);
}

& > p:first-child {
> p:first-child {
padding-top: 1.5rem;
}
}
Expand Down
20 changes: 10 additions & 10 deletions scss/components/_code.scss
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
/* stylelint-disable selector-no-qualifying-type */
.sig:not(.sig-inline) {
// display: inline-block;
background: var(--#{$prefix}secondary-bg);
padding: .25rem .25rem .25rem 3rem;
margin-right: -.25rem;
margin-left: -.25rem;
font-family: var(--#{$prefix}font-monospace);
font-size: var(--#{$prefix}font-monospace-size);
color: var(--#{$prefix}docapi-kw-color);
margin-left: -0.25rem;
margin-right: -0.25rem;
border-radius: 0.25rem;
padding: .25rem .25rem .25rem 3rem;
text-indent: -2.5em;
background: var(--#{$prefix}secondary-bg);
border-radius: .25rem;
transition: background 100ms ease-out;

a.reference {
.viewcode-link {
font-weight: normal;
width: 3.5rem;
font-weight: 400;
}
}

em.property {
font-style: italic;
font-weight: normal;
font-weight: 400;
}

.sig-prename,
.sig-name {
font-weight: bold;
font-weight: 700;
color: var(--#{$prefix}body-color);
}
}

.viewcode-link {
padding-left: 8px;
float: right;
padding-left: 8px;
}

.viewcode-back {
Expand Down
4 changes: 2 additions & 2 deletions scss/components/_docutils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ div.math {
}

> .footnote.brackets {
margin-bottom: 1rem;
padding: 0 1rem;
margin-bottom: 1rem;
color: var(--#{$prefix}tertiary-color);

.label {
Expand Down Expand Up @@ -212,8 +212,8 @@ div.math {

.highlight pre .linenos {
padding-right: 1rem;
border-right: 1px solid #ddd;
margin-right: 1rem;
border-right: 1px solid #ddd;
}

.rubric {
Expand Down

0 comments on commit e484be8

Please sign in to comment.