Z ZPI 文档 v0.3.8
介绍页

源码

packages/desktop/src/renderer/browser-pane.css

css83 行查看原文
.browser-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--color-bg);
}
/* Match ZCode's 48px toolbar, 28px controls and 32px address pill.
   The unused responsive/picker/menu controls leave their space to the address. */
.browser-toolbar {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 12px;
  gap: 8px;
  border: 0;
  flex-shrink: 0;
  background: inherit;
}
.browser-toolbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
}
.browser-toolbar form {
  flex: 1;
  min-width: 0;
}
.browser-toolbar input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-input);
  color: var(--color-text);
  font-size: var(--text-body);
  line-height: 1.625;
  padding: 2px 12px;
  text-align: center;
  transition: border-color 150ms;
}
.browser-toolbar input::placeholder {
  color: var(--color-text-subtlest);
  opacity: 1;
}
.browser-toolbar input:hover,
.browser-toolbar input:focus {
  border-color: var(--color-border-strong);
}
.browser-toolbar input:focus {
  text-align: left;
}
.browser-surface {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: inherit;
}
.browser-webview {
  display: flex;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.browser-refresh-spinning {
  animation: browser-refresh-spin 1s linear infinite;
}
@keyframes browser-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}