mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
Avoid using important
This commit is contained in:
parent
bf18e09521
commit
f497d06d0c
@ -8,10 +8,18 @@ div.cell {
|
|||||||
|
|
||||||
&.selected {
|
&.selected {
|
||||||
border-color: @border_color;
|
border-color: @border_color;
|
||||||
|
/* Don't border the cells when printing */
|
||||||
|
@media print {
|
||||||
|
border-color: transparent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.edit_mode {
|
&.edit_mode {
|
||||||
border-color: green;
|
border-color: green;
|
||||||
|
/* Don't border the cells when printing */
|
||||||
|
@media print {
|
||||||
|
border-color: transparent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -21,13 +29,6 @@ div.cell {
|
|||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Don't border the cells when printing */
|
|
||||||
@media print {
|
|
||||||
div.cell {
|
|
||||||
border-color: transparent !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
div.prompt {
|
div.prompt {
|
||||||
/* This needs to be wide enough for 3 digit prompt numbers: In[100]: */
|
/* This needs to be wide enough for 3 digit prompt numbers: In[100]: */
|
||||||
min-width: 15ex;
|
min-width: 15ex;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* avoid page breaking on code cells when printing */
|
div.code_cell {
|
||||||
@media print {
|
/* avoid page breaking on code cells when printing */
|
||||||
div.code_cell {
|
@media print {
|
||||||
page-break-inside: avoid;
|
page-break-inside: avoid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -90,11 +90,14 @@ p {
|
|||||||
|
|
||||||
.notebook_app #header {
|
.notebook_app #header {
|
||||||
.box-shadow(@notebook-shadow);
|
.box-shadow(@notebook-shadow);
|
||||||
|
@media print {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide the header when printing */
|
/* Hide the header when printing */
|
||||||
@media print {
|
@media print {
|
||||||
#header, #header-spacer {
|
#header-spacer {
|
||||||
display: none !important;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user