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

175 lines
4.4 KiB
CSS
Raw Normal View History

input {
all: unset;
}
input[type=checkbox],input[type=radio] {
all: unset;
display: inline-block;
cursor: pointer !important;
2021-10-06 07:29:46 +09:00
width: 1rem !important;
height: 1rem !important;
background: var(--accent) !important;
}
input[type=checkbox]:not(:hover,:focus),input[type=radio]:not(:hover,:focus) {
background: var(--foreground) !important;
}
input[type=checkbox],input[type=radio] {
border: unset !important;
}
input[type=radio] {
background: var(--background-hard) !important;
}
input[type=radio] {
-webkit-border-radius: 50% !important;
-moz-border-radius: 50% !important;
border-radius: 50% !important;
margin: 3px 3px 0 5px !important;
}
input[type=file] {
all: unset;
display: block;
font-family: 'Open Sans',sans-serif !important;
font-weight: normal !important;
padding: unset !important;
-webkit-border-radius: .6rem;
-moz-border-radius: .6rem;
border-radius: .6rem;
background: var(--gradient) !important;
}
input[type=radio] {
border: solid .25em !important;
}
input[type=checkbox] {
-webkit-background-size: 100%;
-moz-background-size: 100%;
-o-background-size: 100%;
background-size: 100%;
margin-right: 2px;
-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] {
border: unset;
padding: 2px;
width: 100%;
height: 3rem;
}
::-webkit-file-upload-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;
}
::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;
}
::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;
2021-11-17 04:40:07 +09:00
margin-top: var(--smaller);
}
button,label {
font-family: 'Poppins',sans-serif;
font-weight: bold !important;
color: currentColor;
}
select::-ms-expand {
display: none;
}
button,input,select,textarea {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;/* For IE <= 11 */
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: -moz-inline-box;
display: inline-flex;
overflow: hidden;
font-size: inherit;
padding: 6px 8px !important;
-webkit-border-radius: .6rem;
-moz-border-radius: .6rem;
border-radius: .6rem;
border: 2px solid var(--border) !important;
-webkit-box-shadow: var(--shadow);
-moz-box-shadow: var(--shadow);
box-shadow: var(--shadow);
width: inherit;
max-width: border-box !important;
}
button, select, textarea {
background: var(--gradient) !important;
}
button,input:not([type=checkbox], [type=radio]) {
background: var(--gradient) !important;
}
select {
-webkit-appearance: none !important;
-moz-appearance: none !important;
cursor: pointer;
background-repeat: no-repeat;
-webkit-border-radius: .6rem;
-moz-border-radius: .6rem;
border-radius: .6rem;
2021-10-30 02:14:39 +09:00
max-width: 100% !important;
}
select>option {
2021-10-30 02:14:39 +09:00
width: 1px;
}
2021-10-06 07:29:46 +09:00
button:focus,button:hover,input:focus,input:hover,select:focus,select:hover,textarea:focus,textarea:hover {
-webkit-box-shadow: var(--shadow-inset-accent) !important;
-moz-box-shadow: var(--shadow-inset-accent) !important;
box-shadow: var(--shadow-inset-accent) !important;
}