page.less
124 lines
| 2.1 KiB
| text/x-less
|
LessCssLexer
Brian E. Granger
|
r4488 | /** | ||
* Primary styles | ||||
* | ||||
* Author: IPython Development Team | ||||
*/ | ||||
body { | ||||
background-color: white; | ||||
/* 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 | } | ||
div#header { | ||||
/* Initially hidden to prevent FLOUC */ | ||||
display: none; | ||||
Jonathan Frederic
|
r19179 | background-color: @body-bg; | ||
/* Display over codemirror */ | ||||
z-index: 100; | ||||
#header-container { | ||||
padding-left: 30px; | ||||
padding-bottom: 5px; | ||||
Min RK
|
r19298 | padding-top: 5px; | ||
Jonathan Frederic
|
r19179 | .border-box-sizing(); | ||
} | ||||
.header-bar { | ||||
width: 100%; | ||||
height: 0px; | ||||
border-bottom: 1px solid @navbar-default-border; | ||||
} | ||||
} | ||||
#header-spacer { | ||||
width: 100%; | ||||
visibility: hidden; | ||||
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; | ||||
Brian E. Granger
|
r4488 | } | ||
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 { | ||
Brian E. Granger
|
r4488 | font-family: Verdana, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; | ||
Min RK
|
r19298 | height: @logo_height; | ||
text-decoration: none; | ||||
Brian E. Granger
|
r4488 | color: black; | ||
} | ||||
Brian Granger
|
r6192 | #site { | ||
Brian Granger
|
r6193 | width: 100%; | ||
Brian E. Granger
|
r4488 | display: none; | ||
Matthias BUSSONNIER
|
r17428 | .border-box-sizing(); | ||
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(); | ||
jon
|
r16933 | min-height: 80%; | ||
MinRK
|
r16022 | .modal-body { | ||
max-height: none; | ||||
flex: 1; | ||||
} | ||||
MinRK
|
r10939 | } | ||
MinRK
|
r15900 | |||
@media (min-width: 768px) { | ||||
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; | ||||
} | ||||