gnu-social/public/assets/css/reset.css

461 lines
7.6 KiB
CSS

/* link underlines tend to make hypertext less readable,
because underlines obscure the shapes of the lower halves of words */
:link, :visited {
text-decoration: none
}
/* no list-markers by default, since lists are used more often for semantics */
ul, ol {
list-style: none
}
/* avoid browser default inconsistent heading font-sizes */
/* and pre/code too */
h1, h2, h3, h4, h5, h6, pre, code {
font-size: 1rem;
}
/* remove the inconsistent (among browsers) default ul,ol padding or margin */
/* the default spacing on headings does not match nor align with
normal interline spacing at all, so let's get rid of it. */
/* zero out the spacing around pre, form, body, html, p, blockquote as well */
/* form elements are oddly inconsistent, and not quite CSS emulatable. */
/* nonetheless strip their margin and padding as well */
ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote, fieldset, input, textarea {
margin: 0;
padding: 0;
border: none;
}
/* whoever thought blue linked image borders were a good idea? */
a img, :link img, :visited img {
border: none;
}
/* de-italicize address */
address {
font-style: normal;
}
/* firefox focus outline */
:focus {
outline: none;
}
::-moz-focus-inner {
border: 0;
}
form {
all: unset;
}
/* details element arrow */
details > summary {
list-style: none;
}
details > summary::-webkit-details-marker {
display: none;
}
/* have IE ignore the detail elements altogether */
@supports not (-ms-ime-align: auto) {
details summary {
cursor: pointer;
}
}
abbr[title] {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
code,
kbd,
samp,
pre {
font-family: monospace, monospace;
font-size: 1em;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
button,
input,
optgroup,
select,
textarea {
line-height: inherit;
border: unset;
}
button {
overflow: visible;
text-transform: none;
}
button,
[type=button],
[type=reset],
[type=submit] {
-webkit-appearance: button;
padding: 0.1em 0.5em;
float: right;
}
input {
overflow: visible;
}
input,
textarea {
padding: 1px;
}
fieldset {
border: unset;
margin: 0 2px;
}
legend {
color: inherit;
display: table;
max-width: 100%;
white-space: normal;
}
progress {
display: inline-block;
vertical-align: baseline;
}
select {
text-transform: none;
}
textarea {
overflow: auto;
vertical-align: top;
}
textarea:hover,
textarea:focus {
border: solid 2px var(--bg3) !important;
}
[type=search] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type=color] {
background: inherit;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
height: auto;
}
::-webkit-input-placeholder {
color: inherit;
opacity: 0.5;
}
::-webkit-search-decoration,
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
::-moz-focus-inner {
border: 0;
}
:-moz-focusring {
outline: 1px dotted ButtonText;
}
:-moz-ui-invalid {
box-shadow: none;
}
hr {
box-sizing: content-box;
height: 0;
color: inherit;
overflow: visible;
}
dl,
ol,
ul {
margin: 1em 0;
}
ol ol,
ol ul,
ol dl,
ul ol,
ul ul,
ul dl,
dl ol,
dl ul,
dl dl {
margin: 0;
}
b,
strong {
font-weight: bolder;
}
audio,
video {
display: inline-block;
}
audio:not([controls]) {
display: none;
height: 0;
}
img {
border: 0;
}
svg:not(:root) {
overflow: hidden;
}
table {
text-indent: 0;
border-color: inherit;
}
details {
display: block;
}
dialog {
background-color: inherit;
border: solid;
color: inherit;
display: block;
height: -webkit-fit-content;
height: -moz-fit-content;
height: fit-content;
left: 0;
margin: auto;
padding: 1em;
position: absolute;
right: 0;
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content;
}
dialog:not([open]) {
display: none;
}
summary {
cursor: default !important;
display: list-item;
}
canvas {
display: inline-block;
}
template {
display: none;
}
[hidden] {
display: none;
}
* {
box-sizing: border-box;
}
/* TYPOGRAPHY AND GENERAL SELECTORS */
body,
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-attachment: fixed;
color: var(--white);
font-family: var(--main-font);
}
h1 {
font-family: var(--display-font);
font-size: var(--main-size);
font-weight: 900;
opacity: 1.00;
letter-spacing: -0.40px;
word-spacing: 4.00px;
}
h2 {
font-family: var(--display-font);
font-size: var(--medium-size);
font-weight: 800;
letter-spacing: -0.75px;
word-spacing: 3.00px;
text-transform: none;
}
h3 {
font-family: var(--display-font);
font-size: var(--medium-size);
font-weight: 600;
line-height: 1.00;
letter-spacing: -0.20px;
word-spacing: 1.00px;
text-transform: none;
}
p {
font-family: var(--main-font);
font-size: var(--medium-size);
font-weight: 400;
letter-spacing: -0.30px;
word-spacing: -0.10px;
margin-bottom: var(--small-size);
text-transform: none;
}
ul {
text-decoration: none;
margin: 0;
padding: 0;
list-style: none;
}
li {
margin: 0;
padding: 0;
}
a:link {
text-decoration: none;
color: var(--white);
outline: 0;
}
a:visited {
text-decoration: none;
color: var(--white);
outline: 0;
margin: 0;
padding: 0;
}
a:focus,
a:hover {
border-radius: var(--unit-size);
background: var(--white);
color: var(--bg1) !important;
padding: 0 var(--unit-size) 0 var(--unit-size);
transition: var(--cubic-transition);
}
figcaption a:link {
font-size: var(--small-size);
color: var(--white);
}
input[type=file] {
max-width: 100%;
}
button,
input[type=file]::file-selector-button {
font-family: var(--display-font) ;
font-size: var(--medium-size);
padding: .2em .4em;
border-radius: var(--unit-size);
border: 2px solid var(--bg2);
background-color: var(--translucent);
color: var(--white);
transition: var(--cubic-transition);
cursor: pointer;
}
input[type=file]::-ms-browse,
input[type=file]::-webkit-file-upload-button {
font-family: var(--display-font);
font-size: var(--medium-size);
padding: .2em .4em;
border-radius: var(--unit-size);
border: 2px solid var(--bg2);
background-color: var(--translucent);
color: var(--white);
transition: var(--cubic-transition);
}
button:hover,
button:focus,
input[type=file]:hover,
input[type=file]:focus,
input[type=file]:hover::file-selector-button,
input[type=file]:focus::file-selector-button {
border-radius: var(--unit-size);
border: 2px solid var(--white);
background-color: var(--white);
color: var(--bg2);
}
input[type=file]::-webkit-file-upload-button:hover,
input[type=file]::-ms-browse:hover,
input[type=file]::-webkit-file-upload-button:focus,
input[type=file]::-ms-browse:focus {
border: 2px solid var(--white);
background-color: var(--white);
color: var(--bg2);
}
button {
align-self: end;
}
input[type=file],
input[type="checkbox"],
input[type="radio"] {
cursor: pointer;
}
summary:hover > svg,
summary:focus > svg {
border-radius: var(--unit-size);
background-color: var(--white);
fill: var(--bg1);
border: 2px solid var(--white);
transition: var(--cubic-transition);
}
hr {
all: unset;
display: block;
height: 2px;
background: var(--translucent);
}