.drawer { width: 300px; box-sizing: border-box; display: flex; flex-direction: column; overflow-y: hidden; padding: 10px 5px; flex: none; &:first-child { padding-inline-start: 10px; } &:last-child { padding-inline-end: 10px; } .auto-columns & { @media screen and (max-width: 630px) { flex: auto; } } .single-column & { flex: auto; } .auto-columns &, .single-column & { @media screen and (max-width: 630px) { &, &:first-child, &:last-child { padding: 0; } } } .wide & { min-width: 300px; max-width: 400px; flex: 1 1 200px; } .auto-columns & { @media screen and (max-width: 630px) { :root & { flex: auto; width: 100%; min-width: 0; max-width: none; padding: 0; } } } .single-column & { :root & { flex: auto; width: 100%; min-width: 0; max-width: none; padding: 0; } } .react-swipeable-view-container & { height: 100%; } } .drawer__header { flex: none; font-size: 16px; background: var(--ui-base-color-lighten-8); margin-bottom: 10px; display: flex; flex-direction: row; border-radius: 4px; overflow: hidden; & > * { display: block; box-sizing: border-box; border-bottom: 2px solid transparent; padding: 15px 5px 13px; height: 48px; flex: 1 1 auto; color: var(--darker-text-color); text-align: center; text-decoration: none; cursor: pointer; } a { transition: background 100ms ease-in; &:focus, &:hover { outline: none; background: var(--ui-base-color-lighten-3); transition: background 200ms ease-out; } } } .search { position: relative; margin-bottom: 10px; flex: none; .auto-columns &, .single-column & { @media screen and (max-width: 1175px) { margin-bottom: 0; } } .auto-columns & { @media screen and (max-width: 630px) { font-size: 16px; } } .single-column & { font-size: 16px; } } .navigation-bar { padding: 10px; color: var(--darker-text-color); display: flex; align-items: center; a { color: inherit; text-decoration: none; } .acct { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; strong { color: var(--secondary-text-color); font-weight: 500; } } } .navigation-bar__profile { flex: 1 1 auto; margin-inline-start: 8px; overflow: hidden; } .drawer--results { overflow-x: hidden; overflow-y: scroll; } .search-results__section { border-bottom: 1px solid var(--ui-base-color-lighten-8); &:last-child { border-bottom: 0; } &__header { background: var(--ui-base-color-darken-4); border-bottom: 1px solid var(--ui-base-color-lighten-8); padding: 15px; font-weight: 500; font-size: 14px; color: var(--darker-text-color); display: flex; justify-content: space-between; h3 .fa { margin-inline-end: 5px; } button { color: var(--highlight-text-color); padding: 0; border: 0; background: 0; font: inherit; &:hover, &:active, &:focus { text-decoration: underline; } } } .account:last-child, & > div:last-child .status { border-bottom: 0; } & > .hashtag { display: block; padding: 10px; color: var(--secondary-text-color); text-decoration: none; &:hover, &:active, &:focus { color: var(--secondary-text-color-lighten-4); text-decoration: underline; } } } .drawer__pager { box-sizing: border-box; padding: 0; flex-grow: 1; position: relative; overflow: hidden; display: flex; border-radius: 4px; } .drawer__inner { position: absolute; top: 0; inset-inline-start: 0; background: var(--ui-base-color-lighten-13); box-sizing: border-box; padding: 0; display: flex; flex-direction: column; overflow: hidden; overflow-y: auto; width: 100%; height: 100%; &.darker { background: var(--ui-base-color); } } .drawer__inner__mastodon { background: var(--ui-base-color-lighten-13) url('data:image/svg+xml;utf8,') no-repeat bottom / 100% auto; flex: 1; min-height: 47px; display: none; > img { display: block; object-fit: contain; object-position: bottom left; width: 85%; height: 100%; pointer-events: none; user-select: none; } > .mastodon { display: block; width: 100%; height: 100%; border: 0; cursor: inherit; } @media screen and (height >= 640px) { display: block; } } .pseudo-drawer { background: var(--ui-base-color-lighten-13); font-size: 13px; text-align: start; } .drawer__backdrop { cursor: pointer; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 100%; background: var(--base-overlay-background-a50); } .mbstobon-0 .drawer__inner__mastodon { background: url('~flavours/glitch/images/wave-drawer-glitched.png') no-repeat bottom / 100% auto, var(--ui-base-color-lighten-13); & > .mastodon { background: url('~flavours/glitch/images/mbstobon-ui-0.png') no-repeat left bottom / contain; filter: contrast(50%) brightness(50%); } } .mbstobon-1 .drawer__inner__mastodon { background: url('~flavours/glitch/images/wave-drawer-glitched.png') no-repeat bottom / 100% auto, var(--ui-base-color-lighten-13); & > .mastodon { background: url('~flavours/glitch/images/mbstobon-ui-1.png') no-repeat left bottom / contain; filter: contrast(50%) brightness(50%); } } .mbstobon-2 .drawer__inner__mastodon { background: url('~flavours/glitch/images/wave-drawer-glitched.png') no-repeat bottom / 100% auto, var(--ui-base-color-lighten-13); & > .mastodon { background: url('~flavours/glitch/images/mbstobon-ui-2.png') no-repeat left bottom / contain; filter: contrast(50%) brightness(50%); } } .mbstobon-3 .drawer__inner__mastodon { background: url('~flavours/glitch/images/wave-drawer.png') no-repeat bottom / 100% auto, var(--ui-base-color-lighten-13); & > .mastodon { background: url('~flavours/glitch/images/mbstobon-ui-3.png') no-repeat left bottom / contain; } }