Skip to content

Commit

Permalink
Merge pull request #205 from minrk/revert-style
Browse files Browse the repository at this point in the history
Revert custom themes
  • Loading branch information
Carreau committed Jul 15, 2015
2 parents df7a270 + 3a750da commit 7395c8a
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 121 deletions.
2 changes: 1 addition & 1 deletion notebook/static/base/less/page.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ body {
#header-spacer {
width: 100%;
visibility: hidden;

@media print {
display: none;
}
Expand Down
16 changes: 8 additions & 8 deletions notebook/static/notebook/less/ansicolors.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@

/* use dark versions for foreground, to improve visibility */
.ansiblack {color: black;}
.ansired {color: @ansired;}
.ansigreen {color: @ansigreen;}
.ansired {color: darkred;}
.ansigreen {color: darkgreen;}
.ansiyellow {color: #c4a000;}
.ansiblue {color: @ansiblue;}
.ansiblue {color: darkblue;}
.ansipurple {color: darkviolet;}
.ansicyan {color: @ansicyan;}
.ansicyan {color: steelblue;}
.ansigray {color: gray;}

/* and light for background, for the same reason */
.ansibgblack {background-color: black;}
.ansibgred {background-color: darken(@ansired, 20%);}
.ansibggreen {background-color: darken(@ansigreen, 20%);}
.ansibgred {background-color: red;}
.ansibggreen {background-color: green;}
.ansibgyellow {background-color: yellow;}
.ansibgblue {background-color: darken(@ansiblue, 20%);}
.ansibgblue {background-color: blue;}
.ansibgpurple {background-color: magenta;}
.ansibgcyan {background-color: darken(@ansicyan, 20%);;}
.ansibgcyan {background-color: cyan;}
.ansibggray {background-color: gray;}
6 changes: 3 additions & 3 deletions notebook/static/notebook/less/cell.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ div.cell {
}

.edit_mode &.selected {
border-color: @color-muted-5;
border-color: green;
/* Don't border the cells when printing */
@media print {
border-color: transparent;
Expand All @@ -37,7 +37,7 @@ div.cell {
margin: 0px;
font-family: @font-family-monospace;
text-align: right;
/* This has to match that of the the CodeMirror class line-height below */
/* This has to match that of the the CodeMirror class line-height below */
line-height: @code_line_height;
}

Expand Down Expand Up @@ -82,7 +82,7 @@ div.unrecognized_cell {
// from text_cell
padding: 5px 5px 5px 0px;
.hbox();

.inner_cell {
.border-radius(@border-radius-base);
padding: 5px;
Expand Down
20 changes: 9 additions & 11 deletions notebook/static/notebook/less/highlight.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Adapted from GitHub theme

@import (reference) "highlight-refs.less";

@highlight-base: #000;

.highlight-base{
color: @highlight-base;
}
Expand All @@ -24,24 +26,24 @@ Adapted from GitHub theme
}

.highlight-string{
color: @highlight-string;
color: #BA2121;
}

.highlight-comment{
color: @color-muted-5;
color: #408080;
font-style: italic;
}

.highlight-number{
color: @color-accent-3;
color: #080;
}

.highlight-atom{
color: #88F;
}

.highlight-keyword{
color: @highlight-keyword;
color: #008000;
font-weight: bold;
}

Expand All @@ -50,24 +52,20 @@ Adapted from GitHub theme
}

.highlight-error{
color: @highlight-error;
color: #f00;
}

.highlight-operator{
color: @color-accent-1;
color: #AA22FF;
font-weight: bold;
}

.highlight-meta{
color: #AA22FF;
}

.highlight-cursor {
border-left: 1px solid @color-muted-6;
}

/* previously not defined, copying from default codemirror */
.highlight-def{ color: @color-accent-2; }
.highlight-def{ .cm-s-default.cm-def() }
.highlight-punctuation{ .cm-s-default.cm-punctuation() }
.highlight-property{ .cm-s-default.cm-property() }
.highlight-string-2{ .cm-s-default.cm-string-2() }
Expand Down
8 changes: 4 additions & 4 deletions notebook/static/notebook/less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
@notebook_line_height: 20px;
@code_line_height: 1.21429em; // changed from 1.231 to get 17px even
@code_padding: 0.4em; // 5.6 px
@rendered_html_border_color: @color-muted-3;
@input_prompt_color: @color-accent-1;
@output_prompt_color: @color-accent-2;
@output_pre_color: @color-muted-6;
@rendered_html_border_color: black;
@input_prompt_color: navy;
@output_prompt_color: darkred;
@output_pre_color: black;
@notification_widget_bg: rgba(240, 240, 240, 0.5);
3 changes: 0 additions & 3 deletions notebook/static/style/ipython.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
@import "../components/bootstrap/less/variables.less";
@import "../components/bootstrap/less/mixins.less";

// theme
@import "../themes/theme.less";

// minimal imports from font-awesome
@import "../components/font-awesome/less/variables.less";

Expand Down
3 changes: 0 additions & 3 deletions notebook/static/style/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,3 @@

// terminal
@import "../terminal/less/terminal.less";

// theme
@import "../themes/theme.less";
26 changes: 0 additions & 26 deletions notebook/static/themes/default.less

This file was deleted.

25 changes: 0 additions & 25 deletions notebook/static/themes/eighties.less

This file was deleted.

32 changes: 0 additions & 32 deletions notebook/static/themes/theme.less

This file was deleted.

10 changes: 5 additions & 5 deletions notebook/static/tree/less/tree.less
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ul.breadcrumb {
font-size: 16px;
margin-right: 4px;
}

span {
color: @dark_dashboard_color;
}
Expand All @@ -59,7 +59,7 @@ ul.breadcrumb {

.list_header {
font-weight: bold;
background-color: @page-backdrop-color;
background-color: @page-backdrop-color
}

.list_placeholder {
Expand Down Expand Up @@ -94,7 +94,7 @@ ul.breadcrumb {
};
a {text-decoration: none;}
&:hover {
background-color: @table-border-highlight;
background-color: darken(white,2%);
}
}

Expand Down Expand Up @@ -131,7 +131,7 @@ ul.breadcrumb {
}

.item_icon {
font-size: 14px;
font-size: 14px;
color: @dark_dashboard_color;
margin-right: @dashboard_lr_pad;
margin-left: @dashboard_lr_pad;
Expand Down Expand Up @@ -271,7 +271,7 @@ ul#new-menu {
padding-left: @dashboard_lr_pad;
padding-right: @dashboard_lr_pad;
line-height: @btn_mini_height;

a:focus, a:hover {
text-decoration: none;
}
Expand Down

0 comments on commit 7395c8a

Please sign in to comment.