Avoid using important

This commit is contained in:
Jonathan Frederic 2014-12-10 10:43:51 -08:00
parent bf18e09521
commit f497d06d0c
3 changed files with 16 additions and 12 deletions

View File

@ -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;

View File

@ -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;
} }
} }

View File

@ -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;
} }
} }