mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-06 10:34:51 -07:00
Some checks are pending
Build all / build_linux (push) Waiting to run
Build all / build_all (arm64, ${{ vars.SELF_HOSTED && 'orca-macos-arm64' || 'macos-14' }}) (push) Waiting to run
Build all / build_all (windows-latest) (push) Waiting to run
Build all / Unit Tests (push) Blocked by required conditions
Build all / Flatpak (push) Waiting to run
* Update 22.js * fix printer list empty * switch to vertical scrolling on custom filaments * Update 23.css * add stats * fix uncommon filament types * fix setup wizerd styling --------- Co-authored-by: SoftFever <softfeverever@gmail.com>
363 lines
No EOL
5.3 KiB
CSS
363 lines
No EOL
5.3 KiB
CSS
|
|
.ChooseBlock
|
|
{
|
|
display:flex;
|
|
line-height: 32px;
|
|
}
|
|
|
|
.CName
|
|
{
|
|
width:130px;
|
|
font-weight: 700;
|
|
height: 100%;
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
#ItemBlockArea
|
|
{
|
|
display:flex;
|
|
overflow-y:scroll;
|
|
flex-wrap:wrap;
|
|
flex-direction: row;
|
|
padding: 0 0 0 8px;
|
|
}
|
|
|
|
.MItem
|
|
{
|
|
width:33%;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-right: 4px !important;
|
|
top: -100px; /* ORCA this will be activated when item filtered with position:absolute */
|
|
}
|
|
|
|
.MItem label
|
|
{
|
|
margin-right: 0px !important;
|
|
}
|
|
|
|
#NoticeMask
|
|
{
|
|
background-color: #000;
|
|
position: absolute;
|
|
top: 0px;
|
|
left: 0px;
|
|
right: 0px;
|
|
bottom: 0px;
|
|
opacity: 0.05;
|
|
display: none;
|
|
}
|
|
|
|
#NoticeBody
|
|
{
|
|
display: none;
|
|
width: 500px;
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
border-radius: 4px;
|
|
background-color: inherit;
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 200px;
|
|
margin-left: -250px;
|
|
}
|
|
|
|
#NoticeBar
|
|
{
|
|
background-color: var(--main-color);
|
|
height: 40px;
|
|
line-height: 40px;
|
|
color: #fff;
|
|
text-align: center;
|
|
}
|
|
|
|
#NoticeContent
|
|
{
|
|
padding: 4mm 10mm;
|
|
}
|
|
|
|
|
|
#NoticeBtns
|
|
{
|
|
margin-top: 4mm;
|
|
display: flex;
|
|
justify-content:flex-end;
|
|
}
|
|
|
|
#SystemFilamentsArea
|
|
{
|
|
display: none;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
#CFilament_Btn_Area
|
|
{
|
|
display: flex;
|
|
align-items: center;
|
|
height: 30px;
|
|
}
|
|
|
|
#Title
|
|
{
|
|
margin: 0px 40px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
#Title div
|
|
{
|
|
cursor: pointer;
|
|
font-size: 24px;
|
|
}
|
|
|
|
#Title div.TitleSelected
|
|
{
|
|
height: calc(100% - 6px);
|
|
display: flex;
|
|
align-items: center;
|
|
border-bottom: 6px solid var(--main-color);
|
|
}
|
|
|
|
#Title div.TitleUnselected
|
|
{
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
color: #000;
|
|
}
|
|
|
|
#CustomFilamentsArea
|
|
{
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
#CFilament_List
|
|
{
|
|
display:flex;
|
|
overflow-y:auto;
|
|
flex-wrap:wrap;
|
|
justify-content:flex-start;
|
|
align-items: flex-start;
|
|
align-content:flex-start;
|
|
line-height: 32px;
|
|
height: 100%;
|
|
}
|
|
|
|
.CFilament_Item
|
|
{
|
|
display: flex;
|
|
align-items: center;
|
|
margin-right: 10%;
|
|
width: 44%;
|
|
}
|
|
|
|
.CFilament_Item:nth-of-type(2n) {
|
|
margin-right: 2%;
|
|
}
|
|
|
|
.CFilament_Name
|
|
{
|
|
width: 100%;
|
|
overflow: hidden;
|
|
white-space: nowrap; /* ?????? */
|
|
text-overflow: ellipsis; /* ????????? */
|
|
}
|
|
|
|
.CFilament_EditBtn
|
|
{
|
|
cursor: pointer;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.CFilament_EditBtn:hover
|
|
{
|
|
|
|
}
|
|
|
|
/* ORCA column browser */
|
|
|
|
#Content {
|
|
height: 100%;
|
|
}
|
|
|
|
body:has(#SystemFilamentBtn.TitleSelected) #Content { /* :has selector browser support 2023+ */
|
|
padding: 15px 15px 5px;
|
|
}
|
|
|
|
.cbr-browser-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
grid-template-rows: 210px auto;
|
|
width: 100%;
|
|
height: 100%;
|
|
border: 1px solid var(--border-color);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.cbr-column:last-child {
|
|
grid-column: 1 / -1;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.cbr-column {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cbr-column:nth-child(-n+2) {
|
|
border-right: 1px solid var(--border-color);
|
|
}
|
|
|
|
.cbr-column .CValues {
|
|
display: grid;
|
|
}
|
|
|
|
.CValues label {
|
|
margin-right: 0 !important;
|
|
}
|
|
|
|
.cbr-column-title-container {
|
|
position: sticky;
|
|
background: var(--bg-color-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.cbr-search-bar,
|
|
.cbr-filter-bar {
|
|
font-size: 16px;
|
|
background: var(--bg-color-secondary);
|
|
border: 1px solid transparent;
|
|
padding: 2px 27px 2px 27px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.cbr-search-bar {
|
|
width: calc(100% - 18px);
|
|
}
|
|
|
|
.cbr-filter-bar {
|
|
border-color: var(--border-color);
|
|
width: 160px;
|
|
height:24px;
|
|
}
|
|
|
|
.cbr-column-title-container .ComboBox > select {
|
|
margin: 3px 0;
|
|
height: 30px;
|
|
}
|
|
|
|
.cbr-column-title-container input:is(:hover,:focus) {
|
|
border-color: var(--main-color);
|
|
outline: none;
|
|
}
|
|
|
|
.cbr-column-title-container input:is(:focus) {
|
|
background: var(--focus-bg-box);
|
|
}
|
|
|
|
.cbr-filter-box {
|
|
position: relative;
|
|
margin: 3px;
|
|
}
|
|
|
|
.list-item-count {
|
|
color:var(--fg-color-label);
|
|
margin-left:10px
|
|
}
|
|
|
|
.cbr-filter-btns {
|
|
display: flex;
|
|
margin: 5px 5px 5px auto;
|
|
}
|
|
|
|
.cbr-filter-btns div:first-of-type {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.cbr-filter-mode-filter {
|
|
display: none;
|
|
}
|
|
|
|
.clear-icon,
|
|
.search-icon,
|
|
.filter-icon {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
-webkit-mask-image: var(--url);
|
|
mask-image: var(--url);
|
|
width: 16px;
|
|
height: 16px;
|
|
background-color: var(--icon-color);
|
|
pointer-events:none;
|
|
}
|
|
|
|
.filter-icon {--url: var(--icon-filter)}
|
|
.search-icon {--url: var(--icon-search)}
|
|
.clear-icon {--url: var(--icon-input-clear)}
|
|
|
|
.search-icon,
|
|
.filter-icon {
|
|
left: 6px;
|
|
}
|
|
|
|
.clear-icon {
|
|
right: 6px;
|
|
display: none;
|
|
}
|
|
|
|
.cbr-search-bar:not(:placeholder-shown) ~ .clear-icon,
|
|
.cbr-filter-bar:not(:placeholder-shown) ~ .clear-icon {
|
|
display: block;
|
|
}
|
|
|
|
input[onclear="1"]{
|
|
cursor:default
|
|
}
|
|
|
|
.cbr-search-placeholder,
|
|
.cbr-filter-placeholder {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 16px;
|
|
color: var(--fg-color-label);
|
|
pointer-events: none;
|
|
line-height: 24px;
|
|
left: 27px;
|
|
}
|
|
|
|
.cbr-search-bar:not(:placeholder-shown) + .cbr-search-placeholder,
|
|
.cbr-filter-bar:not(:placeholder-shown) + .cbr-filter-placeholder {
|
|
opacity: 0;
|
|
}
|
|
|
|
.cbr-content {
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.cbr-content div {
|
|
padding-left: 8px;
|
|
}
|
|
|
|
.cbr-content label {
|
|
margin-right: 0 !important;
|
|
padding: 1px 0 !important;
|
|
}
|
|
|
|
.cbr-content div.cbr-no-items {
|
|
display: none;
|
|
} |