This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1538 from navikt/Bruke-Aksel-kompontent-i-søkefeltet
Bruk av Aksel komponent i søket i den gamle (eksisterende) dekoratøren
- Loading branch information
Showing
5 changed files
with
156 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,11 @@ | ||
@use 'src/styling-variabler.scss' as sv; | ||
|
||
.header-linje { | ||
.sok-container { | ||
position: relative; | ||
width: 100%; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
} | ||
|
||
.sok-input-resultat { | ||
position: relative; | ||
width: 100%; | ||
} | ||
|
||
@media #{sv.$screen-mobile} { | ||
.sok-container { | ||
margin-bottom: 1rem; | ||
margin-top: 0.5rem; | ||
z-index: 101; | ||
} | ||
|
||
.sok-input-resultat { | ||
position: relative; | ||
width: 100%; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 9 additions & 57 deletions
66
src/komponenter/header/header-regular/common/sok/sok-innhold/SokInput.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,16 @@ | ||
@use 'src/styling-variabler.scss' as sv; | ||
|
||
.sok-input-resultat { | ||
.sok-input-container { | ||
position: relative; | ||
display: flex; | ||
} | ||
.sok-input { | ||
margin: 0; | ||
width: 100%; | ||
|
||
input { | ||
margin-top: 0; | ||
} | ||
} | ||
@media #{sv.$screen-desktop} { | ||
.sok-input { | ||
input { | ||
padding: 0.75rem; | ||
border: 2px solid var(--a-blue-500); | ||
&::-ms-clear { | ||
display: none; | ||
} | ||
} | ||
|
||
.skjemaelement__input { | ||
padding-right: 12rem; | ||
} | ||
} | ||
.sok .sok-container { | ||
width: auto; | ||
justify-content: center; | ||
align-items: flex-start; | ||
z-index: initial; | ||
.sok-input { | ||
margin: 0; | ||
width: 100%; | ||
|
||
.sok-ikon { | ||
position: relative; | ||
top: 0.35rem; | ||
right: 2.75rem; | ||
pointer-events: none; | ||
} | ||
} | ||
input { | ||
margin-top: 0; | ||
} | ||
@media #{sv.$screen-mobile} { | ||
.sok-input__tittel { | ||
margin-bottom: 1rem; | ||
} | ||
.sok-input { | ||
input { | ||
padding: 0.7rem 1rem; | ||
background-color: white; | ||
border: 2px solid var(--a-blue-500); | ||
|
||
&:focus, | ||
&:active { | ||
border: 2px solid var(--a-blue-500); | ||
} | ||
} | ||
.skjemaelement__input { | ||
padding-right: 8.5rem; | ||
} | ||
} | ||
.navds-search__button-search { | ||
border-radius: 0; | ||
border-top-right-radius: var(--a-border-radius-medium); | ||
border-bottom-right-radius: var(--a-border-radius-medium); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.