fix(SW-1877): new responsive breadcrumbs
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
.breadcrumbs {
|
||||
display: block;
|
||||
padding: var(--Spacing-x4) 0 var(--Spacing-x3);
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
@@ -23,21 +22,91 @@
|
||||
}
|
||||
|
||||
.list {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
gap: var(--Spacing-x-quarter);
|
||||
justify-content: flex-start;
|
||||
list-style: none;
|
||||
margin: 0 auto;
|
||||
max-width: var(--max-width-page);
|
||||
padding-inline-start: 0;
|
||||
}
|
||||
|
||||
.listItem {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
gap: var(--Spacing-x-quarter);
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
}
|
||||
|
||||
.homeLink {
|
||||
.listItem > a {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.listItem > svg {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.last {
|
||||
flex: 1;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.last > button {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.button {
|
||||
border: none;
|
||||
background: transparent;
|
||||
height: 100%;
|
||||
/* a bit of a hack of centering the popover and its arrow */
|
||||
padding: 0 10px;
|
||||
margin: 0 -10px;
|
||||
}
|
||||
|
||||
.dialog {
|
||||
background-color: var(--Base-Surface-Primary-light-Normal);
|
||||
padding: var(--Spacing-x1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--Spacing-x-half);
|
||||
border-radius: var(--Corner-radius-Medium);
|
||||
min-width: 169px;
|
||||
outline: none;
|
||||
box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.dialogLink {
|
||||
display: block;
|
||||
border-radius: var(--Corner-radius-Medium);
|
||||
padding: var(--Spacing-x1);
|
||||
}
|
||||
|
||||
.dialogLink:focus,
|
||||
.dialogLink:hover {
|
||||
background-color: var(--Base-Surface-Primary-light-Hover);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
.desktop {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.mobile {
|
||||
display: none;
|
||||
}
|
||||
.desktop {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
.tooltip {
|
||||
background-color: var(--Surface-UI-Fill-Intense);
|
||||
padding: var(--Spacing-x-half) var(--Spacing-x1);
|
||||
border-radius: var(--Corner-radius-sm);
|
||||
color: var(--Text-Inverted);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user