view mercurial/templates/static/style-extra-coal.css @ 37492:8d05938dd063

hgweb: make followlines button absolutely positioned It used to have position: absolute only on annotate page, but it makes sense to have it everywhere, because the button shouldn't affect other elements at all. Especially since the button has a set height, which meant that for certain smaller fonts source lines were changing their height on hover. Note that the button doesn't set any of the usual properties that accompany absolute position (top, right, bottom or left). These properties would position the button without any account for source line padding. Instead, margins are used (the button already has all margins defined, they do the job).
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 08 Apr 2018 20:53:07 +0800
parents c258f4d2bfb2
children
line wrap: on
line source

body {
    background: black url('background.png') repeat-x;
}

.container {
    padding-left: 0;
    padding-right: 150px;
}

.main {
    padding: 2em;
    border-right: 15px solid black;
    border-bottom: 15px solid black;
}

.menu {
    background: #999;
    padding: 10px;
    width: 75px;
    position: fixed;
    top: 27px;
    left: auto;
    right: 27px;
}

.menu ul {
    border-left: 0;
}

.menu li.active {
    font-weight: normal;
    background: black;
    color: white;
}

.menu li.active a {
    color: white;
}

h3 {
    margin-top: -.7em;
}

div.description {
    border-left-width: 3px;
}