Skip to content

Commit

Permalink
fix remove @nest from specks
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankaegy committed Sep 23, 2024
1 parent 0d1e50c commit bf916b1
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 37 deletions.
71 changes: 36 additions & 35 deletions packages/toolkit/config/__tests__/__fixtures__/accordion.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,51 +5,52 @@


:root {
--primary-font: 'Mr George', Arial, Helvetica, sans-serif;
--primary-font: "Mr George", arial, helvetica, sans-serif;
}

@font-face {
font-family: 'Mr George';
src: url('./assets/fonts/MrGeorgeHeavy.ttf') format('truetype');
font-weight: 900
font-family: "Mr George";
font-weight: 900;
src: url("./assets/fonts/MrGeorgeHeavy.ttf") format("truetype");
}

@font-face {
font-family: 'Mr George';
src: url('./assets/fonts/MrGeorge.ttf') format('truetype');
font-weight: 400
font-family: "Mr George";
font-weight: 400;
src: url("./assets/fonts/MrGeorge.ttf") format("truetype");
}

.accordion-header {
border-bottom: 1px solid #303030;
cursor: pointer;
font-size: 1em;
padding: 10px 0 10px 20px;
position: relative;
text-align: left;
width: 100%;

&:before {
content: "+";
left: 5px;
position: absolute;
top: 8px;
}

&.is-active:before {
content: "-";
}
border-bottom: 1px solid #303030;
cursor: pointer;
font-size: 1em;
padding: 10px 0 10px 20px;
position: relative;
text-align: left;
width: 100%;

&::before {
content: "+";
left: 5px;
position: absolute;
top: 8px;
}

&.is-active::before {
content: "-";
}
}

.accordion-content {
@nest .js & {
display: none;
visibility: hidden;

&.is-active {
border-bottom: 1px solid #303030;
display: block;
visibility: visible;
}
}

.js & {
display: none;
visibility: hidden;

&.is-active {
border-bottom: 1px solid #303030;
display: block;
visibility: visible;
}
}
}
2 changes: 1 addition & 1 deletion projects/library-ts/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

.accordion-content {
@nest .js & {
.js & {
display: none;
visibility: hidden;

Expand Down
2 changes: 1 addition & 1 deletion projects/library/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}

.accordion-content {
@nest .js & {
.js & {
display: none;
visibility: hidden;

Expand Down

0 comments on commit bf916b1

Please sign in to comment.