Skip to content

Commit

Permalink
Merge branch 'main' into MNTOR-3393
Browse files Browse the repository at this point in the history
  • Loading branch information
mansaj authored Jul 31, 2024
2 parents a1d1f30 + 7b08bd4 commit c69f7fe
Show file tree
Hide file tree
Showing 10 changed files with 1,588 additions and 9 deletions.
1 change: 1 addition & 0 deletions locales/nn-NO/dashboard.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exposure-chart-legend-heading-nr = Antal
# $nr (number) - Number of a particular type of exposure found for the user
exposure-chart-legend-value-nr = { $nr }×
exposure-chart-caption = Dette diagrammet viser kor mange gongar informasjonen din er aktivt eksponert.
exposure-chart-returning-user-upgrade-prompt = Heimeadresse, familiemedlemmar, med meir, er ikkje inkludert enno.
exposure-chart-returning-user-upgrade-prompt-cta = Start ei gratis skanning
modal-cta-ok = OK
modal-cta-got-it = Eg forstår
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@
@import "../../../../../tokens";

.wrapper {
display: grid;
grid-template-rows: 120px min-content;
gap: $spacing-md;
height: 100%;
padding: $layout-sm;
background-color: $color-grey-05;
align-items: center;
justify-content: center;
}

.wrapperHibp {
grid-template-rows: 120px min-content 100px;
justify-content: center;
}

.header {
font: $text-title-xs;
font-weight: normal;
margin: auto;
width: 100%;
b {
font-weight: bold;
}
text-align: center;
}

.formAndListWrapper {
margin-top: 40px;
display: grid;
grid-template-rows: 1fr;
grid-template-columns: 3fr 2fr;
justify-content: center;
}

.hibpFormAndListWrapper {
grid-template-columns: 1fr 1fr;
}

.formWrapper {
display: grid;
grid-template-rows: 50px 4fr 100px;
justify-content: center;
}

.h2 {
text-align: center;
}

.allBreachesWrapper {
display: grid;
grid-template-rows: 50px 4fr;
justify-content: center;
}

.listButtonsWrapper {
display: grid;
grid-template-rows: auto 100px;
justify-content: center;
}

.listContainer {
max-height: 330px;
overflow-y: auto;
}

.searchBox {
background-color: white;
border: 1px solid rgb(139, 139, 139);
border-radius: 3px;
height: 240px;
width: 100%;
}

.buttonsWrapper {
height: auto;
display: grid;
grid-template-columns: 1fr 1fr;
}

.buttonsStandalone {
height: 100px;
width: 100%;
display: flex;
justify-content: center;
}

.listWrapper {
height: min-content;
display: grid;
grid-template-rows: 50px auto;
justify-content: center;
align-items: flex-start;
}

.hibpSelectedBoxWrapper {
width: 100%;
grid-template-columns: 100%;
.listContainer {
margin-left: 10px;
margin-right: 10px;
margin-top: 8px;
height: 300px;
}
p {
margin-left: 10px;
}
}

.button {
display: block;
margin: auto;
max-height: 100px;
max-width: 100px;
margin-top: 10px;
margin-bottom: 10px;
}

.buttonUnderList {
margin-left: 10px;
margin-right: 10px;
}

.buttonsHibp {
margin: 10px;
justify-self: center;
}

@keyframes shake {
0% {
transform: translateX(0);
}
25% {
transform: translateX(-5px);
}
75% {
transform: translateX(5px);
}
100% {
transform: translateX(0);
}
}

.error {
border-color: red; /* Example: Highlight border in red for error */
animation: shake 0.5s ease-in-out; /* Example animation */
}

.form {
display: flex;
flex-direction: column;
gap: $spacing-sm;
align-items: center;
width: min-content;

.userPicker {
flex: 1 0 auto;
align-items: center;
display: flex;
flex-wrap: wrap;
gap: $spacing-md;
min-height: $layout-md;

label {
display: flex;
flex-direction: column;
gap: $spacing-sm;
min-width: 50%;
width: 350px;
}

input {
padding: $spacing-sm;
font: $text-body-md;
transition: border-color 0.3s ease;
}
}
}

.listItem:hover {
background-color: #f0f0f0; /* Light grey background on hover */
cursor: pointer; /* Change cursor to indicate clickable item */
text-decoration: line-through;
}

.allBreachesItem:hover {
background-color: #f0f0f0; /* Light grey background on hover */
cursor: pointer; /* Change cursor to indicate clickable item */
}

.selectedBox {
margin: 0;
}

.breachName {
color: black;
margin-left: 10px;
}

.selected {
background-color: red;
}

.unselected {
background-color: white;
}

.configContainer {
display: flex;
background-color: $color-grey-05;
}

.configLeft {
flex: 1;
padding: 20px; /* Optional: add some padding */
}

.configRight {
flex: 1;
padding: 20px; /* Optional: add some padding */
}

.buttonContainer {
display: flex;
}
Loading

0 comments on commit c69f7fe

Please sign in to comment.