gnu-social/public/assets/default_theme/css/widgets/buttons.css

153 lines
3.5 KiB
CSS
Raw Normal View History

input {
all: unset;
}
input[type=checkbox] {
display: inline-block;
cursor: pointer;
width: 1em !important;
height: 1em !important;
background: var(--accent) !important;
}
input[type=checkbox]:not(:hover, :focus) {
background: var(--foreground) !important;
}
input[type=checkbox] {
border: unset !important;
}
input[type=radio] {
display: inline-block;
width: var(--s) !important;
height: var(--s) !important;
padding-right: 4px !important;
background: var(--foreground);
box-shadow: inset 0 0 0 2px var(--foreground) !important;
border-radius: 50%;
}
input[type=radio]:checked {
background: var(--background-hard);
box-shadow: inset 0 0 0 2px var(--accent) !important;
}
input[type=file] {
all: unset;
display: block;
font-family: 'Open Sans', sans-serif !important;
font-weight: normal !important;
padding: unset !important;
border-radius: var(--s);
background: var(--gradient) !important;
}
input[type=checkbox] {
background-size: contain !important;
margin-right: 4px !important;
-webkit-mask-image: url("../../icons/check-off.svg") !important;
-o-mask-image: url("../../icons/check-off.svg") !important;
-moz-mask-image: url("../../icons/check-off.svg") !important;
mask-image: url("../../icons/check-off.svg") !important;
}
input[type=checkbox]:checked {
-webkit-mask-image: url("../../icons/check-on.svg") !important;
-o-mask-image: url("../../icons/check-on.svg") !important;
-moz-mask-image: url("../../icons/check-on.svg") !important;
mask-image: url("../../icons/check-on.svg") !important;
}
input[type=color] {
appearance: none;
width: var(--xxl);
height: var(--xxl);
background-color: transparent;
border: none;
cursor: pointer;
}
input[type=color]::-webkit-color-swatch {
border-radius: var(--s);
border: none;
}
input[type=color]::-moz-color-swatch {
border-radius: var(--s);
border: none;
}
::file-selector-button {
cursor: pointer;
background-color: unset;
border: unset;
font-family: 'Open Sans', sans-serif !important;
font-weight: bold !important;
color: var(--foreground);
fill: var(--foreground);
margin: 3px;
}
*|*::-moz-button-content {
all: unset !important;
}
button {
display: block !important;
cursor: pointer !important;
margin-left: auto !important;
margin-top: var(--s);
}
.alert button {
cursor: pointer !important;
margin-top: unset !important;
border-color: tomato !important;
}
button, label {
font-family: 'Poppins', sans-serif;
font-weight: bold !important;
color: currentColor;
}
select::-ms-expand {
display: none;
}
button, input, select, textarea {
display: inline-block;
overflow: hidden;
font-size: inherit;
line-height: initial !important;
padding: 6px 8px !important;
border-radius: var(--s);
border: 2px solid var(--border) !important;
width: auto;
max-width: border-box !important;
}
button, select, textarea {
background: var(--gradient) !important;
}
button, input:not([type=checkbox], [type=radio]) {
background: var(--gradient) !important;
}
select {
cursor: pointer;
background-repeat: no-repeat;
border-radius: var(--s);
2021-10-29 18:14:39 +01:00
max-width: 100% !important;
}
2021-11-29 17:50:30 +00:00
select[multiple] {
overflow-y: scroll;
height: 20rem;
}
button:focus, button:hover, input:focus, input:hover, select:focus, select:hover, textarea:focus, textarea:hover {
box-shadow: var(--shadow-inset-accent) !important;
}