page.less
149 lines
| 2.6 KiB
| text/x-less
|
LessCssLexer
Brian E. Granger
|
r4488 | /** | ||
* Primary styles | ||||
* | ||||
* Author: IPython Development Team | ||||
*/ | ||||
body { | ||||
Jonathan Frederic
|
r19660 | background-color: @body-bg; | ||
Brian E. Granger
|
r4488 | /* This makes sure that the body covers the entire window and needs to | ||
be in a different element than the display: box in wrapper below */ | ||||
position: absolute; | ||||
left: 0px; | ||||
right: 0px; | ||||
top: 0px; | ||||
bottom: 0px; | ||||
Brian Granger
|
r6192 | overflow: visible; | ||
Brian E. Granger
|
r4488 | } | ||
Matthias Bussonnier
|
r19953 | #header { | ||
Brian E. Granger
|
r4488 | /* Initially hidden to prevent FLOUC */ | ||
display: none; | ||||
Jonathan Frederic
|
r19179 | background-color: @body-bg; | ||
/* Display over codemirror */ | ||||
Min RK
|
r20176 | position: relative; | ||
Jonathan Frederic
|
r19179 | z-index: 100; | ||
#header-container { | ||||
padding-bottom: 5px; | ||||
Min RK
|
r19298 | padding-top: 5px; | ||
Jonathan Frederic
|
r19179 | .border-box-sizing(); | ||
} | ||||
.header-bar { | ||||
width: 100%; | ||||
Min RK
|
r19902 | height: 1px; | ||
background: @navbar-default-border; | ||||
Jonathan Frederic
|
r20041 | margin-bottom: -1px; | ||
Jonathan Frederic
|
r19179 | } | ||
Jonathan Frederic
|
r19415 | |||
@media print { | ||||
display: none !important; | ||||
} | ||||
Jonathan Frederic
|
r19179 | } | ||
#header-spacer { | ||||
width: 100%; | ||||
visibility: hidden; | ||||
Jonathan Frederic
|
r19415 | |||
@media print { | ||||
display: none; | ||||
} | ||||
Brian E. Granger
|
r4488 | } | ||
MinRK
|
r10906 | #ipython_notebook { | ||
Jonathan Frederic
|
r16937 | padding-left: 0px; | ||
Min RK
|
r19298 | padding-top: (@navbar-height - @logo_height) / 2; | ||
padding-bottom: (@navbar-height - @logo_height) / 2; | ||||
Matthias Bussonnier
|
r19953 | @media (max-width: @screen-sm-max){ | ||
margin-left: 10px; | ||||
} | ||||
Brian E. Granger
|
r4488 | } | ||
Matthias Bussonnier
|
r19953 | |||
Paul Ivanov
|
r10988 | #noscript { | ||
width: auto; | ||||
padding-top: 16px; | ||||
padding-bottom: 16px; | ||||
text-align: center; | ||||
font-size: 22px; | ||||
color: red; | ||||
font-weight: bold; | ||||
} | ||||
MinRK
|
r10906 | #ipython_notebook img { | ||
Min RK
|
r19298 | height: @logo_height; | ||
Brian E. Granger
|
r4488 | } | ||
Brian Granger
|
r6192 | #site { | ||
Brian Granger
|
r6193 | width: 100%; | ||
Brian E. Granger
|
r4488 | display: none; | ||
Matthias BUSSONNIER
|
r17428 | .border-box-sizing(); | ||
Min RK
|
r20050 | overflow: auto; | ||
Min RK
|
r20202 | @media print { | ||
// force auto-height on print (overrides manual resizing in live view) | ||||
height: auto !important; | ||||
} | ||||
Brian E. Granger
|
r4488 | } | ||
Brian Granger
|
r5871 | /* Smaller buttons */ | ||
Brian E. Granger
|
r4488 | .ui-button .ui-button-text { | ||
padding: 0.2em 0.8em; | ||||
font-size: 77%; | ||||
} | ||||
MinRK
|
r5200 | |||
Brian Granger
|
r6192 | input.ui-button { | ||
padding: 0.3em 0.9em; | ||||
} | ||||
MinRK
|
r5200 | span#login_widget { | ||
float: right; | ||||
} | ||||
MinRK
|
r10905 | |||
Matthias BUSSONNIER
|
r17554 | span#login_widget > .button, | ||
#logout | ||||
{ | ||||
Matthias BUSSONNIER
|
r17438 | .btn-default(); | ||
} | ||||
MinRK
|
r10905 | .nav-header { | ||
text-transform: none; | ||||
MinRK
|
r10906 | } | ||
#header > span { | ||||
margin-top: 10px; | ||||
MinRK
|
r10939 | } | ||
MinRK
|
r16022 | // class for stretching dialogs to fill the screen | ||
jon
|
r16933 | .modal_stretch .modal-dialog { | ||
MinRK
|
r16022 | .vbox(); | ||
Min RK
|
r20700 | min-height: 80vh; | ||
MinRK
|
r16022 | .modal-body { | ||
Min RK
|
r20700 | // ~"foo" is to avoid less turning this into a weird value | ||
max-height: calc(~"100vh - 200px"); | ||||
overflow: auto; | ||||
MinRK
|
r16022 | flex: 1; | ||
} | ||||
MinRK
|
r10939 | } | ||
MinRK
|
r15900 | |||
Matthias Bussonnier
|
r19953 | @media (min-width: @screen-sm-min) { | ||
jon
|
r16933 | .modal .modal-dialog { | ||
MinRK
|
r16022 | width: 700px; | ||
} | ||||
MinRK
|
r15900 | } | ||
MinRK
|
r16022 | |||
Matthias BUSSONNIER
|
r17414 | // less mixin to be sure to add the right class to get icons with font awesome. | ||
.icon(@ico){ | ||||
.fa(); | ||||
content: @ico; | ||||
} | ||||
Min RK
|
r20200 | |||
@media (min-width: @screen-sm-min) { | ||||
select.form-control { | ||||
margin-left: @padding-base-horizontal; | ||||
margin-right: @padding-base-horizontal; | ||||
} | ||||
} | ||||