Skip to content

Commit

Permalink
TabbedLayout css
Browse files Browse the repository at this point in the history
  • Loading branch information
hojberg committed Aug 23, 2023
1 parent 38ecb82 commit 4b8ab65
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/UI/PageLayout.elm
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,18 @@ view page =
[ class "page tabbed-layout"
, bgClassName backgroundColor
]
[ header [ class "tabbed-layout_header" ] [ PageTitle.view pageTitle ]
, div [ class "tabbed-layout_tab-list" ] [ TabList.view tabList ]
-- This is using the .page-content class to narrow the width of
-- the header and the TabList
[ header [ class "tabbed-layout_header" ]
[ div
[ class "page-content" ]
[ PageTitle.view pageTitle ]
]
, div [ class "tabbed-layout_tab-list" ]
[ div
[ class "page-content" ]
[ TabList.view tabList ]
]
, PageContent.view_ (viewPageFooter footer) content
]

Expand Down
2 changes: 2 additions & 0 deletions src/css/ui/page-layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@

.page.tabbed-layout .tabbed-layout_header {
grid-area: tabbed-layout_header;
background: var(--u-color_background_subdued);
}

.page.tabbed-layout .tabbed-layout_tab-list {
grid-area: tabbed-layout_tab-list;
box-shadow: inset 0 -2px 0 -1px var(--c-color_tabs_border);
}

.page.presentation-layout {
Expand Down

0 comments on commit 4b8ab65

Please sign in to comment.