1 Commits
Author SHA1 Message Date
bachirandClaude Opus 5.5 b214fefa51 Search field layout: wider field, phrase title truncated (F5)
The page title shows the phrase as typed, on one line ending with an
ellipsis, and shrinks to leave the field its width. Below 872 px the
field goes on its own line, full width. The help button is white on
the mobile header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-23 19:06:46 +01:00
5 changed files with 22 additions and 4 deletions
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -512,14 +512,20 @@ header[role="banner"]{
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
#block-pagetitle{} // The title gives way to the field: a long phrase ends with "…" (F5).
#block-pagetitle{
min-width: 0;
flex: 0 1 auto;
}
#block-materiosapisearchblock{ #block-materiosapisearchblock{
align-self: flex-end; align-self: flex-end;
flex-shrink: 0;
// Long enough for a phrase and for the placeholder (F4). // Long enough for a phrase and for the placeholder (F4).
width: 30em; width: 30em;
max-width: 50%; max-width: 50%;
} }
@include col-mediaquery-max(3){ // Tablet and mobile: the field on its own line, full width (F5).
@include col-mediaquery-max(4){
flex-direction: column; flex-direction: column;
justify-content:center; justify-content:center;
#block-pagetitle{ #block-pagetitle{
@@ -570,6 +576,13 @@ header[role="banner"]{
color: #fff; color: #fff;
background-color: $color-base; background-color: $color-base;
} }
// The phrase searched, as typed, on one line (F5).
body.path-base & {
text-transform: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
body.path-pricing & { body.path-pricing & {
color: #fff; color: #fff;
background-color: $color-webshowroom; background-color: $color-webshowroom;
@@ -720,6 +733,11 @@ header[role="banner"]{
} }
padding: 0 1em 1em; padding: 0 1em 1em;
background-color: $color-base; background-color: $color-base;
// Help button readable on the colour of the block (F5).
#materio-sapi-search-form .search-help-button{
border-color: #fff;
color: #fff;
}
} }
} }