tree.less
323 lines
| 5.9 KiB
| text/x-less
|
LessCssLexer
Brian E. Granger
|
r4488 | |||
/** | ||||
* Primary styles | ||||
* | ||||
* Author: IPython Development Team | ||||
*/ | ||||
Brian E. Granger
|
r15077 | @dashboard_tb_pad: 4px; | ||
@dashboard_lr_pad: 7px; | ||||
Brian E. Granger
|
r15078 | // These are the total heights of the Bootstrap small and mini buttons. These values | ||
// are not less variables so we have to track them statically. | ||||
Jonathan Frederic
|
r16948 | @btn_small_height: 24px; | ||
Brian E. Granger
|
r15078 | @btn_mini_height: 22px; | ||
Jonathan Frederic
|
r16957 | @dark_dashboard_color: @breadcrumb-color; | ||
Brian E. Granger
|
r15077 | |||
Jonathan Frederic
|
r20313 | // The left padding of the selector button's contents. | ||
@dashboard-selectorbtn-lpad: 7px; | ||||
Brian E. Granger
|
r15077 | ul#tabs { | ||
margin-bottom: @dashboard_tb_pad; | ||||
Brian Granger
|
r6196 | } | ||
Brian E. Granger
|
r15077 | ul#tabs a { | ||
Jonathan Frederic
|
r16957 | padding-top: @dashboard_tb_pad + 2px; | ||
Brian E. Granger
|
r15077 | padding-bottom: @dashboard_tb_pad; | ||
Brian E. Granger
|
r4488 | } | ||
Brian E. Granger
|
r15101 | ul.breadcrumb { | ||
a:focus, a:hover { | ||||
text-decoration: none; | ||||
} | ||||
i.icon-home { | ||||
font-size: 16px; | ||||
margin-right: 4px; | ||||
} | ||||
span { | ||||
color: @dark_dashboard_color; | ||||
} | ||||
} | ||||
Brian E. Granger
|
r15077 | .list_toolbar { | ||
padding: @dashboard_tb_pad 0 @dashboard_tb_pad 0; | ||||
Jonathan Frederic
|
r16937 | vertical-align: middle; | ||
.tree-buttons { | ||||
Jonathan Frederic
|
r20041 | padding-top: 1px; | ||
Jonathan Frederic
|
r16937 | } | ||
Brian E. Granger
|
r4491 | } | ||
Jonathan Frederic
|
r20157 | .dynamic-buttons { | ||
display: inline-block; | ||||
} | ||||
Brian E. Granger
|
r15077 | .list_toolbar [class*="span"] { | ||
Brian E. Granger
|
r15078 | min-height: @btn_small_height; | ||
Brian E. Granger
|
r4488 | } | ||
MinRK
|
r10920 | .list_header { | ||
font-weight: bold; | ||||
Mathieu
|
r20246 | background-color: @page-backdrop-color | ||
Brian E. Granger
|
r4488 | } | ||
Peter Parente
|
r20447 | .list_placeholder { | ||
font-weight: bold; | ||||
padding-top: @dashboard_tb_pad; | ||||
padding-bottom: @dashboard_tb_pad; | ||||
padding-left: @dashboard_lr_pad; | ||||
padding-right: @dashboard_lr_pad; | ||||
} | ||||
MinRK
|
r10920 | .list_container { | ||
Brian E. Granger
|
r15077 | margin-top: @dashboard_tb_pad; | ||
Brian E. Granger
|
r15078 | margin-bottom: 5*@dashboard_tb_pad; | ||
Jonathan Frederic
|
r20010 | border: 1px solid @table-border-color; | ||
Jonathan Frederic
|
r19653 | border-radius: @border-radius-base; | ||
MinRK
|
r10919 | } | ||
MinRK
|
r10920 | .list_container > div { | ||
Jonathan Frederic
|
r20010 | border-bottom: 1px solid @table-border-color; | ||
MinRK
|
r10919 | &:hover .list-item{ | ||
background-color: red; | ||||
}; | ||||
} | ||||
MinRK
|
r10920 | .list_container > div:last-child { | ||
MinRK
|
r10919 | border: none; | ||
} | ||||
.list_item { | ||||
&:hover .list_item { | ||||
Jonathan Frederic
|
r20007 | background-color: @table-border-color; | ||
MinRK
|
r10919 | }; | ||
Brian E. Granger
|
r15072 | a {text-decoration: none;} | ||
Mathieu
|
r20254 | &:hover { | ||
background-color: darken(white,2%); | ||||
Mathieu
|
r20246 | } | ||
Brian E. Granger
|
r15077 | } | ||
Jonathan Frederic
|
r16937 | .action_col { | ||
text-align: right; | ||||
} | ||||
Brian E. Granger
|
r15077 | .list_header>div, .list_item>div { | ||
padding-top: @dashboard_tb_pad; | ||||
padding-bottom: @dashboard_tb_pad; | ||||
padding-left: @dashboard_lr_pad; | ||||
padding-right: @dashboard_lr_pad; | ||||
Brian E. Granger
|
r15078 | line-height: @btn_mini_height; | ||
Jonathan Frederic
|
r20157 | |||
input { | ||||
margin-right: @dashboard_lr_pad; | ||||
Jonathan Frederic
|
r20313 | margin-left: @dashboard_lr_pad + @dashboard-selectorbtn-lpad; | ||
Jonathan Frederic
|
r20331 | vertical-align: baseline; | ||
line-height: @btn_mini_height; | ||||
position: relative; | ||||
Matthias Bussonnier
|
r20713 | top: -1px; | ||
Jonathan Frederic
|
r20313 | } | ||
.item_link { | ||||
Jonathan Frederic
|
r20331 | margin-left: -1px; | ||
vertical-align: baseline; | ||||
line-height: @btn_mini_height; | ||||
Jonathan Frederic
|
r20157 | } | ||
MinRK
|
r10919 | } | ||
Jonathan Frederic
|
r20239 | .new-file input[type=checkbox] { | ||
visibility: hidden; | ||||
} | ||||
Brian E. Granger
|
r12802 | .item_name { | ||
Brian E. Granger
|
r15078 | line-height: @btn_mini_height; | ||
height: @btn_small_height; | ||||
Brian E. Granger
|
r12802 | } | ||
Brian E. Granger
|
r15072 | .item_icon { | ||
Brian E. Granger
|
r15077 | font-size: 14px; | ||
Brian E. Granger
|
r15101 | color: @dark_dashboard_color; | ||
Brian E. Granger
|
r15077 | margin-right: @dashboard_lr_pad; | ||
Jonathan Frederic
|
r20331 | margin-left: @dashboard_lr_pad; | ||
line-height: @btn_mini_height; | ||||
vertical-align: baseline; | ||||
MinRK
|
r10919 | } | ||
Brian Granger
|
r6197 | |||
Brian E. Granger
|
r15077 | .item_buttons { | ||
line-height: 1em; | ||||
Jonathan Frederic
|
r20157 | .btn-toolbar(); | ||
Min RK
|
r18929 | .btn { | ||
min-width: 13ex; | ||||
} | ||||
Jonathan Frederic
|
r20157 | .running-indicator { | ||
Jonathan Frederic
|
r20612 | padding-top: @dashboard_tb_pad; | ||
Jonathan Frederic
|
r20157 | color: @brand-success; | ||
} | ||||
Brian E. Granger
|
r4488 | } | ||
Brian E. Granger
|
r15077 | .toolbar_info { | ||
Brian E. Granger
|
r15078 | height: @btn_small_height; | ||
line-height: @btn_small_height; | ||||
Brian E. Granger
|
r4488 | } | ||
Brian E. Granger
|
r15078 | input.nbname_input, input.engine_num_input { | ||
// These settings give these inputs a height that matches @btn_mini_height = 22 | ||||
Brian E. Granger
|
r15077 | padding-top: 3px; | ||
padding-bottom: 3px; | ||||
Jonathan Frederic
|
r16922 | height: @btn_mini_height; | ||
Brian E. Granger
|
r15077 | line-height: 14px; | ||
Brian E. Granger
|
r15072 | margin: 0px; | ||
Brian E. Granger
|
r4491 | } | ||
Brian E. Granger
|
r15078 | input.engine_num_input { | ||
width: 60px; | ||||
} | ||||
Brian E. Granger
|
r4488 | .highlight_text { | ||
color: blue; | ||||
} | ||||
Brian Granger
|
r6194 | |||
Jonathan Frederic
|
r20313 | #project_name { | ||
display: inline-block; | ||||
Jonathan Frederic
|
r20331 | padding-left: @dashboard_lr_pad; | ||
margin-left: -2px; | ||||
Jonathan Frederic
|
r20313 | |||
> .breadcrumb { | ||||
padding: 0px; | ||||
margin-bottom: 0px; | ||||
background-color: transparent; | ||||
font-weight: bold; | ||||
} | ||||
} | ||||
#tree-selector { | ||||
Jonathan Frederic
|
r20331 | padding-right: 0px; | ||
Mathieu
|
r20360 | } | ||
Jonathan Frederic
|
r20331 | |||
Mathieu
|
r20360 | #button-select-all { | ||
min-width: 50px; | ||||
Mathieu
|
r20345 | } | ||
Jonathan Frederic
|
r20331 | |||
Mathieu
|
r20345 | #select-all { | ||
margin-left: @dashboard_lr_pad; | ||||
Mathieu
|
r20360 | margin-right: 2px; | ||
Mathieu
|
r20345 | } | ||
Mathieu
|
r20396 | .menu_icon { | ||
margin-right: 2px; | ||||
Bussonnier Matthias
|
r9275 | } | ||
Matthias BUSSONNIER
|
r9288 | |||
Jonathan Frederic
|
r16920 | .tab-content .row { | ||
margin-left: 0px; | ||||
margin-right: 0px; | ||||
} | ||||
Paul Ivanov
|
r16253 | .folder_icon:before { | ||
Jonathan Frederic
|
r20331 | .icon(@fa-var-folder-o); | ||
Paul Ivanov
|
r16253 | } | ||
Brian E. Granger
|
r15078 | |||
Paul Ivanov
|
r16253 | .notebook_icon:before { | ||
Jonathan Frederic
|
r20331 | .icon(@fa-var-book); | ||
position: relative; | ||||
top: -1px; | ||||
Paul Ivanov
|
r16253 | } | ||
MinRK
|
r17526 | |||
Mathieu
|
r20235 | .running_notebook_icon:before { | ||
.icon(@fa-var-book); | ||||
Jonathan Frederic
|
r20331 | position: relative; | ||
top: -1px; | ||||
color: @brand-success; | ||||
Mathieu
|
r20235 | } | ||
MinRK
|
r17526 | .file_icon:before { | ||
Jonathan Frederic
|
r20331 | .icon(@fa-var-file-o); | ||
position: relative; | ||||
top: -2px; | ||||
MinRK
|
r17526 | } | ||
Min RK
|
r19260 | |||
Jonathan Frederic
|
r20014 | #notebook_toolbar .pull-right { | ||
Jonathan Frederic
|
r20041 | padding-top: 0px; | ||
Jonathan Frederic
|
r20045 | margin-right: -1px; | ||
Jonathan Frederic
|
r20012 | } | ||
Jonathan Frederic
|
r19694 | ul#new-menu { | ||
Min RK
|
r19260 | // align right instead of left | ||
left: auto; | ||||
right: 0; | ||||
Min RK
|
r19262 | } | ||
.kernel-menu-icon { | ||||
padding-right: 12px; | ||||
width: 24px; | ||||
content: @fa-var-square-o; | ||||
} | ||||
.kernel-menu-icon:before { | ||||
content: @fa-var-square-o; | ||||
} | ||||
.kernel-menu-icon-current:before { | ||||
Jonathan Frederic
|
r19655 | content: @fa-var-check; | ||
} | ||||
#tab_content { | ||||
padding-top: @page-header-padding; | ||||
Min RK
|
r19262 | } | ||
Jonathan Frederic
|
r19994 | |||
#running { | ||||
.panel-group{ | ||||
.panel { | ||||
Jonathan Frederic
|
r20009 | margin-top: 3px; | ||
margin-bottom: 1em; | ||||
Jonathan Frederic
|
r19994 | |||
.panel-heading { | ||||
Jonathan Frederic
|
r20005 | background-color: @page-backdrop-color; | ||
Jonathan Frederic
|
r19996 | padding-top: @dashboard_tb_pad; | ||
padding-bottom: @dashboard_tb_pad; | ||||
padding-left: @dashboard_lr_pad; | ||||
padding-right: @dashboard_lr_pad; | ||||
Jonathan Frederic
|
r19997 | line-height: @btn_mini_height; | ||
Jonathan Frederic
|
r20001 | |||
a:focus, a:hover { | ||||
text-decoration: none; | ||||
} | ||||
Jonathan Frederic
|
r19994 | } | ||
.panel-body { | ||||
padding: 0px; | ||||
.list_container { | ||||
margin-top: 0px; | ||||
margin-bottom: 0px; | ||||
border: 0px; | ||||
border-radius: 0px; | ||||
.list_item { | ||||
Jonathan Frederic
|
r20007 | border-bottom: 1px solid @table-border-color; | ||
Jonathan Frederic
|
r19998 | |||
&:last-child { | ||||
border-bottom: 0px; | ||||
} | ||||
Jonathan Frederic
|
r19994 | } | ||
} | ||||
} | ||||
} | ||||
} | ||||
} | ||||
Jonathan Frederic
|
r20157 | |||
.delete-button { | ||||
display: none; | ||||
} | ||||
.duplicate-button { | ||||
display: none; | ||||
} | ||||
.rename-button { | ||||
display: none; | ||||
} | ||||
.shutdown-button { | ||||
display: none; | ||||
} | ||||