Skip to content
Snippets Groups Projects
Commit 51df52c9 authored by Jérémie BRISON's avatar Jérémie BRISON
Browse files

fix(search) : fix button + color

parent 945f93f2
No related branches found
No related tags found
3 merge requests!14Recette,!13Dev,!6Topic search
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
@import '../../../../assets/scss/typography'; @import '../../../../assets/scss/typography';
@import '../../../../assets/scss/breakpoint'; @import '../../../../assets/scss/breakpoint';
@import '../../../../assets/scss/shapes'; @import '../../../../assets/scss/shapes';
@import '../../../../assets/scss/buttons';
.modalformations { .modalformations {
@media #{$desktop} { @media #{$desktop} {
...@@ -88,31 +89,16 @@ ...@@ -88,31 +89,16 @@
display: flex; display: flex;
align-items: center; align-items: center;
text-decoration: underline; text-decoration: underline;
color: $secondary-color;
} }
height: 32px; height: 32px;
button { button {
height: 100%; @include btn-search-filter;
border: none;
cursor: pointer;
background-color: $purple;
@include cn-bold-14; @include cn-bold-14;
line-height: 100%;
align-items: center;
text-align: center;
color: $white;
padding: 3px 16px 3px 16px;
outline: none;
} }
} }
} }
.checkbox { .checkbox {
.checkboxItem {
/*position: relative;
display: inline-grid;
align-items: center;
grid-template-columns: min-content auto;
min-height: 25px;*/
}
list-style-type: none; list-style-type: none;
input { input {
opacity: 0; opacity: 0;
......
...@@ -13,7 +13,9 @@ ...@@ -13,7 +13,9 @@
<div class="ico-pin-search grey"></div> <div class="ico-pin-search grey"></div>
</div> </div>
<input type="text" formControlName="searchTerm" placeholder="Rechercher une adresse, une association..." /> <input type="text" formControlName="searchTerm" placeholder="Rechercher une adresse, une association..." />
<button type="submit">Rechercher</button> <div class="searchButton">
<button type="submit">Rechercher</button>
</div>
</form> </form>
</div> </div>
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
@import '../../../../assets/scss/typography'; @import '../../../../assets/scss/typography';
@import '../../../../assets/scss/breakpoint'; @import '../../../../assets/scss/breakpoint';
@import '../../../../assets/scss/shapes'; @import '../../../../assets/scss/shapes';
@import '../../../../assets/scss/buttons';
.header { .header {
.title { .title {
...@@ -34,45 +35,32 @@ ...@@ -34,45 +35,32 @@
outline: none; outline: none;
} }
.searchSection { .searchSection {
button { .searchButton {
border: none; border: 1px solid $grey-6;
cursor: pointer; border-radius: 6px;
background-color: $purple; @include background-hash;
@include cn-bold-14; padding: 0 0 4px 5px;
align-items: center; button {
text-align: center; @include btn-search;
color: $white; @include cn-bold-14;
padding: 3px 16px 3px 16px; }
outline: none;
} }
} }
.btnSection { .btnSection {
padding: 16px 0 8px 0; padding: 16px 0 8px 0;
button { button {
height: 40px; @include btn-filter;
width: 190px;
outline: none;
border: 1px solid $grey;
border-radius: 33px;
background-color: $white;
padding: 2px 6px 2px 13px;
align-items: center;
display: flex;
cursor: pointer;
.btnText { .btnText {
justify-content: center;
@include cn-regular-14; @include cn-regular-14;
display: flex;
align-items: center;
} }
} }
.selected { .selected {
border: 1px solid $orange-light; border: 1px solid $primary-color;
color: $orange-light; color: $primary-color;
.arrow { .arrow {
background-color: transparent; background-color: transparent;
border-bottom: 1px solid $orange-light; border-bottom: 1px solid $primary-color;
border-right: 1px solid $orange-light; border-right: 1px solid $primary-color;
transform: translateY(25%) rotate(-135deg); transform: translateY(25%) rotate(-135deg);
margin: 0 5px 0 10px; margin: 0 5px 0 10px;
height: 7px; height: 7px;
...@@ -81,8 +69,8 @@ ...@@ -81,8 +69,8 @@
} }
.arrow { .arrow {
background-color: transparent; background-color: transparent;
border-bottom: 1px solid $grey; border-bottom: 1px solid $grey-2;
border-right: 1px solid $grey; border-right: 1px solid $grey-2;
transform: translateY(-25%) rotate(45deg); transform: translateY(-25%) rotate(45deg);
margin: 0 5px 0 10px; margin: 0 5px 0 10px;
height: 7px; height: 7px;
...@@ -90,117 +78,8 @@ ...@@ -90,117 +78,8 @@
} }
} }
} }
.modalformations {
@media #{$desktop} {
margin-left: 0;
}
margin-left: 206px;
}
.modalplusFiltres {
@media #{$desktop} {
margin-left: 0;
}
margin-left: 412px;
}
.modal {
max-height: 648px;
max-width: 754px;
width: 94%;
border-left: 6.5px solid transparent;
border-bottom: 6.5px solid transparent;
border-radius: 11px;
z-index: 401 !important;
margin: 8px 8px 0 0;
position: absolute;
margin-top: 96px;
border: 1px solid $grey-5;
border-radius: 6px;
@include background-hash;
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: $grey-5;
}
::-webkit-scrollbar-thumb {
background: $grey;
border-radius: 6px;
}
.contentModal {
overflow-y: auto;
max-width: 1100px;
border-bottom: 1px solid $grey;
margin-bottom: 10px;
max-height: 500px;
.blockFiltre {
width: 100%;
padding: 32px 40px 10px 40px;
min-width: 450px;
}
.blockLigne {
padding-left: 0;
-moz-column-count: 2;
-moz-column-gap: 46px;
-webkit-column-count: 2;
-webkit-column-gap: 46px;
column-count: 2;
column-gap: 46px;
column-rule: dashed 1px $grey;
@media #{$large-phone} {
-moz-column-count: 1;
-webkit-column-count: 1;
column-count: 1;
}
}
.ligneFiltre {
padding: 5px 0 5px 0;
}
h4 {
@include cn-bold-14;
display: flex;
align-items: center;
margin-top: 0;
}
.nbResult {
@include cn-regular-14;
}
label {
@include cn-regular-14;
}
}
.footer {
margin: 0px 20px 16px 0;
a {
@include cn-bold-14;
display: flex;
align-items: center;
text-decoration: underline;
}
height: 32px;
button {
height: 100%;
border: none;
cursor: pointer;
background-color: $purple;
@include cn-bold-14;
line-height: 100%;
align-items: center;
text-align: center;
color: $white;
padding: 3px 16px 3px 16px;
outline: none;
}
}
}
.checkbox { .checkbox {
.checkboxItem {
/*position: relative;
display: inline-grid;
align-items: center;
grid-template-columns: min-content auto;
min-height: 25px;*/
}
list-style-type: none; list-style-type: none;
input { input {
opacity: 0; opacity: 0;
...@@ -242,8 +121,6 @@ ...@@ -242,8 +121,6 @@
content: ''; content: '';
position: absolute; position: absolute;
display: none; display: none;
}
&:after {
left: 7px; left: 7px;
top: 3px; top: 3px;
width: 4px; width: 4px;
......
...@@ -96,13 +96,13 @@ export class SearchComponent implements OnInit { ...@@ -96,13 +96,13 @@ export class SearchComponent implements OnInit {
// Fake service api // Fake service api
private mockService(module: Category[], titre: string, categ: any, nbCateg: number): void { private mockService(module: Category[], titre: string, categ: any, nbCateg: number): void {
let m = new Category(); const category = new Category();
m.name = titre; category.name = titre;
m.modules = []; category.modules = [];
for (let i = 0; i < nbCateg; i++) { for (let i = 0; i < nbCateg; i++) {
m.modules.push(new Module(categ.id + i, categ.name + i)); category.modules.push(new Module(categ.id + i, categ.name + i));
} }
module.push(m); module.push(category);
} }
// Fake data // Fake data
......
@import './color';
@import './shapes';
@mixin btn-filter {
background: $white;
height: 40px;
width: 190px;
border: 1px solid $grey-6;
padding: 3px 16px 3px 16px;
outline: none;
border-radius: 4px;
cursor: pointer;
}
@mixin btn-search {
background: $white;
height: 34px;
border: none;
color: $primary-color;
padding: 3px 16px 3px 16px;
outline: none;
cursor: pointer;
}
@mixin btn-search-filter {
background: $secondary-color;
height: 40px;
border: none;
color: $white;
padding: 3px 16px 3px 16px;
outline: none;
cursor: pointer;
}
...@@ -8,6 +8,7 @@ $grey-2: #4f4f4f; ...@@ -8,6 +8,7 @@ $grey-2: #4f4f4f;
$grey-3: #c3c3c3; $grey-3: #c3c3c3;
$grey-4: #f2ecf2; $grey-4: #f2ecf2;
$grey-5: #f2f2f2; $grey-5: #f2f2f2;
$grey-6: #bdbdbd;
/* YELLOW */ /* YELLOW */
$yellow: #f2cb04; $yellow: #f2cb04;
$yellow-light: #fff8d6; $yellow-light: #fff8d6;
...@@ -17,13 +18,16 @@ $orange-light: #f29f05; ...@@ -17,13 +18,16 @@ $orange-light: #f29f05;
$orange-3: #fff4ea; $orange-3: #fff4ea;
/* GREEN */ /* GREEN */
$green: #41c29c; $green: #41c29c;
/* OTHERS */ /* BLUE */
$blue: #b3f8f8; $blue: #348899;
$blue-light: #b3f8f8;
$blue-dark: #2f5480; $blue-dark: #2f5480;
/* OTHERS */
$purple: #594d59; $purple: #594d59;
$red-metro: #d50000; $red-metro: #d50000;
/* APP COLORS */ /* APP COLORS */
$primary-color: $yellow; $primary-color: $red-metro;
$secondary-color: $orange; $secondary-color: $blue;
$default-link-color: $grey-2; $default-link-color: $grey-2;
$button-secondary: $blue-dark; $button-secondary: $blue-dark;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment