Add mobile support
This commit is contained in:
parent
9ae916fb4c
commit
508d55acf2
2 changed files with 37 additions and 23 deletions
|
@ -28,14 +28,13 @@
|
|||
<style lang="scss" scoped>
|
||||
td {
|
||||
text-align: center;
|
||||
min-width: 95px;
|
||||
|
||||
&.wulkanowy {
|
||||
// background-color: #ffebee;
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
&.other {
|
||||
// background-color: #e3f2fd;
|
||||
color: #1e88e5;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<div id="features-table" class="home-section">
|
||||
<h2 class="title">Porównanie funkcji</h2>
|
||||
<div class="table-wrapper">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -20,6 +21,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -40,6 +42,8 @@
|
|||
<style lang="scss">
|
||||
#features-table {
|
||||
min-height: 100vh;
|
||||
width: 100vw;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
padding: 0 32px 32px;
|
||||
background-color: #d32f2f;
|
||||
|
@ -49,11 +53,11 @@
|
|||
font-family: 'Roboto', sans-serif;
|
||||
|
||||
@media screen and (max-width: 875px) {
|
||||
padding: 0 16px 16px;
|
||||
padding: 0 0 16px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 450px) {
|
||||
padding: 0 8px 16px;
|
||||
padding: 0 0 16px;
|
||||
}
|
||||
|
||||
.title {
|
||||
|
@ -66,9 +70,20 @@
|
|||
grid-column: 1;
|
||||
}
|
||||
|
||||
.table-wrapper {
|
||||
grid-row: 3;
|
||||
width: fit-content;
|
||||
max-width: 100vw;
|
||||
box-sizing: border-box;
|
||||
overflow-x: auto;
|
||||
justify-self: center;
|
||||
}
|
||||
|
||||
table {
|
||||
border-spacing: 5px;
|
||||
grid-row: 3;
|
||||
width: fit-content;
|
||||
min-width: 75vw;
|
||||
padding: 0 16px;
|
||||
|
||||
th {
|
||||
padding: 8px;
|
||||
|
|
Loading…
Reference in a new issue