Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<q-grid caption="Action Bar On Enter"
[rows]="rows | async"
[model]="gridModel"
class="q-grid-embed"
class="q-grid-nohandler"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets call it like q-grid-cell-handler-hide for now

selectionUnit="row">
<q-grid-columns generation="deep">
<q-grid-column type="select"
Expand Down
115 changes: 115 additions & 0 deletions src/theme/material/assets/nohandler.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
$duration: 0.15s;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we put it under existing focus.scss?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I change focuss.scss, it will affect the whole qgrid. As I understood, we need it only in Action Bar On Enter. Is it right?

.q-grid-nohandler,
.q-grid-lcc {
font-family: Roboto;
.q-grid {
.q-grid {
&-title {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

80% of code is redundant, why we need here q-grid-lcc h2 etc?

h2 {
font-size: 24px;
font-weight: normal;
font-style: normal;
text-align: left;
color: #006f8f;
}
}
&-sort {
margin-left: 0px;
}
&-text {
font-size: 13px;
}
&-table {
tr {
height: 30px;
}
th {
font-size: 12px !important;
color: #006f8f !important;
font-weight: normal !important;
line-height: 14px;
&:hover label {
font-weight: normal !important;
}
.q-grid-icon {
line-height: 14px;
font-size: 14px;
}
.q-grid-column-filter-trigger {
line-height: 14px;
height: 14px;
}
.q-grid-sort {
&.q-grid-active {
label {
color: inherit;
}
}
}
&.q-grid-cell-handler {
outline: none;
}
}
td {
font-size: 16px;
line-height: 16px;
font-weight: normal;
outline: none !important;
&.q-grid-text-area {
>span {
white-space: nowrap;
}
}
&.q-grid-array {
li {
padding: 2px 8px;
}
}
&.q-grid-edit {
&.q-grid-row-options {
button {
width: 24px;
height: 24px;
line-height: 24px;
}
}
}
&.q-grid-image {
img {
max-height: 24px;
max-width: 24px;
}
}
}
}
&-legend {
&-list {
font-size: 16px !important;
text-align: left !important;
color: #000000 !important;
}
&-item {
width: 8px !important;
height: 8px !important;
margin-right: 18px !important;
margin-bottom: 2px !important;
}
}
&-progress {
&-linear {
top: -10px;
}
}
&-pager {
padding: 11px 0;
}
&-legend-list {
margin-top: 15px;
}
}
}
}

.q-grid-cell-handler {
outline: none;;
}
2 changes: 2 additions & 0 deletions src/theme/material/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
@import "assets/menu";
@import "assets/mixins";
@import "assets/node";
@import "assets/nohandler";
@import "assets/pager.target";
@import "assets/pager";
@import "assets/progress";
Expand Down Expand Up @@ -66,4 +67,5 @@
}

@import "assets/embed";
@import "assets/nohandler";
@import "assets/dark";