Skip to content

Commit

Permalink
fix(DocsDecorator): add new css prefix support
Browse files Browse the repository at this point in the history
  • Loading branch information
chelentos committed Sep 22, 2023
1 parent 9a4bd59 commit f341fe0
Showing 1 changed file with 55 additions and 53 deletions.
108 changes: 55 additions & 53 deletions src/demo/DocsDecorator/DocsDecorator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,6 @@ $offset-l: 40px;
$root: '.docs-decorator';

#{$root}#{$root}#{$root}#{$root}#{$root} {
p,
li:not([class*='yc-']),
a:not([class*='yc-']) {
@include mixins.text-body-2;
}

.sbdocs-wrapper {
padding: 0 $offset-l;
}

.sbdocs-content {
max-width: 800px;
}

p,
ul:not([class*='yc-']),
ol:not([class*='yc-']) {
margin: $offset-xs 0;

& + p,
& + ul,
& + ol {
margin-top: $offset-s;
}
}

li + li:not([class*='yc-']) {
margin-top: $offset-xs;
}

ul:not([class*='yc-']),
ol:not([class*='yc-']) {
padding-left: $offset-m;
}

h1 {
@include mixins.text-display-3;
}
Expand All @@ -64,26 +29,12 @@ $root: '.docs-decorator';
margin-bottom: $offset-m;
}

a:not([class*='yc-']) {
text-decoration: none;
touch-action: manipulation;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
cursor: pointer;

color: var(--g-color-text-link);

&:hover {
color: var(--g-color-text-link-hover);
}
.sbdocs-wrapper {
padding: 0 $offset-l;
}

p code,
li:not([class*='yc-']) code {
@include mixins.text-code-inline-2;
line-height: 1;
padding: 1px 4px;
background: var(--g-color-base-misc-light);
color: var(--g-color-text-misc);
.sbdocs-content {
max-width: 800px;
}

.docblock-source {
Expand All @@ -93,4 +44,55 @@ $root: '.docs-decorator';
.docs-example {
margin: $offset-m 0;
}

:not([class*='yc-']):not([class*='g-']) > {
p,
li:not([class*='yc-']):not([class*='g-']),
a:not([class*='yc-']):not([class*='g-']) {
@include mixins.text-body-2;
}

p,
ul:not([class*='yc-']):not([class*='g-']),
ol:not([class*='yc-']):not([class*='g-']) {
margin: $offset-xs 0;

& + p,
& + ul,
& + ol {
margin-top: $offset-s;
}
}

li + li:not([class*='yc-']):not([class*='g-']) {
margin-top: $offset-xs;
}

ul:not([class*='yc-']):not([class*='g-']),
ol:not([class*='yc-']):not([class*='g-']) {
padding-left: $offset-m;
}

a:not([class*='yc-']):not([class*='g-']) {
text-decoration: none;
touch-action: manipulation;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
cursor: pointer;

color: var(--g-color-text-link);

&:hover {
color: var(--g-color-text-link-hover);
}
}

p code,
li:not([class*='yc-']):not([class*='g-']) code {
@include mixins.text-code-inline-2;
line-height: 1;
padding: 1px 4px;
background: var(--g-color-base-misc-light);
color: var(--g-color-text-misc);
}
}
}

0 comments on commit f341fe0

Please sign in to comment.