/*
* Copyright (C) 2020 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#if defined(ENABLE_IOS_FORM_CONTROL_REFRESH) && ENABLE_IOS_FORM_CONTROL_REFRESH
textarea,
input {
border: 1px solid rgb(217, 217, 217);
font: 11px system-ui;
}
input:matches([type="checkbox"], [type="radio"]) {
border: initial;
box-sizing: border-box;
}
input::-webkit-list-button {
width: 12px;
content: url('data:image/svg+xml,');
}
input[type="search"] {
border: initial;
background-color: rgb(238, 238, 238);
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-decoration,
input[type="search"]::-webkit-search-results-button {
align-self: flex-start;
background-color: darkgray;
flex: none;
height: 1em;
margin: auto 0;
margin-inline-end: 0.4em;
width: 1em;
-webkit-mask-image: url('data:image/svg+xml,');
}
input:matches([type="button"], [type="submit"], [type="reset"]), input[type="file"]::file-selector-button, button {
border: initial;
font: 11px system-ui;
font-weight: bold;
}
/* FIXME: Use semantic colors once final specifications are obtained. */
/* FIXME: Add styles for additional button states once final specifications are obtained. */
input:matches([type="button"], [type="reset"]), input[type="file"]::file-selector-button, button {
background-color: rgb(235, 245, 255);
color: rgb(22, 122, 255);
}
input[type="submit"] {
background-color: rgb(22, 122, 255);
color: white;
}
input[type="range"]::-webkit-slider-thumb, input[type="range"]::-webkit-slider-thumb:active {
background-color: white;
border: initial;
box-shadow: 0px 6px 13px rgba(0, 0, 0, 0.2), 0px 0.5px 4px rgba(0, 0, 0, 0.2);
}
input[type="color"]::-webkit-color-swatch-wrapper,
input[type="color"]::-webkit-color-swatch {
border-radius: inherit;
}
select {
color: rgb(0, 122, 255);
font-weight: bold;
font-family: system-ui;
border: initial;
border-radius: initial;
background-color: rgb(235, 245, 255);
}
#endif