Browse code

adjust header

Martin Filipovic Hinrichs authored on27/01/2026 12:28:46
Showing5 changed files
... ...
@@ -1,105 +1,115 @@
1 1
 // Header
2 2
 
3
-header.header-minimal {
4
-  .header-minimal-contact {
5
-    text-align: center;
6
-  }
7
-
8
-  .header-minimal-back-to-shop-button {
9
-    color: var(--bs-btn-color);
10
-  }
3
+.header-search-input, .header-search-btn {
4
+  border: 0;
11 5
 }
12 6
 
13
-header.header-main {
14
-    position: relative;
15
-  z-index: 10;
16
-  @include media-breakpoint-down(lg) {
17
-    padding-bottom: 1rem;
18
-    border-bottom: 1px solid var(--bs-primary);
19
-  }
20
-
21
-  .header-row {
22
-    padding: 0;
23
-
24
-
25
-    .header-logo-col {
26
-      margin: 2rem 0;
27
-      padding-bottom: 0;
28
-
29
-      @include media-breakpoint-up(lg) {
30
-        margin: 2.5rem 0;
31
-      }
32
-
33
-      .header-logo-picture img {
34
-        @include media-breakpoint-down(sm) {
35
-          max-width: 75%;
36
-        }
37
-      }
38
-    }
39
-  }
40
-
41
-
42
-  div.header-search {
43
-    max-width: none;
44
-    margin: auto;
45
-
46
-    @include media-breakpoint-down(sm) {
47
-      padding-bottom: 1rem;
48
-    }
49
-
50
-
51
-    @include media-breakpoint-up(lg) {
52
-      margin: 0;
53
-    }
54
-
55
-    .header-search-btn, .header-search-input {
56
-      border-width: 2px;
57
-      color: var(--bs-primary);
58
-
59
-      &:focus {
60
-        box-shadow: none;
61
-      }
62
-    }
63
-
64
-    .header-search-input {
65
-      transition: all .3s ease-in-out;
66
-
67
-      @include media-breakpoint-up(lg) {
68
-        max-width: 190px;
69
-      }
70
-
71
-      &:focus {
72
-        @include media-breakpoint-up(lg) {
73
-          //width: 380px;
74
-          max-width: calc(100% - 50px);
75
-        }
76
-      }
77
-    }
78
-
79
-    .header-search-btn i[class*="fa-"] {
80
-      font-size: 1.25rem;
81
-    }
82
-  }
83
-
84
-  i[class*="fa-"] {
85
-    font-size: 1.75rem;
86
-  }
87
-
88
-  .btn {
89
-    --bs-btn-line-height: 1;
90
-  }
91
-
92
-  .header-actions-col .btn {
93
-    --bs-btn-padding-x: 1rem;
94
-    overflow: visible;
7
+#header-main-search-input::placeholder{
8
+  color: var(--bs-body-color);
9
+}
95 10
 
96
-    i {
97
-      color: var(--bs-primary);
98
-    }
99 11
 
100
-    .header-cart-badge {
101
-      display: block;
102
-      top: -5px;
103
-    }
104
-  }
105
-}
106 12
\ No newline at end of file
13
+//
14
+//header.header-minimal {
15
+//  .header-minimal-contact {
16
+//    text-align: center;
17
+//  }
18
+//
19
+//  .header-minimal-back-to-shop-button {
20
+//    color: var(--bs-btn-color);
21
+//  }
22
+//}
23
+//
24
+//header.header-main {
25
+//  position: relative;
26
+//  z-index: 10;
27
+//  @include media-breakpoint-down(lg) {
28
+//    padding-bottom: 1rem;
29
+//    border-bottom: 1px solid var(--bs-primary);
30
+//  }
31
+//
32
+//  .header-row {
33
+//    padding: 0;
34
+//
35
+//
36
+//    .header-logo-col {
37
+//      margin: 2rem 0;
38
+//      padding-bottom: 0;
39
+//
40
+//      @include media-breakpoint-up(lg) {
41
+//        margin: 2.5rem 0;
42
+//      }
43
+//
44
+//      .header-logo-picture img {
45
+//        @include media-breakpoint-down(sm) {
46
+//          max-width: 75%;
47
+//        }
48
+//      }
49
+//    }
50
+//  }
51
+//
52
+//
53
+//  div.header-search {
54
+//    max-width: none;
55
+//    margin: auto;
56
+//
57
+//    @include media-breakpoint-down(sm) {
58
+//      padding-bottom: 1rem;
59
+//    }
60
+//
61
+//
62
+//    @include media-breakpoint-up(lg) {
63
+//      margin: 0;
64
+//    }
65
+//
66
+//    .header-search-btn, .header-search-input {
67
+//      border-width: 2px;
68
+//      color: var(--bs-primary);
69
+//
70
+//      &:focus {
71
+//        box-shadow: none;
72
+//      }
73
+//    }
74
+//
75
+//    .header-search-input {
76
+//      transition: all .3s ease-in-out;
77
+//
78
+//      @include media-breakpoint-up(lg) {
79
+//        max-width: 190px;
80
+//      }
81
+//
82
+//      &:focus {
83
+//        @include media-breakpoint-up(lg) {
84
+//          //width: 380px;
85
+//          max-width: calc(100% - 50px);
86
+//        }
87
+//      }
88
+//    }
89
+//
90
+//    .header-search-btn i[class*="fa-"] {
91
+//      font-size: 1.25rem;
92
+//    }
93
+//  }
94
+//
95
+//  i[class*="fa-"] {
96
+//    font-size: 1.75rem;
97
+//  }
98
+//
99
+//  .btn {
100
+//    --bs-btn-line-height: 1;
101
+//  }
102
+//
103
+//  .header-actions-col .btn {
104
+//    --bs-btn-padding-x: 1rem;
105
+//    overflow: visible;
106
+//
107
+//    i {
108
+//      color: var(--bs-primary);
109
+//    }
110
+//
111
+//    .header-cart-badge {
112
+//      display: block;
113
+//      top: -5px;
114
+//    }
115
+//  }
116
+//}
107 117
\ No newline at end of file
... ...
@@ -1,7 +1,7 @@
1 1
 
2 2
 // Navigation
3 3
 .nav-main {
4
-  background-color: $light;
4
+  background-color: white;
5 5
 
6 6
   .nav.main-navigation-menu {
7 7
     justify-content: space-between;
... ...
@@ -12,7 +12,7 @@
12 12
       line-height: rfs-value(55px);
13 13
       white-space: nowrap;
14 14
       text-transform: uppercase;
15
-      color: $primary;
15
+      color: $sw-headline-color;
16 16
       font-size: rfs-value(18px);
17 17
       font-family: $font-secondary;
18 18
 
... ...
@@ -3,15 +3,13 @@
3 3
 {% block layout_top_bar %}{% endblock %}
4 4
 
5 5
 {% block layout_header_navigation %}
6
- <div class="row align-items-center header-row animate-fadeIn">
6
+ <div class="row align-items-center header-row animate-fadeIn justify-content-between">
7 7
      {% block layout_header_logo %}
8
-         <div class="col-12 col-lg-4 order-md-2 header-logo-col">
9
-             {% sw_include '@Storefront/storefront/layout/header/logo.html.twig' %}
10
-         </div>
8
+         {{  parent() }}
11 9
      {% endblock %}
12 10
 
13 11
      {% block layout_header_search %}
14
-         <div class="col-12 order-md-2 col-sm col-lg-4 order-lg-1 header-search-col">
12
+         <div class="col-12 col-sm col-lg-4 header-search-col">
15 13
              <div class="row align-items-center">
16 14
                  <div class="col-sm-auto d-none d-sm-block d-lg-none">
17 15
                      {% block layout_header_navigation_toggle_tablet %}
18 16
new file mode 100644
... ...
@@ -0,0 +1,15 @@
1
+{% sw_extends '@Storefront/storefront/layout/header/logo.html.twig' %}
2
+
3
+{% block layout_header_logo_image %}
4
+    <picture class="header-logo-picture d-block">
5
+        {% block layout_header_logo_image_tablet %}
6
+            {{ parent() }}
7
+        {% endblock %}
8
+        {% block layout_header_logo_image_mobile %}
9
+            {{ parent() }}
10
+        {% endblock %}
11
+        {% block layout_header_logo_image_default %}
12
+            {{ parent() }}
13
+        {% endblock %}
14
+    </picture>
15
+{% endblock %}
0 16
\ No newline at end of file
1 17
new file mode 100644
... ...
@@ -0,0 +1,5 @@
1
+update snippet
2
+set value = 'Finden Sie Ihren Traumwein...'
3
+where translation_key = 'header.searchPlaceholder'
4
+  and snippet_set_id = 0x018E65C0486C719FAD22011AC28EC883;
5
+