Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredx87 committed May 3, 2024
1 parent 8ac01d6 commit 4a8e871
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 44 deletions.
82 changes: 43 additions & 39 deletions style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion styles/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ a {
}
}

form[data-form], form[data-search] {
form[data-form], .search {
input,
textarea {
color: #000;
Expand Down
2 changes: 1 addition & 1 deletion styles/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
}

.button-large, input[type="submit"] {
.button-large, form[data-form] input[type="submit"] {
@include tablet {
width: auto;
}
Expand Down
10 changes: 7 additions & 3 deletions styles/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ $padding-right: 20px;
position: relative;
}

.search {
/*
We put 3 times the .search selector to increment the specificity of the selector
to override the default input styles defined in _base.scss
*/
.search.search.search {
border-color: $high-contrast-border-color;
border-radius: 30px;
border-style: solid;
Expand Down Expand Up @@ -88,7 +92,7 @@ $padding-right: 20px;

}

[dir="ltr"] .search {
[dir="ltr"] .search.search.search {
input[type="search"] {
padding-left: $padding-left;
padding-right: $padding-right;
Expand Down Expand Up @@ -117,7 +121,7 @@ $padding-right: 20px;
}
}

[dir="rtl"] .search {
[dir="rtl"] .search.search.search {
input[type="search"] {
padding-left: $padding-right;
padding-right: $padding-left;
Expand Down

0 comments on commit 4a8e871

Please sign in to comment.