mirror of
https://github.com/He4eT/tabswitcher.git
synced 2026-05-05 01:17:23 +00:00
styles: cleanup
This commit is contained in:
parent
d13ef1695b
commit
3464c1f650
2 changed files with 67 additions and 50 deletions
|
|
@ -49,8 +49,7 @@ body {
|
||||||
/* Common */
|
/* Common */
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-size: calc(2 * var(--step));
|
|
||||||
|
|
||||||
background-color: var(--color-bg);
|
background-color: var(--color-bg);
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
|
font-size: calc(2 * var(--step));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,65 +1,84 @@
|
||||||
header {
|
/* */
|
||||||
display: flex;
|
|
||||||
padding: calc(2 * var(--step));
|
|
||||||
gap: calc(2 * var(--step));
|
|
||||||
|
|
||||||
|
header {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
gap: calc(2 * var(--step));
|
||||||
|
padding: calc(2 * var(--step));
|
||||||
|
|
||||||
background: inherit;
|
background: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
header > input {
|
header > input {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
|
||||||
border: 0;
|
border: 0;
|
||||||
border-bottom: 2px solid currentColor;
|
border-bottom: 2px solid currentColor;
|
||||||
|
|
||||||
padding: var(--step);
|
padding: var(--step);
|
||||||
flex: 1 1 auto;
|
|
||||||
font: inherit;
|
|
||||||
background: inherit;
|
background: inherit;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
font: inherit;
|
||||||
|
|
||||||
header > input#searchbox {
|
|
||||||
flex-grow: 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
header > input:focus-visible {
|
header > input:focus-visible {
|
||||||
outline: none;
|
|
||||||
border-bottom: 2px solid var(--color-text);
|
border-bottom: 2px solid var(--color-text);
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header > #searchbox {
|
||||||
|
flex-grow: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* */
|
||||||
|
|
||||||
main {
|
main {
|
||||||
padding: calc(2 * var(--step));
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
padding: calc(2 * var(--step));
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab {
|
/* */
|
||||||
appearance: none;
|
|
||||||
text-align: unset;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
background: inherit;
|
.tab {
|
||||||
color: inherit;
|
display: flex;
|
||||||
font: inherit;
|
gap: calc(2 * var(--step));
|
||||||
border: inherit;
|
padding: calc(1 * var(--step));
|
||||||
|
|
||||||
width: auto;
|
width: auto;
|
||||||
|
|
||||||
display: flex;
|
align-items: center;
|
||||||
padding: calc(1 * var(--step));
|
appearance: none;
|
||||||
gap: calc(2 * var(--step));
|
background: inherit;
|
||||||
|
border: inherit;
|
||||||
|
color: inherit;
|
||||||
|
font: inherit;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
text-align: unset;
|
||||||
user-select: initial;
|
user-select: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab > * {
|
.tab:focus-visible {
|
||||||
pointer-events: none;
|
background-color: var(--color-bg-selection);
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab:focus-visible {
|
/* */
|
||||||
outline: none;
|
|
||||||
background-color: var(--color-bg-selection);
|
.tab b {
|
||||||
|
font-weight: normal;
|
||||||
|
text-decoration: underline;
|
||||||
|
text-shadow: 0px 0px 1px currentColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* */
|
||||||
|
|
||||||
|
.tab > * {
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab > .favicon {
|
.tab > .favicon {
|
||||||
|
|
@ -67,29 +86,11 @@ main {
|
||||||
height: calc(2 * var(--step));
|
height: calc(2 * var(--step));
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab > .indicator {
|
|
||||||
flex-shrink: 0;
|
|
||||||
border-radius: 50%;
|
|
||||||
width: calc(1 * var(--step));
|
|
||||||
height: calc(1 * var(--step));
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab > .indicator.active {
|
|
||||||
background-color: var(--color-indicator-active);
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab > .indicator.discarded {
|
|
||||||
background-color: var(--color-indicator-inactive);
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab > .label {
|
.tab > .label {
|
||||||
font-family: monospace;
|
|
||||||
color: var(--color-text-alt);
|
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
|
||||||
|
|
||||||
.tab > .url {
|
|
||||||
color: var(--color-text-alt);
|
color: var(--color-text-alt);
|
||||||
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab > .title,
|
.tab > .title,
|
||||||
|
|
@ -99,8 +100,25 @@ main {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab b {
|
.tab > .url {
|
||||||
font-weight: normal;
|
color: var(--color-text-alt);
|
||||||
text-shadow: 0px 0px 1px currentColor;
|
}
|
||||||
text-decoration: underline;
|
|
||||||
|
/* */
|
||||||
|
|
||||||
|
.tab > .indicator {
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
|
width: calc(1 * var(--step));
|
||||||
|
height: calc(1 * var(--step));
|
||||||
|
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab > .indicator.active {
|
||||||
|
background-color: var(--color-indicator-active);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab > .indicator.discarded {
|
||||||
|
background-color: var(--color-indicator-inactive);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue