/* Spacing */ div { --spacing: .25em; } /* Separator */ /* Content */ li:first-child:after { /*content: '|';*/ /*content: '\000BB';*/ /* For ยป arrows */ content: ''; border-right: 2px solid; transition: border-right 50ms; margin-right: var(--spacing); } /* Hover effects */ ul:hover li:first-child:after { /*font-weight: bolder;*/ border-right: 4px solid; } /* Link separator */ div { --link-separator: '|'; } /* Colors */ /* Background */ body { background-color: #2a2a2a; } /* Text */ div { --text-color: white; } /* Heading */ h1 { color: #ffe28a; } /* Categories */ ul.wikicol { color: #9ed670; } ul.progcol { color: #6bd2db; } ul.algcol { color: #ebdada; } ul.dmcol { color: #e8702a; } ul.any { color: #ffbe4f; } /* Amount of chars in longest category name + 1 */ li { width: 8ch; } /* Actual code */ body { font-family: 'Inconsolata', monospace; margin: 0; overflow-x: hidden; text-align: center; } h1 { font-size: 8em; margin: 0; text-align: center; } a { color: inherit; text-decoration: none; } ul { padding-left: 0; } li, a { color: var(--text-color); display: inline-block; position: relative; font-size: 1.5em; letter-spacing: normal; transition: color 200ms; } a:hover, li { color: inherit; } li:after { position: absolute; right: 0; height: 1em; } li, h1 { pointer-events: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } li { margin-right: var(--spacing); } a + a:before { content: var(--link-separator); margin-left: var(--spacing); margin-right: var(--spacing); color: var(--text-color); } div { letter-spacing: -1em; text-align: left; display: inline-block; padding-left: 2em; padding-right: 2em; }