##// END OF EJS Templates
rework css media-query...
Matthias Bussonnier -
Show More
@@ -17,7 +17,7 b' body {'
17 overflow: visible;
17 overflow: visible;
18 }
18 }
19
19
20 div#header {
20 #header {
21 /* Initially hidden to prevent FLOUC */
21 /* Initially hidden to prevent FLOUC */
22 display: none;
22 display: none;
23 background-color: @body-bg;
23 background-color: @body-bg;
@@ -55,8 +55,13 b' div#header {'
55 padding-left: 0px;
55 padding-left: 0px;
56 padding-top: (@navbar-height - @logo_height) / 2;
56 padding-top: (@navbar-height - @logo_height) / 2;
57 padding-bottom: (@navbar-height - @logo_height) / 2;
57 padding-bottom: (@navbar-height - @logo_height) / 2;
58 @media (max-width: @screen-sm-max){
59 margin-left: 10px;
60 }
58 }
61 }
59
62
63
64
60 #noscript {
65 #noscript {
61 width: auto;
66 width: auto;
62 padding-top: 16px;
67 padding-top: 16px;
@@ -115,7 +120,7 b' span#login_widget > .button,'
115 }
120 }
116 }
121 }
117
122
118 @media (min-width: 768px) {
123 @media (min-width: @screen-sm-min) {
119 .modal .modal-dialog {
124 .modal .modal-dialog {
120 width: 700px;
125 width: 700px;
121 }
126 }
@@ -8,7 +8,8 b''
8 @breadcrumb-color: darken(@border_color, 30%);
8 @breadcrumb-color: darken(@border_color, 30%);
9 @blockquote-font-size: inherit;
9 @blockquote-font-size: inherit;
10 @modal-inner-padding: 15px;
10 @modal-inner-padding: 15px;
11 @grid-float-breakpoint: 540px;
11 @grid-float-breakpoint: 541px;
12 @screen-xs: 540px;
12 @logo_height: 28px;
13 @logo_height: 28px;
13 @border-radius-small: 1px;
14 @border-radius-small: 1px;
14 @border-radius-base: 2px;
15 @border-radius-base: 2px;
@@ -51,3 +52,8 b' label {'
51 @page-backdrop-color: #EEE;
52 @page-backdrop-color: #EEE;
52 @page-color: @body-bg;
53 @page-color: @body-bg;
53 @page-padding: 15px;
54 @page-padding: 15px;
55
56 // preven container size to jump from 768px to 720px
57 // when window width go from 768 to 769+
58 @container-sm : @screen-sm-min;
59
@@ -41,7 +41,7 b' div.prompt {'
41 line-height: @code_line_height;
41 line-height: @code_line_height;
42 }
42 }
43
43
44 @media (max-width: 480px) {
44 @media (max-width: @screen-xs-min) {
45 // prompts are in the main column on small screens,
45 // prompts are in the main column on small screens,
46 // so text should be left-aligned
46 // so text should be left-aligned
47 div.prompt {
47 div.prompt {
@@ -94,7 +94,7 b' div.unrecognized_cell {'
94 }
94 }
95 }
95 }
96 }
96 }
97 @media (max-width: 480px) {
97 @media (max-width: @screen-xs-min) {
98 // remove prompt indentation on small screens
98 // remove prompt indentation on small screens
99 div.unrecognized_cell > div.prompt {
99 div.unrecognized_cell > div.prompt {
100 display: none;
100 display: none;
@@ -14,7 +14,7 b' div.input {'
14 .hbox();
14 .hbox();
15 }
15 }
16
16
17 @media (max-width: 480px) {
17 @media (max-width: @screen-xs-min) {
18 // move prompts above code on small screens
18 // move prompts above code on small screens
19 div.input {
19 div.input {
20 .vbox();
20 .vbox();
@@ -9,6 +9,9 b''
9
9
10 .navbar-toggle {
10 .navbar-toggle {
11 float: left;
11 float: left;
12 padding-top:7px;
13 padding-bottom:7px;
14 border:none;
12 }
15 }
13 .navbar-collapse {
16 .navbar-collapse {
14 clear: left;
17 clear: left;
@@ -1,4 +1,4 b''
1 @media (max-width: 767px) {
1 @media (max-width: @screen-xs-max) {
2 // remove bootstrap-responsive's body padding on small screens
2 // remove bootstrap-responsive's body padding on small screens
3 .notebook_app {
3 .notebook_app {
4 padding-left: 0px;
4 padding-left: 0px;
@@ -72,7 +72,7 b' div.output_area {'
72 .vbox();
72 .vbox();
73 }
73 }
74
74
75 @media (max-width: 480px) {
75 @media (max-width: @screen-xs-min) {
76 // move prompts above output on small screens
76 // move prompts above output on small screens
77 div.output_area {
77 div.output_area {
78 .vbox();
78 .vbox();
@@ -187,4 +187,4 b' div.output_unrecognized {'
187 text-decoration: none;
187 text-decoration: none;
188 }
188 }
189 }
189 }
190 } No newline at end of file
190 }
@@ -21,7 +21,7 b' span.checkpoint_status, span.autosave_status {'
21 font-size: small;
21 font-size: small;
22 }
22 }
23
23
24 @media (max-width: 767px) {
24 @media (max-width: @screen-xs-max) {
25 span.save_widget {
25 span.save_widget {
26 font-size: small;
26 font-size: small;
27 }
27 }
@@ -30,7 +30,7 b' span.checkpoint_status, span.autosave_status {'
30 }
30 }
31 }
31 }
32
32
33 @media (min-width: 768px) and (max-width: 979px) {
33 @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
34 span.checkpoint_status {
34 span.checkpoint_status {
35 display: none;
35 display: none;
36 }
36 }
@@ -40,3 +40,4 b' span.checkpoint_status, span.autosave_status {'
40 }
40 }
41
41
42
42
43
@@ -2,7 +2,7 b' div.text_cell {'
2 padding: 5px 5px 5px 0px;
2 padding: 5px 5px 5px 0px;
3 .hbox();
3 .hbox();
4 }
4 }
5 @media (max-width: 480px) {
5 @media (max-width: @screen-xs-min) {
6 // remove prompt indentation on small screens
6 // remove prompt indentation on small screens
7 div.text_cell > div.prompt {
7 div.text_cell > div.prompt {
8 display: none;
8 display: none;
@@ -393,7 +393,7 b' div.prompt {'
393 /* This has to match that of the the CodeMirror class line-height below */
393 /* This has to match that of the the CodeMirror class line-height below */
394 line-height: 1.21429em;
394 line-height: 1.21429em;
395 }
395 }
396 @media (max-width: 480px) {
396 @media (max-width: 540px) {
397 div.prompt {
397 div.prompt {
398 text-align: left;
398 text-align: left;
399 }
399 }
@@ -467,7 +467,7 b' div.unrecognized_cell .inner_cell a:hover {'
467 color: inherit;
467 color: inherit;
468 text-decoration: none;
468 text-decoration: none;
469 }
469 }
470 @media (max-width: 480px) {
470 @media (max-width: 540px) {
471 div.unrecognized_cell > div.prompt {
471 div.unrecognized_cell > div.prompt {
472 display: none;
472 display: none;
473 }
473 }
@@ -498,7 +498,7 b' div.input {'
498 flex-direction: row;
498 flex-direction: row;
499 align-items: stretch;
499 align-items: stretch;
500 }
500 }
501 @media (max-width: 480px) {
501 @media (max-width: 540px) {
502 div.input {
502 div.input {
503 /* Old browsers */
503 /* Old browsers */
504 display: -webkit-box;
504 display: -webkit-box;
@@ -841,7 +841,7 b' div.output_area .rendered_html img {'
841 flex-direction: column;
841 flex-direction: column;
842 align-items: stretch;
842 align-items: stretch;
843 }
843 }
844 @media (max-width: 480px) {
844 @media (max-width: 540px) {
845 div.output_area {
845 div.output_area {
846 /* Old browsers */
846 /* Old browsers */
847 display: -webkit-box;
847 display: -webkit-box;
@@ -1130,7 +1130,7 b' div.text_cell {'
1130 flex-direction: row;
1130 flex-direction: row;
1131 align-items: stretch;
1131 align-items: stretch;
1132 }
1132 }
1133 @media (max-width: 480px) {
1133 @media (max-width: 540px) {
1134 div.text_cell > div.prompt {
1134 div.text_cell > div.prompt {
1135 display: none;
1135 display: none;
1136 }
1136 }
@@ -1248,7 +1248,7 b' dt {'
1248 dd {
1248 dd {
1249 margin-left: 0;
1249 margin-left: 0;
1250 }
1250 }
1251 @media (min-width: 540px) {
1251 @media (min-width: 541px) {
1252 .dl-horizontal dt {
1252 .dl-horizontal dt {
1253 float: left;
1253 float: left;
1254 width: 160px;
1254 width: 160px;
@@ -1384,7 +1384,7 b' pre code {'
1384 }
1384 }
1385 @media (min-width: 768px) {
1385 @media (min-width: 768px) {
1386 .container {
1386 .container {
1387 width: 720px;
1387 width: 768px;
1388 }
1388 }
1389 }
1389 }
1390 @media (min-width: 992px) {
1390 @media (min-width: 992px) {
@@ -3289,7 +3289,7 b' tbody.collapse.in {'
3289 bottom: 100%;
3289 bottom: 100%;
3290 margin-bottom: 1px;
3290 margin-bottom: 1px;
3291 }
3291 }
3292 @media (min-width: 540px) {
3292 @media (min-width: 541px) {
3293 .navbar-right .dropdown-menu {
3293 .navbar-right .dropdown-menu {
3294 left: auto;
3294 left: auto;
3295 right: 0;
3295 right: 0;
@@ -3821,12 +3821,12 b' select[multiple].input-group-sm > .input-group-btn > .btn {'
3821 margin-bottom: 18px;
3821 margin-bottom: 18px;
3822 border: 1px solid transparent;
3822 border: 1px solid transparent;
3823 }
3823 }
3824 @media (min-width: 540px) {
3824 @media (min-width: 541px) {
3825 .navbar {
3825 .navbar {
3826 border-radius: 2px;
3826 border-radius: 2px;
3827 }
3827 }
3828 }
3828 }
3829 @media (min-width: 540px) {
3829 @media (min-width: 541px) {
3830 .navbar-header {
3830 .navbar-header {
3831 float: left;
3831 float: left;
3832 }
3832 }
@@ -3842,7 +3842,7 b' select[multiple].input-group-sm > .input-group-btn > .btn {'
3842 .navbar-collapse.in {
3842 .navbar-collapse.in {
3843 overflow-y: auto;
3843 overflow-y: auto;
3844 }
3844 }
3845 @media (min-width: 540px) {
3845 @media (min-width: 541px) {
3846 .navbar-collapse {
3846 .navbar-collapse {
3847 width: auto;
3847 width: auto;
3848 border-top: 0;
3848 border-top: 0;
@@ -3869,7 +3869,7 b' select[multiple].input-group-sm > .input-group-btn > .btn {'
3869 .navbar-fixed-bottom .navbar-collapse {
3869 .navbar-fixed-bottom .navbar-collapse {
3870 max-height: 340px;
3870 max-height: 340px;
3871 }
3871 }
3872 @media (max-device-width: 480px) and (orientation: landscape) {
3872 @media (max-device-width: 540px) and (orientation: landscape) {
3873 .navbar-fixed-top .navbar-collapse,
3873 .navbar-fixed-top .navbar-collapse,
3874 .navbar-fixed-bottom .navbar-collapse {
3874 .navbar-fixed-bottom .navbar-collapse {
3875 max-height: 200px;
3875 max-height: 200px;
@@ -3882,7 +3882,7 b' select[multiple].input-group-sm > .input-group-btn > .btn {'
3882 margin-right: 0px;
3882 margin-right: 0px;
3883 margin-left: 0px;
3883 margin-left: 0px;
3884 }
3884 }
3885 @media (min-width: 540px) {
3885 @media (min-width: 541px) {
3886 .container > .navbar-header,
3886 .container > .navbar-header,
3887 .container-fluid > .navbar-header,
3887 .container-fluid > .navbar-header,
3888 .container > .navbar-collapse,
3888 .container > .navbar-collapse,
@@ -3895,7 +3895,7 b' select[multiple].input-group-sm > .input-group-btn > .btn {'
3895 z-index: 1000;
3895 z-index: 1000;
3896 border-width: 0 0 1px;
3896 border-width: 0 0 1px;
3897 }
3897 }
3898 @media (min-width: 540px) {
3898 @media (min-width: 541px) {
3899 .navbar-static-top {
3899 .navbar-static-top {
3900 border-radius: 0;
3900 border-radius: 0;
3901 }
3901 }
@@ -3907,7 +3907,7 b' select[multiple].input-group-sm > .input-group-btn > .btn {'
3907 left: 0;
3907 left: 0;
3908 z-index: 1030;
3908 z-index: 1030;
3909 }
3909 }
3910 @media (min-width: 540px) {
3910 @media (min-width: 541px) {
3911 .navbar-fixed-top,
3911 .navbar-fixed-top,
3912 .navbar-fixed-bottom {
3912 .navbar-fixed-bottom {
3913 border-radius: 0;
3913 border-radius: 0;
@@ -3936,7 +3936,7 b' select[multiple].input-group-sm > .input-group-btn > .btn {'
3936 .navbar-brand > img {
3936 .navbar-brand > img {
3937 display: block;
3937 display: block;
3938 }
3938 }
3939 @media (min-width: 540px) {
3939 @media (min-width: 541px) {
3940 .navbar > .container .navbar-brand,
3940 .navbar > .container .navbar-brand,
3941 .navbar > .container-fluid .navbar-brand {
3941 .navbar > .container-fluid .navbar-brand {
3942 margin-left: 0px;
3942 margin-left: 0px;
@@ -3966,7 +3966,7 b' select[multiple].input-group-sm > .input-group-btn > .btn {'
3966 .navbar-toggle .icon-bar + .icon-bar {
3966 .navbar-toggle .icon-bar + .icon-bar {
3967 margin-top: 4px;
3967 margin-top: 4px;
3968 }
3968 }
3969 @media (min-width: 540px) {
3969 @media (min-width: 541px) {
3970 .navbar-toggle {
3970 .navbar-toggle {
3971 display: none;
3971 display: none;
3972 }
3972 }
@@ -3979,7 +3979,7 b' select[multiple].input-group-sm > .input-group-btn > .btn {'
3979 padding-bottom: 10px;
3979 padding-bottom: 10px;
3980 line-height: 18px;
3980 line-height: 18px;
3981 }
3981 }
3982 @media (max-width: 539px) {
3982 @media (max-width: 540px) {
3983 .navbar-nav .open .dropdown-menu {
3983 .navbar-nav .open .dropdown-menu {
3984 position: static;
3984 position: static;
3985 float: none;
3985 float: none;
@@ -4001,7 +4001,7 b' select[multiple].input-group-sm > .input-group-btn > .btn {'
4001 background-image: none;
4001 background-image: none;
4002 }
4002 }
4003 }
4003 }
4004 @media (min-width: 540px) {
4004 @media (min-width: 541px) {
4005 .navbar-nav {
4005 .navbar-nav {
4006 float: left;
4006 float: left;
4007 margin: 0;
4007 margin: 0;
@@ -4075,7 +4075,7 b' select[multiple].input-group-sm > .input-group-btn > .btn {'
4075 top: 0;
4075 top: 0;
4076 }
4076 }
4077 }
4077 }
4078 @media (max-width: 539px) {
4078 @media (max-width: 540px) {
4079 .navbar-form .form-group {
4079 .navbar-form .form-group {
4080 margin-bottom: 5px;
4080 margin-bottom: 5px;
4081 }
4081 }
@@ -4083,7 +4083,7 b' select[multiple].input-group-sm > .input-group-btn > .btn {'
4083 margin-bottom: 0;
4083 margin-bottom: 0;
4084 }
4084 }
4085 }
4085 }
4086 @media (min-width: 540px) {
4086 @media (min-width: 541px) {
4087 .navbar-form {
4087 .navbar-form {
4088 width: auto;
4088 width: auto;
4089 border: 0;
4089 border: 0;
@@ -4122,14 +4122,14 b' select[multiple].input-group-sm > .input-group-btn > .btn {'
4122 margin-top: 6px;
4122 margin-top: 6px;
4123 margin-bottom: 6px;
4123 margin-bottom: 6px;
4124 }
4124 }
4125 @media (min-width: 540px) {
4125 @media (min-width: 541px) {
4126 .navbar-text {
4126 .navbar-text {
4127 float: left;
4127 float: left;
4128 margin-left: 0px;
4128 margin-left: 0px;
4129 margin-right: 0px;
4129 margin-right: 0px;
4130 }
4130 }
4131 }
4131 }
4132 @media (min-width: 540px) {
4132 @media (min-width: 541px) {
4133 .navbar-left {
4133 .navbar-left {
4134 float: left !important;
4134 float: left !important;
4135 float: left;
4135 float: left;
@@ -4198,7 +4198,7 b' select[multiple].input-group-sm > .input-group-btn > .btn {'
4198 background-color: #e7e7e7;
4198 background-color: #e7e7e7;
4199 color: #555555;
4199 color: #555555;
4200 }
4200 }
4201 @media (max-width: 539px) {
4201 @media (max-width: 540px) {
4202 .navbar-default .navbar-nav .open .dropdown-menu > li > a {
4202 .navbar-default .navbar-nav .open .dropdown-menu > li > a {
4203 color: #777777;
4203 color: #777777;
4204 }
4204 }
@@ -4294,7 +4294,7 b' fieldset[disabled] .navbar-default .btn-link:focus {'
4294 background-color: #080808;
4294 background-color: #080808;
4295 color: #ffffff;
4295 color: #ffffff;
4296 }
4296 }
4297 @media (max-width: 539px) {
4297 @media (max-width: 540px) {
4298 .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {
4298 .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {
4299 border-color: #080808;
4299 border-color: #080808;
4300 }
4300 }
@@ -8267,27 +8267,27 b' body {'
8267 bottom: 0px;
8267 bottom: 0px;
8268 overflow: visible;
8268 overflow: visible;
8269 }
8269 }
8270 div#header {
8270 #header {
8271 /* Initially hidden to prevent FLOUC */
8271 /* Initially hidden to prevent FLOUC */
8272 display: none;
8272 display: none;
8273 background-color: #ffffff;
8273 background-color: #ffffff;
8274 /* Display over codemirror */
8274 /* Display over codemirror */
8275 z-index: 100;
8275 z-index: 100;
8276 }
8276 }
8277 div#header #header-container {
8277 #header #header-container {
8278 padding-bottom: 5px;
8278 padding-bottom: 5px;
8279 padding-top: 5px;
8279 padding-top: 5px;
8280 box-sizing: border-box;
8280 box-sizing: border-box;
8281 -moz-box-sizing: border-box;
8281 -moz-box-sizing: border-box;
8282 -webkit-box-sizing: border-box;
8282 -webkit-box-sizing: border-box;
8283 }
8283 }
8284 div#header .header-bar {
8284 #header .header-bar {
8285 width: 100%;
8285 width: 100%;
8286 height: 1px;
8286 height: 1px;
8287 background: #e7e7e7;
8287 background: #e7e7e7;
8288 }
8288 }
8289 @media print {
8289 @media print {
8290 div#header {
8290 #header {
8291 display: none !important;
8291 display: none !important;
8292 }
8292 }
8293 }
8293 }
@@ -8305,6 +8305,11 b' div#header .header-bar {'
8305 padding-top: 1px;
8305 padding-top: 1px;
8306 padding-bottom: 1px;
8306 padding-bottom: 1px;
8307 }
8307 }
8308 @media (max-width: 991px) {
8309 #ipython_notebook {
8310 margin-left: 10px;
8311 }
8312 }
8308 #noscript {
8313 #noscript {
8309 width: auto;
8314 width: auto;
8310 padding-top: 16px;
8315 padding-top: 16px;
@@ -8840,7 +8845,7 b' div.prompt {'
8840 /* This has to match that of the the CodeMirror class line-height below */
8845 /* This has to match that of the the CodeMirror class line-height below */
8841 line-height: 1.21429em;
8846 line-height: 1.21429em;
8842 }
8847 }
8843 @media (max-width: 480px) {
8848 @media (max-width: 540px) {
8844 div.prompt {
8849 div.prompt {
8845 text-align: left;
8850 text-align: left;
8846 }
8851 }
@@ -8914,7 +8919,7 b' div.unrecognized_cell .inner_cell a:hover {'
8914 color: inherit;
8919 color: inherit;
8915 text-decoration: none;
8920 text-decoration: none;
8916 }
8921 }
8917 @media (max-width: 480px) {
8922 @media (max-width: 540px) {
8918 div.unrecognized_cell > div.prompt {
8923 div.unrecognized_cell > div.prompt {
8919 display: none;
8924 display: none;
8920 }
8925 }
@@ -8945,7 +8950,7 b' div.input {'
8945 flex-direction: row;
8950 flex-direction: row;
8946 align-items: stretch;
8951 align-items: stretch;
8947 }
8952 }
8948 @media (max-width: 480px) {
8953 @media (max-width: 540px) {
8949 div.input {
8954 div.input {
8950 /* Old browsers */
8955 /* Old browsers */
8951 display: -webkit-box;
8956 display: -webkit-box;
@@ -9288,7 +9293,7 b' div.output_area .rendered_html img {'
9288 flex-direction: column;
9293 flex-direction: column;
9289 align-items: stretch;
9294 align-items: stretch;
9290 }
9295 }
9291 @media (max-width: 480px) {
9296 @media (max-width: 540px) {
9292 div.output_area {
9297 div.output_area {
9293 /* Old browsers */
9298 /* Old browsers */
9294 display: -webkit-box;
9299 display: -webkit-box;
@@ -9577,7 +9582,7 b' div.text_cell {'
9577 flex-direction: row;
9582 flex-direction: row;
9578 align-items: stretch;
9583 align-items: stretch;
9579 }
9584 }
9580 @media (max-width: 480px) {
9585 @media (max-width: 540px) {
9581 div.text_cell > div.prompt {
9586 div.text_cell > div.prompt {
9582 display: none;
9587 display: none;
9583 }
9588 }
@@ -10272,6 +10277,9 b' select[multiple].celltoolbar select {'
10272 }
10277 }
10273 #menubar .navbar-toggle {
10278 #menubar .navbar-toggle {
10274 float: left;
10279 float: left;
10280 padding-top: 7px;
10281 padding-bottom: 7px;
10282 border: none;
10275 }
10283 }
10276 #menubar .navbar-collapse {
10284 #menubar .navbar-collapse {
10277 clear: left;
10285 clear: left;
@@ -10808,7 +10816,7 b' span.autosave_status {'
10808 display: none;
10816 display: none;
10809 }
10817 }
10810 }
10818 }
10811 @media (min-width: 768px) and (max-width: 979px) {
10819 @media (min-width: 768px) and (max-width: 991px) {
10812 span.checkpoint_status {
10820 span.checkpoint_status {
10813 display: none;
10821 display: none;
10814 }
10822 }
General Comments 0
You need to be logged in to leave comments. Login now