converts irc logs to html files that look like discord
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.
 
 
 
 

143 lines
2.3 KiB

html {
font-family: sans-serif;
padding: 2px;
/* NOTE: When chaging, also update pfp_size in src/main.tsx */
--pfp-size: 48px;
--font-size: 14pt;
--ts-font-size: calc(var(--font-size) - 2pt);
}
body {
font-size: var(--font-size);
padding-left: 0.8em;
width: 90vw;
}
.mg-user {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
margin-top: 0.75em;
margin-bottom: 0.75em;
}
.mg-pfp {
margin-right: 0.75em;
}
.mg-user > .mg-pfp > img {
clip-path: url(#squircle);
}
.mg-user > .mg-contents {
display: flex;
flex-direction: column;
align-items: flex-start;
min-height: var(--pfp-size);
gap: 0.33em;
}
.mg-user > .mg-contents > .mg-ts-u > .mg-ts-u-u {
font-weight: bold;
}
.mg-user > .mg-contents > .mg-ts-u > .mg-ts-u-ts {
font-weight: lighter;
color: #666;
font-size: var(--ts-font-size);
}
.mg-user > .mg-contents > .mg-m .mg-ts {
display: none;
}
.mg-user > .mg-contents > .mg-m:hover .mg-ts {
display: unset;
position: absolute;
margin-left: calc(-1 * var(--pfp-size) - 0.75em);
font-size: var(--ts-font-size);
font-weight: lighter;
color: #666;
}
.mg-m > .mg-action {
font-style: italic;
}
.mg-no-user > .mg-status {
margin-top: 1em;
margin-bottom: 1em;
font-size: 0pt;
font-weight: bold;
}
.mg-no-user > .mg-status > .mg-ts {
font-size: 12pt;
width: var(--pfp-size);
display: inline-block;
margin-right: 14px;
}
.mg-no-user > .mg-status > .mg-txt {
font-size: var(--font-size);
}
.mg-sep {
height: 0;
border-top: 1px dotted #666;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
margin-top: 1em;
margin-bottom: 1em;
}
.mg-sep > span {
height: var(--font-size);
background-color: white;
padding-left: 0.5em;
padding-right: 0.5em;
}
@media only screen and (max-width: 768px) {
body {
padding-left: 0;
}
.mg-status {
font-weight: normal;
}
.mg-status > .mg-txt {
font-style: italic;
}
}
.mg-redacted {
height: var(--pfp-height);
width: 100%;
background-color: black;
color: red;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin-top: 0.1em;
margin-bottom: 0.1em;
font-weight: bold;
font-size: calc(1.2 * var(--font-size));
}