diff --git a/src/css/app.css b/src/css/app.css index 4811d2a..63c1f66 100644 --- a/src/css/app.css +++ b/src/css/app.css @@ -1 +1 @@ -html{font-size:12.8px;width:100%;height:100vh}body{overflow:hidden;display:flex;flex-direction:column;width:100%;height:100%;line-height:1.25;font-size:14px;color:var(--color-dark-1);background:rgba(255,255,255,0.3)}.app-drag{-webkit-app-region:drag;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.app-nodrag{-webkit-app-region:no-drag}.app{position:relative;display:flex;height:100%}.app .sidebar{display:flex;flex-direction:column;justify-content:space-between;width:76px;height:100%;padding:48px 22px 24px;background:var(--color-dark-1);color:var(--color-plain-1)}.app .sidebar .item{cursor:pointer}.app .sidebar .item:hover,.app .sidebar .item.active{color:var(--color-orange-1)}.app .sidebar .item:active{color:var(--color-orange-2)}.app .select-box{display:flex;flex-direction:column;width:200px;height:100%;background:rgba(255,255,255,0.5)}.app .select-box .form{display:flex;align-items:center;width:100%;height:35px;padding:0 6px;background:#fff;border-bottom:1px solid var(--color-plain-2)}.app .select-box .form wc-input{flex:1}.app .select-box .list{flex:1}.app .select-box .list .item{display:flex;flex-direction:column;justify-content:center;height:48px;padding:6px;border-bottom:1px solid rgba(200,200,200,0.3);transition:color 0.15s ease-in-out, background 0.15s ease-in-out;cursor:pointer}.app .select-box .list .item section{display:flex;justify-content:space-between;align-items:center}.app .select-box .list .item cite{color:var(--color-grey-2)}.app .select-box .list .item .percent{padding:0 4px;border-radius:2px;font-size:12px;font-weight:bold;color:var(--color-grey-1)}.app .select-box .list .item .percent.red{color:var(--color-red-1)}.app .select-box .list .item .percent.green{color:var(--color-green-3)}.app .select-box .list .item:last-child{border-bottom:0}.app .select-box .list .item:hover{color:var(--color-blue-1);background:rgba(255,255,255,0.7)}.app .select-box .list .item.active{color:var(--color-plain-1);background:var(--color-blue-1)}.app .select-box .list .item.active cite{color:inherit}.app .select-box .list .item.active .percent{color:#fff}.app .detail{position:relative;flex:1;height:100%;border-left:1px solid var(--color-plain-2);background:#fff}.app .detail .title{display:flex;justify-content:space-between;align-items:center;width:100%;height:35px;padding:0 16px;font-size:16px;font-weight:bold}.app .detail .title span{display:inline-flex}.app .detail .title wc-button{margin:0 6px}.app .detail .card{width:96%;padding:12px 12px 16px;margin:12px 2% 24px;border:0;background:#fff;box-shadow:0 0 8px rgba(0,0,0,0.075)}.app .detail .card legend{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:#64b5f6}.app .detail.blur::after{display:flex;justify-content:center;align-items:center;position:absolute;left:0;top:0;z-index:999;width:100%;height:100%;content:'ๆๅบๆฐๆฎ';background:#fff;color:#f7f8fb;font-size:100px}.app .preferences{width:640px;height:360px;border-radius:10px}.app .preferences .titlebar{width:100%;height:72px;border-bottom:1px solid var(--color-plain-3);background:var(--color-plain-1)}.app .preferences .titlebar .title{width:100%;height:24px;line-height:24px;text-align:center}.app .preferences .titlebar nav{display:flex;width:100%;height:40px;padding:0 16px;--size: 18px}.app .preferences .titlebar nav span{display:flex;flex-direction:column;align-items:center;justify-content:center;width:52px;height:40px;margin:0 6px;border-radius:6px;font-size:12px}.app .preferences .titlebar nav span.active{background:var(--color-plain-2);color:var(--color-blue-1)}.app .preferences .titlebar nav span:hover{background:var(--color-plain-2)}.app .preferences .tab-panel{padding:64px}.app .preferences .tab-panel p{margin-bottom:16px}.app .preferences .tab-panel .field{display:flex;align-items:center;height:64px}.app .preferences .tab-panel .field .label{width:200px;color:var(--color-grey-1)}.app.loading::after{display:flex;justify-content:center;align-items:center;position:absolute;left:0;top:0;z-index:999;width:100%;height:100%;content:'๐';background:rgba(255,255,255,0.01);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);color:var(--color-orange-1);font-size:50px;-webkit-animation:loading 1s infinite;animation:loading 1s infinite}@-webkit-keyframes loading{1%,100%{content:'๐'}12.5%{content:'๐'}25%{content:'๐'}37.5%{content:'๐'}50%{content:'๐'}62.5%{content:'๐'}75%{content:'๐'}87.5%{content:'๐'}}@keyframes loading{1%,100%{content:'๐'}12.5%{content:'๐'}25%{content:'๐'}37.5%{content:'๐'}50%{content:'๐'}62.5%{content:'๐'}75%{content:'๐'}87.5%{content:'๐'}} +html{font-size:12.8px;width:100%;height:100vh}body{overflow:hidden;display:flex;flex-direction:column;width:100%;height:100%;line-height:1.25;font-size:14px;color:var(--color-dark-1);background:rgba(255,255,255,0.3)}.app-drag{-webkit-app-region:drag;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.app-nodrag{-webkit-app-region:no-drag}.app{position:relative;display:flex;height:100%}.app .category{width:200px;height:100%;background:#fff}.app .category .item{display:flex;justify-content:space-between;align-items:center;height:54px;padding:8px;border-bottom:1px solid var(--color-plain-1);background:#fff;transition:background 0.2s ease-in-out, color 0.2s ease-in-out;cursor:pointer}.app .category .item strong{max-width:150px}.app .category .item .num{display:flex;justify-content:center;align-items:center;min-width:16px;height:16px;padding:2px;line-height:1;border-radius:50%;font-size:12px;background:var(--color-grey-1);color:#fff}.app .category .item:last-child{border-bottom:0}.app .category .item:hover{color:var(--color-blue-1);background:var(--color-plain-1)}.app .category .item.active{color:var(--color-plain-1);background:var(--color-blue-1)}.app .category .item.active .num{background:#fff;color:var(--color-blue-1)}.app .detail{position:relative;flex:1;height:100%;border-left:1px solid var(--color-plain-2);background:rgba(255,255,255,0.5)}.app .detail .title{display:flex;justify-content:space-between;align-items:center;width:100%;height:35px;padding:0 16px;font-size:16px;font-weight:bold}.app .detail .title span{display:inline-flex}.app .detail .title wc-button{margin:0 6px}.app .detail .card{width:96%;padding:12px 12px 16px;margin:12px 2% 24px;border:0;background:#fff;box-shadow:0 0 8px rgba(0,0,0,0.075)}.app .detail .card legend{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:#64b5f6}.app.loading::after{display:flex;justify-content:center;align-items:center;position:absolute;left:0;top:0;z-index:999;width:100%;height:100%;content:'๐';background:rgba(255,255,255,0.01);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);color:var(--color-orange-1);font-size:50px;-webkit-animation:loading 1s infinite;animation:loading 1s infinite}.app .drag-mask{display:flex;align-items:center;position:fixed;left:0;top:0;z-index:9999;width:100%;height:100%;background:linear-gradient(to right, transparent, transparent 200px, #fff3e3 200px)}.app .drag-mask::after{font-size:46px;text-indent:300px;content:'Drop epub file here...';color:var(--color-grey-1)}@-webkit-keyframes loading{1%,100%{content:'๐'}12.5%{content:'๐'}25%{content:'๐'}37.5%{content:'๐'}50%{content:'๐'}62.5%{content:'๐'}75%{content:'๐'}87.5%{content:'๐'}}@keyframes loading{1%,100%{content:'๐'}12.5%{content:'๐'}25%{content:'๐'}37.5%{content:'๐'}50%{content:'๐'}62.5%{content:'๐'}75%{content:'๐'}87.5%{content:'๐'}} diff --git a/src/css/app.scss b/src/css/app.scss index 4b3039e..97d434e 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -36,108 +36,55 @@ body { display: flex; height: 100%; - .sidebar { - display: flex; - flex-direction: column; - justify-content: space-between; - width: 76px; - height: 100%; - padding: 48px 22px 24px; - background: var(--color-dark-1); - color: var(--color-plain-1); - - .item { - cursor: pointer; - - &:hover, - &.active { - color: var(--color-orange-1); - } - &:active { - color: var(--color-orange-2); - } - } - } - - .select-box { - display: flex; - flex-direction: column; + .category { width: 200px; height: 100%; - background: rgba(255, 255, 255, 0.5); + background: #fff; - .form { + .item { display: flex; + justify-content: space-between; align-items: center; - width: 100%; - height: 35px; - padding: 0 6px; + height: 54px; + padding: 8px; + border-bottom: 1px solid var(--color-plain-1); background: #fff; - border-bottom: 1px solid var(--color-plain-2); + transition: background 0.2s ease-in-out, color 0.2s ease-in-out; + cursor: pointer; - wc-input { - flex: 1; + strong { + max-width: 150px; } - } - - .list { - flex: 1; - - .item { + .num { display: flex; - flex-direction: column; justify-content: center; - height: 48px; - padding: 6px; - border-bottom: 1px solid rgba(200, 200, 200, 0.3); - transition: color 0.15s ease-in-out, background 0.15s ease-in-out; - cursor: pointer; + align-items: center; + min-width: 16px; + height: 16px; + padding: 2px; + line-height: 1; + border-radius: 50%; + font-size: 12px; + background: var(--color-grey-1); + color: #fff; + } - section { - display: flex; - justify-content: space-between; - align-items: center; - } + &:last-child { + border-bottom: 0; + } - cite { - color: var(--color-grey-2); - } + &:hover { + color: var(--color-blue-1); + background: var(--color-plain-1); + } - .percent { - padding: 0 4px; - border-radius: 2px; - font-size: 12px; - font-weight: bold; - color: var(--color-grey-1); + &.active { + color: var(--color-plain-1); + background: var(--color-blue-1); - &.red { - color: var(--color-red-1); - } - &.green { - color: var(--color-green-3); - } - } - - &:last-child { - border-bottom: 0; - } - - &:hover { + .num { + background: #fff; color: var(--color-blue-1); - background: rgba(255, 255, 255, 0.7); - } - - &.active { - color: var(--color-plain-1); - background: var(--color-blue-1); - - cite { - color: inherit; - } - - .percent { - color: #fff; - } } } } @@ -148,7 +95,7 @@ body { flex: 1; height: 100%; border-left: 1px solid var(--color-plain-2); - background: #fff; + background: rgba(255, 255, 255, 0.5); .title { display: flex; @@ -182,91 +129,6 @@ body { color: #64b5f6; } } - - &.blur { - &::after { - display: flex; - justify-content: center; - align-items: center; - position: absolute; - left: 0; - top: 0; - z-index: 999; - width: 100%; - height: 100%; - content: 'ๆๅบๆฐๆฎ'; - background: #fff; - color: #f7f8fb; - font-size: 100px; - } - } - } - - .preferences { - width: 640px; - height: 360px; - border-radius: 10px; - - .titlebar { - width: 100%; - height: 72px; - border-bottom: 1px solid var(--color-plain-3); - background: var(--color-plain-1); - - .title { - width: 100%; - height: 24px; - line-height: 24px; - text-align: center; - } - - nav { - display: flex; - width: 100%; - height: 40px; - padding: 0 16px; - - span { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - width: 52px; - height: 40px; - margin: 0 6px; - border-radius: 6px; - font-size: 12px; - - &.active { - background: var(--color-plain-2); - color: var(--color-blue-1); - } - &:hover { - background: var(--color-plain-2); - } - } - --size: 18px; - } - } - - .tab-panel { - padding: 64px; - - p { - margin-bottom: 16px; - } - - .field { - display: flex; - align-items: center; - height: 64px; - - .label { - width: 200px; - color: var(--color-grey-1); - } - } - } } &.loading { @@ -288,6 +150,30 @@ body { animation: loading 1s infinite; } } + + .drag-mask { + display: flex; + align-items: center; + position: fixed; + left: 0; + top: 0; + z-index: 9999; + width: 100%; + height: 100%; + background: linear-gradient( + to right, + transparent, + transparent 200px, + #fff3e3 200px + ); + + &::after { + font-size: 46px; + text-indent: 300px; + content: 'Drop epub file here...'; + color: var(--color-grey-1); + } + } } @keyframes loading { diff --git a/src/index.html b/src/index.html index e387237..3391aa5 100644 --- a/src/index.html +++ b/src/index.html @@ -13,105 +13,27 @@
โๆๅบ็ฑๅชๅชโ ๆฏไธๆฌพๅผๆบ็, ้ไธไธ็ๆๅบ่ฝฏไปถ, ไธ้ข็ๆฐๆฎๅ จๆฅ่ช็ฝ็ป, ไธๅฏนๅ็กฎๆงไฝไปปไฝไฟ่ฏ.
-ๆๅบๆ้ฃ้ฉ, ๅ ฅ่ก้่ฐจๆ . ไฝ ไบไบๅซๆพๆ, ่ตไบๅฏไปฅ็ปๆๅ็บขๅ .
- -