Browse Source

polishing

master
Sebastian Heimann 8 months ago
parent
commit
ac4004b228
1 changed files with 41 additions and 12 deletions
  1. +41
    -12
      src/sphinx_sleekcat_theme/themes/sphinx_sleekcat_theme/static/pydoctheme.css_t

+ 41
- 12
src/sphinx_sleekcat_theme/themes/sphinx_sleekcat_theme/static/pydoctheme.css_t View File

@ -199,7 +199,6 @@ div.body tt.xref, div.body a tt {
}
pre, table {
text-shadow: 1px 1px 1px rgba(221, 221, 221, 0.6);
box-shadow: 0px 0px 2px rgba(225, 225, 220, 0.6);
}
@ -244,6 +243,16 @@ table.field-list th, table.field-list td {
padding: 0px;
}
table.field-list th.field-name {
font-weight: normal;
font-style: italic;
margin-bottom: 1em;
}
table.field-list td.field-body {
margin-bottom: 1em;
}
table.field-list td {
margin-left: 30px;
}
@ -256,6 +265,28 @@ table.field-list strong {
color: #7b603c;
}
table.field-list .field-body li > p {
margin-left: 2em;
margin-top: 1em;
}
table.field-list .field-body li > p:first-of-type {
display: inline;
margin: 0px;
}
table.field-list .field-body > ul {
list-style-type: none;
padding-left: 0;
}
table.field-list .field-body li {
padding-left: 2em;
text-indent: -2em;
margin-bottom: 1em;
}
dl.gattribute dt {
white-space: nowrap;
display: inline-block;
@ -278,6 +309,10 @@ dl.gattribute dd p:first-child {
margin: 0px;
}
dd {
margin-top: 1em;
}
dl.method dt,
dl.class dt,
dl.function dt,
@ -310,16 +345,16 @@ div.sphinxsidebar {
}
dl.function, dl.class, dl.exception {
border-bottom: 1px solid #f0f0f0;
/*border-bottom: 1px solid #f0f0f0;*/
}
dl.function:last-child, dl.class:last-child, dl.exception:last-child {
border-bottom: none;
/*border-bottom: none;*/
}
dl.method, dl.attribute, dl.gattribute, dl.classmethod, dl.staticmethod {
border-top: 1px solid #f0f0f0;
padding-top: 15px;
/*border-top: 1px solid #f0f0f0;*/
padding-top: 0.5em;
}
@ -572,13 +607,7 @@ div.related:first-child li.right {
/* seems there some nasty rules in pygments.css, that shouldn't set any background! */
background: inherit !important;
}
/* correct argument descriptions for reference sections */
.field-body li > p:first-of-type {
display: inline-block;
}
.field-body li > p {
margin: 1ex 0;
}
div.badge a {
overflow: hidden;


Loading…
Cancel
Save