feat: bootstrap tauri motrix-style UI and aria2 torrent flow
This commit is contained in:
497
src/style.css
Normal file
497
src/style.css
Normal file
@@ -0,0 +1,497 @@
|
||||
:root {
|
||||
--bg-app: #121317;
|
||||
--bg-sidebar: #0a0b0d;
|
||||
--bg-sidebar-active: #202227;
|
||||
--bg-main: #15171c;
|
||||
--bg-card: #1f2127;
|
||||
--bg-card-soft: #2a2d34;
|
||||
--line: #31353f;
|
||||
--line-soft: #3a3f4a;
|
||||
--text-main: #e4e8f1;
|
||||
--text-sub: #a4adbf;
|
||||
--brand: #5e62f3;
|
||||
--brand-dark: #4e52dd;
|
||||
--success: #27b47a;
|
||||
--danger: #d06375;
|
||||
--radius: 10px;
|
||||
|
||||
font-family: "SF Pro Text", "Pretendard", "Noto Sans KR", sans-serif;
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg-app);
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
#app { min-height: 100vh; }
|
||||
|
||||
.app-shell {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
grid-template-columns: 74px 1fr;
|
||||
background: var(--bg-main);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.app-shell.app-drop-active::after {
|
||||
content: 'torrent 파일을 놓으면 추가 창이 열립니다';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(15, 18, 24, 0.74);
|
||||
border: 2px dashed rgba(122, 131, 255, 0.72);
|
||||
color: #d5daff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1rem;
|
||||
z-index: 90;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
background: var(--bg-sidebar);
|
||||
border-right: 1px solid #14161b;
|
||||
padding: 12px 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.brand {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #d7dff0;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.side-icons { display: flex; flex-direction: column; gap: 8px; }
|
||||
|
||||
.side-icon {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
border: 1px solid transparent;
|
||||
background: transparent;
|
||||
color: #9ca6ba;
|
||||
border-radius: 8px;
|
||||
font-size: 1.2rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.side-icon:hover,
|
||||
.side-icon.add { background: #15181e; color: #d8def0; }
|
||||
|
||||
.sidebar nav {
|
||||
margin-top: 6px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.sidebar nav a {
|
||||
color: #98a3b8;
|
||||
text-decoration: none;
|
||||
font-size: 0.74rem;
|
||||
text-align: center;
|
||||
padding: 8px 0;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.sidebar nav a.active,
|
||||
.sidebar nav a:hover { background: var(--bg-sidebar-active); color: #ecf0fa; }
|
||||
|
||||
.sidebar-foot { margin-top: auto; }
|
||||
|
||||
.content {
|
||||
padding: 14px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.toolbar-left { display: flex; align-items: baseline; gap: 10px; }
|
||||
|
||||
h1 { margin: 0; font-size: 1.16rem; font-weight: 600; }
|
||||
|
||||
.count { color: var(--text-sub); font-size: 0.8rem; }
|
||||
|
||||
.toolbar-right { display: flex; align-items: center; gap: 8px; }
|
||||
|
||||
.switcher {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-sub);
|
||||
}
|
||||
|
||||
.card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.notice {
|
||||
border-radius: 8px;
|
||||
padding: 8px 10px;
|
||||
margin-bottom: 8px;
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.notice.error {
|
||||
background: rgba(208, 99, 117, 0.16);
|
||||
color: #ffb8c3;
|
||||
border: 1px solid rgba(208, 99, 117, 0.3);
|
||||
}
|
||||
|
||||
.notice.success {
|
||||
background: rgba(39, 180, 122, 0.16);
|
||||
color: #a7f0cc;
|
||||
border: 1px solid rgba(39, 180, 122, 0.3);
|
||||
}
|
||||
|
||||
.main-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 280px;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.task-pane { padding: 10px; min-height: 560px; }
|
||||
|
||||
.tabs { display: flex; gap: 6px; margin-bottom: 8px; }
|
||||
|
||||
.tabs button {
|
||||
border: 1px solid var(--line-soft);
|
||||
background: #23262d;
|
||||
color: #a4aec0;
|
||||
padding: 5px 10px;
|
||||
border-radius: 7px;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.tabs button.active {
|
||||
border-color: #575ced;
|
||||
background: #30335c;
|
||||
color: #e0e3ff;
|
||||
}
|
||||
|
||||
.task-table-wrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
|
||||
|
||||
.task-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.84rem;
|
||||
}
|
||||
|
||||
.task-table th,
|
||||
.task-table td {
|
||||
text-align: left;
|
||||
padding: 9px;
|
||||
border-bottom: 1px solid #2b2f37;
|
||||
}
|
||||
|
||||
.task-table th {
|
||||
font-size: 0.72rem;
|
||||
color: #8f9ab0;
|
||||
background: #1a1c22;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.file-cell { display: flex; flex-direction: column; gap: 2px; }
|
||||
.file-cell strong { font-weight: 600; }
|
||||
.file-cell small { color: var(--text-sub); font-size: 0.72rem; }
|
||||
|
||||
.status-tag {
|
||||
display: inline-block;
|
||||
border-radius: 999px;
|
||||
padding: 2px 8px;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
text-transform: capitalize;
|
||||
background: #343948;
|
||||
color: #aeb8d1;
|
||||
}
|
||||
|
||||
.status-tag.active { background: #1d365f; color: #9ec7ff; }
|
||||
.status-tag.waiting { background: #504122; color: #f0ce86; }
|
||||
.status-tag.complete,
|
||||
.status-tag.stopped { background: #264735; color: #9fe5c2; }
|
||||
.status-tag.error,
|
||||
.status-tag.removed { background: #5a2d39; color: #ffb8c3; }
|
||||
|
||||
.progress-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.bar {
|
||||
position: relative;
|
||||
height: 6px;
|
||||
border-radius: 999px;
|
||||
background: #343844;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.bar span {
|
||||
position: absolute;
|
||||
inset: 0 auto 0 0;
|
||||
background: linear-gradient(90deg, #5b86ff, #5860f0);
|
||||
}
|
||||
|
||||
.progress-row small { color: #a8b2c4; font-size: 0.72rem; }
|
||||
|
||||
.empty { text-align: center; color: var(--text-sub); }
|
||||
|
||||
.right-pane {
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.right-pane h2 { margin: 0; font-size: 0.98rem; }
|
||||
.right-pane h3 { margin: 6px 0 2px; font-size: 0.86rem; }
|
||||
|
||||
.runtime { margin: 0; font-weight: 700; }
|
||||
.runtime.ok { color: var(--success); }
|
||||
.runtime.off { color: #949db0; }
|
||||
|
||||
.right-pane p { margin: 0; color: #9aa3b8; font-size: 0.8rem; }
|
||||
|
||||
.right-pane label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
font-size: 0.75rem;
|
||||
color: #a3acbe;
|
||||
}
|
||||
|
||||
.right-pane input,
|
||||
.add-modal input,
|
||||
.add-modal textarea {
|
||||
height: 33px;
|
||||
border: 1px solid #434955;
|
||||
border-radius: 7px;
|
||||
padding: 7px 9px;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-main);
|
||||
background: #242830;
|
||||
}
|
||||
|
||||
.add-modal textarea {
|
||||
resize: none;
|
||||
height: auto;
|
||||
min-height: 92px;
|
||||
}
|
||||
|
||||
.right-pane input:focus,
|
||||
.add-modal input:focus,
|
||||
.add-modal textarea:focus {
|
||||
outline: none;
|
||||
border-color: #656cf5;
|
||||
box-shadow: 0 0 0 2px rgba(94, 98, 243, 0.18);
|
||||
}
|
||||
|
||||
button {
|
||||
border: 1px solid var(--brand);
|
||||
background: var(--brand);
|
||||
color: #f7f8ff;
|
||||
border-radius: 7px;
|
||||
padding: 7px 11px;
|
||||
font-size: 0.81rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
|
||||
|
||||
button.ghost {
|
||||
background: #2a2d34;
|
||||
color: #c1c8d8;
|
||||
border-color: #424854;
|
||||
}
|
||||
|
||||
button.ghost:hover {
|
||||
background: #333741;
|
||||
border-color: #525a69;
|
||||
}
|
||||
|
||||
button.small { padding: 4px 8px; font-size: 0.74rem; }
|
||||
|
||||
button:disabled { opacity: 0.55; cursor: not-allowed; }
|
||||
|
||||
.engine-actions { display: flex; gap: 7px; margin: 4px 0 6px; }
|
||||
|
||||
.modal-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.45);
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
padding-top: 90px;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.add-modal {
|
||||
width: min(680px, calc(100vw - 32px));
|
||||
background: var(--bg-card-soft);
|
||||
border: 1px solid #434955;
|
||||
border-radius: 9px;
|
||||
box-shadow: 0 22px 56px rgba(0, 0, 0, 0.44);
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid #484f5b;
|
||||
}
|
||||
|
||||
.modal-tabs { display: flex; gap: 8px; }
|
||||
|
||||
.modal-tabs button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: #a9b1c4;
|
||||
border-bottom: 2px solid transparent;
|
||||
border-radius: 0;
|
||||
padding: 4px 2px;
|
||||
}
|
||||
|
||||
.modal-tabs button.active { color: #e7eaff; border-bottom-color: #5b62f3; }
|
||||
|
||||
.icon-btn {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
color: #a5aec1;
|
||||
font-size: 1.2rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.hidden-input { display: none; }
|
||||
|
||||
.modal-body {
|
||||
padding: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.modal-body label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
font-size: 0.8rem;
|
||||
color: #a9b2c4;
|
||||
}
|
||||
|
||||
.modal-body small { color: #919cb2; font-size: 0.74rem; }
|
||||
|
||||
.torrent-drop-zone {
|
||||
border: 1px dashed #5a606f;
|
||||
border-radius: 8px;
|
||||
min-height: 118px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
padding: 12px;
|
||||
color: #adb5c7;
|
||||
background: #242830;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.torrent-drop-zone.active {
|
||||
border-color: #6f75ff;
|
||||
background: #2b2f45;
|
||||
color: #d4d9ff;
|
||||
}
|
||||
|
||||
.torrent-selected {
|
||||
border: 1px solid #454b59;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.torrent-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 8px 10px;
|
||||
background: #2f333a;
|
||||
border-bottom: 1px solid #454b59;
|
||||
}
|
||||
|
||||
.torrent-head strong {
|
||||
font-size: 0.84rem;
|
||||
color: #d8deed;
|
||||
}
|
||||
|
||||
.torrent-file-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.torrent-file-table th,
|
||||
.torrent-file-table td {
|
||||
border-bottom: 1px solid #3f4450;
|
||||
padding: 8px;
|
||||
color: #cad2e2;
|
||||
}
|
||||
|
||||
.torrent-file-table th {
|
||||
font-size: 0.72rem;
|
||||
color: #a0abc0;
|
||||
background: #262a31;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.modal-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 140px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
border-top: 1px solid #484f5b;
|
||||
padding: 10px 12px;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.main-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.app-shell { grid-template-columns: 1fr; }
|
||||
.sidebar { display: none; }
|
||||
}
|
||||
Reference in New Issue
Block a user