Mercurial > octave
annotate doc/interpreter/octave.css @ 21986:9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
author | Oliver Heimlich <oheim@posteo.de> |
---|---|
date | Tue, 28 Jun 2016 11:10:12 +0200 |
parents | 15517574276a |
children | 02216516bbfe |
rev | line source |
---|---|
21206
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
1 /* |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
2 Copyright (C) 2016 Oliver Heimlich |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
3 |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
4 This file is part of Octave. |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
5 |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
6 Octave is free software; you can redistribute it and/or modify it |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
7 under the terms of the GNU General Public License as published by the |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
8 Free Software Foundation; either version 3 of the License, or (at |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
9 your option) any later version. |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
10 |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
11 Octave is distributed in the hope that it will be useful, but WITHOUT |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
14 for more details. |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
15 |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
16 You should have received a copy of the GNU General Public License |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
17 along with Octave; see the file COPYING. If not, see |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
18 <http://www.gnu.org/licenses/>. |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
19 */ |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
20 |
21986
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
21 /* Import web font Roboto Condensed, Font Library Version 2015-06-06 */ |
21206
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
22 @font-face { font-family: 'Roboto Condensed'; src: local('Roboto Condensed'), |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
23 url('https://fontlibrary.org/assets/fonts/roboto-condensed/71405335c70332d94afd24ae4f06c9b2/4b8b4b377e8cb358cf886d13c7bb287c/RobotoCondensedBold.ttf') format('truetype'); |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
24 font-weight: bold; font-style: normal; } |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
25 @font-face { font-family: 'Roboto Condensed'; src: local('Roboto Condensed'), |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
26 url('https://fontlibrary.org/assets/fonts/roboto-condensed/71405335c70332d94afd24ae4f06c9b2/9b1d05d1b332e5b95ad86e71ca8404fb/RobotoCondensedBoldItalic.ttf') format('truetype'); |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
27 font-weight: bold; font-style: italic; } |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
28 @font-face { font-family: 'Roboto Condensed'; src: local('Roboto Condensed'), |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
29 url('https://fontlibrary.org/assets/fonts/roboto-condensed/71405335c70332d94afd24ae4f06c9b2/d02fffb6890e4f28023dd149916d1b8a/RobotoCondensedItalic.ttf') format('truetype'); |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
30 font-weight: normal; font-style: italic; } |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
31 @font-face { font-family: 'Roboto Condensed'; src: local('Roboto Condensed'), |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
32 url('https://fontlibrary.org/assets/fonts/roboto-condensed/71405335c70332d94afd24ae4f06c9b2/b0b1845ecce8ab6a503971e808a8409c/RobotoCondensedRegular.ttf') format('truetype'); |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
33 font-weight: normal; font-style: normal; } |
21986
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
34 |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
35 /* Import web font Fantasque Sans Mono, Font Library Version 2016-04-05 */ |
21206
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
36 @font-face { font-family: 'Fantasque Sans Mono'; src: local('Fantasque Sans Mono'), |
21986
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
37 url('https://fontlibrary.org/assets/fonts/fantasque-sans-mono/b0cbb25e73a9f8354e96d89524f613e7/a46033d3a07d9385620dc83b7655203f/FantasqueSansMonoBold.ttf') format('truetype'); |
21206
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
38 font-weight: bold; font-style: normal; } |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
39 @font-face { font-family: 'Fantasque Sans Mono'; src: local('Fantasque Sans Mono'), |
21986
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
40 url('https://fontlibrary.org/assets/fonts/fantasque-sans-mono/b0cbb25e73a9f8354e96d89524f613e7/b0683ef4c834908aa372ec78dea42349/FantasqueSansMonoBoldItalic.ttf') format('truetype'); |
21206
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
41 font-weight: bold; font-style: italic; } |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
42 @font-face { font-family: 'Fantasque Sans Mono'; src: local('Fantasque Sans Mono'), |
21986
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
43 url('https://fontlibrary.org/assets/fonts/fantasque-sans-mono/b0cbb25e73a9f8354e96d89524f613e7/b78d0a48e4443f797e8d45dcf97594f7/FantasqueSansMonoItalic.ttf') format('truetype'); |
21206
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
44 font-weight: normal; font-style: italic; } |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
45 @font-face { font-family: 'Fantasque Sans Mono'; src: local('Fantasque Sans Mono'), |
21986
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
46 url('https://fontlibrary.org/assets/fonts/fantasque-sans-mono/b0cbb25e73a9f8354e96d89524f613e7/f3fdc4f0f26e4431f54e8b552d55480c/FantasqueSansMonoRegular.ttf') format('truetype'); |
21206
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
47 font-weight: normal; font-style: normal; } |
21986
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
48 |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
49 /* Use custom fonts */ |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
50 code, kbd, samp, tt, pre { font-family: 'Fantasque Sans Mono', monospace; } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
51 code, kbd, samp, tt { font-style: italic; padding: 0 0.1ex; /* slightly increase margin to surrounding text */ } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
52 body, .sansserif { font-family: 'Roboto Condensed', sans-serif; } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
53 h1, h2, h3, h4, h5, .menu-comment, .roman, .menu-preformatted { font-family: 'Roboto Condensed', serif; } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
54 |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
55 /* |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
56 Use colors from the solarized color theme (sparsely), |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
57 the main text will remain in default colors for optimal readability (black on white). |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
58 */ |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
59 pre.example, .header, .float-caption, hr |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
60 { |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
61 /* base00 ~ body text in light solarized theme */ |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
62 color: #657b83; |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
63 border-color: #657b83; |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
64 } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
65 pre.example |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
66 { |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
67 /* base3 ~ background color in light solarized theme */ |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
68 background-color: #fdf6e3; |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
69 padding: 0.5em; |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
70 } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
71 a { color: #268bd2; /* blue */ } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
72 a:visited { color: #d33682; /* magenta */ } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
73 |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
74 /* Center floating tables and images */ |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
75 .float table, .float img, .float object { margin-left: auto; margin-right: auto; } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
76 |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
77 /* Decrease table width, but not on small screens */ |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
78 .float table { max-width: 38em; } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
79 |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
80 /* Use horizontal lines: above/below tables and after table headers (Chicago Style) */ |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
81 .float table, .float th { border-collapse: collapse; border-top: 1px solid black; border-bottom: 1px solid black; } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
82 .float th, .float td { padding: 0.5em; } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
83 |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
84 /* Use horizontal ruler with double lines */ |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
85 hr { border-width: 0; border-top-width: 3px; border-style: double; } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
86 |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
87 /* Smaller gap between subsequent @group blocks */ |
21206
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
88 .example { margin-bottom: 1em; } |
15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
Oliver Heimlich <oheim@posteo.de>
parents:
diff
changeset
|
89 .example + .example { margin-top: -0.5em } |
21986
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
90 |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
91 /* Smaller gap between definition and its description */ |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
92 dd > p:first-child { margin-top: 0.5em; } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
93 |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
94 /* Limit maximum body width such that text is easier to read */ |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
95 body { max-width: 42em; margin-left: 0.5em; margin-right: 0.5em; } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
96 |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
97 /* On small screens don't indent the code examples to prevent overflow */ |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
98 div.example { margin-left: auto; max-width: 38.8em; } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
99 |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
100 /* |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
101 Use left margin such that text is easier to read, |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
102 but don't sacrifice space on small screens. |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
103 */ |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
104 @media screen and (min-width: 43em) |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
105 { |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
106 /* Smooth transition for screens between 43em and 57em */ |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
107 body { margin-left: auto; margin-right: auto; } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
108 @media (min-width: 57em) |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
109 { |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
110 body { margin-left: 7.5em; } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
111 } |
9e992b9ffc5f
doc/interpreter/octave.css: improve HTML manual readability on small screens (patch #9031).
Oliver Heimlich <oheim@posteo.de>
parents:
21206
diff
changeset
|
112 } |