diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-11-18 12:25:05 +0100 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-11-19 09:42:13 +0100 |
commit | f6e6ba4851cc3ed056f43f3e47cc696bede4e259 (patch) | |
tree | 50c72a54867fee5ff9c87c727c9cc4041ceaa6f2 /apps/files_sharing/src | |
parent | 212cac94690ae9c9f0616cff8df69229be88dab1 (diff) | |
download | nextcloud-server-f6e6ba4851cc3ed056f43f3e47cc696bede4e259.tar.gz nextcloud-server-f6e6ba4851cc3ed056f43f3e47cc696bede4e259.zip |
refactor(styles): Adjust code style in SCSS sources to match our stylelint config
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntryLink.vue | 2 | ||||
-rw-r--r-- | apps/files_sharing/src/views/SharingDetailsTab.vue | 51 |
2 files changed, 24 insertions, 29 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index df7bf298483..c077c467545 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -917,7 +917,7 @@ export default { } } - ::v-deep .avatar-link-share { + :deep(.avatar-link-share) { background-color: var(--color-primary-element); } diff --git a/apps/files_sharing/src/views/SharingDetailsTab.vue b/apps/files_sharing/src/views/SharingDetailsTab.vue index 0878c5d289d..4711103c80e 100644 --- a/apps/files_sharing/src/views/SharingDetailsTab.vue +++ b/apps/files_sharing/src/views/SharingDetailsTab.vue @@ -350,7 +350,7 @@ export default { case this.SHARE_TYPES.SHARE_TYPE_USER: return t('files_sharing', 'Share with {userName}', { userName: this.share.shareWithDisplayName }) case this.SHARE_TYPES.SHARE_TYPE_EMAIL: - return t('files_sharing', 'Share with email {email}', { email: this.share.shareWith }) + return t('files_sharing', 'Share with email {email}', { email: this.share.shareWith }) case this.SHARE_TYPES.SHARE_TYPE_LINK: return t('files_sharing', 'Share link') case this.SHARE_TYPES.SHARE_TYPE_GROUP: @@ -366,12 +366,12 @@ export default { case this.SHARE_TYPES.SHARE_TYPE_GUEST: return t('files_sharing', 'Share with guest') default: { - if (this.share.id) { - // Share already exists - return t('files_sharing', 'Update share') - } else { - return t('files_sharing', 'Create share') - } + if (this.share.id) { + // Share already exists + return t('files_sharing', 'Update share') + } else { + return t('files_sharing', 'Create share') + } } } }, @@ -1104,12 +1104,9 @@ export default { padding: 0.1em; } - ::v-deep label { - - span { - display: flex; - flex-direction: column; - } + :deep(label span) { + display: flex; + flex-direction: column; } /* Target component based style in NcCheckboxRadioSwitch slot content*/ @@ -1154,20 +1151,18 @@ export default { } /* - The following style is applied out of the component's scope - to remove padding from the label.checkbox-radio-switch__label, - which is used to group radio checkbox items. The use of ::v-deep - ensures that the padding is modified without being affected by - the component's scoping. - Without this achieving left alignment for the checkboxes would not - be possible. - */ - span { - ::v-deep label { - padding-inline-start: 0 !important; - background-color: initial !important; - border: none !important; - } + The following style is applied out of the component's scope + to remove padding from the label.checkbox-radio-switch__label, + which is used to group radio checkbox items. The use of ::v-deep + ensures that the padding is modified without being affected by + the component's scoping. + Without this achieving left alignment for the checkboxes would not + be possible. + */ + span :deep(label) { + padding-inline-start: 0 !important; + background-color: initial !important; + border: none !important; } section.custom-permissions-group { @@ -1177,7 +1172,7 @@ export default { } &__delete { - >button:first-child { + > button:first-child { color: rgb(223, 7, 7); } } |