Skip to content

Commit

Permalink
持续补全样式
Browse files Browse the repository at this point in the history
- 字数统计、拼写检查窗口
- 侧边底栏动画
  • Loading branch information
Seeridia committed Nov 28, 2024
1 parent ad0ab39 commit eed8600
Showing 1 changed file with 37 additions and 12 deletions.
49 changes: 37 additions & 12 deletions alto.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ html {
transform: rotate3d(-1, -1, 0, 15deg);
}

#top-titlebar *,
#top-titlebar {
background-color: transparent !important;
}
Expand All @@ -91,14 +90,22 @@ footer.ty-footer {
border-top-width: 0px;
}

/* 书写区域与侧边栏的右键菜单 */
/* 书写区域与侧边栏的右键菜单以及字数统计、拼写检查的样式 */
#spell-check-panel,
#footer-word-count-info,
[role="menu"] {
border-radius: 7px;
border: #d1d6d9 solid 1px;
background-color: #fff;
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
}

#ty-spell-check-panel-item-label {
border: #d1d6d9 solid 1px !important;
border-radius: 7px;
background-color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar {
width: 0.5rem;
Expand Down Expand Up @@ -193,14 +200,27 @@ footer.ty-footer {
background-color: transparent;
}

/* 侧边底栏 */
#sidebar-files-menu {
border-radius: 7px;
border-color: #fff !important;
margin-bottom: 5px;
margin-left: 2px;
margin-bottom: 0.29rem;
margin-left: 0.12rem;
background-color: #fff;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.03);
box-shadow: none;
color: var(--text-color);
scale: 0.99;
transform-origin: bottom left;
transition: scale 0.2s ease, box-shadow 0.3s ease;
}

#sidebar-files-menu:hover {
scale: 1;
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.sidebar-footer-item:hover {
background: none;
}

#ty-tooltip {
Expand Down Expand Up @@ -272,11 +292,6 @@ footer.ty-footer {
background-color: var(--alto-bg-color);
}

.long-btn:last-of-type,
.long-btn.do-export-button {
border-radius: 6px;
}

#recent-file-panel-search-input,
#recent-file-panel-action-btn {
margin: 12px 0px 0px;
Expand Down Expand Up @@ -342,10 +357,15 @@ footer.ty-footer {
display: none;
}

/* 打开、导出、主题界面的按钮动画 */
/* 打开、导出、主题界面的按钮 */
.long-btn:last-of-type,
.long-btn.do-export-button {
border-radius: 10px;
}

.long-btn,
.theme-preview-div {
transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
transform: scale(0.98);
}

Expand All @@ -362,4 +382,9 @@ header,

#recent-document-table {
border-radius: 7px;
}

/* 部分主题的提示 Pandoc 下载没有高亮 */
.open-pandoc-guide {
color: var(--alto-main-color) !important;
}

1 comment on commit eed8600

@vercel
Copy link

@vercel vercel bot commented on eed8600 Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.