forked from GNUsocial/gnu-social
[IMAGES][CSS] Dropdown image added for use in select boxes background. Fixed select box background color from being the one used by the system, dark theme inconsistencies found.
This commit is contained in:
parent
e6449bfe96
commit
727133b6ed
@ -351,6 +351,9 @@ summary:focus {
|
|||||||
.section-form {
|
.section-form {
|
||||||
padding: var(--unit-size);
|
padding: var(--unit-size);
|
||||||
}
|
}
|
||||||
|
.form-group {
|
||||||
|
margin-bottom: var(--unit-size);
|
||||||
|
}
|
||||||
|
|
||||||
.help-text {
|
.help-text {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
@ -387,34 +390,24 @@ label {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
select,
|
||||||
font-size: var(--small-size) !important;
|
button,
|
||||||
font-family: var(--main-font) !important;
|
|
||||||
font-weight: bold !important;
|
|
||||||
background-image: linear-gradient(180deg, var(--bg2), transparent) !important;
|
|
||||||
color: var(--white) !important;
|
|
||||||
|
|
||||||
border: solid 2px var(--bg2) !important;
|
|
||||||
border-radius: var(--unit-size);
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea,
|
textarea,
|
||||||
input[type=text],
|
input {
|
||||||
input[type=password],
|
|
||||||
input[type=email] {
|
|
||||||
font-size: inherit !important;
|
font-size: inherit !important;
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
padding: 5px 10px 5px 10px;
|
padding: 5px 10px;
|
||||||
border: 2px solid var(--bg2);
|
border: 2px solid var(--bg2);
|
||||||
border-radius: var(--unit-size);
|
border-radius: var(--unit-size);
|
||||||
background-color: var(--translucent);
|
background-color: var(--translucent);
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea:hover,
|
button {
|
||||||
textarea:focus {
|
font-weight: bold !important;
|
||||||
border-color: var(--bg3) !important;
|
background-image: linear-gradient(180deg, var(--bg2), transparent) !important;
|
||||||
|
color: var(--white) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=radio] {
|
input[type=radio] {
|
||||||
@ -422,11 +415,6 @@ input[type=radio] {
|
|||||||
background-color: var(--bg1) !important;
|
background-color: var(--bg1) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:hover,
|
|
||||||
input:focus {
|
|
||||||
border-color: var(--bg3) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[type=radio]:checked {
|
input[type=radio]:checked {
|
||||||
background-color: var(--white) !important;
|
background-color: var(--white) !important;
|
||||||
}
|
}
|
||||||
@ -442,11 +430,6 @@ input[type=checkbox] {
|
|||||||
mask-image: url("../icons/check-off.svg") !important;
|
mask-image: url("../icons/check-off.svg") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=checkbox]:hover,
|
|
||||||
input[type=checkbox]:focus {
|
|
||||||
background-color: var(--bg3) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[type=checkbox]:checked {
|
input[type=checkbox]:checked {
|
||||||
background-color: var(--bg3) !important;
|
background-color: var(--bg3) !important;
|
||||||
-webkit-mask-image: url("../icons/check-on.svg") !important;
|
-webkit-mask-image: url("../icons/check-on.svg") !important;
|
||||||
@ -455,14 +438,19 @@ input[type=checkbox]:checked {
|
|||||||
mask-image: url("../icons/check-on.svg") !important;
|
mask-image: url("../icons/check-on.svg") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textarea:hover,
|
||||||
|
textarea:focus,
|
||||||
button:hover,
|
button:hover,
|
||||||
button:focus,
|
button:focus,
|
||||||
input:hover,
|
input:hover,
|
||||||
input:focus {
|
input:focus {
|
||||||
border-color: var(--bg3) !important;
|
border: solid 2px var(--bg3) !important;
|
||||||
color: var(--white) !important;
|
color: var(--white) !important;
|
||||||
}
|
}
|
||||||
|
input[type=checkbox]:hover,
|
||||||
|
input[type=checkbox]:focus {
|
||||||
|
background-color: var(--bg3) !important;
|
||||||
|
}
|
||||||
:is(:disabled, :disabled:active)::file-selector-button,
|
:is(:disabled, :disabled:active)::file-selector-button,
|
||||||
button:is(:disabled, :disabled:active),
|
button:is(:disabled, :disabled:active),
|
||||||
input:is([type=reset], [type=button], [type=submit]):is(:disabled, :disabled:active),
|
input:is([type=reset], [type=button], [type=submit]):is(:disabled, :disabled:active),
|
||||||
@ -479,11 +467,6 @@ input[type=file] {
|
|||||||
border-radius: var(--unit-size);
|
border-radius: var(--unit-size);
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=file]:focus,
|
|
||||||
input[type=file]:hover {
|
|
||||||
border: solid 2px var(--bg3) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* button part of file selector */
|
/* button part of file selector */
|
||||||
::file-selector-button {
|
::file-selector-button {
|
||||||
font-family: var(--main-font) !important;
|
font-family: var(--main-font) !important;
|
||||||
@ -492,11 +475,16 @@ input[type=file]:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
font-family: var(--main-font) !important;
|
-webkit-appearance: none !important;
|
||||||
font-size: var(--small-size);
|
-moz-appearance: none !important;
|
||||||
font-weight: normal !important;
|
|
||||||
background: linear-gradient(180deg, var(--bg2), transparent) !important;
|
background-image: url("../images/drop.png") !important;
|
||||||
color: var(--white);
|
background-repeat: no-repeat;
|
||||||
|
background-size: 16px;
|
||||||
|
background-color: var(--bg1) !important;
|
||||||
|
background-position: center right 5px;
|
||||||
|
|
||||||
|
color: var(--white) !important;
|
||||||
border: 2px solid var(--bg2);
|
border: 2px solid var(--bg2);
|
||||||
border-radius: var(--unit-size);
|
border-radius: var(--unit-size);
|
||||||
}
|
}
|
||||||
|
@ -138,6 +138,14 @@ input {
|
|||||||
all: unset;
|
all: unset;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
}
|
}
|
||||||
|
button,
|
||||||
|
select,
|
||||||
|
input:not([type=text]) {
|
||||||
|
cursor: pointer !important;
|
||||||
|
}
|
||||||
|
input:not([type=button], [type=color], [type=checkbox], [type=radio]) {
|
||||||
|
cursor: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
/*noinspection CssInvalidPseudoSelector*/
|
/*noinspection CssInvalidPseudoSelector*/
|
||||||
*|*::-moz-button-content {
|
*|*::-moz-button-content {
|
||||||
@ -146,7 +154,6 @@ input {
|
|||||||
|
|
||||||
input[type=checkbox] {
|
input[type=checkbox] {
|
||||||
all: unset;
|
all: unset;
|
||||||
cursor: pointer !important;
|
|
||||||
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 1em;
|
width: 1em;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<svg
|
<svg
|
||||||
class="{{ iconClass|default('') }}"
|
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
xmlns:cc="http://creativecommons.org/ns#"
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
@ -12,8 +11,6 @@
|
|||||||
sodipodi:docname="drop.svg"
|
sodipodi:docname="drop.svg"
|
||||||
id="svg6"
|
id="svg6"
|
||||||
viewBox="0 0 32 32"
|
viewBox="0 0 32 32"
|
||||||
height="32"
|
|
||||||
width="32"
|
|
||||||
version="1.1">
|
version="1.1">
|
||||||
<metadata
|
<metadata
|
||||||
id="metadata12">
|
id="metadata12">
|
||||||
@ -51,7 +48,7 @@
|
|||||||
<title
|
<title
|
||||||
id="title2">drop</title>
|
id="title2">drop</title>
|
||||||
<path
|
<path
|
||||||
style="fill:#f6f6f6;fill-opacity:1"
|
style="fill-opacity:1"
|
||||||
id="path4"
|
id="path4"
|
||||||
d="M16 25.173c-0.823 0-10.695-17.1-10.284-17.813s20.157-0.713 20.568 0c0.411 0.713-9.461 17.813-10.284 17.813z" />
|
d="M16 25.173c-0.823 0-10.695-17.1-10.284-17.813s20.157-0.713 20.568 0c0.411 0.713-9.461 17.813-10.284 17.813z" />
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5.4 KiB |
Loading…
Reference in New Issue
Block a user