Files
OrcaSlicer/resources/web/homepage/css/home.css
2026-09-07 23:42:29 +08:00

1078 lines
16 KiB
CSS

*
{
padding:0px;
border: 0px;
margin: 0px;
font-family: "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-sans;
border-color: #D7D7D7;
user-select: none;
}
html, body {
height: 100%;
width: 100%;
margin: 0px;
padding: 0px;
line-height: 20px;
font-size: 16px;
}
.ZScrol::-webkit-scrollbar {/*滚动条整体样式*/
width: 12px; /*高宽分别对应横竖滚动条的尺寸*/
height: 1px;
padding: 2px;
}
.ZScrol::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
border-radius: 6px;
-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
background-color: #AAAAAA;
}
.ZScrol::-webkit-scrollbar-track {/*滚动条里面轨道*/
-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
border-radius: 10px;
background: #EDEDED;
}
.RedFont
{
font-size:12px;
color: var(--warn-color);
}
.LinkBtn
{
font-size:12px;
color: #00ffea;
cursor: pointer;
}
.LinkBtn:hover
{
text-decoration:underline;
}
/*------------------*/
#DebugText
{
height:30px;
}
/*------------------*/
body
{
display:flex;
justify-content: flex-start;
}
#LeftBoard
{
display: none; /* shown by cloud_providers_info from backend */
border-right-width: 1px;
border-right-style: solid;
width:262px;
height: 100%;
}
/*------Account rows and account menu------*/
/*----These shadow similar tokens in global.css on purpose: global.css themes on the OS
via prefers-color-scheme, while this page themes on the dark.css link that
SwitchDarkMode() injects from the app theme, so the two can disagree.----*/
:root
{
--row-hover : #BFE1DE;
--warn-color : #F07E4A;
--account-avatar-bg : #E6EBEA;
--account-avatar-glyph : #9AA5A3;
--account-surface : #FFFFFF;
--account-name : #262E30;
--account-meta : #7C8282;
--account-border : #DBDBDB;
--account-divider : #E2E4E4;
--account-action : #00796B;
--account-danger : #D33B3B;
--account-danger-bg : rgba(211, 59, 59, 0.10);
--account-warn-bg : rgba(240, 126, 74, 0.12); /*----var(--warn-color) at 12%----*/
--account-dot-off : #C4CBCA;
--account-dot-on : #34A853;
--account-menu-shadow : 0 10px 28px rgba(20, 30, 28, 0.18);
--glyph-account:
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><circle cx="16" cy="12" r="5.6"/><path d="M4.9 29a11.1 11.1 0 0 1 22.2 0Z"/></svg>');
--glyph-logout:
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="black" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 2.5H3.5v11h6"/><path d="M11 5.5L14 8l-3 2.5"/><path d="M14 8H6.5"/></svg>');
}
#LoginArea
{
position: relative;
padding: 10px 8px;
box-sizing: border-box;
width: 262px;
border-bottom: 1px solid var(--account-divider);
}
.AccountRow
{
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px 8px 14px; /*----label column lines up with the navigation below----*/
border-radius: 8px;
cursor: pointer;
user-select: none;
}
.AccountRow:hover
{
background-color: var(--row-hover);
}
.AccountRow:focus-visible
{
outline: 2px solid var(--account-action);
outline-offset: -2px;
}
.AccountRow.Disabled
{
cursor: default;
opacity: 0.5;
}
.AccountRow.Disabled:hover
{
background-color: transparent;
}
.AccountRow.Disabled .AccountSignIn
{
display: none;
}
/*----Avatar----*/
.AccountAvatar
{
position: relative;
flex: 0 0 auto;
width: 36px;
height: 36px;
border-radius: 50%;
background-color: var(--account-avatar-bg);
}
.AccountAvatar::before /* placeholder shown until an avatar image loads */
{
content: "";
position: absolute;
inset: 0;
-webkit-mask-image: var(--glyph-account);
mask-image: var(--glyph-account);
-webkit-mask-size: 100% 100%;
mask-size: 100% 100%;
background-color: var(--account-avatar-glyph);
}
.AccountAvatarImg
{
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
display: block;
}
.AccountAvatarImg:not([src])
{
display: none;
}
/*----Row labels----*/
.AccountText
{
display: flex;
flex-direction: column;
justify-content: center;
flex: 1 1 auto;
min-width: 0;
}
.AccountName,
.AccountSecondary /*----the provider name, or the sign-in state where the row has no name yet----*/
{
font-size: 15px;
line-height: 20px;
color: var(--account-name);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.AccountName
{
display: none;
font-weight: 600;
}
.AccountSignIn
{
flex: 0 0 auto;
font-size: 12px;
font-weight: 600;
color: var(--account-action);
}
.AccountChevron
{
display: none;
flex: 0 0 auto;
width: 12px;
height: 12px;
color: var(--account-meta);
transition: transform 0.15s ease;
}
.AccountRow.SignedIn .AccountName { display: block; }
.AccountRow.SignedIn .AccountChevron { display: block; }
.AccountRow.SignedIn .AccountSignIn { display: none; }
.AccountRow.SignedIn .AccountSecondary
{
font-size: 11px;
line-height: 14px;
color: var(--account-meta);
}
.AccountRow.MenuOpen .AccountChevron { transform: rotate(180deg); }
#NoPluginTip
{
display: none;
margin: 4px 0 2px;
padding: 8px 10px;
border-radius: 6px;
background-color: var(--account-warn-bg);
}
#NoPluginText
{
line-height: 16px;
}
#NoPluginTip .LinkBtn
{
color: var(--warn-color);
text-decoration: underline;
}
/*----Bambu Cloud, folded under the main account----*/
#BambuCloudSection
{
display: none; /* shown by cloud_providers_info from backend */
margin-top: 8px;
padding-top: 6px;
border-top: 1px solid var(--account-divider);
}
#BambuCloudHeader
{
display: flex;
align-items: center;
gap: 8px;
height: 28px;
padding: 0 10px 0 14px;
border-radius: 6px;
font-size: 12px;
color: var(--account-meta);
cursor: pointer;
user-select: none;
}
#BambuCloudHeader:hover
{
color: var(--account-name);
}
#BambuCloudHeader:focus-visible
{
outline: 2px solid var(--account-action);
outline-offset: -2px;
}
.SectionChevron
{
flex: 0 0 auto;
width: 12px;
height: 12px;
transition: transform 0.2s ease;
}
#BambuCloudHeader.Expanded .SectionChevron
{
transform: rotate(90deg);
}
.SectionLabel
{
flex: 1 1 auto;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#BambuStatusDot
{
flex: 0 0 auto;
width: 7px;
height: 7px;
border-radius: 50%;
background-color: var(--account-dot-off);
}
#BambuStatusDot.Online
{
background-color: var(--account-dot-on);
}
#BambuCloudBody
{
max-height: 0;
overflow: hidden;
transition: max-height 0.25s ease;
}
#BambuCloudBody.Expanded
{
max-height: 200px;
padding-bottom: 2px;
}
.AccountRowCompact
{
padding: 6px 10px 6px 24px;
}
.AccountRowCompact .AccountAvatar
{
width: 26px;
height: 26px;
}
.AccountRowCompact .AccountName,
.AccountRowCompact .AccountSecondary
{
font-size: 13px;
line-height: 17px;
}
.AccountRowCompact .AccountSecondary
{
color: var(--account-meta);
}
.AccountRowCompact.SignedIn .AccountSecondary /*----the section header already names this provider----*/
{
display: none;
}
/*----Account menu----*/
#AccountMenu
{
display: none;
position: absolute;
left: 8px;
right: 8px;
z-index: 20;
padding: 4px;
border-radius: 10px;
border: 1px solid var(--account-border);
background-color: var(--account-surface);
box-shadow: var(--account-menu-shadow);
}
#AccountMenu.Open
{
display: block;
animation: AccountMenuIn 0.12s ease-out;
}
@keyframes AccountMenuIn
{
from { opacity: 0; transform: translateY(-4px); }
to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce)
{
#AccountMenu.Open { animation: none; }
.AccountChevron,
.SectionChevron,
#BambuCloudBody { transition: none; }
}
#AccountMenuHandle
{
display: none;
padding: 9px 10px;
border-bottom: 1px solid var(--account-border);
font-size: 12px;
line-height: 16px;
color: var(--account-meta);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#AccountMenuLogout
{
display: flex;
align-items: center;
gap: 8px;
height: 34px;
padding: 0 10px;
border-radius: 6px;
font-size: 13px;
color: var(--account-name);
cursor: pointer;
}
#AccountMenuLogout:hover
{
background-color: var(--account-danger-bg);
color: var(--account-danger);
}
#AccountMenuLogout:focus-visible
{
outline: 2px solid var(--account-action);
outline-offset: -2px;
}
#AccountMenuLogoutIcon
{
width: 15px;
height: 15px;
-webkit-mask: var(--glyph-logout) center / contain no-repeat;
mask: var(--glyph-logout) center / contain no-repeat;
background-color: currentColor;
}
/*------------------*/
#BtnArea
{
}
.BtnItem
{
padding-left:40px;
height:50px;
line-height: 50px;
display: flex;
justify-content:flex-start;
cursor: pointer;
}
.BtnItem:hover
{
background-color: var(--row-hover);
}
.BtnItemSelected
{
background-color: var(--row-hover);
}
.BtnIcon
{
margin-right:6px;
display: flex;
flex-direction: column;
justify-content: center;
}
.LeftIcon
{
width:20px;
height: 20px;
}
.BtnShortcut
{
padding-right: 18px;
}
.ShortcutBrandIcon
{
width: 20px;
height: 20px;
border-radius: 5px;
display: block;
}
.ShortcutTextRow
{
display: flex;
align-items: center;
gap: 8px;
width: 100%;
min-width: 0;
}
.ShortcutMark
{
width: 14px;
height: 14px;
margin-left: auto;
color: currentColor;
opacity: 0.72;
flex: 0 0 auto;
}
/*--------------------*/
#RightBoard
{
width: 100%;
height: 100%;
min-width: 835px;
overflow-y:auto;
}
#ContentBoard
{
overflow-y:auto;
padding: 0px 40px;
display: flex;
flex-direction: column;
position: relative;
height: 100%;
}
.TitleSmallIcon
{
width:30px;
height: 30px;
margin-right: 10px;
}
#MenuArea
{
height: 140px;
display: flex;
align-items: center;
flex: 0 0 140px;
}
.MenuItem
{
border-width: 1px;
border-style: solid;
border-radius: 12px;
height: 101px;
width: 253px;
padding-left: 20px;
display: flex;
justify-content: flex-start;
align-items: center;
margin-right: 16px;
cursor: pointer;
}
.MenuItem:hover
{
border-color: #009688; /*ORCA color*/
background-color: #E5F0EE; /*ORCA color with %25 opacity*/
}
.MenuIcon
{
margin-right: 1em;
}
.MenuIcon img
{
width:56px;
height: 56px;
}
.MenuDesc
{
color: #A8A8A8;
}
.Content-Title
{
line-height: 30px;
font-weight: 700;
}
#HotspotWEB
{
width:100%;
height: 420px;
}
#HotModelBlock
{
display:flex;
align-items: center;
justify-content: space-between;
padding: 0px;
}
#HotModel_LEFT_Title
{
display:flex;
align-items: center;
padding: 6px 0px;
}
#HotModel_RIGHT_Title
{
font-size:16px;
}
.HotModel_PrevImg
{
width: 200px;
height: 148px;
object-fit: cover;
}
#RecentFileArea
{
margin-top: 10px;
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
}
#RecentTitleBlock
{
display:flex;
align-items: center;
padding: 6px 0px;
}
#RecentClearAllBtn
{
margin-left: 20px;
display: none;
}
#RecentTitle
{
}
#FileList
{
flex: 1;
display: flex;
flex-wrap: wrap;
align-content: flex-start;
overflow-y: auto;
min-height: 0;
}
.FileItem
{
width: 184px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
position: relative;
cursor: pointer;
margin: 8px;
}
.FileTip
{
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
}
.FileImg
{
text-align: center;
background-color: #E4E4E4;
border-radius: 8px;
width: 184px;
height: 184px;
}
.FileItem img
{
width: 184px;
height: 184px;
border-radius: 8px;
display: inline-block;
object-fit: cover;
}
.FileName
{
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
}
.FileDate
{
color: #A8A8A8;
}
#recnet_context_menu
{
position: absolute;
margin: 0px;
padding: 10px;
border: 0px;
min-width: 100px;
border: 1px solid #D7D7D7;
top: 100px;
border-radius: 5px;
color: #323A3D;
background-color: #fff;
display: none;
z-index: 1;
}
.CT_Item
{
padding: 4px 12px;
display: flex;
flex-direction: row;
align-items: center;
}
.CT_Item:hover
{
cursor: pointer;
background-color:#009688; /*ORCA color*/
border-radius: 4px;
color: #fff;
}
.CT_Icon
{
margin-right: 6px;
width: 16px;
height: 16px;
}
#CT_Delete_Bar:hover .CT_Delete
{
background: url("../img/remove2.svg");
background-repeat: no-repeat;
background-size: contain;
}
.CT_Delete
{
background: url("../img/remove.svg");
background-repeat: no-repeat;
background-size: contain;
}
#CT_Folder_Bar:hover .CT_Explore
{
background: url("../img/open_folder2.svg");
background-repeat: no-repeat;
background-size: contain;
}
.CT_Explore
{
background: url("../img/open_folder.svg");
background-repeat: no-repeat;
background-size: contain;
}
.CT_Seperate
{
border-bottom:1px solid #C5C5C5;
}
.CT_Text
{
line-height: 20px;
height: 20px;
display: block;
}
/*--------Mall------*/
#MallBoard
{
height: 100%;
max-width: 1600px;
overflow-y: hidden;
padding: 0px 40px;
display: none;
}
#MallWeb
{
width: 100%;
height: 95%;
border: 1px solid #D9D9D9;
}
/*------Manual------*/
#ManualBoard
{
height: 100%;
max-width: 1600px;
overflow-y: hidden;
padding: 0px 40px;
display: none;
}
#ManualWeb
{
width: 100%;
height: 95%;
border: 1px solid #D9D9D9;
}
/*---------Wiki----------*/
#WikiGuideBigBoard
{
display:none;
}
#WikiGuideBoard
{
display: flex;
flex-wrap: wrap;
align-content: flex-start;
overflow-y: auto;
margin: 30px 40px;
position: relative;
top: 0px;
bottom: 0px;
right: 0px;
left: 0px;
}
@media screen and (max-width: 1100px) {
.GuideBlock
{
width: calc(50% - 20px);
margin: 0px 10px 40px 10px;
cursor: pointer;
}
}
@media screen and ( min-width:1101px) and ( max-width:1680px )
{
.GuideBlock
{
width: calc(33% - 20px);
margin: 0px 10px 40px 10px;
cursor: pointer;
}
}
@media screen and ( min-width:1681px) and (max-width:2120px ) {
.GuideBlock
{
width: calc(25% - 20px);
margin: 0px 10px 40px 10px;
cursor: pointer;
}
}
@media screen and ( min-width:2121px) and (max-width:2620px ) {
.GuideBlock
{
width: calc(20% - 20px);
margin: 0px 10px 40px 10px;
cursor: pointer;
}
}
@media screen and (min-width:2621px ) and (max-width:3120px ) {
.GuideBlock
{
width: calc(16.6% - 20px);
margin: 0px 10px 40px 10px;
cursor: pointer;
}
}
@media screen and (min-width:3121px ) {
.GuideBlock
{
width: calc(14.2% - 20px);
margin: 0px 10px 40px 10px;
cursor: pointer;
}
}
.UG_IMG
{
width: 100%;
}
.UG_IMG img
{
width: 100%;
border-radius: 5px 5px 0px 0px;
}
.UG_TITLE
{
font-size: 18px;
font-weight: 700;
line-height: 20px;
width: 100%;
margin-top: 20px;
margin-bottom: 4px;
}
.UG_DESC
{
width: 100%;
line-height: 18px;
color: #4E5454;
font-size: 14px;
}
/*--Staff Pick--*/
#HotModelArea
{
display: none;
}
#HotModel_Swiper
{
padding: 0px;
}
.HotModel_Designer_Info
{
display:flex;
align-items: center;
height: 28px;
padding: 0px 8px;
}
.HotModel_Designer_Info img
{
width: 16px;
height: 16px;
border-radius: 8px;
}
.HotModel_Designer_Info span
{
margin-left: 6px;
font-size: 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#HotModel_RIGHT_Title:hover
{
cursor: pointer;
color:#009688;
}
.HotModelPiece
{
width: 200px!important;
display:flex;
flex-direction: column;
cursor: pointer;
border: 1px solid #EEEEEE;
box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.04);
border-radius: 8px;
}
.HotModel_PrevBlock
{
height: 150px;
}
.HotModel_PrevImg
{
width: 200px;
height: 150px;
}
.HotModel_NameText
{
height: 32px;
line-height: 32px;
padding: 0px 8px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 14px;
}
.swiper-scrollbar
{
height: 10px!important;
}
.swiper-button-prev
{
width: 40px!important;
height: 40px!important;
border-radius: 20px!important;
background: rgba(244, 244, 244, 0.88);
}
.swiper-button-next
{
width: 40px!important;
height: 40px!important;
border-radius: 20px!important;
background: rgba(244, 244, 244, 0.88);
}
.swiper
{
--swiper-theme-color: #ff6600;/* 设置Swiper风格 */
--swiper-navigation-color: #676767;/* 单独设置按钮颜色 */
--swiper-navigation-size: 12px;/* 设置按钮大小 */
}
.swiper-button-disabled
{
opacity: 1!important;
cursor: pointer!important;
pointer-events: auto!important;
}