mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 00:46:23 +00:00
151 lines
2.3 KiB
CSS
151 lines
2.3 KiB
CSS
.cp__header {
|
|
@apply shadow z-10 h-12;
|
|
-webkit-app-region: drag;
|
|
|
|
padding-right: 0.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 0 0 auto;
|
|
background-color: var(--ls-primary-background-color, #fff);
|
|
position: sticky;
|
|
position: -webkit-sticky;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
user-select: none;
|
|
line-height: 1;
|
|
|
|
.it svg {
|
|
transform: scale(0.8);
|
|
}
|
|
|
|
.repos {
|
|
.dropdown-wrapper {
|
|
left: unset;
|
|
right: -46px;
|
|
min-width: 14rem;
|
|
}
|
|
}
|
|
|
|
a.button {
|
|
margin: 0 4px;
|
|
}
|
|
|
|
svg.warning {
|
|
transform: scale(0.6);
|
|
color: red;
|
|
}
|
|
|
|
&-tips {
|
|
position: absolute;
|
|
width: 100%;
|
|
padding: 0 0;
|
|
transform: translateY(100%);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: var(--ls-secondary-background-color);
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
left: 0;
|
|
top: -2px;
|
|
color: var(--ls-secondary-text-color);
|
|
|
|
> p {
|
|
margin: 0;
|
|
padding: 0 0 6px 0;
|
|
}
|
|
|
|
a {
|
|
color: var(--ls-link-text-color) !important;
|
|
}
|
|
|
|
a.restart {
|
|
position: relative;
|
|
top: 3px;
|
|
cursor: pointer !important;
|
|
|
|
svg {
|
|
color: currentColor !important;
|
|
}
|
|
|
|
> strong {
|
|
display: inline-block;
|
|
padding-left: 2px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.is-electron.is-mac .cp__header {
|
|
padding-left: 78px;
|
|
}
|
|
|
|
.cp__header .navigation svg {
|
|
transform: scale(0.7);
|
|
}
|
|
|
|
.is-electron.is-mac.is-fullscreen .cp__header {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.cp__header a, .cp__header svg {
|
|
-webkit-app-region: no-drag;
|
|
}
|
|
|
|
.cp__header-logo {
|
|
@apply p-2;
|
|
}
|
|
|
|
.cp__header-logo {
|
|
display: none;
|
|
}
|
|
|
|
.cp__header-logo:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.cp__header-logo-img {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
@screen sm {
|
|
.cp__header {
|
|
@apply shadow-none;
|
|
}
|
|
|
|
.cp__header-logo {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.cp__header-logo svg {
|
|
transform: scale(0.9);
|
|
}
|
|
|
|
#repo-name {
|
|
display: table-cell;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 7ch;
|
|
height: 14px;
|
|
}
|
|
|
|
a.button {
|
|
padding: 0.25rem;
|
|
opacity: 0.6;
|
|
display: block;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
a.button:hover {
|
|
opacity: 1;
|
|
background: var(--ls-tertiary-background-color);
|
|
}
|
|
|
|
.is-mac.is-electron :is(.cp__header, .cp__right-sidebar-topbar) :is(button, .button, a) {
|
|
cursor: default !important;
|
|
}
|