Skip to content

Commit 12512f9

Browse files
refactor(multi): refactored table styles and layouts
1 parent 6fef46e commit 12512f9

File tree

7 files changed

+47
-36
lines changed

7 files changed

+47
-36
lines changed

typescript-version/src/@core/scss/template/libs/vuetify/_overrides.scss

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,6 @@ $alert-prepend-icon-font-size: 1.125rem !important;
153153
color: variables.$slider-thumb-label-color;
154154
}
155155

156-
// 👉 Table
157-
.v-table th {
158-
color: rgba(var(--v-theme-on-background), var(--v-high-emphasis-opacity)) !important;
159-
}
160-
161156
// 👉 VTimeline
162157
.v-timeline {
163158
.v-timeline-item:not(:last-child) {
@@ -166,3 +161,18 @@ $alert-prepend-icon-font-size: 1.125rem !important;
166161
}
167162
}
168163
}
164+
165+
.v-data-table {
166+
th {
167+
background: rgb(var(--v-table-header-background)) !important;
168+
font-size: 0.75rem;
169+
font-weight: 500 !important;
170+
letter-spacing: 0.17px !important;
171+
text-transform: uppercase !important;
172+
173+
.v-data-table-header__content {
174+
display: flex;
175+
justify-content: space-between;
176+
}
177+
}
178+
}

typescript-version/src/components/UpgradeToPro.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<VBtn
33
color="error"
44
class="product-upgrade-to-pro"
5-
href="https://themeselection.com/item/master-vuetify-vuejs-admin-template/"
5+
href="https://themeselection.com/item/sneat-vuetify-vuejs-admin-template/"
66
target="_blank"
77
rel="noopener noreferrer"
88
>
@@ -17,7 +17,7 @@
1717
transition="slide-y-reverse-transition"
1818
>
1919
<VCard>
20-
<VImg src="https://cdn.jsdelivr.net/gh/themeselection/ts-assets/master/master-vuetify-vuejs-admin-template/banner/banner.png" />
20+
<VImg src="https://cdn.jsdelivr.net/gh/themeselection/ts-assets/sneat/sneat-vuetify-vuejs-admin-template/banner/banner.png" />
2121
<VCardTitle>Master - Vuetify Admin Template</VCardTitle>
2222
<VCardText>
2323
Master Admin is the most developer friendly & highly customisable Admin Dashboard Template based on Vuetify.
@@ -26,15 +26,15 @@
2626
<VCardText>
2727
<VBtn
2828
class="me-4"
29-
href="https://themeselection.com/item/master-vuetify-vuejs-admin-template/?tab=details#details"
29+
href="https://themeselection.com/item/sneat-vuetify-vuejs-admin-template/?tab=details#details"
3030
target="_blank"
3131
rel="noopener noreferrer"
3232
>
3333
Demo
3434
</VBtn>
3535
<VBtn
3636
variant="outlined"
37-
href="https://themeselection.com/item/master-vuetify-vuejs-admin-template/"
37+
href="https://themeselection.com/item/sneat-vuetify-vuejs-admin-template/"
3838
target="_blank"
3939
rel="noopener noreferrer"
4040
>

typescript-version/src/layouts/components/DefaultLayoutWithVerticalNav.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const upgradeBanner = computed(() => {
161161
<template #after-vertical-nav-items>
162162
<!-- 👉 illustration -->
163163
<a
164-
href="https://themeselection.com/item/materio-vuetify-vuejs-admin-template"
164+
href="https://themeselection.com/item/sneat-vuetify-vuejs-admin-template"
165165
target="_blank"
166166
rel="noopener noreferrer"
167167
style="margin-left: 7px;"

typescript-version/src/layouts/components/Footer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
target="noopener noreferrer"
3030
>More Themes</a>
3131
<a
32-
href="https://demos.themeselection.com/master-vuetify-vuejs-admin-template/documentation/"
32+
href="https://demos.themeselection.com/sneat-vuetify-vuejs-admin-template/documentation/"
3333
target="noopener noreferrer"
3434
>Documentation</a>
3535
</span>

typescript-version/src/plugins/vuetify/theme.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const theme: VuetifyOptions['theme'] = {
4646
'snackbar-color': '#ffffff',
4747
'tooltip-background': '#262732',
4848
'tooltip-opacity': 0.9,
49+
'table-header-background': '#F5F5F7',
4950

5051
// Shadows
5152
'shadow-key-umbra-opacity': 'rgba(var(--v-theme-on-surface), 0.06)',
@@ -94,6 +95,7 @@ const theme: VuetifyOptions['theme'] = {
9495
'snackbar-color': '#2B2C40',
9596
'tooltip-background': '#464A65',
9697
'tooltip-opacity': 0.9,
98+
'table-header-background': '#3A3E5B',
9799

98100
// Shadows
99101
'shadow-key-umbra-opacity': 'rgba(20, 21, 33, 0.06)',

typescript-version/src/views/pages/account-settings/AccountSettingsSecurity.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const recentDevices = [
9696
<VForm>
9797
<VCardText>
9898
<!-- 👉 Current Password -->
99-
<VRow class="mb-3">
99+
<VRow>
100100
<VCol
101101
cols="12"
102102
md="6"
@@ -308,7 +308,7 @@ const recentDevices = [
308308
<VDataTable
309309
:headers="recentDevicesHeaders"
310310
:items="recentDevices"
311-
class="text-no-wrap"
311+
class="text-no-wrap rounded-0 text-sm"
312312
>
313313
<template #item.browser="{ item }">
314314
<div class="d-flex">
@@ -317,7 +317,7 @@ const recentDevices = [
317317
:icon="item.raw.deviceIcon.icon"
318318
:color="item.raw.deviceIcon.color"
319319
/>
320-
<span>
320+
<span class="text-high-emphasis text-base">
321321
{{ item.raw.browser }}
322322
</span>
323323
</div>

typescript-version/src/views/pages/cards/card-basic/CardBasic.vue

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const isCardDetailsVisible = ref(false)
7575
</div>
7676

7777
<!-- Mutual Friends -->
78-
<div class="d-flex justify-space-between align-center mt-8">
78+
<div class="d-flex justify-space-between align-center mt-4">
7979
<span class="font-weight-medium">18 mutual friends</span>
8080

8181
<div class="v-avatar-group">
@@ -98,31 +98,29 @@ const isCardDetailsVisible = ref(false)
9898
sm="6"
9999
>
100100
<VCard>
101-
<VImg :src="pages3" />
101+
<VImg
102+
:src="pages3"
103+
cover
104+
max-height="280"
105+
/>
102106

103107
<VCardItem>
104108
<VCardTitle>Popular Uses Of The Internet</VCardTitle>
105109
</VCardItem>
106110

107111
<VCardText>
108-
Although cards can support multiple actions, UI controls, and an overflow menu.
109-
</VCardText>
110-
111-
<VCardActions>
112-
<VBtn @click="isCardDetailsVisible = !isCardDetailsVisible">
113-
Details
114-
</VBtn>
115-
116-
<VSpacer />
112+
<div class="mb-4">
113+
Although cards can support multiple actions, UI controls, and an overflow menu.
114+
</div>
117115

118116
<VBtn
119-
icon
120-
size="small"
117+
variant="text"
118+
density="comfortable"
121119
@click="isCardDetailsVisible = !isCardDetailsVisible"
122120
>
123-
<VIcon :icon="isCardDetailsVisible ? 'bx-chevron-up' : 'bx-chevron-down'" />
121+
Details
124122
</VBtn>
125-
</VCardActions>
123+
</VCardText>
126124

127125
<VExpandTransition>
128126
<div v-show="isCardDetailsVisible">
@@ -397,11 +395,13 @@ const isCardDetailsVisible = ref(false)
397395
</VCardText>
398396

399397
<VCardText>
400-
If you are looking for a new way to promote your business that won't cost you more money, maybe printing is one of the options you won't resist.
401-
</VCardText>
398+
<p>
399+
If you are looking for a new way to promote your business that won't cost you more money, maybe printing is one of the options you won't resist.
400+
</p>
402401

403-
<VCardText>
404-
become fast, easy and simple. If you want your promotional material to be an eye-catching
402+
<p class="mb-0">
403+
become fast, easy and simple. If you want your promotional material to be an eye-catching
404+
</p>
405405
</VCardText>
406406

407407
<VCardActions>
@@ -441,12 +441,11 @@ const isCardDetailsVisible = ref(false)
441441
According to us blisters are a very common thing and we come across them very often in our daily lives. It is a very common occurrence like cold or fever depending upon your lifestyle.
442442
</p>
443443
</VCardText>
444-
445-
<VCardActions class="justify-center">
444+
<VCardText>
446445
<VBtn variant="elevated">
447446
Contact Now
448447
</VBtn>
449-
</VCardActions>
448+
</VCardText>
450449
</VCard>
451450
</VCol>
452451
</VRow>

0 commit comments

Comments
 (0)