mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(css) add media print
This commit is contained in:
parent
06d737162a
commit
d48b18075a
2 changed files with 29 additions and 18 deletions
|
|
@ -33,21 +33,3 @@ a:focus { outline: thin dotted; }
|
|||
|
||||
/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
|
||||
a:hover, a:active { outline: 0; }
|
||||
|
||||
/* preformatted text */
|
||||
.pre {white-space:pre}
|
||||
|
||||
/* ==== print styles =======================================================
|
||||
Print styles.
|
||||
Inlined to avoid required HTTP connection: h5bp.com/r
|
||||
========================================================================== */
|
||||
|
||||
@media print {
|
||||
* { background: transparent !important;
|
||||
color: black !important; box-shadow:none !important; text-shadow: none !important;
|
||||
filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
|
||||
a, a:visited { text-decoration: underline; }
|
||||
a[href]:after { content: " (" attr(href) ")"; }
|
||||
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
|
||||
@page { margin: 0.5cm; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -340,3 +340,32 @@ a:hover, a:active {
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
.panel {
|
||||
width: 94%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.keyspanel, .panel-right {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.files {
|
||||
overflow-y: visible;
|
||||
}
|
||||
|
||||
.current-file {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.path-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mini-icon {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue