@statsbygg/layout 0.1.19 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,37 @@
2
2
  --dsc-breadcrumbs-color: var(--ds-color-text-default);
3
3
  }
4
4
 
5
+ .breadcrumbs li:has(.backLink) {
6
+ display: none;
7
+ }
8
+
9
+ .breadcrumbs li:has(.backLink)::after {
10
+ display: none;
11
+ }
12
+
13
+ @media (max-width: 768px) {
14
+ .breadcrumbs li:has(.backLink) {
15
+ display: revert;
16
+ }
17
+
18
+ .breadcrumbs li:has(.link),
19
+ .breadcrumbs li:has(.currentLink) {
20
+ display: none;
21
+ }
22
+ }
23
+
24
+ .backLink {
25
+ text-decoration: underline;
26
+ text-underline-offset: 2px;
27
+ color: var(--ds-color-text-default);
28
+ }
29
+
30
+ .backLink {
31
+ display: flex;
32
+ align-items: center;
33
+ gap: 4px;
34
+ }
35
+
5
36
  .link {
6
37
  text-decoration: underline;
7
38
  text-underline-offset: 2px;
@@ -8,6 +8,12 @@
8
8
 
9
9
  }
10
10
 
11
+ .whiteBackground,
12
+ .whiteBackground .topBarFixedWrapper,
13
+ .whiteBackground .headerContainer {
14
+ background-color: white;
15
+ }
16
+
11
17
  .topBarFixedWrapper {
12
18
  position: relative;
13
19
  left: 0;
@@ -15,6 +21,7 @@
15
21
  background: var(--ds-color-background-tinted);
16
22
  }
17
23
 
24
+
18
25
  .topBarFixed {
19
26
  position: fixed;
20
27
  top: 0;
package/dist/index.d.ts CHANGED
@@ -24,9 +24,10 @@ type GlobalHeaderProps = {
24
24
  routes: RouteNode;
25
25
  appBasePath?: string;
26
26
  pathname?: string;
27
+ isWhiteBackground?: boolean;
27
28
  };
28
29
 
29
- declare function GlobalHeader({ className, routes, appBasePath, pathname }: GlobalHeaderProps & {
30
+ declare function GlobalHeader({ className, routes, appBasePath, pathname, isWhiteBackground }: GlobalHeaderProps & {
30
31
  pathname?: string;
31
32
  }): react_jsx_runtime.JSX.Element;
32
33
 
@@ -35,9 +36,10 @@ type RootLayoutProps = {
35
36
  routes: RouteNode;
36
37
  appBasePath?: string;
37
38
  className?: string;
39
+ isWhiteBackground?: boolean;
38
40
  };
39
41
 
40
- declare function RootLayout({ children, routes, appBasePath, className }: RootLayoutProps): react_jsx_runtime.JSX.Element;
42
+ declare function RootLayout({ children, routes, appBasePath, className, isWhiteBackground }: RootLayoutProps): react_jsx_runtime.JSX.Element;
41
43
 
42
44
  interface GlobalFooterProps {
43
45
  className?: string;