Skip to content

Commit 9e42c2c

Browse files
luizhf42gustavosbarreto
authored andcommitted
refactor(ui): move details pages item-title class to global.css
1 parent 1c9dcd0 commit 9e42c2c

File tree

13 files changed

+202
-295
lines changed

13 files changed

+202
-295
lines changed

ui/admin/src/views/AnnouncementDetails.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,6 @@ defineExpose({ announcement, contentToHtml });
155155
</script>
156156

157157
<style lang="scss" scoped>
158-
.item-title {
159-
margin-top: 0.75rem;
160-
// Vuetify's text-overline styles
161-
font-size: 0.75rem;
162-
font-weight: 500;
163-
text-transform: uppercase;
164-
letter-spacing: 0.1666666667em;
165-
line-height: 2.667;
166-
}
167-
168158
:deep(.content-announcement) {
169159
p, span, div, h1, h2, h3, h4, h5, h6 {
170160
margin: .5rem;

ui/admin/src/views/DeviceDetails.vue

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,3 @@ onMounted(async () => {
208208
}
209209
});
210210
</script>
211-
212-
<style lang="scss" scoped>
213-
.item-title {
214-
margin-top: 0.75rem;
215-
// Vuetify's text-overline styles
216-
font-size: 0.75rem;
217-
font-weight: 500;
218-
text-transform: uppercase;
219-
letter-spacing: 0.1666666667em;
220-
line-height: 2.667;
221-
}
222-
</style>

ui/admin/src/views/FirewallRulesDetails.vue

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,3 @@ onMounted(async () => {
138138
}
139139
});
140140
</script>
141-
142-
<style lang="scss" scoped>
143-
.item-title {
144-
margin-top: 0.75rem;
145-
// Vuetify's text-overline styles
146-
font-size: 0.75rem;
147-
font-weight: 500;
148-
text-transform: uppercase;
149-
letter-spacing: 0.1666666667em;
150-
line-height: 2.667;
151-
}
152-
</style>

ui/admin/src/views/NamespaceDetails.vue

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -346,15 +346,6 @@ defineExpose({ namespace });
346346
</script>
347347

348348
<style scoped>
349-
.item-title {
350-
margin-top: 0.75rem;
351-
font-size: 0.75rem;
352-
font-weight: 500;
353-
text-transform: uppercase;
354-
letter-spacing: 0.1666666667em;
355-
line-height: 2.667;
356-
}
357-
358349
.unstyled-link {
359350
all: unset;
360351
}

ui/admin/src/views/SessionDetails.vue

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,3 @@ onMounted(async () => {
139139
}
140140
});
141141
</script>
142-
143-
<style lang="scss" scoped>
144-
.item-title {
145-
margin-top: 0.75rem;
146-
// Vuetify's text-overline styles
147-
font-size: 0.75rem;
148-
font-weight: 500;
149-
text-transform: uppercase;
150-
letter-spacing: 0.1666666667em;
151-
line-height: 2.667;
152-
}
153-
</style>

ui/admin/src/views/UserDetails.vue

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -291,14 +291,3 @@ onBeforeMount(async () => {
291291
292292
defineExpose({ user });
293293
</script>
294-
295-
<style lang="scss" scoped>
296-
.item-title {
297-
margin-top: 0.75rem;
298-
font-size: 0.75rem;
299-
font-weight: 500;
300-
text-transform: uppercase;
301-
letter-spacing: 0.1666666667em;
302-
line-height: 2.667;
303-
}
304-
</style>

ui/src/assets/global.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
.full-height {
22
height: 100vh;
33
}
4+
5+
.item-title {
6+
margin-top: 0.75rem;
7+
/* Vuetify's text-overline styles */
8+
font-size: 0.75rem;
9+
font-weight: 500;
10+
text-transform: uppercase;
11+
letter-spacing: 0.1666666667em;
12+
line-height: 2.667;
13+
}

ui/src/components/Welcome/WelcomeThirdScreen.vue

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,3 @@ onBeforeMount(async () => {
150150
}
151151
});
152152
</script>
153-
154-
<style lang="scss" scoped>
155-
.item-title {
156-
margin-top: 0.75rem;
157-
// Vuetify's text-overline styles
158-
font-size: 0.75rem;
159-
font-weight: 500;
160-
text-transform: uppercase;
161-
letter-spacing: 0.1666666667em;
162-
line-height: 2.667;
163-
}
164-
</style>

ui/src/views/DetailsDevice.vue

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -255,17 +255,4 @@ const refreshDevices = async () => {
255255
handleError(error);
256256
}
257257
};
258-
259258
</script>
260-
261-
<style lang="scss" scoped>
262-
.item-title {
263-
margin-top: 0.75rem;
264-
// Vuetify's text-overline styles
265-
font-size: 0.75rem;
266-
font-weight: 500;
267-
text-transform: uppercase;
268-
letter-spacing: 0.1666666667em;
269-
line-height: 2.667;
270-
}
271-
</style>

ui/src/views/DetailsSessions.vue

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,3 @@ onMounted(async () => {
237237
await getSession();
238238
});
239239
</script>
240-
241-
<style lang="scss" scoped>
242-
.item-title {
243-
margin-top: 0.75rem;
244-
// Vuetify's text-overline styles
245-
font-size: 0.75rem;
246-
font-weight: 500;
247-
text-transform: uppercase;
248-
letter-spacing: 0.1666666667em;
249-
line-height: 2.667;
250-
}
251-
</style>

0 commit comments

Comments
 (0)