A text-based bookmark manager rendered in a web page
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

175 lines
3.1 KiB

11 months ago
/* h1 Name
* h2 Description
* h3 Tags
* h4 Date
* h5 Url
*/
:root {
--font-size:22px;
--font-size-s:calc(var(--font-size) / 1.5);
--line-height:24px;
--gutter:0px;
--padding:2px;
11 months ago
--height:auto;
--color:black;
--selection:purple;
--background:#FFF;
--background-2:#FEFEFE;
--background-bottom:black;
11 months ago
}
/* https://github.com/psb1558/Junicode-font/releases */
11 months ago
@font-face {
font-family: Junicode;
src: url("Junicode-CondLight.otf") format("opentype");
}
@font-face {
font-family: Junicode;
src: url("Junicode-CondLightItalic.otf") format("opentype");
font-style:italic;
}
11 months ago
* {
font-family: Junicode;
font-variant-numeric: lining-nums;
11 months ago
}
h1,h2,h3,h4,h5,p, a {
word-break: break-all;
11 months ago
width:fit-content;
line-height:var(--line-height);
padding:0;
margin:0;
font-weight:normal;
font-size:var(--font-size);
}
nav, section, textarea {
padding: var(--padding) 0;
}
11 months ago
a{
width:100%;
display:block;
color:var(--color);
text-decoration:none;
margin:auto;
}
h5 {
text-decoration:underline }
li:hover a {
color:var(--selection)}
textarea{
position:fixed;
top:0;
left:5px;
z-index:10;
width:calc(100vw - 10px);
font-size:var(--font-size);
height:calc(var(--line-height) + var(--padding));
11 months ago
}
ol {
margin:0;
display:flex;
gap:var(--gutter);
flex-direction:column-reverse;
padding-left: 34px;
}
body {
}
footer {
height:100vh;
margin-top:50vh;
background:linear-gradient( var(--background), var(--background-bottom));
width:calc(100% + 20px - 2px);
margin-left:-10px;
margin-bottom:-10px;
overflow:hidden;
11 months ago
}
li {
font-size:var(--font-size);
color:rgba(0,0,0,0);
height:0;
overflow:hidden
}
.active:nth-of-type(2n){
background:var(--background-2);
}
li,textarea, nav {
box-sizing:border-box;
border:none;
}
.active {
border-bottom: 1px solid black;
height:var(--height);
display:list-item;
color:var(--color);
overflow:visible;
}
h1,h2,a {
overflow-y:scroll;
}
h3{
opacity:.5
}
11 months ago
/*
* h1,h2,h3 {max-width:20px; overflow:hidden}
*/
11 months ago
section{
flex-wrap:wrap;
display:flex;
}
h1 {order: 0;
}
h2 {
font-style:italic}
h5,h2,h3,h4 {
order:3
}
h3::before, h2::before, h1::after{content:'\00a0·\00a0'}
h4 {
margin-left:auto;
11 months ago
}
html{background:white}
nav p {display:inline;
}
nav p:not(:first-of-type)::before{
content:'· '
}
nav p::after{
font-size:var(--font-size-s);
display:inline-block;
transform:translateY(-7px);
content:'\00a0(' attr(count) ')'
}
nav {
border-top: 1px solid black;
border-bottom: 1px solid black;
margin-top:calc(var(--line-height) + 1px + var(--padding));
height:calc(var(--line-height) + var(--padding) * 2);
11 months ago
overflow:hidden;
}
nav:hover {height:auto}
#cc {
display:absolute;
position:fixed;
top:0;
left:0;
z-index:10;
height:100vh;
width:100vw;
pointer-events:none;
background:linear-gradient(0deg, yellow, ivory);
mix-blend-mode:multiply;
/* A color correction pass, enable it by removing this line ↓ */
display:none
}
11 months ago