Ignore:
Timestamp:
Jan 15, 2020, 12:36:27 PM (5 years ago)
Author:
Mikhail Kirillov <w96k@…>
Branches:
master
Children:
8cb4e85
Parents:
67c57a8
Message:

Fix table of contents visually

File:
1 edited

Legend:

Unmodified
Added
Removed
  • public/css/custom.css

    r67c57a8 r5acf481  
    9696#table-of-contents {
    9797    z-index: 1050;
    98     font-size: 10pt;
     98    font-size: 12pt;
    9999    position: fixed;
    100     right: calc(var(--universal-margin) + 0.5em);
     100    right: calc(var(--universal-margin));
    101101    top: calc(var(--universal-margin) + 0.5em);
    102102    background: #fefefe;
     
    104104    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    105105    border: none;
    106     max-height: 80%;
     106    max-height: calc(100% - 2 * (var(--universal-margin) + 0.5em) - 9.6em);
    107107    overflow: auto;
    108108}
     
    120120
    121121#text-table-of-contents ul {
    122     margin: 0 1em;
     122    margin: 0 0 0 1em;
     123}
     124
     125#text-table-of-contents > ul {
     126    margin: 0 1em 0 2em;
    123127}
    124128
     
    129133
    130134#table-of-contents #text-table-of-contents {
    131     display: none;
     135    display: block;
    132136    text-align: left;
    133 }
    134 
    135 #table-of-contents:hover #text-table-of-contents {
    136     display:block;
    137     padding: none;
    138     margin: 0;
    139     padding: 0;
     137    max-width: 40ch;
    140138}
    141139
     
    163161    padding: 0 var(--universal-padding);   
    164162}
     163
     164nav * {
     165    padding: 0.1em 0;
     166}
Note: See TracChangeset for help on using the changeset viewer.