Skip to content

Commit 34d6338

Browse files
authored
Merge pull request #2846 from jreklund/ug-fixed-width
Improve readability in the userguide with a fixed size
2 parents 0c4725d + 7bfd7fa commit 34d6338

2 files changed

Lines changed: 9 additions & 17 deletions

File tree

user_guide_src/source/_static/css/citheme.css

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@ body, p, legend {
8989
}
9090

9191
.wy-nav-content {
92-
background-attachment: fixed;
9392
background-image: url('../img/ci-background.png');
9493
background-position: bottom right;
9594
background-repeat: no-repeat;
96-
background-size: contain;
95+
background-size: 200px;
9796
}
9897

9998
/* Titles ------------------------------------------------------------------- */
@@ -211,7 +210,6 @@ div#pulldown-menu {
211210

212211
.wy-side-nav-search a {
213212
color: #ffffff;
214-
font-family: "Railway", "Helvetica", "Arial", sans-serif;
215213
}
216214

217215
.wy-side-nav-search input[type=text] {
@@ -231,7 +229,7 @@ div#pulldown-menu {
231229
}
232230

233231
.wy-nav-content {
234-
max-width: none;
232+
max-width: 900px;
235233
}
236234

237235
.wy-nav-content-wrap a, .wy-nav-content-wrap a:visited {
@@ -260,13 +258,7 @@ div#pulldown-menu {
260258

261259
/* override table width restrictions */
262260
.wy-table-responsive table td, .wy-table-responsive table th {
263-
white-space: normal;
264-
}
265-
266-
.wy-table-responsive {
267-
margin-bottom: 24px;
268-
max-width: 100%;
269-
overflow: visible;
261+
white-space: pre;
270262
}
271263

272264
.rst-content dl:not(.docutils) dt {

user_guide_src/source/outgoing/localization.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ You might name it simply: **Errors.php**.
115115

116116
Within the file, you would return an array, where each element in the array has a language key and can have string to return::
117117

118-
'language_key' => 'The actual message to be shown.'
118+
'language_key' => 'The actual message to be shown.'
119119

120-
It also support nested definition:
120+
It also support nested definition::
121121

122-
'language_key' => [
123-
'nested' => [
124-
'key' => 'The actual message to be shown.'
125-
],
122+
'language_key' => [
123+
'nested' => [
124+
'key' => 'The actual message to be shown.'
126125
],
126+
],
127127

128128
.. note:: It's good practice to use a common prefix for all messages in a given file to avoid collisions with
129129
similarly named items in other files. For example, if you are creating error messages you might prefix them

0 commit comments

Comments
 (0)