summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarco <marcoambrosini@pm.me>2022-01-18 10:25:31 +0100
committermarco <marcoambrosini@pm.me>2022-01-19 10:31:45 +0100
commitcc851848427d4e7122ac89b6a5ae4934d96bbcec (patch)
tree93f46f4b736dc745b2665bdf0f0a7f882fa91708
parent37f960b69c42a164cd00e6d49a822d20c838318c (diff)
Fix some stylelint warnings
Signed-off-by: marco <marcoambrosini@pm.me>
-rw-r--r--src/components/ConversationIcon.vue5
-rw-r--r--src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue3
-rw-r--r--stylelint.config.js6
3 files changed, 9 insertions, 5 deletions
diff --git a/src/components/ConversationIcon.vue b/src/components/ConversationIcon.vue
index fef3b3201..ef6e176f0 100644
--- a/src/components/ConversationIcon.vue
+++ b/src/components/ConversationIcon.vue
@@ -143,7 +143,6 @@ export default {
</script>
<style lang="scss" scoped>
-@use 'sass:math';
$icon-size: 44px;
.conversation-icon {
@@ -155,7 +154,7 @@ $icon-size: 44px;
width: $icon-size;
height: $icon-size;
line-height: $icon-size;
- font-size: math.div($icon-size, 2);
+ font-size: calc($icon-size / 2);
background-color: var(--color-background-darker);
&.icon-changelog {
@@ -167,7 +166,7 @@ $icon-size: 44px;
&.icon-password,
&.icon-file,
&.icon-mail {
- background-size: math.div($icon-size, 2);
+ background-size: calc($icon-size / 2);
}
}
diff --git a/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue b/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue
index a9289c22e..38eabff7d 100644
--- a/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue
+++ b/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue
@@ -409,7 +409,6 @@ export default {
</script>
<style lang="scss" scoped>
-@use 'sass:math';
@import '../../../assets/variables';
.atwho-wrapper {
@@ -431,7 +430,7 @@ div[contenteditable] {
font-size: $chat-font-size;
line-height: $chat-line-height;
min-height: $clickable-area;
- border-radius: math.div($clickable-area, 2);
+ border-radius: calc($clickable-area / 2);
border: 1px solid var(--color-border-dark);
max-height: 180px;
overflow-y: auto;
diff --git a/stylelint.config.js b/stylelint.config.js
index fa8138e1f..c1ba203ad 100644
--- a/stylelint.config.js
+++ b/stylelint.config.js
@@ -2,4 +2,10 @@ const stylelintConfig = require('@nextcloud/stylelint-config')
stylelintConfig.ignoreFiles = ['css/At.scss']
+stylelintConfig.rules['at-rule-no-unknown'] = [
+ true, {
+ ignoreAtRules: ['include', 'mixin', 'use'],
+ },
+]
+
module.exports = stylelintConfig