github.com/xiaq/elvish@v0.12.0/website/assets/elvish.css (about) 1 /* elv.sh-specific stylings. */ 2 3 a { 4 color: #0645ad; 5 } 6 7 a:visited { 8 color: #0b0080; 9 } 10 11 /* Used to several places. */ 12 .no-display { 13 display: none !important; 14 } 15 16 #blog-title { 17 cursor: default; 18 } 19 20 #blog-title a { 21 color: white; 22 text-decoration: none; 23 cursor: default; 24 } 25 26 #blog-title a.command { 27 color: #5b5; 28 } 29 30 .toc { 31 background-color: #f0f0f0; 32 padding: 1em; 33 margin: 0 16px 16px 0; 34 border-radius: 6px; 35 } 36 37 /* The first <h1> clears the TOC */ 38 .article-content h1 { 39 clear: both; 40 } 41 42 #toc-list { 43 margin-left: -0.6em; 44 } 45 46 @media (min-width: 600px) and (max-width: 899px) { 47 #toc-list { 48 column-count: 2; 49 } 50 } 51 52 @media (min-width: 900px) { 53 #toc-list { 54 column-count: 3; 55 } 56 } 57 58 59 #toc-list li { 60 list-style: none; 61 /* Keep first-level ToC within one column */ 62 break-inside: avoid; 63 } 64 65 pre.ttyshot { 66 font-size: 12pt; 67 line-height: 1 !important; 68 border: 1px solid black; 69 display: inline-block; 70 margin-bottom: 0 !important; 71 } 72 73 pre.ttyshot, pre.ttyshot code { 74 background-color: white; 75 } 76 77 @media screen and (max-width: 600px) { 78 pre.ttyshot { 79 font-size: 2.6vw; 80 } 81 } 82 83 /* Keys */ 84 .key { 85 display: inline-block; 86 border: 1px solid black; 87 border-radius: 3px; 88 padding: 0 2px; 89 margin: 1px; 90 font-size: 85%; 91 } 92 93 /* Code highlights. */ 94 .sgr-1 { 95 font-weight: bold; 96 } 97 .sgr-7 { 98 color: white; 99 background-color: black; 100 } 101 .sgr-31 { 102 color: darkred; /* red in tty */ 103 } 104 .sgr-41 { 105 background-color: darkred; /* red in tty */ 106 } 107 .sgr-32 { 108 color: green; /* green in tty */ 109 } 110 .sgr-42, .sgr-7.sgr-32 { 111 background-color: green; /* green in tty */ 112 } 113 .sgr-33 { 114 color: goldenrod; /* yellow in tty */ 115 } 116 .sgr-43, .sgr-7.sgr-33 { 117 background-color: goldenrod; /* yellow in tty */ 118 } 119 .sgr-34 { 120 color: blue; 121 } 122 .sgr-44, .sgr-7.sgr-34 { 123 color: white; /* Hacky hacky, just to make the nav ttyshot work */ 124 background-color: blue; 125 } 126 .sgr-35 { 127 color: darkorchid; /* magenta in tty */ 128 } 129 .sgr-45, .sgr-7.sgr-35 { 130 background-color: darkorchid; /* magenta in tty */ 131 } 132 .sgr-36 { 133 color: darkcyan; /* cyan in tty */ 134 } 135 .sgr-46, .sgr-7.sgr-36 { 136 background-color: darkcyan; /* cyan in tty */ 137 } 138 .sgr-37 { 139 color: lightgray; 140 } 141 .sgr-47, .sgr-7.sgr-37 { 142 background-color: gray; 143 }