browsh/webext/assets/styles.css
Thomas Buckley-Houston ad64b4f0a3 Remove all text-decoration underlines
These don't dissapear when using the blank font, so they can sometimes
cause a little bit of blur behind link text.
2018-06-05 16:16:57 +08:00

62 lines
1.3 KiB
CSS

@font-face {
/* A special font that only has unicode full blocks in it, so we can detect */
/* font colors and text visibility more easily. */
font-family: 'BlockCharMono';
src: url('/assets/BlockCharMono.ttf') format('truetype');
}
@font-face {
font-family: 'BlankMono';
src: url('/assets/BlankMono.ttf') format('truetype');
}
/* Force text into a reliable grid */
html * {
font-size: 15px !important;
line-height: 20px !important;
letter-spacing: 0px !important;
font-style: normal !important;
font-weight: normal !important;
}
a {
text-decoration: none !important;
}
.browsh-hide-text,
.browsh-hide-text *,
html * {
font-family: 'BlankMono' !important;
}
.browsh-show-text,
.browsh-show-text * {
font-family: 'BlockCharMono' !important;
}
/* Simulate emphasis because terminals don't usually support bold, italic, etc */
b, em, strong {
filter: brightness(10%);
}
sup, sub {
vertical-align: baseline !important;
}
/* Prevents duplicated text caused by the rendering of the DOM's input box content
* and the CLI app's input box content */
input, textarea {
color: transparent !important;
}
/**
* Site-specific fixes
*
* TODO: This is going to need to be much more formally organised
*/
/* Stackoverflow cookie banner */
#js-gdpr-consent-banner {
display: none;
}