diff --git a/assets/css/main.css b/assets/css/main.css new file mode 100644 index 0000000..5ddb9d2 --- /dev/null +++ b/assets/css/main.css @@ -0,0 +1,249 @@ +@import '@resonate/tachyons'; + +.search-component .search-label { + top: 50%; + transform: translateY(-50%); +} + +.search-component input[type="search"] { + appearance: none; + text-indent: 1rem; + font-family: inherit; + height: calc(3rem - 1px); +} + +.search-component input[type="search"]::-webkit-search-cancel-button { + appearance: none; +} + +.typeahead { + visibility: hidden; + opacity: 0; + display: none; +} + +.search-component form:focus-within input[type="search"] { + height: 3rem; + outline-style: solid; + outline-width: 1px; + outline-color: var(--dark-gray); + outline-offset: -1px; +} + +@media (prefers-color-scheme: dark) { + .search-component form:focus-within input[type="search"] { + outline-color: var(--near-black); + } +} + +.color-scheme--dark .search-component form:focus-within input[type="search"] { + outline-color: var(--near-black); +} + +.search-component form:focus-within > div.typeahead { + visibility: visible; + z-index: 1; + opacity: 1; + display: block; +} + +/** + * styling for radio + checkbox + */ + +input[type="radio"] { + opacity: 0; + width: 0; + height: 0; +} + +input[type="radio"]:active ~ label { + opacity: 1; +} + +input[type="radio"]:checked ~ label { + opacity: 1; +} + +input[type="radio"]:checked ~ label .icon { + fill: var(--black); +} + +input[type="checkbox"] ~ label .icon { + fill: transparent; +} + +input[type="checkbox"]:checked ~ label .icon { + fill: var(--black); +} + +/** + * Offset margin + */ + +.ml-3 { + margin-left: -1rem; +} + +.mr-3 { + margin-right: -1rem; +} + +/** + * Custom html styling for radio + checkbox + */ + +input[type="radio"] { + opacity: 0; + width: 0; + height: 0; +} + +input[type="radio"]:active ~ label { + opacity: 1; +} + +input[type="radio"]:checked ~ label { + opacity: 1; +} + +input[type="radio"]:checked ~ label .icon { + fill: hsl(210, 4%, 10%); + fill: var(--black); +} + +input[type="checkbox"] ~ label .icon { + fill: transparent; +} + +input[type="checkbox"]:checked ~ label .icon { + fill: hsl(210, 4%, 10%); + fill: var(--black); +} + +/** + * Offset margin + */ + +.ml-3 { + margin-left: -1rem; +} + +.mr-3 { + margin-right: -1rem; +} + +/** + * Custom html