203 lines
4.4 KiB
Vue
203 lines
4.4 KiB
Vue
<template>
|
|
<div :class="['data', darkMode ? 'div-darkmode' : 'div-lightmode']">
|
|
<div :class="['label', darkMode ? 'label-darkmode' : 'label-lightmode']">Last viewed:</div>
|
|
<table class="data-table" name="maintenance-visits-template-table">
|
|
<tr :class="['table-row', darkMode ? 'tr-head-darkmode' : 'tr-head-lightmode']" id="table-head">
|
|
<th
|
|
:class="['Client', darkMode ? 'th-darkmode' : 'th-lightmode', darkMode ? 'Client-darkmode' : 'Client-lightmode']">
|
|
Client</th>
|
|
<th
|
|
:class="['Name', darkMode ? 'th-darkmode' : 'th-lightmode', darkMode ? 'Name-darkmode' : 'Name-lightmode']">
|
|
Name</th>
|
|
<th :class="['ID', darkMode ? 'th-darkmode' : 'th-lightmode', darkMode ? 'ID-darkmode' : 'ID-lightmode']">ID
|
|
</th>
|
|
<th
|
|
:class="['Type', darkMode ? 'th-darkmode' : 'th-lightmode', darkMode ? 'Type-darkmode' : 'Type-lightmode']">
|
|
Type</th>
|
|
<th :class="['User', darkMode ? 'th-darkmode' : 'th-lightmode']">User</th>
|
|
</tr>
|
|
<tr :class="['table-row', darkMode ? 'tr-darkmode' : 'tr-lightmode']" id="row-1">
|
|
<td
|
|
:class="['Client', darkMode ? 'td-darkmode' : 'td-lightmode', darkMode ? 'Client-darkmode' : 'Client-lightmode']">
|
|
...</td>
|
|
<td
|
|
:class="['Name', darkMode ? 'td-darkmode' : 'td-lightmode', darkMode ? 'Name-darkmode' : 'Name-lightmode']">
|
|
...</td>
|
|
<td :class="['ID', darkMode ? 'td-darkmode' : 'td-lightmode', darkMode ? 'ID-darkmode' : 'ID-lightmode']">
|
|
...</td>
|
|
<td
|
|
:class="['Type', darkMode ? 'td-darkmode' : 'td-lightmode', darkMode ? 'Type-darkmode' : 'Type-lightmode']">
|
|
...</td>
|
|
<td :class="['User', darkMode ? 'td-darkmode' : 'td-lightmode']">...</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
name: "MaintenanceVisitsTemplateTable",
|
|
data() {
|
|
return {
|
|
darkMode: true,
|
|
};
|
|
},
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
.data {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
align-self: stretch;
|
|
width: 100%;
|
|
padding: 1.25rem 1.875rem;
|
|
gap: 1.25rem;
|
|
border-radius: 0.625rem;
|
|
box-shadow: 0.25rem 0.25rem 0.25rem 0rem rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.div-darkmode {
|
|
background-color: #2c2c2c;
|
|
}
|
|
|
|
.div-lightmode {
|
|
background-color: #fff;
|
|
}
|
|
|
|
.data-table {
|
|
width: 100%;
|
|
padding: 0 0.625rem;
|
|
table-layout: fixed;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.table-row {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
height: 3.125rem;
|
|
padding: 0.625rem;
|
|
gap: 0.625rem;
|
|
}
|
|
|
|
.tr-head-darkmode {
|
|
border-top: none;
|
|
border-bottom: 0.0625rem solid #000000;
|
|
}
|
|
|
|
.tr-head-lightmode {
|
|
border-top: none;
|
|
border-bottom: 0.0625rem solid #8e8e8e;
|
|
}
|
|
|
|
.tr-darkmode {
|
|
border-top: 0.0625rem solid #000000;
|
|
}
|
|
|
|
.tr-lightmode {
|
|
border-top: 0.0625rem solid #8e8e8e;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
height: 1.875rem;
|
|
text-align: left;
|
|
padding: 0;
|
|
letter-spacing: 5%;
|
|
font: 400 0.875rem/1.875rem Overpass, sans-serif;
|
|
}
|
|
|
|
.th-darkmode,
|
|
.td-darkmode {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.th-lightmode,
|
|
.td-lightmode {
|
|
color: #000;
|
|
}
|
|
|
|
th {
|
|
font: 700 0.875rem/1.875rem Overpass, sans-serif;
|
|
}
|
|
|
|
.Client {
|
|
width: 33.3%;
|
|
}
|
|
|
|
.Client-darkmode {
|
|
border-right: 0.0625rem solid #000000;
|
|
}
|
|
|
|
.Client-lightmode {
|
|
border-right: 0.0625rem solid #8e8e8e;
|
|
}
|
|
|
|
.Name {
|
|
width: 33.3%;
|
|
}
|
|
|
|
.Name-darkmode {
|
|
border-right: 0.0625rem solid #000000;
|
|
}
|
|
|
|
.Name-lightmode {
|
|
border-right: 0.0625rem solid #8e8e8e;
|
|
}
|
|
|
|
.ID {
|
|
width: 11.1%;
|
|
}
|
|
|
|
.ID-darkmode {
|
|
border-right: 0.0625rem solid #000000;
|
|
}
|
|
|
|
.ID-lightmode {
|
|
border-right: 0.0625rem solid #8e8e8e;
|
|
}
|
|
|
|
.Type {
|
|
width: 11.1%;
|
|
}
|
|
|
|
.Type-darkmode {
|
|
border-right: 0.0625rem solid #000000;
|
|
}
|
|
|
|
.Type-lightmode {
|
|
border-right: 0.0625rem solid #8e8e8e;
|
|
}
|
|
|
|
.User {
|
|
width: 11.1%;
|
|
}
|
|
|
|
.label {
|
|
width: 6.0625em;
|
|
height: 1.875em;
|
|
font-family: 'Overpass';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-size: 1em;
|
|
line-height: 1.875em;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.label-darkmode {
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.label-lightmode {
|
|
color: #000;
|
|
}</style> |