1
1
Fork 0
forked from fun/fun

Some web style updates for pre and code tags with some new fonts. No code changes. (0.42.2)

This commit is contained in:
Johannes Findeisen 2026-07-25 16:07:33 +02:00
commit b5864fe4bd
20 changed files with 107 additions and 57 deletions

View file

@ -93,62 +93,6 @@ blockquote {
}
}
pre {
background: $grey-color-dark;
/*background-image: -webkit-linear-gradient($grey-color-dark 50%, $grey-color-light 50%);
background-image: -moz-linear-gradient($grey-color-dark 50%, $grey-color-light 50%);
background-image: -ms-linear-gradient($grey-color-dark 50%, $grey-color-light 50%);
background-image: -o-linear-gradient($grey-color-dark 50%, $grey-color-light 50%);
background-image: linear-gradient($grey-color-dark 50%, $grey-color-light 50%);*/
background-position: 0 0;
background-repeat: repeat;
background-size: 2.8em 2.8em;
border: 0px $grey-color solid;
border-radius: 8px;
counter-reset: line-numbering;
font-family: $base-font-family;
font-size: $base-font-size;
// https://stackoverflow.com/questions/5840328/styling-each-line-inside-pre-with-css
line-height: 1.4em;
margin: 0 0 0 0;
overflow: auto;
overflow-x: auto;
padding: 8px;
tab-size: 2;
-moz-tab-size: 2;
}
/*pre::before {
content: counter(linex);
counter-increment: linex;
padding-right: 1em;
width: 1.5em;
text-align: right;
opacity: 0.5;
}*/
/*pre > code {
font-family: $base-font-family;
font-size: $base-font-size;
counter-increment: line;
margin: 0 0 0 0;
padding: 0 0 0 0;
}*/
/**pre > code:before{
content: counter(line);
display: inline-block;
width: 2.0em;
border-right: 1px solid $grey-color;
padding-right: .7em;
margin-right: .7em;
color: #bc6c21;
-webkit-user-select: none;
text-align: right;
}**/
audio {
height: 24px;
width: 100%;