Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling the demo site #254

Merged
merged 3 commits into from
Oct 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 23 additions & 8 deletions site/demo-styles.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Fun colors https://flatuicolors.com/palette/se
Boring colors https://flatuicolors.com/palette/gb
Fun colors https://flatuicolors.com/palette/se
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500&display=swap');
Expand All @@ -26,7 +26,7 @@ body {
--vanadyl-blue: #0097e6;
--matt-purple: #8c7ae6;
--nanohanacha-gold: #e1b12c;
--street-green: #44bd32;
--skirret-green: #44bd32;
--naval: #40739e;
--nasturcian-flower: #e84118;
--lynx-white: #f5f6fa;
Expand Down Expand Up @@ -118,6 +118,9 @@ body {
--much-select-dropdown-option-highlighted-background-color: var(--matt-purple);
--much-select-dropdown-option-active-background-color: var(--protoss-pylon);
--much-select-dropdown-option-selected-background-color: var(--chain-gang-grey);
--much-select-dropdown-optgroup-background-color: var(--skirret-green);
--much-select-dropdown-footer-color: var(--chain-gang-grey);
--much-select-dropdown-footer-background-color: var(--hint-of-pensive);
}

#theme-switch-fun:checked ~ #page-wrapper {
Expand Down Expand Up @@ -152,6 +155,9 @@ body {
--much-select-dropdown-option-highlighted-background-color: var(--spirio-disco-ball);
--much-select-dropdown-option-active-background-color: var(--minty-green);
--much-select-dropdown-option-selected-background-color: var(--fresh-turquoise);
--much-select-dropdown-optgroup-background-color: var(--green-teal);
--much-select-dropdown-footer-color: var(--yriel-yellow);
--much-select-dropdown-footer-background-color: var(--red-orange);
}
}

Expand Down Expand Up @@ -183,6 +189,9 @@ body {
--much-select-dropdown-option-highlighted-background-color: var(--free-speech-blue);
--much-select-dropdown-option-active-background-color: var(--minty-green);
--much-select-dropdown-option-selected-background-color: var(--black-pearl);
--much-select-dropdown-optgroup-background-color: var(--blue-nights);
--much-select-dropdown-footer-color: var(--hint-of-pensive);
--much-select-dropdown-footer-background-color: var(--chain-gang-grey);
}

#theme-switch-fun:checked ~ #page-wrapper {
Expand Down Expand Up @@ -211,6 +220,9 @@ body {
--much-select-dropdown-option-highlighted-background-color: var(--black-pearl);
--much-select-dropdown-option-active-background-color: var(--london-square);
--much-select-dropdown-option-selected-background-color: var(--black-pearl);
--much-select-dropdown-optgroup-background-color: var(--london-square);
--much-select-dropdown-footer-color: var(--minty-green);
--much-select-dropdown-footer-background-color: var(--dark-periwinkle);
}
}

Expand Down Expand Up @@ -391,9 +403,7 @@ much-select::part(value-casing output-style-custom-html) {
background-color: var(--much-select-background-color);
box-shadow: 1px 1px 1px 0 lightgray inset;
padding: 0.1em 1.5em 0.1em 0.1em;
}

much-select::part(value-casing output-style-custom-html) {
flex-flow: row;
cursor: pointer;
border: 1px solid var(--much-select-border-color);
Expand Down Expand Up @@ -444,6 +454,11 @@ much-select::part(value-casing output-style-custom-html single) {
background-repeat: repeat-x;
}

much-select::part(value-casing output-style-custom-html multi) {
background-image: var(--much-select-value-casing-background-image);
background-repeat: repeat-x;
}

much-select::part(value-casing single disabled) {
background-image: none;
background-color: var(--much-select-disabled-background-color);
Expand All @@ -455,6 +470,7 @@ much-select::part(input-filter) {
*/
height: 36px;
font-size: var(--value-font-size);
color: var(--text-color);
/* The min-width let's the input shrink down as far as it needs to.
The with width lets it grow as much as it can.
*/
Expand All @@ -477,11 +493,10 @@ much-select::part(input-filter) {
outline: none;
background: none;

padding: 0;
margin: 0;

/* Keep input filter's text from running over the dropdown indicator. */
padding-right: 0.8em;
padding: 0 0.8em 0 0;
}

much-select::part(input-filter):hover, much-select::part(input-filter):focus {
Expand Down Expand Up @@ -629,7 +644,7 @@ much-select::part(dropdown-option-description) {
much-select::part(dropdown-footer) {
font-size: 50%;
text-align: center;
color: gray;
background-color: lightgray;
color: var(--much-select-dropdown-footer-color);
background-color: var(--much-select-dropdown-footer-background-color);
padding: 5px;
}