Skip to content

Commit 7ff0804

Browse files
committed
chore: adjust styles for new stylelint config
- replace renamed `word-wrap` with new name `overflow-wrap` (CSS3) - use extensions for `@use` Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent dd18425 commit 7ff0804

File tree

22 files changed

+51
-42
lines changed

22 files changed

+51
-42
lines changed

apps/dav/src/components/AvailabilityForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ async function save() {
151151
.grid-table {
152152
display: grid;
153153
margin-bottom: 32px;
154-
grid-column-gap: 24px;
155-
grid-row-gap: 6px;
154+
column-gap: 24px;
155+
row-gap: 6px;
156156
grid-template-columns: min-content auto min-content;
157157
max-width: 500px;
158158
}

apps/files/src/views/TemplatePicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export default defineComponent({
351351
352352
&__list {
353353
display: grid;
354-
grid-gap: calc(var(--margin) * 2);
354+
gap: calc(var(--margin) * 2);
355355
grid-auto-columns: 1fr;
356356
// We want maximum 5 columns. Putting 6 as we don't count the grid gap. So it will always be lower than 6
357357
max-width: calc(var(--fullwidth) * 6);

apps/oauth2/src/views/AdminSettings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ async function addClient() {
160160
overflow: hidden;
161161
padding: var(--default-grid-baseline);
162162
text-wrap: wrap;
163-
word-wrap: break-word;
163+
overflow-wrap: break-word;
164164
}
165165
166166
tbody tr {

apps/settings/css/settings.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
* SPDX-FileCopyrightText: 2011 Jan-Christoph Borchardt, http://jancborchardt.net
44
* SPDX-License-Identifier: AGPL-3.0-or-later
55
*/
6-
@use 'variables';
6+
77
@use 'sass:math';
8-
@use 'functions';
8+
@use 'variables.scss';
9+
@use 'functions.scss';
910

1011
input {
1112
&#openid, &#webdav {
@@ -92,7 +93,7 @@ select {
9293
padding: 20px;
9394
max-width: 1700px;
9495
grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
95-
grid-column-gap: 10px;
96+
column-gap: 10px;
9697

9798
.section {
9899
padding: 10px 10px;

apps/settings/src/components/UserList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ export default {
395395
</script>
396396

397397
<style lang="scss" scoped>
398-
@use './Users/shared/styles' as *;
398+
@use './Users/shared/styles.scss' as *;
399399
400400
.empty {
401401
:deep {

apps/settings/src/components/Users/UserListFooter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default Vue.extend({
8686
</script>
8787

8888
<style lang="scss" scoped>
89-
@use './shared/styles';
89+
@use './shared/styles.scss';
9090
9191
.footer {
9292
@include styles.row;

apps/settings/src/components/Users/UserListHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default Vue.extend({
155155
</script>
156156

157157
<style lang="scss" scoped>
158-
@use './shared/styles';
158+
@use './shared/styles.scss';
159159
160160
.header {
161161
border-bottom: 1px solid var(--color-border);

apps/settings/src/components/Users/UserRow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ export default {
10351035
</script>
10361036
10371037
<style lang="scss" scoped>
1038-
@use './shared/styles';
1038+
@use './shared/styles.scss';
10391039
10401040
.user-list__row {
10411041
@include styles.row;

apps/theming/src/components/UserSectionBackground.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ async function pickFile() {
264264
width: 168px;
265265
margin: var(--default-grid-baseline);
266266
text-align: center;
267-
word-wrap: break-word;
267+
overflow-wrap: break-word;
268268
hyphens: auto;
269269
border: 2px solid var(--color-main-background);
270270
border-radius: var(--border-radius-large);

apps/theming/src/components/UserSectionPrimaryColor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function numberToHex(numeric: string): string {
146146
height: 96px;
147147
width: 168px;
148148
149-
word-wrap: break-word;
149+
overflow-wrap: break-word;
150150
hyphens: auto;
151151
152152
border: 2px solid var(--color-main-background);

0 commit comments

Comments
 (0)