Skip to content

Commit dc2dc14

Browse files
committed
feat: [Request] Add "print-hide/only" helper classes quasarframework#950
1 parent fb62332 commit dc2dc14

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

dev/components/components/ajax-bar.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<template>
22
<div>
33
<q-ajax-bar ref="bar" :position="position" :reverse="reverse" :size="computedSize" />
4+
<div class="print-only">PRINT ONLY</div>
5+
<div class="print-hide">NOT ON PRINT</div>
46
<div class="layout-padding" style="max-width: 600px;">
57
<p class="caption">Ajax Bar component captures Ajax calls automatically. This page here triggers events manually for demonstrating purposes only.</p>
68

src/css/core/visibility.styl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ for type in desktop mobile cordova electron ios mat touch within-iframe platform
7373
.orientation-portrait
7474
display none !important
7575

76+
@media screen
77+
.print-only
78+
display none !important
79+
@media print
80+
.print-hide
81+
display none !important
82+
7683
@media (max-width $breakpoint-xs-max)
7784
.xs-hide, .gt-xs, .sm, .gt-sm, .md, .gt-md, .lg, .gt-lg, .xl
7885
display none !important

0 commit comments

Comments
 (0)