Interakcja wyboru rubryki

This commit is contained in:
2022-06-10 21:31:50 +02:00
parent 8271756b9b
commit 6dc5cb5c17
3 changed files with 125 additions and 76 deletions
+37 -1
View File
@@ -1,7 +1,7 @@
<template>
<div class="rozkaz">
<OrderN v-if="orderType == 'N'" />
<OrderS v-if="orderType == 'S'"/>
<OrderS v-if="orderType == 'S'" />
<section class="info">
<table class="info-table">
@@ -77,6 +77,8 @@ export default defineComponent({
</script>
<style lang="scss">
@import '../styles/global.scss';
.rozkaz {
width: 500px;
background-color: white;
@@ -172,4 +174,38 @@ table.info-table {
text-align: center;
}
tr:not(.chosen) > td.row-content {
opacity: 0.45;
user-select: none;
position: relative;
&::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
tr.row {
&:not(.chosen) {
cursor: pointer;
}
&.chosen > .row-number {
color: red;
}
&:hover {
outline: 3px solid red;
& td.row-number {
color: red;
}
}
}
</style>