Skip to content

Commit

Permalink
refactor: update deep selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
emuvente committed Jan 9, 2025
1 parent b556f27 commit c3f0ac5
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 28 deletions.
8 changes: 4 additions & 4 deletions @kiva/kv-components/vue/KvCommentsAdd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,20 @@ export default {
</script>

<style lang="postcss" scoped>
>>> input {
:deep(input) {
@apply tw-border-t-0 tw-border-r-0 tw-border-l-0 tw-rounded-none tw-p-0 tw-h-4;
}
>>> input:focus {
:deep(input:focus) {
@apply tw-border-tertiary;
box-shadow: none;
}
>>> button > span {
:deep(button > span) {
@apply tw-min-h-0;
}
>>> button > span > span {
:deep(button > span > span) {
@apply tw-py-0 tw-px-0.5;
}
</style>
2 changes: 1 addition & 1 deletion @kiva/kv-components/vue/KvCommentsHeartButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default {
</script>

<style scoped>
.filled >>> svg {
.filled :deep(svg) {
fill: #F60059;
}
</style>
6 changes: 3 additions & 3 deletions @kiva/kv-components/vue/KvCommentsReplyButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ export default {
</script>

<style lang="postcss" scoped>
>>> span {
:deep(span) {
@apply tw-min-h-0;
}

>>> span > span {
:deep(span > span) {
@apply tw-py-0 tw-px-0.5 tw-flex tw-items-center;
}

>>> svg {
:deep(svg) {
@apply tw-mx-0.5;
}
</style>
2 changes: 1 addition & 1 deletion @kiva/kv-components/vue/KvInlineActivityCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default {
</script>
<style scoped lang="postcss">
.activity-avatar, .activity-avatar >>> img, .activity-avatar >>> div {
.activity-avatar, .activity-avatar :deep(img), .activity-avatar :deep(div) {
@apply tw-w-4 tw-h-4;
}
</style>
4 changes: 2 additions & 2 deletions @kiva/kv-components/vue/KvIntroductionLoanCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ export default {
</script>
<style lang="postcss" scoped>
.loan-callouts >>> span {
.loan-callouts :deep(span) {
@apply !tw-bg-transparent tw-text-action;
}
.loan-card-use:hover,
Expand All @@ -443,7 +443,7 @@ export default {
.loan-card-name {
@apply tw-pt-1 tw-px-3 tw-text-ellipsis tw-overflow-hidden tw-line-clamp-1 tw-cursor-pointer;
}
.loan-bookmark >>> button {
.loan-bookmark :deep(button) {
@apply !tw-rounded-t-none;
}
</style>
18 changes: 9 additions & 9 deletions @kiva/kv-components/vue/KvLendCta.vue
Original file line number Diff line number Diff line change
Expand Up @@ -550,39 +550,39 @@ export default {
</script>
<style lang="postcss" scoped>
.amountDropdownWrapper >>> select {
.amountDropdownWrapper :deep(select) {
border-radius: 14px 0 0 14px;
}
.lend-again >>> span {
.lend-again :deep(span) {
@apply tw-px-0;
}
.lend-again >>> span {
.lend-again :deep(span) {
@apply tw-px-1;
}
.lendButtonWrapper >>> span:first-child {
.lendButtonWrapper :deep(span:first-child) {
border-radius: 0 14px 14px 0;
}
.filtered-dropdown >>> select {
.filtered-dropdown :deep(select) {
@apply tw-rounded tw-border-2 tw-font-medium tw-cursor-pointer;
}
.unselected-dropdown >>> select {
.unselected-dropdown :deep(select) {
@apply tw-border-gray-400;
}
.selected-dropdown >>> select {
.selected-dropdown :deep(select) {
@apply tw-border-eco-green-4;
}
.preset-option >>> span.tw-w-full:first-child {
.preset-option :deep(span.tw-w-full:first-child) {
@apply tw-border-2 tw-border-gray-400;
}
.selected-option >>> span.tw-w-full:first-child {
.selected-option :deep(span.tw-w-full:first-child) {
@apply tw-border-eco-green-4;
}
</style>
14 changes: 7 additions & 7 deletions @kiva/kv-components/vue/KvLoanActivities.vue
Original file line number Diff line number Diff line change
Expand Up @@ -233,24 +233,24 @@ export default {
</script>
<style scoped lang="postcss">
.loan-activity >>> #kvLightboxBody {
.loan-activity :deep(#kvLightboxBody) {
@apply tw-flex tw-flex-col tw-px-0 tw-pb-0;
}
.loan-activity >>> div > div > div > div > div:first-child {
.loan-activity :deep(div > div > div > div > div:first-child) {
box-shadow: var(--kiva-box-shadow);
}
.loan-activity >>> div > div > div > div > div:first-child > div,
.loan-activity >>> #kvLightboxBody div {
.loan-activity :deep(div > div > div > div > div:first-child > div),
.loan-activity :deep(#kvLightboxBody div) {
box-shadow: none;
}
.loan-activity >>> #kvLightboxBody > div:first-child {
.loan-activity :deep(#kvLightboxBody > div:first-child) {
@apply tw-px-4;
}
.loan-activity >>> [role=dialog] {
.loan-activity :deep([role=dialog]) {
min-width: 840px;
max-width: 840px !important;
Expand All @@ -260,7 +260,7 @@ export default {
}
}
.loan-activity >>> #kvLightboxBody > div:nth-child(2) {
.loan-activity :deep(#kvLightboxBody > div:nth-child(2)) {
@apply tw-px-4;
box-shadow: var(--kiva-negative-box-shadow);
Expand Down
2 changes: 1 addition & 1 deletion @kiva/kv-components/vue/KvWideLoanCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ export default {
@apply tw-no-underline;
}
/** Unique to this loan card */
.loan-callouts >>> div{
.loan-callouts :deep(div) {
@apply tw-flex-wrap tw-h-auto;
}
</style>

0 comments on commit c3f0ac5

Please sign in to comment.