Browse Source

#1675 common css for filter dropdown

pull/1714/head
Naman Anand 2 years ago
parent
commit
fea32b7da8
  1. 72
      packages/nc-gui/assets/style/style.css
  2. 4
      packages/nc-gui/components/project/spreadsheet/components/columnFilter.vue
  3. 2
      packages/nc-gui/components/project/spreadsheet/components/sortListMenu.vue

72
packages/nc-gui/assets/style/style.css

@ -114,23 +114,18 @@ html {
overflow: hidden; overflow: hidden;
} }
[v-cloak] { [v-cloak] {
display: none !important; display: none !important;
} }
.v-btn { .v-btn {
margin: 0 2px; margin: 0 2px;
} }
html { html {
overflow-y: auto !important; overflow-y: auto !important;
} }
/* nested expansion panel bug */ /* nested expansion panel bug */
.v-expansion-panel-header { .v-expansion-panel-header {
@ -141,7 +136,6 @@ html {
min-height: 64px !important; min-height: 64px !important;
} }
/* Table validation message */ /* Table validation message */
/*table .v-input__control {*/ /*table .v-input__control {*/
/* position: relative;*/ /* position: relative;*/
@ -152,13 +146,11 @@ html {
/* bottom: -4px;*/ /* bottom: -4px;*/
/*}*/ /*}*/
/*table edit dialog buttons*/ /*table edit dialog buttons*/
.v-small-dialog__actions button span { .v-small-dialog__actions button span {
font-weight: bolder; font-weight: bolder;
} }
/*resizer*/ /*resizer*/
.vertical-resizer { .vertical-resizer {
@ -219,15 +211,25 @@ html {
background: linear-gradient(180deg, black, rgb(55, 55, 55)); background: linear-gradient(180deg, black, rgb(55, 55, 55));
} }
.yellow-orange-gradient { .yellow-orange-gradient {
background: -moz-linear-gradient(left, rgba(241, 231, 103, 1) 0%, rgba(254, 182, 69, 1) 100%); background: -moz-linear-gradient(
background: -webkit-linear-gradient(left, rgba(241, 231, 103, 1) 0%, rgba(254, 182, 69, 1) 100%); left,
background: linear-gradient(to right, rgba(241, 231, 103, 1) 0%, rgba(254, 182, 69, 1) 100%); rgba(241, 231, 103, 1) 0%,
rgba(254, 182, 69, 1) 100%
);
background: -webkit-linear-gradient(
left,
rgba(241, 231, 103, 1) 0%,
rgba(254, 182, 69, 1) 100%
);
background: linear-gradient(
to right,
rgba(241, 231, 103, 1) 0%,
rgba(254, 182, 69, 1) 100%
);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f1e767', endColorstr='#feb645', GradientType=1); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f1e767', endColorstr='#feb645', GradientType=1);
} }
.white-gradient { .white-gradient {
background: linear-gradient(45deg, white, lightskyblue); background: linear-gradient(45deg, white, lightskyblue);
} }
@ -248,7 +250,6 @@ html {
background: linear-gradient(70deg, #fcbb07, #fcbb07); background: linear-gradient(70deg, #fcbb07, #fcbb07);
} }
.img-animation { .img-animation {
animation-name: vibrate; animation-name: vibrate;
animation-duration: 1.5s; animation-duration: 1.5s;
@ -262,7 +263,6 @@ html {
@keyframes vibrate { @keyframes vibrate {
0% { 0% {
transform: translateY(10px); transform: translateY(10px);
} }
100% { 100% {
@ -270,26 +270,21 @@ html {
} }
} }
.search-overlay .v-overlay__content { .search-overlay .v-overlay__content {
height: 100%; height: 100%;
width: 100%; width: 100%;
} }
/* Draggable tree hover color */ /* Draggable tree hover color */
.theme--dark .vtl-tree-node:hover { .theme--dark .vtl-tree-node:hover {
background-color: rgb(94, 94, 94) !important; background-color: rgb(94, 94, 94) !important;
} }
.theme--light .vtl-tree-node:hover { .theme--light .vtl-tree-node:hover {
background-color: rgb(240, 240, 240) !important; background-color: rgb(240, 240, 240) !important;
} }
/*vue tree list icon font */ /*vue tree list icon font */
/*.sql-query-treeview .vtl-icon-folder:before {*/ /*.sql-query-treeview .vtl-icon-folder:before {*/
@ -309,56 +304,61 @@ html {
/*}*/ /*}*/
.sql-query-treeview .vtl-tree-node .vtl-caret{ .sql-query-treeview .vtl-tree-node .vtl-caret {
width:1rem; width: 1rem;
} }
.sql-query-treeview .vtl-tree-node{ .sql-query-treeview .vtl-tree-node {
padding-top: 5px !important; padding-top: 5px !important;
padding-bottom: 5px !important; padding-bottom: 5px !important;
} }
.sql-query-treeview .custom-run-icon{} .sql-query-treeview .custom-run-icon {
}
.sql-editor .v-expansion-panel-header { .sql-editor .v-expansion-panel-header {
min-height: 36px !important; min-height: 36px !important;
padding: 0 0 0 10px; padding: 0 0 0 10px;
} }
.sql-editor .v-expansion-panel-header--active { .sql-editor .v-expansion-panel-header--active {
min-height: 40px !important; min-height: 40px !important;
} }
.api-client .v-expansion-panel-header { .api-client .v-expansion-panel-header {
min-height: 36px !important; min-height: 36px !important;
padding: 0 0 0 10px; padding: 0 0 0 10px;
} }
.api-client .v-expansion-panel-header--active { .api-client .v-expansion-panel-header--active {
min-height: 40px !important; min-height: 40px !important;
} }
.api-treeview .vtl-node-content{ .api-treeview .vtl-node-content {
max-width: calc(100% - 44px); max-width: calc(100% - 44px);
} }
/* for expansion panel content wrapper */ /* for expansion panel content wrapper */
.expansion-wrap-0 .v-expansion-panel-content__wrap{ .expansion-wrap-0 .v-expansion-panel-content__wrap {
padding: 0; padding: 0;
} }
.sql-query-treeview .vtl-operation{ .sql-query-treeview .vtl-operation {
margin-left: 2px !important;; margin-left: 2px !important;
} }
.sql-query-treeview .vtl-tree-node{ .sql-query-treeview .vtl-tree-node {
display: flex; display: flex;
} }
.sql-query-treeview .vtl-node-content{ .sql-query-treeview .vtl-node-content {
flex-grow: 1; flex-grow: 1;
} }
.ignore-height-style table .v-input__control { .ignore-height-style table .v-input__control {
height: auto !important; height: auto !important;
} }
.cursor-pointer{ .cursor-pointer {
cursor: pointer; cursor: pointer;
} }
/* sorting and filter */
.menu-filter-dropdown {
max-height: 500px;
overflow-y: scroll;
}

4
packages/nc-gui/components/project/spreadsheet/components/columnFilter.vue

@ -1,7 +1,7 @@
<template> <template>
<div <div
class="backgroundColor pa-2" class="backgroundColor pa-2 menu-filter-dropdown"
style="width:530px; max-height: 500px; overflow-y:scroll;" style="width:530px;"
> >
<div class="grid" @click.stop> <div class="grid" @click.stop>
<template v-for="(filter,i) in filters" dense> <template v-for="(filter,i) in filters" dense>

2
packages/nc-gui/components/project/spreadsheet/components/sortListMenu.vue

@ -27,7 +27,7 @@
</v-btn> </v-btn>
</v-badge> </v-badge>
</template> </template>
<div class="backgroundColor pa-2" style="min-width: 330px; max-height: 500px; overflow-y:scroll;"> <div class="backgroundColor pa-2 menu-filter-dropdown" style="min-width: 330px;">
<div class="sort-grid" @click.stop> <div class="sort-grid" @click.stop>
<template v-for="(sort,i) in sortList" dense> <template v-for="(sort,i) in sortList" dense>
<v-icon :key="i + 'icon'" class="nc-sort-item-remove-btn" small @click.stop="sortList.splice(i,1)"> <v-icon :key="i + 'icon'" class="nc-sort-item-remove-btn" small @click.stop="sortList.splice(i,1)">

Loading…
Cancel
Save