Skip to content

Commit

Permalink
Better printing
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Jan 11, 2025
1 parent f51a32d commit b960d41
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
10 changes: 5 additions & 5 deletions grid/grid.view.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@
padding: var(--mol_gap_text);
white-space: nowrap;
vertical-align: middle;
box-shadow: inset 1px 1px 0 0 var(--mol_theme_line);
box-shadow: inset 2px 2px 0 -1px var(--mol_theme_line);
}

[mol_grid_row]:where(:first-child) > * {
box-shadow: inset 1px 0 0 0 var(--mol_theme_line);
box-shadow: inset 2px 0 0 -1px var(--mol_theme_line);
}

[mol_grid_table] > * > *:where(:first-child) {
box-shadow: inset 0px 1px 0 0 var(--mol_theme_line);
box-shadow: inset 0px 2px 0 -1px var(--mol_theme_line);
}

[mol_grid_head] > * {
box-shadow: inset 1px -1px 0 0 var(--mol_theme_line);
box-shadow: inset 2px -2px 0 -1px var(--mol_theme_line);
}

[mol_grid_head] > *:where(:first-child) {
box-shadow: inset 0px -1px 0 0 var(--mol_theme_line);
box-shadow: inset 0px -2px 0 -1px var(--mol_theme_line);
}

[mol_grid_table] > [mol_grid_row]:where(:first-child) > *:where(:first-child) {
Expand Down
15 changes: 15 additions & 0 deletions page/page.view.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ namespace $.$$ {
shadow: [[ 0, `0.5rem`, `0.5rem`, `-0.5rem`, hsla( 0, 0, 0, .25 ) ]],
},
zIndex: 2,

'@media': {
'print': {
box: {
shadow: [[ 0, `1px`, 0, 0, hsla( 0, 0, 0, .25 ) ]],
},
},
},

},

Title: {
Expand Down Expand Up @@ -78,6 +87,12 @@ namespace $.$$ {
alignItems: 'flex-start',
flexWrap: 'wrap',

'@media': {
'print': {
display: 'none',
},
},

},

Body: {
Expand Down

0 comments on commit b960d41

Please sign in to comment.