Skip to content

Added basic style and new reset for input autocomplete #201

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
18 changes: 18 additions & 0 deletions apps/front/src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,25 @@

html {
font-size: var(--font-size);
overscroll-behavior: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
scroll-behavior: smooth;
-webkit-text-rendering: optimizeSpeed;
text-rendering: optimizeSpeed;
overflow-x: hidden;

// TODO CHANGE LATER
*::selection, *::target-text {
background: var(--color-black);
color: var(--color-white);
}

@media screen and (max-width: $breakpoint-bigLaptop-min) {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
}

}

body {
Expand Down
15 changes: 15 additions & 0 deletions apps/front/src/styles/reset-inline.scss
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,21 @@ textarea {
overflow: visible;
}

/**
* Input autocomplete styling
*/

input {
&:-webkit-autofill,
&:-webkit-autofill:hover,
&:-webkit-autofill:focus,
&:-webkit-autofill:active {
-webkit-text-fill-color: inherit !important;
-webkit-box-shadow: 0 0 0 1000px transparent inset !important;
transition: background-color 5000s linear 0s;
}
}

/**
* Correct the inability to style clickable types in iOS and Safari.
*/
Expand Down