diff --git a/css/index.css b/css/index.css index 753a36b..f76028f 100644 --- a/css/index.css +++ b/css/index.css @@ -1 +1 @@ -body{line-height:1.5;font-size:14px;color:var(--color-dark-1)}a{color:inherit;text-decoration:none}wc-switch{cursor:pointer}.app{width:100%;height:100vh}.flex{display:flex}.flex.column{flex-direction:column}.flex.ac{justify-content:center}.flex.alc{align-items:center}.flex.acc{justify-content:center;align-items:center}.flex.asc{justify-content:space-between;align-items:center}.wrapper{width:1024px}.topbar{width:100%;height:64px;background:#fff;box-shadow:0 6px 12px rgba(0,0,0,.05)}.topbar .logo{font-size:24px;color:var(--color-red-1)}.topbar .logo span{font-size:14px}.topbar .navs{font-size:16px}.topbar .navs .nav{margin-left:32px;cursor:pointer;transition:color .2s linear}.topbar .navs .nav.active,.topbar .navs .nav:hover{text-decoration:underline;color:var(--color-red-1)}.footer{width:100%;height:64px;border-top:1px solid var(--color-plain-2)}.main{flex:1}.main .table-info{width:100%;height:64px}.main .table-info i{color:var(--color-red-1)}.main .table-info .download{margin-left:32px}.main .search{width:100%}.main .search .field{margin-top:16px}.main .search .field.result{line-height:2;font-family:Menlo;word-wrap:break-word;white-space:pre-wrap}.main .search .field wc-input{flex:1}.main .about{padding:32px 16px}.main .about h2{font-size:24px}.main .about .logs .version{margin-top:32px;line-height:2;font-weight:bold;font-size:18px}.main .about .logs dd{color:var(--color-grey-3)}.main .about .logs ol{padding-left:2em;list-style:decimal}.download-layer{width:640px;height:480px;background:#fff}.download-layer .field{padding:0 16px}.download-layer .field .label{width:120px;padding-right:16px;line-height:32px;text-align:right;font-weight:bold;color:var(--color-grey-3)}.download-layer .field .label::after{content:" : "}@media screen and (max-width: 1024px){.topbar,.main{padding:0 16px}.footer .wrapper{flex-direction:column;align-items:center;justify-content:center}} \ No newline at end of file +body{line-height:1.5;font-size:14px;color:var(--color-dark-1)}a{color:inherit;text-decoration:none}wc-switch{cursor:pointer}.app{width:100%;height:100vh}.flex{display:flex}.flex.column{flex-direction:column}.flex.ac{justify-content:center}.flex.alc{align-items:center}.flex.acc{justify-content:center;align-items:center}.flex.asc{justify-content:space-between;align-items:center}.wrapper{width:1024px}.topbar{width:100%;height:64px;background:#fff;box-shadow:0 6px 12px rgba(0,0,0,.05)}.topbar .logo{font-size:24px;color:var(--color-red-1)}.topbar .logo span{font-size:14px}.topbar .navs{font-size:16px}.topbar .navs .nav{margin-left:32px;cursor:pointer;transition:color .2s linear}.topbar .navs .nav.active,.topbar .navs .nav:hover{text-decoration:underline;color:var(--color-red-1)}.footer{width:100%;height:64px;border-top:1px solid var(--color-plain-2)}.main{flex:1}.main .wrapper{height:100%}.main .table-info{width:100%;height:64px}.main .table-info i{color:var(--color-red-1)}.main .table-info .download{margin-left:32px}.main .search{width:100%}.main .search .field{margin-top:16px}.main .search .field.result{line-height:2;font-family:Menlo;word-wrap:break-word;white-space:pre-wrap}.main .search .field wc-input{flex:1}.main .panel{margin-top:32px}.main .panel .custom-file{position:relative;width:160px}.main .panel .custom-file input{position:absolute;width:100%;height:100%;opacity:0}.main .panel .tips{color:var(--color-orange-3)}.main .panel .preview{margin-top:16px;font-family:Menlo;word-wrap:break-word;white-space:pre-wrap}.main .about{padding:32px 16px}.main .about h2{font-size:24px}.main .about .logs .version{margin-top:32px;line-height:2;font-weight:bold;font-size:18px}.main .about .logs dd{color:var(--color-grey-3)}.main .about .logs ol{padding-left:2em;list-style:decimal}.download-layer{width:640px;padding-bottom:64px;background:#fff}.download-layer .field{margin-top:16px;padding:0 16px}.download-layer .field .label{min-width:120px;padding-right:16px;line-height:32px;text-align:right;font-weight:bold;color:var(--color-grey-3)}.download-layer .field .label::after{content:" : "}.download-layer .field .tips{margin-left:16px;line-height:32px;color:var(--color-orange-3)}.download-layer .field.ctrol{padding:0 128px;margin-top:64px}@media screen and (max-width: 1024px){.topbar,.main{padding:0 16px}.footer .wrapper{flex-direction:column;align-items:center;justify-content:center}} \ No newline at end of file diff --git a/css/index.scss b/css/index.scss index 0e00649..3aae6f9 100644 --- a/css/index.scss +++ b/css/index.scss @@ -1,18 +1,22 @@ @import './common.scss'; - - .main { flex: 1; + .wrapper { + height: 100%; + } + .table-info { width: 100%; height: 64px; - i {color:var(--color-red-1);} + i { + color: var(--color-red-1); + } .download { - margin-left:32px; + margin-left: 32px; } } @@ -35,30 +39,54 @@ } } + .panel { + margin-top: 32px; + .custom-file { + position: relative; + width: 160px; + input { + position: absolute; + width: 100%; + height: 100%; + opacity: 0; + } + } + + .tips { + color: var(--color-orange-3); + } + + .preview { + margin-top: 16px; + font-family: Menlo; + word-wrap: break-word; + white-space: pre-wrap; + } + } + + /* */ .about { - padding:32px 16px; - + padding: 32px 16px; h2 { - font-size:24px; + font-size: 24px; } .logs { - .version { - margin-top:32px; - line-height:2; - font-weight:bold; - font-size:18px; + margin-top: 32px; + line-height: 2; + font-weight: bold; + font-size: 18px; } dd { - color:var(--color-grey-3); + color: var(--color-grey-3); } ol { - padding-left:2em; + padding-left: 2em; list-style: decimal; } } @@ -66,30 +94,40 @@ } .download-layer { - width:640px; - height:480px; - background:#fff; + width: 640px; + padding-bottom: 64px; + background: #fff; .field { - padding:0 16px; + margin-top: 16px; + padding: 0 16px; .label { - width:120px; - padding-right:16px; + min-width: 120px; + padding-right: 16px; line-height: 32px; - text-align:right; - font-weight:bold; - color:var(--color-grey-3); + text-align: right; + font-weight: bold; + color: var(--color-grey-3); &::after { - content:" : "; + content: ' : '; } } + + .tips { + margin-left: 16px; + line-height: 32px; + color: var(--color-orange-3); + } + + &.ctrol { + padding: 0 128px; + margin-top: 64px; + } } } - - @media screen and (max-width: 1024px) { .topbar, .main { diff --git a/index.html b/index.html index 17d3ff8..47c5805 100644 --- a/index.html +++ b/index.html @@ -31,7 +31,7 @@